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


export type WriteReadReceipt = { writeReadReceipt: { actionLogId: string, readReceipt: string | null } | null };


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

/**
 * __useWriteReadReceipt__
 *
 * To run a mutation, you first call `useWriteReadReceipt` within a React component and pass it any options that fit your needs.
 * When your component renders, `useWriteReadReceipt` 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 [writeReadReceipt, { data, loading, error }] = useWriteReadReceipt({
 *   variables: {
 *      actionLogId: // value for 'actionLogId'
 *   },
 * });
 */
export function useWriteReadReceipt(baseOptions?: Apollo.MutationHookOptions<WriteReadReceipt, WriteReadReceiptVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<WriteReadReceipt, WriteReadReceiptVariables>(WriteReadReceiptDocument, options);
      }
export type WriteReadReceiptHookResult = ReturnType<typeof useWriteReadReceipt>;
export type WriteReadReceiptMutationResult = Apollo.MutationResult<WriteReadReceipt>;
export type WriteReadReceiptMutationOptions = Apollo.BaseMutationOptions<WriteReadReceipt, WriteReadReceiptVariables>;