/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { FunctionModel } from './models/function';
import { SchemaModel } from './models/schema';
import { TableModel } from './models/table';
import { CheckConstraintModel } from './models/checkConstraint';
import { FieldModel } from './models/field';
import { SpatialRelationModel } from './models/spatialRelation';
import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
import { FullTextSearchModel } from './models/fullTextSearch';
import { IndexModel } from './models/index';
import { PolicyModel } from './models/policy';
import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint';
import { TableGrantModel } from './models/tableGrant';
import { TriggerModel } from './models/trigger';
import { UniqueConstraintModel } from './models/uniqueConstraint';
import { ViewModel } from './models/view';
import { ViewTableModel } from './models/viewTable';
import { ViewGrantModel } from './models/viewGrant';
import { ViewRuleModel } from './models/viewRule';
import { EmbeddingChunkModel } from './models/embeddingChunk';
import { SchemaGrantModel } from './models/schemaGrant';
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
import { EnumModel } from './models/enum';
import { CompositeTypeModel } from './models/compositeType';
import { ApiSchemaModel } from './models/apiSchema';
import { ApiModuleModel } from './models/apiModule';
import { DomainModel } from './models/domain';
import { SiteMetadatumModel } from './models/siteMetadatum';
import { SiteModuleModel } from './models/siteModule';
import { SiteThemeModel } from './models/siteTheme';
import { CorsSettingModel } from './models/corsSetting';
import { TriggerFunctionModel } from './models/triggerFunction';
import { PartitionModel } from './models/partition';
import { DatabaseTransferModel } from './models/databaseTransfer';
import { ApiModel } from './models/api';
import { SiteModel } from './models/site';
import { AppModel } from './models/app';
import { ApiSettingModel } from './models/apiSetting';
import { MigrateFileModel } from './models/migrateFile';
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
import { PubkeySettingModel } from './models/pubkeySetting';
import { DatabaseModel } from './models/database';
import { RlsSettingModel } from './models/rlsSetting';
import { SqlActionModel } from './models/sqlAction';
import { DatabaseSettingModel } from './models/databaseSetting';
import { AstMigrationModel } from './models/astMigration';
import { WebauthnSettingModel } from './models/webauthnSetting';
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 {
        function: new FunctionModel(client),
        schema: new SchemaModel(client),
        table: new TableModel(client),
        checkConstraint: new CheckConstraintModel(client),
        field: new FieldModel(client),
        spatialRelation: new SpatialRelationModel(client),
        foreignKeyConstraint: new ForeignKeyConstraintModel(client),
        fullTextSearch: new FullTextSearchModel(client),
        index: new IndexModel(client),
        policy: new PolicyModel(client),
        primaryKeyConstraint: new PrimaryKeyConstraintModel(client),
        tableGrant: new TableGrantModel(client),
        trigger: new TriggerModel(client),
        uniqueConstraint: new UniqueConstraintModel(client),
        view: new ViewModel(client),
        viewTable: new ViewTableModel(client),
        viewGrant: new ViewGrantModel(client),
        viewRule: new ViewRuleModel(client),
        embeddingChunk: new EmbeddingChunkModel(client),
        schemaGrant: new SchemaGrantModel(client),
        defaultPrivilege: new DefaultPrivilegeModel(client),
        enum: new EnumModel(client),
        compositeType: new CompositeTypeModel(client),
        apiSchema: new ApiSchemaModel(client),
        apiModule: new ApiModuleModel(client),
        domain: new DomainModel(client),
        siteMetadatum: new SiteMetadatumModel(client),
        siteModule: new SiteModuleModel(client),
        siteTheme: new SiteThemeModel(client),
        corsSetting: new CorsSettingModel(client),
        triggerFunction: new TriggerFunctionModel(client),
        partition: new PartitionModel(client),
        databaseTransfer: new DatabaseTransferModel(client),
        api: new ApiModel(client),
        site: new SiteModel(client),
        app: new AppModel(client),
        apiSetting: new ApiSettingModel(client),
        migrateFile: new MigrateFileModel(client),
        nodeTypeRegistry: new NodeTypeRegistryModel(client),
        pubkeySetting: new PubkeySettingModel(client),
        database: new DatabaseModel(client),
        rlsSetting: new RlsSettingModel(client),
        sqlAction: new SqlActionModel(client),
        databaseSetting: new DatabaseSettingModel(client),
        astMigration: new AstMigrationModel(client),
        webauthnSetting: new WebauthnSettingModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
