onlineNotifications.api.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import * as VueApolloComposable from '@vue/apollo-composable';
  4. import * as VueCompositionApi from 'vue';
  5. export type ReactiveFunction<TParam> = () => TParam;
  6. export const OnlineNotificationsDocument = gql`
  7. query onlineNotifications {
  8. onlineNotifications {
  9. edges {
  10. node {
  11. id
  12. seen
  13. createdAt
  14. createdBy {
  15. id
  16. fullname
  17. lastname
  18. firstname
  19. email
  20. vip
  21. outOfOffice
  22. outOfOfficeStartAt
  23. outOfOfficeEndAt
  24. active
  25. image
  26. }
  27. typeName
  28. objectName
  29. metaObject {
  30. ... on Ticket {
  31. id
  32. internalId
  33. title
  34. }
  35. ... on TicketArticle {
  36. id
  37. internalId
  38. ticket {
  39. id
  40. internalId
  41. title
  42. }
  43. to {
  44. raw
  45. }
  46. bodyWithUrls
  47. preferences
  48. }
  49. }
  50. }
  51. cursor
  52. }
  53. pageInfo {
  54. endCursor
  55. hasNextPage
  56. }
  57. }
  58. }
  59. `;
  60. export function useOnlineNotificationsQuery(options: VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>> = {}) {
  61. return VueApolloComposable.useQuery<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>(OnlineNotificationsDocument, {}, options);
  62. }
  63. export function useOnlineNotificationsLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>> = {}) {
  64. return VueApolloComposable.useLazyQuery<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>(OnlineNotificationsDocument, {}, options);
  65. }
  66. export type OnlineNotificationsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.OnlineNotificationsQuery, Types.OnlineNotificationsQueryVariables>;