From 7302d6b8b6394f2805c86e207456b5271b55f73e Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 3 Jul 2025 15:26:44 -0700 Subject: [PATCH 1/2] get stripe customer mutation, add stripe_customer_id to user gql type --- src/index.tsx | 6 ++++++ src/schema.gql | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 9387fb6..1b6bb1c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2285,6 +2285,7 @@ export type Mutation = { followUser: UserGql; getHlsInitUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn; + getStripeCustomer: UserGql; getUploadLink: GetUploadLinkReturn; reactToVideo: Scalars["Boolean"]["output"]; retireTags: Scalars["Boolean"]["output"]; @@ -2369,6 +2370,10 @@ export type MutationGetProfileImageUploadLinkArgs = { fileExt?: InputMaybe; }; +export type MutationGetStripeCustomerArgs = { + email: Scalars["String"]["input"]; +}; + export type MutationGetUploadLinkArgs = { segmentIndex: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"]; @@ -3041,6 +3046,7 @@ export type UserGql = { id: Scalars["Int"]["output"]; isAdmin?: Maybe; profileImageUri?: Maybe; + stripeCustomerId?: Maybe; updatedAt?: Maybe; username: Scalars["String"]["output"]; videosPrivateByDefault?: Maybe; diff --git a/src/schema.gql b/src/schema.gql index f9e79a0..4f43761 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -356,6 +356,7 @@ type UserGQL { isAdmin: Boolean fargoRating: Int activeVideoId: Int + stripeCustomerId: String profileImageUri: String createdAt: DateTime updatedAt: DateTime @@ -878,6 +879,7 @@ type Mutation { followUser(followedUserId: Int!): UserGQL! unfollowUser(followedUserId: Int!): UserGQL! retireTags(tagIds: [Int!]!): Boolean! + getStripeCustomer(email: String!): UserGQL! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput! From c0636a886340fe852e807f7faf465f7cf0118e5d Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 3 Jul 2025 19:43:21 -0700 Subject: [PATCH 2/2] ensure stripe customer rename --- src/index.tsx | 10 +++++----- src/schema.gql | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 1b6bb1c..cf43e9a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2281,11 +2281,11 @@ export type Mutation = { editShot: EditShotReturn; editUploadStream: Scalars["Boolean"]["output"]; editUser: UserGql; + ensureStripeCustomerExists: UserGql; findPrerecordTableLayout?: Maybe; followUser: UserGql; getHlsInitUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn; - getStripeCustomer: UserGql; getUploadLink: GetUploadLinkReturn; reactToVideo: Scalars["Boolean"]["output"]; retireTags: Scalars["Boolean"]["output"]; @@ -2353,6 +2353,10 @@ export type MutationEditUserArgs = { input: EditUserInputGql; }; +export type MutationEnsureStripeCustomerExistsArgs = { + email: Scalars["String"]["input"]; +}; + export type MutationFindPrerecordTableLayoutArgs = { b64Image: Scalars["String"]["input"]; videoId: Scalars["Int"]["input"]; @@ -2370,10 +2374,6 @@ export type MutationGetProfileImageUploadLinkArgs = { fileExt?: InputMaybe; }; -export type MutationGetStripeCustomerArgs = { - email: Scalars["String"]["input"]; -}; - export type MutationGetUploadLinkArgs = { segmentIndex: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"]; diff --git a/src/schema.gql b/src/schema.gql index 4f43761..6b4db05 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -879,7 +879,7 @@ type Mutation { followUser(followedUserId: Int!): UserGQL! unfollowUser(followedUserId: Int!): UserGQL! retireTags(tagIds: [Int!]!): Boolean! - getStripeCustomer(email: String!): UserGQL! + ensureStripeCustomerExists(email: String!): UserGQL! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput!