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; export const TicketDocument = gql` query ticket($ticketId: ID, $ticketInternalId: Int, $ticketNumber: String) { ticket( ticket: {ticketId: $ticketId, ticketInternalId: $ticketInternalId, ticketNumber: $ticketNumber} ) { ...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 useTicketQuery(variables: Types.TicketQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(TicketDocument, variables, options); } export function useTicketLazyQuery(variables: Types.TicketQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(TicketDocument, variables, options); } export type TicketQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;