Skip to content

Commit e26eb51

Browse files
committed
Rename LongTimeSpan to TimeSpanLarge
1 parent 4b046c7 commit e26eb51

File tree

5 files changed

+29
-30
lines changed

5 files changed

+29
-30
lines changed

output/schema/schema.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/Time.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export type TimeSpan = string | -1 | 0
5555
* `y` (year)
5656
*/
5757
// Used to be DateMathTime, see ES DateHistogramInterval
58-
export type LongTimeSpan = string
59-
// Rename to TimeSpanLarge
58+
export type TimeSpanLarge = string
6059

6160
/** A time span expressed in seconds */
6261
export type TimeSpanSeconds = long

specification/_types/aggregations/Aggregate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2424
import { AggregateName, Field, FieldValue, Metadata } from '@_types/common'
2525
import { GeoBounds, GeoHash, GeoLine, GeoLocation, GeoTile } from '@_types/Geo'
2626
import { double, integer, long } from '@_types/Numeric'
27-
import { LongTimeSpan, EpochMillis } from '@_types/Time'
27+
import { TimeSpanLarge, EpochMillis } from '@_types/Time'
2828
import { Void } from '@spec_utils/VoidValue'
2929

3030
/**
@@ -343,7 +343,7 @@ export class DateHistogramBucket extends MultiBucketBase {
343343
/** @variant name=auto_date_histogram */
344344
// Note: no keyed variant in `InternalAutoDateHistogram`
345345
export class AutoDateHistogramAggregate extends MultiBucketAggregateBase<DateHistogramBucket> {
346-
interval: LongTimeSpan
346+
interval: TimeSpanLarge
347347
}
348348

349349
/** @variant name=variable_width_histogram */

specification/_types/query_dsl/fulltext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class MatchQuery extends QueryBase {
150150
operator?: Operator
151151
/** @server_default 0 */
152152
prefix_length?: integer
153-
// FIXME: docs states "date" as a possible format. Add DateMath, or LongTimeSpan?
153+
// FIXME: docs states "date" as a possible format. Add DateMath, or TimeSpanLarge?
154154
// Should also be consisitent with MultiMatchQuery.query
155155
query: string | float | boolean
156156
/** @server_default 'none' */

0 commit comments

Comments
 (0)