/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { AppAdminGrantModel } from './models/appAdminGrant';
import { AppClaimedInviteModel } from './models/appClaimedInvite';
import { AppGrantModel } from './models/appGrant';
import { AppInviteModel } from './models/appInvite';
import { AppMembershipModel } from './models/appMembership';
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
import { AppOwnerGrantModel } from './models/appOwnerGrant';
import { AppPermissionModel } from './models/appPermission';
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant';
import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission';
import { MembershipTypeModel } from './models/membershipType';
import { OrgAdminGrantModel } from './models/orgAdminGrant';
import { OrgChartEdgeModel } from './models/orgChartEdge';
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
import { OrgGrantModel } from './models/orgGrant';
import { OrgInviteModel } from './models/orgInvite';
import { OrgMemberModel } from './models/orgMember';
import { OrgMemberProfileModel } from './models/orgMemberProfile';
import { OrgMembershipModel } from './models/orgMembership';
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
import { OrgOwnerGrantModel } from './models/orgOwnerGrant';
import { OrgPermissionModel } from './models/orgPermission';
import { OrgPermissionDefaultModel } from './models/orgPermissionDefault';
import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant';
import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission';
import { createQueryOperations } from './query';
import { createMutationOperations } from './mutation';
export { GraphQLRequestError, FetchAdapter } from './client';
export { QueryBuilder } from './query-builder';
export * from './select-types';
export * from './models';
export { createQueryOperations } from './query';
export { createMutationOperations } from './mutation';
/**
 * Create an ORM client instance
 *
 * @example
 * ```typescript
 * const db = createClient({
 *   endpoint: 'https://api.example.com/graphql',
 *   headers: { Authorization: 'Bearer token' },
 * });
 *
 * // Query users
 * const users = await db.user.findMany({
 *   select: { id: true, name: true },
 *   first: 10,
 * }).execute();
 *
 * // Create a user
 * const newUser = await db.user.create({
 *   data: { name: 'John', email: 'john@example.com' },
 *   select: { id: true },
 * }).execute();
 * ```
 */
export function createClient(config) {
    const client = new OrmClient(config);
    return {
        appAdminGrant: new AppAdminGrantModel(client),
        appClaimedInvite: new AppClaimedInviteModel(client),
        appGrant: new AppGrantModel(client),
        appInvite: new AppInviteModel(client),
        appMembership: new AppMembershipModel(client),
        appMembershipDefault: new AppMembershipDefaultModel(client),
        appOwnerGrant: new AppOwnerGrantModel(client),
        appPermission: new AppPermissionModel(client),
        appPermissionDefault: new AppPermissionDefaultModel(client),
        appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client),
        appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client),
        membershipType: new MembershipTypeModel(client),
        orgAdminGrant: new OrgAdminGrantModel(client),
        orgChartEdge: new OrgChartEdgeModel(client),
        orgChartEdgeGrant: new OrgChartEdgeGrantModel(client),
        orgClaimedInvite: new OrgClaimedInviteModel(client),
        orgGetManagersRecord: new OrgGetManagersRecordModel(client),
        orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client),
        orgGrant: new OrgGrantModel(client),
        orgInvite: new OrgInviteModel(client),
        orgMember: new OrgMemberModel(client),
        orgMemberProfile: new OrgMemberProfileModel(client),
        orgMembership: new OrgMembershipModel(client),
        orgMembershipDefault: new OrgMembershipDefaultModel(client),
        orgMembershipSetting: new OrgMembershipSettingModel(client),
        orgOwnerGrant: new OrgOwnerGrantModel(client),
        orgPermission: new OrgPermissionModel(client),
        orgPermissionDefault: new OrgPermissionDefaultModel(client),
        orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client),
        orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
