From 76a98aa0c3ee445447eeb2ddfa987618e23be075 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 9 Jul 2025 07:59:08 -0600 Subject: [PATCH 1/4] Remove subscription stuff for now --- src/index.tsx | 14 +++----------- src/schema.gql | 9 +++------ 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index f75c7a6..246f3a0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -164,12 +164,6 @@ 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"]; @@ -2278,7 +2272,6 @@ export type Mutation = { addAnnotationToShot: AddShotAnnotationReturn; commentOnVideo: Scalars["Boolean"]["output"]; createBucketSet: BucketSetGql; - createSubscription: CreateSubscriptionResultGql; createUploadStream: CreateUploadStreamReturn; deleteComment: Scalars["Boolean"]["output"]; deleteTags: Scalars["Boolean"]["output"]; @@ -2318,10 +2311,6 @@ export type MutationCreateBucketSetArgs = { params: CreateBucketSetInput; }; -export type MutationCreateSubscriptionArgs = { - priceId: Scalars["String"]["input"]; -}; - export type MutationCreateUploadStreamArgs = { videoMetadata: VideoMetadataInput; }; @@ -3200,8 +3189,11 @@ export type VideoProcessingErrorGql = { export type VideoProcessingGql = { __typename?: "VideoProcessingGQL"; + currentSegment?: Maybe; errors: Array; + framesProcessed?: Maybe; id: Scalars["Int"]["output"]; + progressPercentage?: Maybe; status: ProcessingStatusEnum; statuses: Array; }; diff --git a/src/schema.gql b/src/schema.gql index a63e08f..1e1acea 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -569,6 +569,9 @@ type VideoProcessingGQL { errors: [VideoProcessingErrorGQL!]! status: ProcessingStatusEnum! statuses: [VideoProcessingStatusGQL!]! + framesProcessed: Int + currentSegment: Int + progressPercentage: Float } type VideoProcessingErrorGQL { @@ -903,7 +906,6 @@ type Mutation { unfollowUser(followedUserId: Int!): UserGQL! retireTags(tagIds: [Int!]!): Boolean! ensureStripeCustomerExists: UserGQL! - createSubscription(priceId: String!): CreateSubscriptionResultGQL! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput! @@ -1013,11 +1015,6 @@ input EditUserInputGQL { videosPrivateByDefault: Boolean = null } -type CreateSubscriptionResultGQL { - checkoutUrl: String! - sessionId: String! -} - type CreateUploadStreamReturn { videoId: Int! } From 99f8968a36b46bee8d5b80d053bc43b47b76c369 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Wed, 9 Jul 2025 11:37:21 -0600 Subject: [PATCH 2/4] Create delete user --- src/index.tsx | 1 + src/schema.gql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 246f3a0..f5686d8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2275,6 +2275,7 @@ export type Mutation = { createUploadStream: CreateUploadStreamReturn; deleteComment: Scalars["Boolean"]["output"]; deleteTags: Scalars["Boolean"]["output"]; + deleteUser: Scalars["Boolean"]["output"]; deleteVideo: Scalars["Boolean"]["output"]; editComment: Scalars["Boolean"]["output"]; editProfileImageUri: UserGql; diff --git a/src/schema.gql b/src/schema.gql index 1e1acea..bdc8e73 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -906,6 +906,7 @@ type Mutation { unfollowUser(followedUserId: Int!): UserGQL! retireTags(tagIds: [Int!]!): Boolean! ensureStripeCustomerExists: UserGQL! + deleteUser: Boolean! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput! From ddee57f4c28b78a9c85d62adaf67444130129ce7 Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 9 Jul 2025 11:41:57 -0700 Subject: [PATCH 3/4] 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! } From c660ed54cd44252274e36fd3220e05e6de811024 Mon Sep 17 00:00:00 2001 From: Loewy Date: Fri, 11 Jul 2025 11:17:25 -0700 Subject: [PATCH 4/4] delete user mutation --- src/index.tsx | 54 +++++++++++++++++++++++++++++++++++++++++ src/operations/user.gql | 4 +++ 2 files changed, 58 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index d4f4fff..1e5c093 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4711,6 +4711,13 @@ export type EditUserMutation = { }; }; +export type DeleteUserMutationVariables = Exact<{ [key: string]: never }>; + +export type DeleteUserMutation = { + __typename?: "Mutation"; + deleteUser: boolean; +}; + export type UserFragmentFragment = { __typename?: "UserGQL"; id: number; @@ -8732,6 +8739,53 @@ export type EditUserMutationOptions = Apollo.BaseMutationOptions< EditUserMutation, EditUserMutationVariables >; +export const DeleteUserDocument = gql` + mutation deleteUser { + deleteUser + } +`; +export type DeleteUserMutationFn = Apollo.MutationFunction< + DeleteUserMutation, + DeleteUserMutationVariables +>; + +/** + * __useDeleteUserMutation__ + * + * To run a mutation, you first call `useDeleteUserMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteUserMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteUserMutation, { data, loading, error }] = useDeleteUserMutation({ + * variables: { + * }, + * }); + */ +export function useDeleteUserMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteUserMutation, + DeleteUserMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + DeleteUserDocument, + options, + ); +} +export type DeleteUserMutationHookResult = ReturnType< + typeof useDeleteUserMutation +>; +export type DeleteUserMutationResult = + Apollo.MutationResult; +export type DeleteUserMutationOptions = Apollo.BaseMutationOptions< + DeleteUserMutation, + DeleteUserMutationVariables +>; export const GetStreamMonitoringDetailsDocument = gql` query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) { getVideo(videoId: $videoId, debuggingJson: $debuggingJson) { diff --git a/src/operations/user.gql b/src/operations/user.gql index 9f471c8..cbae561 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -157,6 +157,10 @@ mutation editUser( } } +mutation deleteUser { + deleteUser +} + fragment UserFragment on UserGQL { id firebaseUid