import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export class OrgGetManagersRecordModel {
    client;
    constructor(client) {
        this.client = client;
    }
    findMany(args) {
        const { document, variables } = buildFindManyDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
            where: args?.where,
            orderBy: args?.orderBy,
            first: args?.first,
            last: args?.last,
            after: args?.after,
            before: args?.before,
            offset: args?.offset,
        }, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
        return new QueryBuilder({
            client: this.client,
            operation: 'query',
            operationName: 'OrgGetManagersRecord',
            fieldName: 'orgGetManagers',
            document,
            variables,
        });
    }
    findFirst(args) {
        const { document, variables } = buildFindFirstDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
            where: args?.where,
        }, 'OrgGetManagersRecordFilter', connectionFieldsMap);
        return new QueryBuilder({
            client: this.client,
            operation: 'query',
            operationName: 'OrgGetManagersRecord',
            fieldName: 'orgGetManagers',
            document,
            variables,
        });
    }
    create(args) {
        const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
        return new QueryBuilder({
            client: this.client,
            operation: 'mutation',
            operationName: 'OrgGetManagersRecord',
            fieldName: 'createOrgGetManagersRecord',
            document,
            variables,
        });
    }
}
