@@ -42,79 +42,150 @@ export type Aggregation = {
42
42
}
43
43
44
44
export type AggregationContainer = {
45
- adjacency_matrix ?: AdjacencyMatrixAggregation ;
46
45
aggregations ?: Record < string , AggregationContainer > ;
47
- auto_date_histogram ?: AutoDateHistogramAggregation ;
48
- avg ?: AverageAggregation ;
49
- avg_bucket ?: AverageBucketAggregation ;
50
- boxplot ?: BoxplotAggregation ;
51
- bucket_script ?: BucketScriptAggregation ;
52
- bucket_selector ?: BucketSelectorAggregation ;
53
- bucket_sort ?: BucketSortAggregation ;
54
- cardinality ?: CardinalityAggregation ;
55
- children ?: ChildrenAggregation ;
56
- composite ?: CompositeAggregation ;
57
- cumulative_cardinality ?: CumulativeCardinalityAggregation ;
58
- cumulative_sum ?: CumulativeSumAggregation ;
59
- date_histogram ?: DateHistogramAggregation ;
60
- date_range ?: DateRangeAggregation ;
61
- derivative ?: DerivativeAggregation ;
62
- diversified_sampler ?: DiversifiedSamplerAggregation ;
63
- extended_stats ?: ExtendedStatsAggregation ;
64
- extended_stats_bucket ?: ExtendedStatsBucketAggregation ;
65
- filter ?: Common_QueryDsl . QueryContainer ;
66
- filters ?: FiltersAggregation ;
67
- geo_bounds ?: GeoBoundsAggregation ;
68
- geo_centroid ?: GeoCentroidAggregation ;
69
- geo_distance ?: GeoDistanceAggregation ;
70
- geo_line ?: GeoLineAggregation ;
71
- geohash_grid ?: GeoHashGridAggregation ;
72
- geotile_grid ?: GeoTileGridAggregation ;
73
- global ?: GlobalAggregation ;
74
- histogram ?: HistogramAggregation ;
75
- inference ?: InferenceAggregation ;
76
- ip_range ?: IpRangeAggregation ;
77
- line ?: GeoLineAggregation ;
78
- matrix_stats ?: MatrixStatsAggregation ;
79
- max ?: MaxAggregation ;
80
- max_bucket ?: MaxBucketAggregation ;
81
- median_absolute_deviation ?: MedianAbsoluteDeviationAggregation ;
46
+ aggs ?: Record < string , AggregationContainer > ;
82
47
meta ?: Common . Metadata ;
83
- min ?: MinAggregation ;
84
- min_bucket ?: MinBucketAggregation ;
85
- missing ?: MissingAggregation ;
86
- moving_avg ?: MovingAverageAggregation ;
87
- moving_fn ?: MovingFunctionAggregation ;
88
- moving_percentiles ?: MovingPercentilesAggregation ;
89
- multi_terms ?: MultiTermsAggregation ;
90
- nested ?: NestedAggregation ;
91
- normalize ?: NormalizeAggregation ;
92
- parent ?: ParentAggregation ;
93
- percentile_ranks ?: PercentileRanksAggregation ;
94
- percentiles ?: PercentilesAggregation ;
95
- percentiles_bucket ?: PercentilesBucketAggregation ;
96
- range ?: RangeAggregation ;
97
- rare_terms ?: RareTermsAggregation ;
98
- rate ?: RateAggregation ;
99
- reverse_nested ?: ReverseNestedAggregation ;
100
- sampler ?: SamplerAggregation ;
101
- scripted_metric ?: ScriptedMetricAggregation ;
102
- serial_diff ?: SerialDifferencingAggregation ;
103
- significant_terms ?: SignificantTermsAggregation ;
104
- significant_text ?: SignificantTextAggregation ;
105
- stats ?: StatsAggregation ;
106
- stats_bucket ?: StatsBucketAggregation ;
107
- string_stats ?: StringStatsAggregation ;
108
- sum ?: SumAggregation ;
109
- sum_bucket ?: SumBucketAggregation ;
110
- t_test ?: TTestAggregation ;
111
- terms ?: TermsAggregation ;
112
- top_hits ?: TopHitsAggregation ;
113
- top_metrics ?: TopMetricsAggregation ;
114
- value_count ?: ValueCountAggregation ;
115
- variable_width_histogram ?: VariableWidthHistogramAggregation ;
116
- weighted_avg ?: WeightedAverageAggregation ;
117
- }
48
+ } & ( {
49
+ adjacency_matrix : AdjacencyMatrixAggregation ;
50
+ } | {
51
+ auto_date_histogram : AutoDateHistogramAggregation ;
52
+ } | {
53
+ avg : AverageAggregation ;
54
+ } | {
55
+ avg_bucket : AverageBucketAggregation ;
56
+ } | {
57
+ boxplot : BoxplotAggregation ;
58
+ } | {
59
+ bucket_script : BucketScriptAggregation ;
60
+ } | {
61
+ bucket_selector : BucketSelectorAggregation ;
62
+ } | {
63
+ bucket_sort : BucketSortAggregation ;
64
+ } | {
65
+ cardinality : CardinalityAggregation ;
66
+ } | {
67
+ children : ChildrenAggregation ;
68
+ } | {
69
+ composite : CompositeAggregation ;
70
+ } | {
71
+ cumulative_cardinality : CumulativeCardinalityAggregation ;
72
+ } | {
73
+ cumulative_sum : CumulativeSumAggregation ;
74
+ } | {
75
+ date_histogram : DateHistogramAggregation ;
76
+ } | {
77
+ date_range : DateRangeAggregation ;
78
+ } | {
79
+ derivative : DerivativeAggregation ;
80
+ } | {
81
+ diversified_sampler : DiversifiedSamplerAggregation ;
82
+ } | {
83
+ extended_stats : ExtendedStatsAggregation ;
84
+ } | {
85
+ extended_stats_bucket : ExtendedStatsBucketAggregation ;
86
+ } | {
87
+ filter : Common_QueryDsl . QueryContainer ;
88
+ } | {
89
+ filters : FiltersAggregation ;
90
+ } | {
91
+ geo_bounds : GeoBoundsAggregation ;
92
+ } | {
93
+ geo_centroid : GeoCentroidAggregation ;
94
+ } | {
95
+ geo_distance : GeoDistanceAggregation ;
96
+ } | {
97
+ geohash_grid : GeoHashGridAggregation ;
98
+ } | {
99
+ geo_line : GeoLineAggregation ;
100
+ } | {
101
+ geotile_grid : GeoTileGridAggregation ;
102
+ } | {
103
+ global : GlobalAggregation ;
104
+ } | {
105
+ histogram : HistogramAggregation ;
106
+ } | {
107
+ ip_range : IpRangeAggregation ;
108
+ } | {
109
+ inference : InferenceAggregation ;
110
+ } | {
111
+ line : GeoLineAggregation ;
112
+ } | {
113
+ matrix_stats : MatrixStatsAggregation ;
114
+ } | {
115
+ max : MaxAggregation ;
116
+ } | {
117
+ max_bucket : MaxBucketAggregation ;
118
+ } | {
119
+ median_absolute_deviation : MedianAbsoluteDeviationAggregation ;
120
+ } | {
121
+ min : MinAggregation ;
122
+ } | {
123
+ min_bucket : MinBucketAggregation ;
124
+ } | {
125
+ missing : MissingAggregation ;
126
+ } | {
127
+ moving_avg : MovingAverageAggregation ;
128
+ } | {
129
+ moving_percentiles : MovingPercentilesAggregation ;
130
+ } | {
131
+ moving_fn : MovingFunctionAggregation ;
132
+ } | {
133
+ multi_terms : MultiTermsAggregation ;
134
+ } | {
135
+ nested : NestedAggregation ;
136
+ } | {
137
+ normalize : NormalizeAggregation ;
138
+ } | {
139
+ parent : ParentAggregation ;
140
+ } | {
141
+ percentile_ranks : PercentileRanksAggregation ;
142
+ } | {
143
+ percentiles : PercentilesAggregation ;
144
+ } | {
145
+ percentiles_bucket : PercentilesBucketAggregation ;
146
+ } | {
147
+ range : RangeAggregation ;
148
+ } | {
149
+ rare_terms : RareTermsAggregation ;
150
+ } | {
151
+ rate : RateAggregation ;
152
+ } | {
153
+ reverse_nested : ReverseNestedAggregation ;
154
+ } | {
155
+ sampler : SamplerAggregation ;
156
+ } | {
157
+ scripted_metric : ScriptedMetricAggregation ;
158
+ } | {
159
+ serial_diff : SerialDifferencingAggregation ;
160
+ } | {
161
+ significant_terms : SignificantTermsAggregation ;
162
+ } | {
163
+ significant_text : SignificantTextAggregation ;
164
+ } | {
165
+ stats : StatsAggregation ;
166
+ } | {
167
+ stats_bucket : StatsBucketAggregation ;
168
+ } | {
169
+ string_stats : StringStatsAggregation ;
170
+ } | {
171
+ sum : SumAggregation ;
172
+ } | {
173
+ sum_bucket : SumBucketAggregation ;
174
+ } | {
175
+ terms : TermsAggregation ;
176
+ } | {
177
+ top_hits : TopHitsAggregation ;
178
+ } | {
179
+ t_test : TTestAggregation ;
180
+ } | {
181
+ top_metrics : TopMetricsAggregation ;
182
+ } | {
183
+ value_count : ValueCountAggregation ;
184
+ } | {
185
+ weighted_avg : WeightedAverageAggregation ;
186
+ } | {
187
+ variable_width_histogram : VariableWidthHistogramAggregation ;
188
+ } )
118
189
119
190
export type AggregationRange = {
120
191
from ?: undefined | number | string ;
@@ -1088,6 +1159,7 @@ export type SimpleValueAggregate = SingleMetricAggregateBase & Record<string, an
1088
1159
1089
1160
export type SingleBucketAggregateBase = AggregateBase & {
1090
1161
doc_count : number ;
1162
+ [ key : string ] : any | Aggregate ;
1091
1163
}
1092
1164
1093
1165
export type SingleMetricAggregateBase = AggregateBase & {
0 commit comments