import * as Types from '#shared/graphql/types.ts';

import gql from 'graphql-tag';
import { KnowledgeBaseAnswerTranslationFragmentDoc } from '../../../knowledge-base/graphql/fragments/knowledgeBaseAnswerTranslation.api';
import * as VueApolloComposable from '@vue/apollo-composable/compat';
import * as VueCompositionApi from 'vue';
export type ReactiveFunction<TParam> = () => TParam;

export const LinkUpdatesDocument = gql`
    subscription linkUpdates($objectId: ID!, $targetType: String!) {
  linkUpdates(objectId: $objectId, targetType: $targetType) {
    links {
      item {
        __typename
        ... on Ticket {
          id
          internalId
          title
          state {
            id
            name
          }
          stateColorCode
        }
        ... on KnowledgeBaseAnswerTranslation {
          ...knowledgeBaseAnswerTranslation
        }
      }
      type
    }
  }
}
    ${KnowledgeBaseAnswerTranslationFragmentDoc}`;
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>> = {}) {
  return VueApolloComposable.useSubscription<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>(LinkUpdatesDocument, variables, options);
}
export type LinkUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.LinkUpdatesSubscription, Types.LinkUpdatesSubscriptionVariables>;