merge.api.ts 1.1 KB

123456789101112131415161718192021
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ErrorsFragmentDoc } from '../../../../graphql/fragments/errors.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const TicketMergeDocument = gql`
  8. mutation ticketMerge($sourceTicketId: ID!, $targetTicketId: ID!) {
  9. ticketMerge(sourceTicketId: $sourceTicketId, targetTicketId: $targetTicketId) {
  10. errors {
  11. ...errors
  12. }
  13. }
  14. }
  15. ${ErrorsFragmentDoc}`;
  16. export function useTicketMergeMutation(options: VueApolloComposable.UseMutationOptions<Types.TicketMergeMutation, Types.TicketMergeMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TicketMergeMutation, Types.TicketMergeMutationVariables>> = {}) {
  17. return VueApolloComposable.useMutation<Types.TicketMergeMutation, Types.TicketMergeMutationVariables>(TicketMergeDocument, options);
  18. }
  19. export type TicketMergeMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TicketMergeMutation, Types.TicketMergeMutationVariables>;