Merge pull request 'Add getUserSubscriptionStatus' (#198) from loewy/subscription-status-resolvers into master
Reviewed-on: #198
This commit is contained in:
commit
80a5bded47
@ -2277,6 +2277,7 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
cancelSubscription: UserSubscriptionStatusGql;
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createSubscription: CreateSubscriptionResultGql;
|
||||
@ -2523,6 +2524,7 @@ export type Query = {
|
||||
getTableState: TableStateGql;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||
getUserSubscriptionStatus: UserSubscriptionStatusGql;
|
||||
getUserTags: Array<TagGql>;
|
||||
getUserVideos: VideoHistoryGql;
|
||||
getUsernames: Array<Scalars["String"]["output"]>;
|
||||
@ -2956,6 +2958,17 @@ export type StripeSubscriptionOptionsGql = {
|
||||
products: Array<StripeProductGql>;
|
||||
};
|
||||
|
||||
export enum StripeSubscriptionStatusEnum {
|
||||
Active = "ACTIVE",
|
||||
Canceled = "CANCELED",
|
||||
Incomplete = "INCOMPLETE",
|
||||
IncompleteExpired = "INCOMPLETE_EXPIRED",
|
||||
PastDue = "PAST_DUE",
|
||||
Paused = "PAUSED",
|
||||
Trialing = "TRIALING",
|
||||
Unpaid = "UNPAID",
|
||||
}
|
||||
|
||||
export type SuccessfulAdd = {
|
||||
__typename?: "SuccessfulAdd";
|
||||
value: Scalars["Boolean"]["output"];
|
||||
@ -3114,6 +3127,17 @@ export type UserShotCountEntry = {
|
||||
videos: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type UserSubscriptionStatusGql = {
|
||||
__typename?: "UserSubscriptionStatusGQL";
|
||||
currentPeriodEnd?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentPeriodStart?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
||||
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
||||
stripeSubscriptionId?: Maybe<Scalars["String"]["output"]>;
|
||||
subscriptionStatus?: Maybe<StripeSubscriptionStatusEnum>;
|
||||
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
};
|
||||
|
||||
export type VideoFeedInputGql =
|
||||
| {
|
||||
allUsers: Scalars["Boolean"]["input"];
|
||||
|
@ -82,6 +82,7 @@ type Query {
|
||||
after: String = null
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@ -850,6 +851,27 @@ type StripePriceGQL {
|
||||
active: Boolean!
|
||||
}
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
validUntil: DateTime
|
||||
stripePriceId: String
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
TRIALING
|
||||
ACTIVE
|
||||
PAST_DUE
|
||||
CANCELED
|
||||
UNPAID
|
||||
PAUSED
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@ -909,6 +931,7 @@ type Mutation {
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
cancelSubscription: UserSubscriptionStatusGQL!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
|
Loading…
x
Reference in New Issue
Block a user