/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { AppLimitCapModel } from './models/appLimitCap';
import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault';
import { AppLimitModel } from './models/appLimit';
import { AppLimitCreditCodeModel } from './models/appLimitCreditCode';
import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem';
import { AppLimitCreditModel } from './models/appLimitCredit';
import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption';
import { AppLimitDefaultModel } from './models/appLimitDefault';
import { AppLimitEventModel } from './models/appLimitEvent';
import { AppLimitWarningModel } from './models/appLimitWarning';
import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
import { OrgLimitCapModel } from './models/orgLimitCap';
import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault';
import { OrgLimitModel } from './models/orgLimit';
import { OrgLimitCreditModel } from './models/orgLimitCredit';
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
import { OrgLimitEventModel } from './models/orgLimitEvent';
import { OrgLimitWarningModel } from './models/orgLimitWarning';
import { createMutationOperations } from './mutation';
export { GraphQLRequestError, FetchAdapter } from './client';
export { QueryBuilder } from './query-builder';
export * from './select-types';
export * from './models';
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 {
        appLimitCap: new AppLimitCapModel(client),
        appLimitCapsDefault: new AppLimitCapsDefaultModel(client),
        appLimit: new AppLimitModel(client),
        appLimitCreditCode: new AppLimitCreditCodeModel(client),
        appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client),
        appLimitCredit: new AppLimitCreditModel(client),
        appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client),
        appLimitDefault: new AppLimitDefaultModel(client),
        appLimitEvent: new AppLimitEventModel(client),
        appLimitWarning: new AppLimitWarningModel(client),
        orgLimitAggregate: new OrgLimitAggregateModel(client),
        orgLimitCap: new OrgLimitCapModel(client),
        orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client),
        orgLimit: new OrgLimitModel(client),
        orgLimitCredit: new OrgLimitCreditModel(client),
        orgLimitDefault: new OrgLimitDefaultModel(client),
        orgLimitEvent: new OrgLimitEventModel(client),
        orgLimitWarning: new OrgLimitWarningModel(client),
        mutation: createMutationOperations(client),
    };
}
