Skip to content

Commit a1d9087

Browse files
authored
Add codegen_names to time series settings time fields (#1311) (#1318)
1 parent 0e17e43 commit a1d9087

File tree

4 files changed

+63
-47
lines changed

4 files changed

+63
-47
lines changed

output/schema/schema.json

Lines changed: 53 additions & 42 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: 4 additions & 2 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export type DateMath = string
3232
export type DateMathExpression = string
3333
export type DateMathTime = string
3434

35+
/** @codegen_names date, millis */
36+
export type DateOrEpochMillis = DateString | EpochMillis
37+
3538
export type TimeZone = string
3639

3740
/** @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/7.x/mapping-date-format.html */

specification/indices/_types/IndexSettings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
VersionString
3333
} from '@_types/common'
3434
import { integer } from '@_types/Numeric'
35-
import { DateString, EpochMillis, Time } from '@_types/Time'
35+
import { DateOrEpochMillis, DateString, Time } from '@_types/Time'
3636
import { Tokenizer } from '@_types/analysis/tokenizers'
3737
import {
3838
IndexSegmentSort,
@@ -333,8 +333,8 @@ export class IndexSettingsAnalysis {
333333
}
334334

335335
export class IndexSettingsTimeSeries {
336-
end_time?: DateString | EpochMillis
337-
start_time?: DateString | EpochMillis
336+
end_time?: DateOrEpochMillis
337+
start_time?: DateOrEpochMillis
338338
}
339339

340340
export class Merge {

0 commit comments

Comments
 (0)