/* 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 SetIsUnreadEmailThreadVariables = _Types.Exact<{
  threadId: _Types.Scalars['ID']['input'];
  teamId: _Types.Scalars['ID']['input'];
  isUnread: _Types.Scalars['Boolean']['input'];
}>;


export type SetIsUnreadEmailThread = { setIsUnreadEmailThread: { operationDone: boolean | null } | null };


export const SetIsUnreadEmailThreadDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"setIsUnreadEmailThread"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"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":"isUnread"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setIsUnreadEmailThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}},{"kind":"Argument","name":{"kind":"Name","value":"teamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"isUnread"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isUnread"}}}],"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 SetIsUnreadEmailThreadMutationFn = Apollo.MutationFunction<SetIsUnreadEmailThread, SetIsUnreadEmailThreadVariables>;

/**
 * __useSetIsUnreadEmailThread__
 *
 * To run a mutation, you first call `useSetIsUnreadEmailThread` within a React component and pass it any options that fit your needs.
 * When your component renders, `useSetIsUnreadEmailThread` 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 [setIsUnreadEmailThread, { data, loading, error }] = useSetIsUnreadEmailThread({
 *   variables: {
 *      threadId: // value for 'threadId'
 *      teamId: // value for 'teamId'
 *      isUnread: // value for 'isUnread'
 *   },
 * });
 */
export function useSetIsUnreadEmailThread(baseOptions?: Apollo.MutationHookOptions<SetIsUnreadEmailThread, SetIsUnreadEmailThreadVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<SetIsUnreadEmailThread, SetIsUnreadEmailThreadVariables>(SetIsUnreadEmailThreadDocument, options);
      }
export type SetIsUnreadEmailThreadHookResult = ReturnType<typeof useSetIsUnreadEmailThread>;
export type SetIsUnreadEmailThreadMutationResult = Apollo.MutationResult<SetIsUnreadEmailThread>;
export type SetIsUnreadEmailThreadMutationOptions = Apollo.BaseMutationOptions<SetIsUnreadEmailThread, SetIsUnreadEmailThreadVariables>;