ticketSharedDraftStartUpdate.api.ts 1.6 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { TicketSharedDraftStartAttributesFragmentDoc } from '../fragments/ticketSharedDraftStartAttributes.api';
  4. import { ErrorsFragmentDoc } from '../../../../graphql/fragments/errors.api';
  5. import * as VueApolloComposable from '@vue/apollo-composable';
  6. import * as VueCompositionApi from 'vue';
  7. export type ReactiveFunction<TParam> = () => TParam;
  8. export const TicketSharedDraftStartUpdateDocument = gql`
  9. mutation ticketSharedDraftStartUpdate($sharedDraftId: ID!, $input: TicketSharedDraftStartInput!) {
  10. ticketSharedDraftStartUpdate(input: $input, sharedDraftId: $sharedDraftId) {
  11. sharedDraft {
  12. ...ticketSharedDraftStartAttributes
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${TicketSharedDraftStartAttributesFragmentDoc}
  20. ${ErrorsFragmentDoc}`;
  21. export function useTicketSharedDraftStartUpdateMutation(options: VueApolloComposable.UseMutationOptions<Types.TicketSharedDraftStartUpdateMutation, Types.TicketSharedDraftStartUpdateMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TicketSharedDraftStartUpdateMutation, Types.TicketSharedDraftStartUpdateMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.TicketSharedDraftStartUpdateMutation, Types.TicketSharedDraftStartUpdateMutationVariables>(TicketSharedDraftStartUpdateDocument, options);
  23. }
  24. export type TicketSharedDraftStartUpdateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TicketSharedDraftStartUpdateMutation, Types.TicketSharedDraftStartUpdateMutationVariables>;