diff --git a/src/index.tsx b/src/index.tsx index 2e12663..cf5bf6b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2430,6 +2430,7 @@ export type Mutation = { startChallenge: ChallengeEntry; submitCancellationFeedback: Scalars["Boolean"]["output"]; submitChallengeEntry: ChallengeEntry; + syncAppleSubscription: SyncAppleSubscriptionResultGql; undismissChallenge: Scalars["Boolean"]["output"]; unfollowUser: UserGql; updateShotAnnotations: UpdateShotAnnotationReturn; @@ -2633,6 +2634,10 @@ export type MutationSubmitChallengeEntryArgs = { videoId: Scalars["ID"]["input"]; }; +export type MutationSyncAppleSubscriptionArgs = { + input: SyncAppleSubscriptionInputGql; +}; + export type MutationUndismissChallengeArgs = { challengeId: Scalars["ID"]["input"]; }; @@ -2815,6 +2820,7 @@ export type Query = { challenges: Array; doesUsernameExist: Scalars["Boolean"]["output"]; getAggregatedShotMetrics: Array; + getAppleAppAccountToken: Scalars["String"]["output"]; getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql; getBucketSet?: Maybe; getDeployedConfig: DeployedConfigGql; @@ -3378,6 +3384,27 @@ export type SuccessfulAddAddShotAnnotationErrors = | AddShotAnnotationErrors | SuccessfulAdd; +export type SyncAppleSubscriptionInputGql = { + signedRenewalInfo?: InputMaybe; + signedTransactionInfo: Scalars["String"]["input"]; +}; + +export type SyncAppleSubscriptionResultGql = { + __typename?: "SyncAppleSubscriptionResultGQL"; + appleStatus?: Maybe; + entitlementEndsAt?: Maybe; + entitlementSource?: Maybe; + entitlementStartsAt?: Maybe; + errorCode?: Maybe; + errorMessage?: Maybe; + expiresAt?: Maybe; + hasActiveSubscription: Scalars["Boolean"]["output"]; + latestTransactionId?: Maybe; + ok: Scalars["Boolean"]["output"]; + originalTransactionId?: Maybe; + productId?: Maybe; +}; + export type TableStateGql = { __typename?: "TableStateGQL"; homography?: Maybe; diff --git a/src/schema.gql b/src/schema.gql index 768722b..951c973 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -98,6 +98,7 @@ type Query { ): UserRelationshipsResult! getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL! getUserSubscriptionStatus: UserSubscriptionStatusGQL! + getAppleAppAccountToken: String! getQuotaStatus: QuotaStatusGQL! getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL! getUserVideos( @@ -1176,6 +1177,9 @@ type Mutation { retireTags(tagIds: [Int!]!): Boolean! ensureStripeCustomerExists: UserGQL! deleteUser: Boolean! + syncAppleSubscription( + input: SyncAppleSubscriptionInputGQL! + ): SyncAppleSubscriptionResultGQL! createSubscription(priceId: String!): CreateSubscriptionResultGQL! createCustomerPortalSession: CreateCustomerPortalSessionResultGQL! cancelSubscription: UserSubscriptionStatusGQL! @@ -1329,6 +1333,26 @@ input EditUserInputGQL { agreesToMarketing: Boolean = null } +type SyncAppleSubscriptionResultGQL { + ok: Boolean! + errorCode: String + errorMessage: String + hasActiveSubscription: Boolean! + entitlementSource: EntitlementSourceTypeEnum + entitlementStartsAt: DateTime + entitlementEndsAt: DateTime + appleStatus: Int + originalTransactionId: String + latestTransactionId: String + productId: String + expiresAt: DateTime +} + +input SyncAppleSubscriptionInputGQL { + signedTransactionInfo: String! + signedRenewalInfo: String = null +} + type CreateSubscriptionResultGQL { checkoutUrl: String! sessionId: String!