organizationUpdates.api.ts 1.8 KB

123456789101112131415161718192021222324
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { OrganizationAttributesFragmentDoc } from '../fragments/organizationAttributes.api';
  4. import { OrganizationMembersFragmentDoc } from '../fragments/organizationMembers.api';
  5. import * as VueApolloComposable from '@vue/apollo-composable';
  6. import * as VueCompositionApi from 'vue';
  7. export type ReactiveFunction<TParam> = () => TParam;
  8. export const OrganizationUpdatesDocument = gql`
  9. subscription organizationUpdates($organizationId: ID!, $membersCount: Int) {
  10. organizationUpdates(organizationId: $organizationId) {
  11. organization {
  12. ...organizationAttributes
  13. ...organizationMembers
  14. }
  15. }
  16. }
  17. ${OrganizationAttributesFragmentDoc}
  18. ${OrganizationMembersFragmentDoc}`;
  19. export function useOrganizationUpdatesSubscription(variables: Types.OrganizationUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.OrganizationUpdatesSubscriptionVariables> | ReactiveFunction<Types.OrganizationUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.OrganizationUpdatesSubscription, Types.OrganizationUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.OrganizationUpdatesSubscription, Types.OrganizationUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.OrganizationUpdatesSubscription, Types.OrganizationUpdatesSubscriptionVariables>> = {}) {
  20. return VueApolloComposable.useSubscription<Types.OrganizationUpdatesSubscription, Types.OrganizationUpdatesSubscriptionVariables>(OrganizationUpdatesDocument, variables, options);
  21. }
  22. export type OrganizationUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.OrganizationUpdatesSubscription, Types.OrganizationUpdatesSubscriptionVariables>;