import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const LinkAddDocument = gql` mutation linkAdd($input: LinkInput!) { linkAdd(input: $input) { link { type item { ... on Ticket { id internalId title state { id name } stateColorCode } ... on KnowledgeBaseAnswerTranslation { id } } } errors { message field } } } `; export function useLinkAddMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(LinkAddDocument, options); } export type LinkAddMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn;