From 03df1657b79a1d9530a7d3a22276ed8e9dae5b06 Mon Sep 17 00:00:00 2001 From: Ka Ho Wong Date: Mon, 13 Nov 2023 14:25:21 +0000 Subject: [PATCH] fix: export aggregation bases --- src/index.js | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ea465fd..eba67ec 100644 --- a/src/index.js +++ b/src/index.js @@ -102,7 +102,8 @@ const { StatsAggregation, SumAggregation, TopHitsAggregation, - ValueCountAggregation + ValueCountAggregation, + MetricsAggregationBase }, bucketAggregations: { AdjacencyMatrixAggregation, @@ -131,7 +132,12 @@ const { SamplerAggregation, SignificantTermsAggregation, SignificantTextAggregation, - TermsAggregation + TermsAggregation, + RangeAggregationBase, + TermsAggregationBase, + BucketAggregationBase, + HistogramAggregationBase, + SignificantAggregationBase }, pipelineAggregations: { AvgBucketAggregation, @@ -148,7 +154,8 @@ const { BucketScriptAggregation, BucketSelectorAggregation, SerialDifferencingAggregation, - BucketSortAggregation + BucketSortAggregation, + PipelineAggregationBase }, matrixAggregations: { MatrixStatsAggregation } } = require('./aggregations'); @@ -378,6 +385,8 @@ exports.topHitsAggregation = constructorWrapper(TopHitsAggregation); exports.ValueCountAggregation = ValueCountAggregation; exports.valueCountAggregation = constructorWrapper(ValueCountAggregation); +exports.MetricsAggregationBase = MetricsAggregationBase; + /* ============ ============ ============ */ /* ========= Bucket Aggregations ======== */ /* ============ ============ ============ */ @@ -474,6 +483,16 @@ exports.significantTextAggregation = constructorWrapper( exports.TermsAggregation = TermsAggregation; exports.termsAggregation = constructorWrapper(TermsAggregation); +exports.RangeAggregationBase = RangeAggregationBase; + +exports.TermsAggregationBase = TermsAggregationBase; + +exports.BucketAggregationBase = BucketAggregationBase; + +exports.HistogramAggregationBase = HistogramAggregationBase; + +exports.SignificantAggregationBase = SignificantAggregationBase; + /* ============ ============ ============ */ /* ======== Pipeline Aggregations ======= */ /* ============ ============ ============ */ @@ -532,6 +551,8 @@ exports.serialDifferencingAggregation = constructorWrapper( SerialDifferencingAggregation ); +exports.PipelineAggregationBase = PipelineAggregationBase; + /* ============ ============ ============ */ /* ========= Matrix Aggregations ======== */ /* ============ ============ ============ */