userCurrentDevicesUpdates.api.ts 1.7 KB

123456789101112131415161718192021
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { UserDeviceAttributesFragmentDoc } from '../fragments/userDeviceAttributes.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const UserCurrentDevicesUpdatesDocument = gql`
  8. subscription userCurrentDevicesUpdates($userId: ID!) {
  9. userCurrentDevicesUpdates(userId: $userId) {
  10. devices {
  11. ...userDeviceAttributes
  12. }
  13. }
  14. }
  15. ${UserDeviceAttributesFragmentDoc}`;
  16. export function useUserCurrentDevicesUpdatesSubscription(variables: Types.UserCurrentDevicesUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.UserCurrentDevicesUpdatesSubscriptionVariables> | ReactiveFunction<Types.UserCurrentDevicesUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentDevicesUpdatesSubscription, Types.UserCurrentDevicesUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentDevicesUpdatesSubscription, Types.UserCurrentDevicesUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentDevicesUpdatesSubscription, Types.UserCurrentDevicesUpdatesSubscriptionVariables>> = {}) {
  17. return VueApolloComposable.useSubscription<Types.UserCurrentDevicesUpdatesSubscription, Types.UserCurrentDevicesUpdatesSubscriptionVariables>(UserCurrentDevicesUpdatesDocument, variables, options);
  18. }
  19. export type UserCurrentDevicesUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.UserCurrentDevicesUpdatesSubscription, Types.UserCurrentDevicesUpdatesSubscriptionVariables>;