diff --git a/src/index.tsx b/src/index.tsx index 601e322..3ce331b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3855,6 +3855,15 @@ export type EditShotMutation = { }; }; +export type RetireTagsMutationVariables = Exact<{ + tagIds: Array | Scalars["Int"]["input"]; +}>; + +export type RetireTagsMutation = { + __typename?: "Mutation"; + retireTags: boolean; +}; + export type GetProfileImageUploadLinkMutationVariables = Exact<{ fileExt?: InputMaybe; }>; @@ -6605,6 +6614,54 @@ export type EditShotMutationOptions = Apollo.BaseMutationOptions< EditShotMutation, EditShotMutationVariables >; +export const RetireTagsDocument = gql` + mutation RetireTags($tagIds: [Int!]!) { + retireTags(tagIds: $tagIds) + } +`; +export type RetireTagsMutationFn = Apollo.MutationFunction< + RetireTagsMutation, + RetireTagsMutationVariables +>; + +/** + * __useRetireTagsMutation__ + * + * To run a mutation, you first call `useRetireTagsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useRetireTagsMutation` 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 [retireTagsMutation, { data, loading, error }] = useRetireTagsMutation({ + * variables: { + * tagIds: // value for 'tagIds' + * }, + * }); + */ +export function useRetireTagsMutation( + baseOptions?: Apollo.MutationHookOptions< + RetireTagsMutation, + RetireTagsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + RetireTagsDocument, + options, + ); +} +export type RetireTagsMutationHookResult = ReturnType< + typeof useRetireTagsMutation +>; +export type RetireTagsMutationResult = + Apollo.MutationResult; +export type RetireTagsMutationOptions = Apollo.BaseMutationOptions< + RetireTagsMutation, + RetireTagsMutationVariables +>; export const GetProfileImageUploadLinkDocument = gql` mutation getProfileImageUploadLink($fileExt: String = ".png") { getProfileImageUploadLink(fileExt: $fileExt) { diff --git a/src/operations/tags.gql b/src/operations/tags.gql new file mode 100644 index 0000000..6789845 --- /dev/null +++ b/src/operations/tags.gql @@ -0,0 +1,3 @@ +mutation RetireTags($tagIds: [Int!]!) { + retireTags(tagIds: $tagIds) +}