"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createQueryOperations = createQueryOperations;
const query_builder_1 = require("../query-builder");
const input_types_1 = require("../input-types");
function createQueryOperations(client) {
    return {
        resolveBlueprintField: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ResolveBlueprintField',
            fieldName: 'resolveBlueprintField',
            ...(0, query_builder_1.buildCustomDocument)('query', 'ResolveBlueprintField', 'resolveBlueprintField', options?.select, args, [
                {
                    name: 'databaseId',
                    type: 'UUID',
                },
                {
                    name: 'tableId',
                    type: 'UUID',
                },
                {
                    name: 'fieldName',
                    type: 'String',
                },
            ], input_types_1.connectionFieldsMap, undefined),
        }),
        resolveBlueprintTable: (args, options) => new query_builder_1.QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ResolveBlueprintTable',
            fieldName: 'resolveBlueprintTable',
            ...(0, query_builder_1.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',
                },
            ], input_types_1.connectionFieldsMap, undefined),
        }),
    };
}
