import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import { TicketAttributesFragmentDoc } from '../fragments/ticketAttributes.api'; import { TicketMentionFragmentDoc } from '../fragments/ticketMention.api'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const TicketUpdatesDocument = gql` subscription ticketUpdates($ticketId: ID!) { ticketUpdates(ticketId: $ticketId) { ticket { ...ticketAttributes mentions { totalCount edges { node { ...ticketMention } cursor } } } } } ${TicketAttributesFragmentDoc} ${TicketMentionFragmentDoc}`; export function useTicketUpdatesSubscription(variables: Types.TicketUpdatesSubscriptionVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseSubscriptionOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useSubscription(TicketUpdatesDocument, variables, options); } export type TicketUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn;