import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createQueryOperations(client) {
    return {
        resolveBlueprintField: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ResolveBlueprintField',
            fieldName: 'resolveBlueprintField',
            ...buildCustomDocument('query', 'ResolveBlueprintField', 'resolveBlueprintField', options?.select, args, [
                {
                    name: 'databaseId',
                    type: 'UUID',
                },
                {
                    name: 'tableId',
                    type: 'UUID',
                },
                {
                    name: 'fieldName',
                    type: 'String',
                },
            ], connectionFieldsMap, undefined),
        }),
        resolveBlueprintTable: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ResolveBlueprintTable',
            fieldName: 'resolveBlueprintTable',
            ...buildCustomDocument('query', 'ResolveBlueprintTable', 'resolveBlueprintTable', options?.select, args, [
                {
                    name: 'databaseId',
                    type: 'UUID',
                },
                {
                    name: 'tableName',
                    type: 'String',
                },
                {
                    name: 'schemaName',
                    type: 'String',
                },
                {
                    name: 'tableMap',
                    type: 'JSON',
                },
                {
                    name: 'defaultSchemaId',
                    type: 'UUID',
                },
            ], connectionFieldsMap, undefined),
        }),
    };
}
