2023-12-22 09:54:29 +00:00
|
|
|
import * as Types from '#shared/graphql/types.ts';
|
2022-07-14 15:05:52 +00:00
|
|
|
|
|
|
|
|
import gql from 'graphql-tag';
|
2022-07-29 11:25:08 +00:00
|
|
|
import { CurrentUserAttributesFragmentDoc } from '../fragments/currentUserAttributes.api';
|
2022-07-14 15:05:52 +00:00
|
|
|
import * as VueApolloComposable from '@vue/apollo-composable';
|
|
|
|
|
import * as VueCompositionApi from 'vue';
|
|
|
|
|
export type ReactiveFunction<TParam> = () => TParam;
|
|
|
|
|
|
|
|
|
|
export const CurrentUserUpdatesDocument = gql`
|
|
|
|
|
subscription currentUserUpdates($userId: ID!) {
|
|
|
|
|
userUpdates(userId: $userId) {
|
|
|
|
|
user {
|
2022-07-29 11:25:08 +00:00
|
|
|
...currentUserAttributes
|
2022-07-14 15:05:52 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-29 11:25:08 +00:00
|
|
|
${CurrentUserAttributesFragmentDoc}`;
|
2022-07-14 15:05:52 +00:00
|
|
|
export function useCurrentUserUpdatesSubscription(variables: Types.CurrentUserUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.CurrentUserUpdatesSubscriptionVariables> | ReactiveFunction<Types.CurrentUserUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.CurrentUserUpdatesSubscription, Types.CurrentUserUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.CurrentUserUpdatesSubscription, Types.CurrentUserUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.CurrentUserUpdatesSubscription, Types.CurrentUserUpdatesSubscriptionVariables>> = {}) {
|
|
|
|
|
return VueApolloComposable.useSubscription<Types.CurrentUserUpdatesSubscription, Types.CurrentUserUpdatesSubscriptionVariables>(CurrentUserUpdatesDocument, variables, options);
|
|
|
|
|
}
|
|
|
|
|
export type CurrentUserUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.CurrentUserUpdatesSubscription, Types.CurrentUserUpdatesSubscriptionVariables>;
|