"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expandPredicates = expandPredicates;
const util_1 = require("../../util");
const expandPredicate_1 = require("./expandPredicate");
/**
 * Expand the predicates in a query without applying
 * the well-known type expansions
 * @param query
 * @returns
 */
function expandPredicates(query) {
    const clonedQuery = (0, util_1.cloneObject)(query);
    clonedQuery.filters = clonedQuery.filters.map((filter) => {
        filter.predicates = filter.predicates.map(expandPredicate_1.expandPredicate);
        return filter;
    });
    return clonedQuery;
}
//# sourceMappingURL=expandPredicates.js.map