/* 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 SetMilestoneVariables = _Types.Exact<{
  activate: _Types.Scalars['Boolean']['input'];
  milestone: _Types.Scalars['String']['input'];
  teamId: _Types.Scalars['ID']['input'];
}>;


export type SetMilestone = { modifyMilestone: { operationDone: boolean | null } | null };


export const SetMilestoneDocument = /*#__PURE__*/ {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetMilestone"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"activate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"milestone"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"modifyMilestone"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"activate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"activate"}}},{"kind":"Argument","name":{"kind":"Name","value":"milestone"},"value":{"kind":"Variable","name":{"kind":"Name","value":"milestone"}}},{"kind":"Argument","name":{"kind":"Name","value":"teamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"operationDone"}}]}}]}}]} as unknown as DocumentNode;
export type SetMilestoneMutationFn = Apollo.MutationFunction<SetMilestone, SetMilestoneVariables>;

/**
 * __useSetMilestone__
 *
 * To run a mutation, you first call `useSetMilestone` within a React component and pass it any options that fit your needs.
 * When your component renders, `useSetMilestone` 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 [setMilestone, { data, loading, error }] = useSetMilestone({
 *   variables: {
 *      activate: // value for 'activate'
 *      milestone: // value for 'milestone'
 *      teamId: // value for 'teamId'
 *   },
 * });
 */
export function useSetMilestone(baseOptions?: Apollo.MutationHookOptions<SetMilestone, SetMilestoneVariables>) {
        const options = {...defaultOptions, ...baseOptions}
        return Apollo.useMutation<SetMilestone, SetMilestoneVariables>(SetMilestoneDocument, options);
      }
export type SetMilestoneHookResult = ReturnType<typeof useSetMilestone>;
export type SetMilestoneMutationResult = Apollo.MutationResult<SetMilestone>;
export type SetMilestoneMutationOptions = Apollo.BaseMutationOptions<SetMilestone, SetMilestoneVariables>;