import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import { UserDetailAttributesFragmentDoc } from '../../../../graphql/fragments/userDetailAttributes.api'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const UserDocument = gql` query user($userId: ID, $userInternalId: Int, $secondaryOrganizationsCount: Int) { user(user: {userId: $userId, userInternalId: $userInternalId}) { ...userDetailAttributes policy { update } } } ${UserDetailAttributesFragmentDoc}`; export function useUserQuery(variables: Types.UserQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(UserDocument, variables, options); } export function useUserLazyQuery(variables: Types.UserQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(UserDocument, variables, options); } export type UserQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;