ticketOverviewUpdates.api.ts 1.8 KB

123456789101112131415161718192021222324252627282930
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { OverviewAttributesFragmentDoc } from '../../../../../../shared/entities/ticket/graphql/fragments/overviewAttributes.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const TicketOverviewUpdatesDocument = gql`
  8. subscription ticketOverviewUpdates($withTicketCount: Boolean!) {
  9. ticketOverviewUpdates {
  10. ticketOverviews {
  11. edges {
  12. node {
  13. ...overviewAttributes
  14. }
  15. cursor
  16. }
  17. pageInfo {
  18. endCursor
  19. hasNextPage
  20. }
  21. }
  22. }
  23. }
  24. ${OverviewAttributesFragmentDoc}`;
  25. export function useTicketOverviewUpdatesSubscription(variables: Types.TicketOverviewUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.TicketOverviewUpdatesSubscriptionVariables> | ReactiveFunction<Types.TicketOverviewUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.TicketOverviewUpdatesSubscription, Types.TicketOverviewUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.TicketOverviewUpdatesSubscription, Types.TicketOverviewUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.TicketOverviewUpdatesSubscription, Types.TicketOverviewUpdatesSubscriptionVariables>> = {}) {
  26. return VueApolloComposable.useSubscription<Types.TicketOverviewUpdatesSubscription, Types.TicketOverviewUpdatesSubscriptionVariables>(TicketOverviewUpdatesDocument, variables, options);
  27. }
  28. export type TicketOverviewUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.TicketOverviewUpdatesSubscription, Types.TicketOverviewUpdatesSubscriptionVariables>;