import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createQueryOperations(client) {
    return {
        applyRegistryDefaults: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ApplyRegistryDefaults',
            fieldName: 'applyRegistryDefaults',
            ...buildCustomDocument('query', 'ApplyRegistryDefaults', 'applyRegistryDefaults', options?.select, args, [
                {
                    name: 'data',
                    type: 'JSON',
                },
                {
                    name: 'nodeType',
                    type: 'String',
                },
            ], connectionFieldsMap, undefined),
        }),
        resolveHttpRoute: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'ResolveHttpRoute',
            fieldName: 'resolveHttpRoute',
            ...buildCustomDocument('query', 'ResolveHttpRoute', 'resolveHttpRoute', options.select, args, [
                {
                    name: 'pHost',
                    type: 'String',
                },
                {
                    name: 'pMethod',
                    type: 'String',
                },
                {
                    name: 'pPath',
                    type: 'String',
                },
            ], connectionFieldsMap, 'ResolveHttpRouteRecord'),
        }),
    };
}
