/* 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 DeleteEmailDraftVariables = _Types.Exact<{
  teamId: _Types.Scalars['ID']['input'];
  instructor: _Types.Scalars['Boolean']['input'];
  emailThreadId: _Types.InputMaybe<_Types.Scalars['ID']['input']>;
}>;


export type DeleteEmailDraft = { deleteEmailDraft: { operationDone: boolean | null } | null };


export const DeleteEmailDraftDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteEmailDraft"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"instructor"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emailThreadId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteEmailDraft"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"teamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"instructor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"instructor"}}},{"kind":"Argument","name":{"kind":"Name","value":"emailThreadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emailThreadId"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"operationDone"}}]}}]}}]} as unknown as DocumentNode;
export type DeleteEmailDraftMutationFn = Apollo.MutationFunction<DeleteEmailDraft, DeleteEmailDraftVariables>;

/**
 * __useDeleteEmailDraft__
 *
 * To run a mutation, you first call `useDeleteEmailDraft` within a React component and pass it any options that fit your needs.
 * When your component renders, `useDeleteEmailDraft` 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 [deleteEmailDraft, { data, loading, error }] = useDeleteEmailDraft({
 *   variables: {
 *      teamId: // value for 'teamId'
 *      instructor: // value for 'instructor'
 *      emailThreadId: // value for 'emailThreadId'
 *   },
 * });
 */
export function useDeleteEmailDraft(baseOptions?: Apollo.MutationHookOptions<DeleteEmailDraft, DeleteEmailDraftVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<DeleteEmailDraft, DeleteEmailDraftVariables>(DeleteEmailDraftDocument, options);
      }
export type DeleteEmailDraftHookResult = ReturnType<typeof useDeleteEmailDraft>;
export type DeleteEmailDraftMutationResult = Apollo.MutationResult<DeleteEmailDraft>;
export type DeleteEmailDraftMutationOptions = Apollo.BaseMutationOptions<DeleteEmailDraft, DeleteEmailDraftVariables>;