userCurrentAvatarUpdates.api.ts 1.7 KB

1234567891011121314151617181920212223242526
  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 UserCurrentAvatarUpdatesDocument = gql`
  7. subscription userCurrentAvatarUpdates($userId: ID!) {
  8. userCurrentAvatarUpdates(userId: $userId) {
  9. avatars {
  10. id
  11. default
  12. deletable
  13. initial
  14. imageHash
  15. createdAt
  16. updatedAt
  17. }
  18. }
  19. }
  20. `;
  21. export function useUserCurrentAvatarUpdatesSubscription(variables: Types.UserCurrentAvatarUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.UserCurrentAvatarUpdatesSubscriptionVariables> | ReactiveFunction<Types.UserCurrentAvatarUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAvatarUpdatesSubscription, Types.UserCurrentAvatarUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAvatarUpdatesSubscription, Types.UserCurrentAvatarUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.UserCurrentAvatarUpdatesSubscription, Types.UserCurrentAvatarUpdatesSubscriptionVariables>> = {}) {
  22. return VueApolloComposable.useSubscription<Types.UserCurrentAvatarUpdatesSubscription, Types.UserCurrentAvatarUpdatesSubscriptionVariables>(UserCurrentAvatarUpdatesDocument, variables, options);
  23. }
  24. export type UserCurrentAvatarUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.UserCurrentAvatarUpdatesSubscription, Types.UserCurrentAvatarUpdatesSubscriptionVariables>;