import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import { OrganizationAttributesFragmentDoc } from '../fragments/organizationAttributes.api'; import { OrganizationMembersFragmentDoc } from '../fragments/organizationMembers.api'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const OrganizationDocument = gql` query organization($organizationId: ID, $organizationInternalId: Int, $membersCount: Int) { organization( organization: {organizationId: $organizationId, organizationInternalId: $organizationInternalId} ) { policy { update } ...organizationAttributes ...organizationMembers } } ${OrganizationAttributesFragmentDoc} ${OrganizationMembersFragmentDoc}`; export function useOrganizationQuery(variables: Types.OrganizationQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(OrganizationDocument, variables, options); } export function useOrganizationLazyQuery(variables: Types.OrganizationQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(OrganizationDocument, variables, options); } export type OrganizationQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;