"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatOgcAggregationsResponse = formatOgcAggregationsResponse;
function formatOgcAggregationsResponse(response) {
    const aggregations = response.aggregations.aggregations.map((ogcAgg) => ({
        // What should it really be?
        mode: "terms",
        field: ogcAgg.field,
        values: ogcAgg.aggregations.map((a) => ({
            // Not confusing at all, right? Just some differences in terminology
            value: a.label,
            count: a.value,
        })),
    }));
    return {
        total: 0,
        results: [],
        hasNext: false,
        next: () => null,
        aggregations,
    };
}
//# sourceMappingURL=formatOgcAggregationsResponse.js.map