/* eslint-disable */
//@ts-nocheck
import type * as _Types from '../types';

import type { DocumentNode } from 'graphql';
import * as Apollo from '@apollo/client';
const defaultOptions = {} as const;
export type DeleteDefinitionVariables = _Types.Exact<{
  definitionId: _Types.Scalars['ID']['input'];
}>;


export type DeleteDefinition = { deleteDefinition: { operationDone: boolean | null } | null };


export const DeleteDefinitionDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteDefinition"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"definitionId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteDefinition"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"definitionId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"definitionId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"operationDone"}}]}}]}}]} as unknown as DocumentNode;
export type DeleteDefinitionMutationFn = Apollo.MutationFunction<DeleteDefinition, DeleteDefinitionVariables>;

/**
 * __useDeleteDefinition__
 *
 * To run a mutation, you first call `useDeleteDefinition` within a React component and pass it any options that fit your needs.
 * When your component renders, `useDeleteDefinition` 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 [deleteDefinition, { data, loading, error }] = useDeleteDefinition({
 *   variables: {
 *      definitionId: // value for 'definitionId'
 *   },
 * });
 */
export function useDeleteDefinition(baseOptions?: Apollo.MutationHookOptions<DeleteDefinition, DeleteDefinitionVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<DeleteDefinition, DeleteDefinitionVariables>(DeleteDefinitionDocument, options);
      }
export type DeleteDefinitionHookResult = ReturnType<typeof useDeleteDefinition>;
export type DeleteDefinitionMutationResult = Apollo.MutationResult<DeleteDefinition>;
export type DeleteDefinitionMutationOptions = Apollo.BaseMutationOptions<DeleteDefinition, DeleteDefinitionVariables>;