Skip to content

Commit 070026f

Browse files
authored
Reorg types/aggregations (#442)
* Refactor _types pt.4 * make contrib
1 parent e97c726 commit 070026f

File tree

106 files changed

+5401
-7337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5401
-7337
lines changed

output/schema/schema.json

Lines changed: 3942 additions & 3942 deletions
Large diffs are not rendered by default.

output/typescript/types.ts

Lines changed: 598 additions & 598 deletions
Large diffs are not rendered by default.

specification/_types/aggregations/Aggregate.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ import { double, integer, long } from '@_types/Numeric'
2727
import { GeoCoordinate, GeoLocation } from '@_types/query_dsl/geo'
2828
import { DateMathTime } from '@_types/Time'
2929

30-
/*
31-
* Licensed to Elasticsearch B.V. under one or more contributor
32-
* license agreements. See the NOTICE file distributed with
33-
* this work for additional information regarding copyright
34-
* ownership. Elasticsearch B.V. licenses this file to you under
35-
* the Apache License, Version 2.0 (the "License"); you may
36-
* not use this file except in compliance with the License.
37-
* You may obtain a copy of the License at
38-
*
39-
* http://www.apache.org/licenses/LICENSE-2.0
40-
*
41-
* Unless required by applicable law or agreed to in writing,
42-
* software distributed under the License is distributed on an
43-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
44-
* KIND, either express or implied. See the License for the
45-
* specific language governing permissions and limitations
46-
* under the License.
47-
*/
4830
export type Bucket =
4931
| CompositeBucket
5032
| DateHistogramBucket

specification/_types/aggregations/AggregationContainer.ts

Lines changed: 75 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -19,76 +19,82 @@
1919

2020
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
22-
import { double, integer } from '@_types/Numeric'
22+
import { integer, double } from '@_types/Numeric'
2323
import { QueryContainer } from '@_types/query_dsl/abstractions'
24-
import { AdjacencyMatrixAggregation } from './bucket/adjacency_matrix/AdjacencyMatrixAggregation'
25-
import { AutoDateHistogramAggregation } from './bucket/auto_date_histogram/AutoDateHistogramAggregation'
26-
import { ChildrenAggregation } from './bucket/children/ChildrenAggregation'
27-
import { CompositeAggregation } from './bucket/composite/CompositeAggregation'
28-
import { DateHistogramAggregation } from './bucket/date_histogram/DateHistogramAggregation'
29-
import { DateRangeAggregation } from './bucket/date_range/DateRangeAggregation'
30-
import { DiversifiedSamplerAggregation } from './bucket/diversified_sampler/DiversifiedSamplerAggregation'
31-
import { FiltersAggregation } from './bucket/filters/FiltersAggregation'
32-
import { GeoDistanceAggregation } from './bucket/geo_distance/GeoDistanceAggregation'
33-
import { GeoHashGridAggregation } from './bucket/geo_hash_grid/GeoHashGridAggregation'
34-
import { GeoTileGridAggregation } from './bucket/geo_tile_grid/GeoTileGridAggregation'
35-
import { GlobalAggregation } from './bucket/global/GlobalAggregation'
36-
import { HistogramAggregation } from './bucket/histogram/HistogramAggregation'
37-
import { IpRangeAggregation } from './bucket/ip_range/IpRangeAggregation'
38-
import { MissingAggregation } from './bucket/missing/MissingAggregation'
39-
import { MultiTermsAggregation } from './bucket/multi_terms/MultiTermsAggregation'
40-
import { NestedAggregation } from './bucket/nested/NestedAggregation'
41-
import { ParentAggregation } from './bucket/parent/ParentAggregation'
42-
import { RangeAggregation } from './bucket/range/RangeAggregation'
43-
import { RareTermsAggregation } from './bucket/rare_terms/RareTermsAggregation'
44-
import { ReverseNestedAggregation } from './bucket/reverse_nested/ReverseNestedAggregation'
45-
import { SamplerAggregation } from './bucket/sampler/SamplerAggregation'
46-
import { SignificantTermsAggregation } from './bucket/significant_terms/SignificantTermsAggregation'
47-
import { SignificantTextAggregation } from './bucket/significant_text/SignificantTextAggregation'
48-
import { TermsAggregation } from './bucket/terms/TermsAggregation'
49-
import { VariableWidthHistogramAggregation } from './bucket/variable_width_histogram/VariableWidthHistogramAggregation'
50-
import { MatrixStatsAggregation } from './matrix/matrix_stats/MatrixStatsAggregation'
51-
import { AverageAggregation } from './metric/average/AverageAggregation'
52-
import { BoxplotAggregation } from './metric/boxplot/BoxplotAggregation'
53-
import { CardinalityAggregation } from './metric/cardinality/CardinalityAggregation'
54-
import { ExtendedStatsAggregation } from './metric/extended_stats/ExtendedStatsAggregation'
55-
import { GeoBoundsAggregation } from './metric/geo_bounds/GeoBoundsAggregation'
56-
import { GeoCentroidAggregation } from './metric/geo_centroid/GeoCentroidAggregation'
57-
import { GeoLineAggregation } from './metric/geo_line/GeoLineAggregation'
58-
import { MaxAggregation } from './metric/max/MaxAggregation'
59-
import { MedianAbsoluteDeviationAggregation } from './metric/median_absolute_deviation/MedianAbsoluteDeviationAggregation'
60-
import { MinAggregation } from './metric/min/MinAggregation'
61-
import { PercentilesAggregation } from './metric/percentiles/PercentilesAggregation'
62-
import { PercentileRanksAggregation } from './metric/percentile_ranks/PercentileRanksAggregation'
63-
import { RateAggregation } from './metric/rate/RateAggregation'
64-
import { ScriptedMetricAggregation } from './metric/scripted_metric/ScriptedMetricAggregation'
65-
import { StatsAggregation } from './metric/stats/StatsAggregation'
66-
import { StringStatsAggregation } from './metric/string_stats/StringStatsAggregation'
67-
import { SumAggregation } from './metric/sum/SumAggregation'
68-
import { TopHitsAggregation } from './metric/top_hits/TopHitsAggregation'
69-
import { TopMetricsAggregation } from './metric/top_metrics/TopMetricsAggregation'
70-
import { TTestAggregation } from './metric/t_test/TTestAggregation'
71-
import { ValueCountAggregation } from './metric/value_count/ValueCountAggregation'
72-
import { WeightedAverageAggregation } from './metric/weighted_average/WeightedAverageAggregation'
73-
import { AverageBucketAggregation } from './pipeline/average_bucket/AverageBucketAggregation'
74-
import { BucketScriptAggregation } from './pipeline/bucket_script/BucketScriptAggregation'
75-
import { BucketSelectorAggregation } from './pipeline/bucket_selector/BucketSelectorAggregation'
76-
import { BucketSortAggregation } from './pipeline/bucket_sort/BucketSortAggregation'
77-
import { CumulativeCardinalityAggregation } from './pipeline/cumulative_cardinality/CumulativeCardinalityAggregation'
78-
import { CumulativeSumAggregation } from './pipeline/cumulative_sum/CumulativeSumAggregation'
79-
import { DerivativeAggregation } from './pipeline/derivative/DerivativeAggregation'
80-
import { ExtendedStatsBucketAggregation } from './pipeline/extended_stats_bucket/ExtendedStatsBucketAggregation'
81-
import { InferenceAggregation } from './pipeline/inference_bucket/InferenceBucketAggregation'
82-
import { MaxBucketAggregation } from './pipeline/max_bucket/MaxBucketAggregation'
83-
import { MinBucketAggregation } from './pipeline/min_bucket/MinBucketAggregation'
84-
import { MovingAverageAggregation } from './pipeline/moving_average/MovingAverageAggregation'
85-
import { MovingFunctionAggregation } from './pipeline/moving_function/MovingFunctionAggregation'
86-
import { MovingPercentilesAggregation } from './pipeline/moving_percentiles/MovingPercentilesAggregation'
87-
import { NormalizeAggregation } from './pipeline/normalize/NormalizeAggregation'
88-
import { PercentilesBucketAggregation } from './pipeline/percentiles_bucket/PercentilesBucketAggregation'
89-
import { SerialDifferencingAggregation } from './pipeline/serial_differencing/SerialDifferencingAggregation'
90-
import { StatsBucketAggregation } from './pipeline/stats_bucket/StatsBucketAggregation'
91-
import { SumBucketAggregation } from './pipeline/sum_bucket/SumBucketAggregation'
24+
import {
25+
AdjacencyMatrixAggregation,
26+
AutoDateHistogramAggregation,
27+
ChildrenAggregation,
28+
CompositeAggregation,
29+
DateHistogramAggregation,
30+
DateRangeAggregation,
31+
DiversifiedSamplerAggregation,
32+
FiltersAggregation,
33+
GeoDistanceAggregation,
34+
GeoHashGridAggregation,
35+
GeoTileGridAggregation,
36+
GlobalAggregation,
37+
HistogramAggregation,
38+
IpRangeAggregation,
39+
MissingAggregation,
40+
MultiTermsAggregation,
41+
NestedAggregation,
42+
ParentAggregation,
43+
RangeAggregation,
44+
RareTermsAggregation,
45+
ReverseNestedAggregation,
46+
SamplerAggregation,
47+
SignificantTermsAggregation,
48+
SignificantTextAggregation,
49+
TermsAggregation,
50+
VariableWidthHistogramAggregation
51+
} from './bucket'
52+
import { MatrixStatsAggregation } from './matrix'
53+
import {
54+
AverageAggregation,
55+
BoxplotAggregation,
56+
CardinalityAggregation,
57+
ExtendedStatsAggregation,
58+
GeoBoundsAggregation,
59+
GeoCentroidAggregation,
60+
GeoLineAggregation,
61+
MaxAggregation,
62+
MedianAbsoluteDeviationAggregation,
63+
MinAggregation,
64+
PercentileRanksAggregation,
65+
PercentilesAggregation,
66+
RateAggregation,
67+
ScriptedMetricAggregation,
68+
StatsAggregation,
69+
StringStatsAggregation,
70+
SumAggregation,
71+
TopHitsAggregation,
72+
TTestAggregation,
73+
TopMetricsAggregation,
74+
ValueCountAggregation,
75+
WeightedAverageAggregation
76+
} from './metric'
77+
import {
78+
AverageBucketAggregation,
79+
BucketScriptAggregation,
80+
BucketSelectorAggregation,
81+
BucketSortAggregation,
82+
CumulativeCardinalityAggregation,
83+
CumulativeSumAggregation,
84+
DerivativeAggregation,
85+
ExtendedStatsBucketAggregation,
86+
InferenceAggregation,
87+
MaxBucketAggregation,
88+
MinBucketAggregation,
89+
MovingAverageAggregation,
90+
MovingPercentilesAggregation,
91+
MovingFunctionAggregation,
92+
NormalizeAggregation,
93+
PercentilesBucketAggregation,
94+
SerialDifferencingAggregation,
95+
StatsBucketAggregation,
96+
SumBucketAggregation
97+
} from './pipeline'
9298

9399
/**
94100
* @variants container

0 commit comments

Comments
 (0)