/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { GetAllRecordModel } from './models/getAllRecord';
import { FunctionApiBindingModel } from './models/functionApiBinding';
import { FunctionDeploymentModel } from './models/functionDeployment';
import { ResourceModel } from './models/resource';
import { FunctionGraphRefModel } from './models/functionGraphRef';
import { FunctionGraphStoreModel } from './models/functionGraphStore';
import { FunctionGraphObjectModel } from './models/functionGraphObject';
import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent';
import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog';
import { ResourceEventModel } from './models/resourceEvent';
import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput';
import { FunctionGraphCommitModel } from './models/functionGraphCommit';
import { SecretDefinitionModel } from './models/secretDefinition';
import { FunctionExecutionLogModel } from './models/functionExecutionLog';
import { FunctionGraphModel } from './models/functionGraph';
import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState';
import { PlatformNamespaceModel } from './models/platformNamespace';
import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation';
import { FunctionInvocationModel } from './models/functionInvocation';
import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent';
import { FunctionGraphExecutionModel } from './models/functionGraphExecution';
import { FunctionDefinitionModel } from './models/functionDefinition';
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 {
        getAllRecord: new GetAllRecordModel(client),
        functionApiBinding: new FunctionApiBindingModel(client),
        functionDeployment: new FunctionDeploymentModel(client),
        resource: new ResourceModel(client),
        functionGraphRef: new FunctionGraphRefModel(client),
        functionGraphStore: new FunctionGraphStoreModel(client),
        functionGraphObject: new FunctionGraphObjectModel(client),
        functionDeploymentEvent: new FunctionDeploymentEventModel(client),
        orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client),
        resourceEvent: new ResourceEventModel(client),
        functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client),
        functionGraphCommit: new FunctionGraphCommitModel(client),
        secretDefinition: new SecretDefinitionModel(client),
        functionExecutionLog: new FunctionExecutionLogModel(client),
        functionGraph: new FunctionGraphModel(client),
        functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client),
        platformNamespace: new PlatformNamespaceModel(client),
        orgFunctionInvocation: new OrgFunctionInvocationModel(client),
        functionInvocation: new FunctionInvocationModel(client),
        platformNamespaceEvent: new PlatformNamespaceEventModel(client),
        functionGraphExecution: new FunctionGraphExecutionModel(client),
        functionDefinition: new FunctionDefinitionModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
