Skip to content

Commit 1dabf33

Browse files
committed
Use correct type for the 'time' query parameter
1 parent 02907d9 commit 1dabf33

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

output/schema/schema.json

Lines changed: 8 additions & 8 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: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase'
2121
import { Bytes, Id } from '@_types/common'
22-
import { Duration } from '@_types/Time'
22+
import { TimeUnit} from '@_types/Time'
2323

2424
/**
2525
* Get data frame analytics jobs.
@@ -54,6 +54,6 @@ export interface Request extends CatRequestBase {
5454
/**
5555
* Unit used to display time values.
5656
*/
57-
time?: Duration
57+
time?: TimeUnit
5858
}
5959
}

specification/cat/ml_trained_models/CatTrainedModelsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase'
2121
import { Bytes, Id } from '@_types/common'
2222
import { integer } from '@_types/Numeric'
23-
import {Duration} from "@_types/Time";
23+
import { TimeUnit } from "@_types/Time";
2424

2525
/**
2626
* Get trained models.
@@ -64,6 +64,6 @@ export interface Request extends CatRequestBase {
6464
/**
6565
* Unit used to display time values.
6666
*/
67-
time?: Duration
67+
time?: TimeUnit
6868
}
6969
}

specification/cat/nodes/CatNodesRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
2121
import { Bytes } from '@_types/common'
22-
import {Duration} from "@_types/Time";
22+
import {Duration, TimeUnit} from "@_types/Time";
2323

2424
/**
2525
* Get node information.
@@ -55,6 +55,6 @@ export interface Request extends CatRequestBase {
5555
/**
5656
* Unit used to display time values.
5757
*/
58-
time?: Duration
58+
time?: TimeUnit
5959
}
6060
}

specification/cat/pending_tasks/CatPendingTasksRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
21-
import {Duration} from "@_types/Time";
21+
import {Duration, TimeUnit} from "@_types/Time";
2222

2323
/**
2424
* Get pending task information.
@@ -48,6 +48,6 @@ export interface Request extends CatRequestBase {
4848
/**
4949
* Unit used to display time values.
5050
*/
51-
time?: Duration
51+
time?: TimeUnit
5252
}
5353
}

specification/cat/recovery/CatRecoveryRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
2121
import { Bytes, Indices } from '@_types/common'
22-
import {Duration} from "@_types/Time";
22+
import {TimeUnit} from "@_types/Time";
2323

2424
/**
2525
* Get shard recovery information.
@@ -60,6 +60,6 @@ export interface Request extends CatRequestBase {
6060
/**
6161
* Unit used to display time values.
6262
*/
63-
time?: Duration
63+
time?: TimeUnit
6464
}
6565
}

specification/cat/shards/CatShardsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
2121
import { Bytes, Indices } from '@_types/common'
22-
import {Duration} from "@_types/Time";
22+
import {Duration, TimeUnit} from "@_types/Time";
2323

2424
/**
2525
* Get shard information.
@@ -55,6 +55,6 @@ export interface Request extends CatRequestBase {
5555
/**
5656
* Unit used to display time values.
5757
*/
58-
time?: Duration
58+
time?: TimeUnit
5959
}
6060
}

specification/cat/snapshots/CatSnapshotsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
2121
import { Names } from '@_types/common'
22-
import {Duration} from "@_types/Time";
22+
import {Duration, TimeUnit} from "@_types/Time";
2323

2424
/**
2525
* Get snapshot information
@@ -56,6 +56,6 @@ export interface Request extends CatRequestBase {
5656
/**
5757
* Unit used to display time values.
5858
*/
59-
time?: Duration
59+
time?: TimeUnit
6060
}
6161
}

specification/cat/tasks/CatTasksRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
21-
import {Duration} from "@_types/Time";
21+
import {Duration, TimeUnit} from "@_types/Time";
2222

2323
/**
2424
* Get task information.
@@ -48,6 +48,6 @@ export interface Request extends CatRequestBase {
4848
/**
4949
* Unit used to display time values.
5050
*/
51-
time?: Duration
51+
time?: TimeUnit
5252
}
5353
}

0 commit comments

Comments
 (0)