linkUpdates.api.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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 LinkUpdatesDocument = gql`
  7. subscription linkUpdates($objectId: ID!, $targetType: String!) {
  8. linkUpdates(objectId: $objectId, targetType: $targetType) {
  9. links {
  10. item {
  11. ... on Ticket {
  12. id
  13. internalId
  14. title
  15. state {
  16. id
  17. name
  18. }
  19. stateColorCode
  20. }
  21. ... on KnowledgeBaseAnswerTranslation {
  22. id
  23. }
  24. }
  25. type
  26. }
  27. }
  28. }
  29. `;
  30. export function useLinkUpdatesSubscription(variables: Types.LinkUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.LinkUpdatesSubscriptionVariables> | ReactiveFunction<Types.LinkUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>> = {}) {
  31. return VueApolloComposable.useSubscription<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>(LinkUpdatesDocument, variables, options);
  32. }
  33. export type LinkUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>;