Skip to content

Commit 61b8862

Browse files
authored
Major rewrite of aggregation results (#972)
1 parent 8cd0411 commit 61b8862

File tree

9 files changed

+7378
-4304
lines changed

9 files changed

+7378
-4304
lines changed

output/schema/schema.json

+6,294-3,989
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

+6-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+408-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_spec_utils/VoidValue.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
*/
1919

2020
/**
21-
* The absence of any type. This is commonly used in APIs that returns an empty body.
21+
* The absence of any type. This is commonly used in APIs that don't return a body.
22+
*
23+
* Although "void" is generally used for the unit type that has only one value, this is to be interpreted as
24+
* the bottom type that has no value at all. Most languages have a unit type, but few have a bottom type.
25+
*
26+
* See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type
2227
*/
2328
export type Void = void

specification/_types/Geo.ts

+12
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ export enum GeoDistanceType {
5656
/** A GeoJson shape, that can also use Elasticsearch's `envelope` extension. */
5757
export type GeoShape = UserDefinedValue
5858

59+
/** A GeoJson GeoLine. */
60+
export class GeoLine {
61+
/** Always `"LineString"` */
62+
type: string
63+
/** Array of `[lon, lat]` coordinates */
64+
coordinates: Array<Array<double>>
65+
}
66+
5967
export enum GeoShapeRelation {
6068
intersects = 0,
6169
disjoint = 1,
@@ -65,6 +73,10 @@ export enum GeoShapeRelation {
6573

6674
export type GeoTilePrecision = number
6775
export type GeoHashPrecision = number
76+
export type GeoHash = string
77+
78+
/** A map tile reference, represented as `{zoom}/{x}/{y}` */
79+
export type GeoTile = string
6880

6981
export class LatLon {
7082
lat: double

0 commit comments

Comments
 (0)