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 OnlineNotificationsDocument = gql` query onlineNotifications { onlineNotifications { edges { node { id seen createdAt createdBy { id fullname lastname firstname email vip outOfOffice outOfOfficeStartAt outOfOfficeEndAt active image } typeName objectName metaObject { ... on Ticket { id internalId title } ... on TicketArticle { id internalId ticket { id internalId title } to { raw } bodyWithUrls preferences } } } cursor } pageInfo { endCursor hasNextPage } } } `; export function useOnlineNotificationsQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(OnlineNotificationsDocument, {}, options); } export function useOnlineNotificationsLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(OnlineNotificationsDocument, {}, options); } export type OnlineNotificationsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;