@@ -19,6 +19,25 @@ import { getSumITC } from './Metrics/Sum';
1919import { getTopHitsITC } from './Metrics/TopHits' ;
2020import { getValueCountITC } from './Metrics/ValueCount' ;
2121
22+ import { getChildrenITC } from './Bucket/Children' ;
23+ import { getDateHistogramITC } from './Bucket/DateHistogram' ;
24+ import { getDateRangeITC } from './Bucket/DateRange' ;
25+ import { getDiversifiedSamplerITC } from './Bucket/DiversifiedSampler' ;
26+ import { getFilterITC } from './Bucket/Filter' ;
27+ import { getFiltersITC } from './Bucket/Filters' ;
28+ import { getGeoDistanceITC } from './Bucket/GeoDistance' ;
29+ import { getGeohashGridITC } from './Bucket/GeohashGrid' ;
30+ import { getGlobalITC } from './Bucket/Global' ;
31+ import { getHistogramITC } from './Bucket/Histogram' ;
32+ import { getIpRangeITC } from './Bucket/IpRange' ;
33+ import { getMissingITC } from './Bucket/Missing' ;
34+ import { getNestedITC } from './Bucket/Nested' ;
35+ import { getRangeITC } from './Bucket/Range' ;
36+ import { getReverseNestedITC } from './Bucket/ReverseNested' ;
37+ import { getSamplerITC } from './Bucket/Sampler' ;
38+ import { getSignificantTermsITC } from './Bucket/SignificantTerms' ;
39+ import { getTermsITC } from './Bucket/Terms' ;
40+
2241export function getAggRulesITC ( opts : mixed = { } ) : InputTypeComposer {
2342 const name = getTypeName ( 'AggRules' , opts ) ;
2443 const description = desc (
@@ -51,6 +70,25 @@ export function getAggRulesITC(opts: mixed = {}): InputTypeComposer {
5170 top_hits : ( ) => getTopHitsITC ( opts ) ,
5271 value_count : ( ) => getValueCountITC ( opts ) ,
5372
73+ children : ( ) => getChildrenITC ( opts ) ,
74+ date_histogram : ( ) => getDateHistogramITC ( opts ) ,
75+ date_range : ( ) => getDateRangeITC ( opts ) ,
76+ diversified_sampler : ( ) => getDiversifiedSamplerITC ( opts ) ,
77+ filter : ( ) => getFilterITC ( opts ) ,
78+ filters : ( ) => getFiltersITC ( opts ) ,
79+ geo_distance : ( ) => getGeoDistanceITC ( opts ) ,
80+ geohash_grid : ( ) => getGeohashGridITC ( opts ) ,
81+ global : ( ) => getGlobalITC ( opts ) ,
82+ histogram : ( ) => getHistogramITC ( opts ) ,
83+ ip_range : ( ) => getIpRangeITC ( opts ) ,
84+ missing : ( ) => getMissingITC ( opts ) ,
85+ nested : ( ) => getNestedITC ( opts ) ,
86+ range : ( ) => getRangeITC ( opts ) ,
87+ reverse_nested : ( ) => getReverseNestedITC ( opts ) ,
88+ sampler : ( ) => getSamplerITC ( opts ) ,
89+ significant_terms : ( ) => getSignificantTermsITC ( opts ) ,
90+ terms : ( ) => getTermsITC ( opts ) ,
91+
5492 aggs : {
5593 type : ( ) => [ getAggBlockITC ( opts ) ] ,
5694 description : 'Aggregation block' ,
0 commit comments