userCurrentAccessTokenUpdates.api.ts 1.8 KB

123456789101112131415161718192021
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { TokenAttributesFragmentDoc } from '../../../../../../shared/entities/user/current/graphql/fragments/tokenAttributes.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const UserCurrentAccessTokenUpdatesDocument = gql`
  8. subscription userCurrentAccessTokenUpdates($userId: ID!) {
  9. userCurrentAccessTokenUpdates(userId: $userId) {
  10. tokens {
  11. ...tokenAttributes
  12. }
  13. }
  14. }
  15. ${TokenAttributesFragmentDoc}`;
  16. export function useUserCurrentAccessTokenUpdatesSubscription(variables: Types.UserCurrentAccessTokenUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.UserCurrentAccessTokenUpdatesSubscriptionVariables> | ReactiveFunction<Types.UserCurrentAccessTokenUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAccessTokenUpdatesSubscription, Types.UserCurrentAccessTokenUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAccessTokenUpdatesSubscription, Types.UserCurrentAccessTokenUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAccessTokenUpdatesSubscription, Types.UserCurrentAccessTokenUpdatesSubscriptionVariables>> = {}) {
  17. return VueApolloComposable.useSubscription<Types.UserCurrentAccessTokenUpdatesSubscription, Types.UserCurrentAccessTokenUpdatesSubscriptionVariables>(UserCurrentAccessTokenUpdatesDocument, variables, options);
  18. }
  19. export type UserCurrentAccessTokenUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.UserCurrentAccessTokenUpdatesSubscription, Types.UserCurrentAccessTokenUpdatesSubscriptionVariables>;