customerUpdate.api.ts 1.4 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '../../../../graphql/types';
  2. import gql from 'graphql-tag';
  3. import { TicketAttributesFragmentDoc } from '../../../../../apps/mobile/pages/ticket/graphql/fragments/ticketAttributes.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 TicketCustomerUpdateDocument = gql`
  9. mutation ticketCustomerUpdate($ticketId: ID!, $input: TicketCustomerUpdateInput!) {
  10. ticketCustomerUpdate(ticketId: $ticketId, input: $input) {
  11. ticket {
  12. ...ticketAttributes
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${TicketAttributesFragmentDoc}
  20. ${ErrorsFragmentDoc}`;
  21. export function useTicketCustomerUpdateMutation(options: VueApolloComposable.UseMutationOptions<Types.TicketCustomerUpdateMutation, Types.TicketCustomerUpdateMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TicketCustomerUpdateMutation, Types.TicketCustomerUpdateMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.TicketCustomerUpdateMutation, Types.TicketCustomerUpdateMutationVariables>(TicketCustomerUpdateDocument, options);
  23. }
  24. export type TicketCustomerUpdateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TicketCustomerUpdateMutation, Types.TicketCustomerUpdateMutationVariables>;