linkAdd.api.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import * as VueApolloComposable from '@vue/apollo-composable';
  4. import * as VueCompositionApi from 'vue';
  5. export type ReactiveFunction<TParam> = () => TParam;
  6. export const LinkAddDocument = gql`
  7. mutation linkAdd($input: LinkInput!) {
  8. linkAdd(input: $input) {
  9. link {
  10. type
  11. item {
  12. ... on Ticket {
  13. id
  14. internalId
  15. title
  16. state {
  17. id
  18. name
  19. }
  20. stateColorCode
  21. }
  22. ... on KnowledgeBaseAnswerTranslation {
  23. id
  24. }
  25. }
  26. }
  27. errors {
  28. message
  29. field
  30. }
  31. }
  32. }
  33. `;
  34. export function useLinkAddMutation(options: VueApolloComposable.UseMutationOptions<Types.LinkAddMutation, Types.LinkAddMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.LinkAddMutation, Types.LinkAddMutationVariables>> = {}) {
  35. return VueApolloComposable.useMutation<Types.LinkAddMutation, Types.LinkAddMutationVariables>(LinkAddDocument, options);
  36. }
  37. export type LinkAddMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.LinkAddMutation, Types.LinkAddMutationVariables>;