From c660ed54cd44252274e36fd3220e05e6de811024 Mon Sep 17 00:00:00 2001 From: Loewy Date: Fri, 11 Jul 2025 11:17:25 -0700 Subject: [PATCH] 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 -- 2.47.2