123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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 { ReferencingTicketFragmentDoc } from '../fragments/referencingTicket.api';
- import * as VueApolloComposable from '@vue/apollo-composable';
- import * as VueCompositionApi from 'vue';
- export type ReactiveFunction<TParam> = () => TParam;
- export const TicketUpdatesDocument = gql`
- subscription ticketUpdates($ticketId: ID!, $initial: Boolean = false) {
- ticketUpdates(ticketId: $ticketId, initial: $initial) {
- ticket {
- ...ticketAttributes
- createArticleType {
- id
- name
- }
- mentions(first: 20) {
- totalCount
- edges {
- node {
- ...ticketMention
- }
- cursor
- }
- }
- checklist {
- id
- completed
- incomplete
- total
- complete
- }
- referencingChecklistTickets {
- ...referencingTicket
- }
- }
- }
- }
- ${TicketAttributesFragmentDoc}
- ${TicketMentionFragmentDoc}
- ${ReferencingTicketFragmentDoc}`;
- export function useTicketUpdatesSubscription(variables: Types.TicketUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.TicketUpdatesSubscriptionVariables> | ReactiveFunction<Types.TicketUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.TicketUpdatesSubscription, Types.TicketUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.TicketUpdatesSubscription, Types.TicketUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.TicketUpdatesSubscription, Types.TicketUpdatesSubscriptionVariables>> = {}) {
- return VueApolloComposable.useSubscription<Types.TicketUpdatesSubscription, Types.TicketUpdatesSubscriptionVariables>(TicketUpdatesDocument, variables, options);
- }
- export type TicketUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.TicketUpdatesSubscription, Types.TicketUpdatesSubscriptionVariables>;
|