/* 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 WriteReadReceiptEmailVariables = _Types.Exact<{
  emailId: _Types.Scalars['ID']['input'];
}>;


export type WriteReadReceiptEmail = { writeReadReceiptEmail: { emailId: string, readReceipt: string | null } | null };


export const WriteReadReceiptEmailDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"WriteReadReceiptEmail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emailId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"writeReadReceiptEmail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"emailId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emailId"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"emailId"}},{"kind":"Field","name":{"kind":"Name","value":"readReceipt"}}]}}]}}]} as unknown as DocumentNode;
export type WriteReadReceiptEmailMutationFn = Apollo.MutationFunction<WriteReadReceiptEmail, WriteReadReceiptEmailVariables>;

/**
 * __useWriteReadReceiptEmail__
 *
 * To run a mutation, you first call `useWriteReadReceiptEmail` within a React component and pass it any options that fit your needs.
 * When your component renders, `useWriteReadReceiptEmail` 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 [writeReadReceiptEmail, { data, loading, error }] = useWriteReadReceiptEmail({
 *   variables: {
 *      emailId: // value for 'emailId'
 *   },
 * });
 */
export function useWriteReadReceiptEmail(baseOptions?: Apollo.MutationHookOptions<WriteReadReceiptEmail, WriteReadReceiptEmailVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<WriteReadReceiptEmail, WriteReadReceiptEmailVariables>(WriteReadReceiptEmailDocument, options);
      }
export type WriteReadReceiptEmailHookResult = ReturnType<typeof useWriteReadReceiptEmail>;
export type WriteReadReceiptEmailMutationResult = Apollo.MutationResult<WriteReadReceiptEmail>;
export type WriteReadReceiptEmailMutationOptions = Apollo.BaseMutationOptions<WriteReadReceiptEmail, WriteReadReceiptEmailVariables>;