add operations to retire tag
All checks were successful
Tests / Tests (pull_request) Successful in 9s
All checks were successful
Tests / Tests (pull_request) Successful in 9s
This commit is contained in:
parent
8efa2e067c
commit
2745521664
@ -3855,6 +3855,15 @@ export type EditShotMutation = {
|
||||
};
|
||||
};
|
||||
|
||||
export type RetireTagsMutationVariables = Exact<{
|
||||
tagIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type RetireTagsMutation = {
|
||||
__typename?: "Mutation";
|
||||
retireTags: boolean;
|
||||
};
|
||||
|
||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||
}>;
|
||||
@ -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<RetireTagsMutation, RetireTagsMutationVariables>(
|
||||
RetireTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export type RetireTagsMutationHookResult = ReturnType<
|
||||
typeof useRetireTagsMutation
|
||||
>;
|
||||
export type RetireTagsMutationResult =
|
||||
Apollo.MutationResult<RetireTagsMutation>;
|
||||
export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
||||
RetireTagsMutation,
|
||||
RetireTagsMutationVariables
|
||||
>;
|
||||
export const GetProfileImageUploadLinkDocument = gql`
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
|
3
src/operations/tags.gql
Normal file
3
src/operations/tags.gql
Normal file
@ -0,0 +1,3 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user