/* 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 AnswerQuestionnaireVariables = _Types.Exact<{
  questInput: _Types.QuestionnaireInput;
}>;


export type AnswerQuestionnaire = { answerQuestionnaire: { operationDone: boolean | null } | null };


export const AnswerQuestionnaireDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AnswerQuestionnaire"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"questInput"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"QuestionnaireInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"answerQuestionnaire"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"questInput"},"value":{"kind":"Variable","name":{"kind":"Name","value":"questInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"operationDone"}}]}}]}}]} as unknown as DocumentNode;
export type AnswerQuestionnaireMutationFn = Apollo.MutationFunction<AnswerQuestionnaire, AnswerQuestionnaireVariables>;

/**
 * __useAnswerQuestionnaire__
 *
 * To run a mutation, you first call `useAnswerQuestionnaire` within a React component and pass it any options that fit your needs.
 * When your component renders, `useAnswerQuestionnaire` 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 [answerQuestionnaire, { data, loading, error }] = useAnswerQuestionnaire({
 *   variables: {
 *      questInput: // value for 'questInput'
 *   },
 * });
 */
export function useAnswerQuestionnaire(baseOptions?: Apollo.MutationHookOptions<AnswerQuestionnaire, AnswerQuestionnaireVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<AnswerQuestionnaire, AnswerQuestionnaireVariables>(AnswerQuestionnaireDocument, options);
      }
export type AnswerQuestionnaireHookResult = ReturnType<typeof useAnswerQuestionnaire>;
export type AnswerQuestionnaireMutationResult = Apollo.MutationResult<AnswerQuestionnaire>;
export type AnswerQuestionnaireMutationOptions = Apollo.BaseMutationOptions<AnswerQuestionnaire, AnswerQuestionnaireVariables>;