From ddee57f4c28b78a9c85d62adaf67444130129ce7 Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 9 Jul 2025 11:41:57 -0700 Subject: [PATCH] create sub --- src/index.tsx | 11 +++++++++++ src/schema.gql | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index f5686d8..d4f4fff 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -164,6 +164,12 @@ export type CreateBucketSetInput = { keyName: Scalars["String"]["input"]; }; +export type CreateSubscriptionResultGql = { + __typename?: "CreateSubscriptionResultGQL"; + checkoutUrl: Scalars["String"]["output"]; + sessionId: Scalars["String"]["output"]; +}; + export type CreateUploadStreamReturn = { __typename?: "CreateUploadStreamReturn"; videoId: Scalars["Int"]["output"]; @@ -2272,6 +2278,7 @@ export type Mutation = { addAnnotationToShot: AddShotAnnotationReturn; commentOnVideo: Scalars["Boolean"]["output"]; createBucketSet: BucketSetGql; + createSubscription: CreateSubscriptionResultGql; createUploadStream: CreateUploadStreamReturn; deleteComment: Scalars["Boolean"]["output"]; deleteTags: Scalars["Boolean"]["output"]; @@ -2312,6 +2319,10 @@ export type MutationCreateBucketSetArgs = { params: CreateBucketSetInput; }; +export type MutationCreateSubscriptionArgs = { + priceId: Scalars["String"]["input"]; +}; + export type MutationCreateUploadStreamArgs = { videoMetadata: VideoMetadataInput; }; diff --git a/src/schema.gql b/src/schema.gql index bdc8e73..d8b4eba 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -907,6 +907,7 @@ type Mutation { retireTags(tagIds: [Int!]!): Boolean! ensureStripeCustomerExists: UserGQL! deleteUser: Boolean! + createSubscription(priceId: String!): CreateSubscriptionResultGQL! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput! @@ -1016,6 +1017,11 @@ input EditUserInputGQL { videosPrivateByDefault: Boolean = null } +type CreateSubscriptionResultGQL { + checkoutUrl: String! + sessionId: String! +} + type CreateUploadStreamReturn { videoId: Int! }