Merge pull request 'Add Apple subscription sync schema' (#253) from apple-iap-pr2-backend-schema into master
Reviewed-on: #253
This commit is contained in:
@@ -2430,6 +2430,7 @@ export type Mutation = {
|
|||||||
startChallenge: ChallengeEntry;
|
startChallenge: ChallengeEntry;
|
||||||
submitCancellationFeedback: Scalars["Boolean"]["output"];
|
submitCancellationFeedback: Scalars["Boolean"]["output"];
|
||||||
submitChallengeEntry: ChallengeEntry;
|
submitChallengeEntry: ChallengeEntry;
|
||||||
|
syncAppleSubscription: SyncAppleSubscriptionResultGql;
|
||||||
undismissChallenge: Scalars["Boolean"]["output"];
|
undismissChallenge: Scalars["Boolean"]["output"];
|
||||||
unfollowUser: UserGql;
|
unfollowUser: UserGql;
|
||||||
updateShotAnnotations: UpdateShotAnnotationReturn;
|
updateShotAnnotations: UpdateShotAnnotationReturn;
|
||||||
@@ -2633,6 +2634,10 @@ export type MutationSubmitChallengeEntryArgs = {
|
|||||||
videoId: Scalars["ID"]["input"];
|
videoId: Scalars["ID"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationSyncAppleSubscriptionArgs = {
|
||||||
|
input: SyncAppleSubscriptionInputGql;
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationUndismissChallengeArgs = {
|
export type MutationUndismissChallengeArgs = {
|
||||||
challengeId: Scalars["ID"]["input"];
|
challengeId: Scalars["ID"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2815,6 +2820,7 @@ export type Query = {
|
|||||||
challenges: Array<Challenge>;
|
challenges: Array<Challenge>;
|
||||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||||
|
getAppleAppAccountToken: Scalars["String"]["output"];
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
@@ -3378,6 +3384,27 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
| SuccessfulAdd;
|
| SuccessfulAdd;
|
||||||
|
|
||||||
|
export type SyncAppleSubscriptionInputGql = {
|
||||||
|
signedRenewalInfo?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
signedTransactionInfo: Scalars["String"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type SyncAppleSubscriptionResultGql = {
|
||||||
|
__typename?: "SyncAppleSubscriptionResultGQL";
|
||||||
|
appleStatus?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
entitlementEndsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
entitlementSource?: Maybe<EntitlementSourceTypeEnum>;
|
||||||
|
entitlementStartsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
errorCode?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
errorMessage?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
expiresAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
hasActiveSubscription: Scalars["Boolean"]["output"];
|
||||||
|
latestTransactionId?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
ok: Scalars["Boolean"]["output"];
|
||||||
|
originalTransactionId?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
productId?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type TableStateGql = {
|
export type TableStateGql = {
|
||||||
__typename?: "TableStateGQL";
|
__typename?: "TableStateGQL";
|
||||||
homography?: Maybe<HomographyInfoGql>;
|
homography?: Maybe<HomographyInfoGql>;
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ type Query {
|
|||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||||
|
getAppleAppAccountToken: String!
|
||||||
getQuotaStatus: QuotaStatusGQL!
|
getQuotaStatus: QuotaStatusGQL!
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
@@ -1176,6 +1177,9 @@ type Mutation {
|
|||||||
retireTags(tagIds: [Int!]!): Boolean!
|
retireTags(tagIds: [Int!]!): Boolean!
|
||||||
ensureStripeCustomerExists: UserGQL!
|
ensureStripeCustomerExists: UserGQL!
|
||||||
deleteUser: Boolean!
|
deleteUser: Boolean!
|
||||||
|
syncAppleSubscription(
|
||||||
|
input: SyncAppleSubscriptionInputGQL!
|
||||||
|
): SyncAppleSubscriptionResultGQL!
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||||
createCustomerPortalSession: CreateCustomerPortalSessionResultGQL!
|
createCustomerPortalSession: CreateCustomerPortalSessionResultGQL!
|
||||||
cancelSubscription: UserSubscriptionStatusGQL!
|
cancelSubscription: UserSubscriptionStatusGQL!
|
||||||
@@ -1329,6 +1333,26 @@ input EditUserInputGQL {
|
|||||||
agreesToMarketing: Boolean = null
|
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 {
|
type CreateSubscriptionResultGQL {
|
||||||
checkoutUrl: String!
|
checkoutUrl: String!
|
||||||
sessionId: String!
|
sessionId: String!
|
||||||
|
|||||||
Reference in New Issue
Block a user