Skip to content

Commit

Permalink
Use correct type for the 'time' query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Dec 12, 2024
1 parent 02907d9 commit 1dabf33
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase'
import { Bytes, Id } from '@_types/common'
import { Duration } from '@_types/Time'
import { TimeUnit} from '@_types/Time'

/**
* Get data frame analytics jobs.
Expand Down Expand Up @@ -54,6 +54,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase'
import { Bytes, Id } from '@_types/common'
import { integer } from '@_types/Numeric'
import {Duration} from "@_types/Time";
import { TimeUnit } from "@_types/Time";

/**
* Get trained models.
Expand Down Expand Up @@ -64,6 +64,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/nodes/CatNodesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { CatRequestBase } from '@cat/_types/CatBase'
import { Bytes } from '@_types/common'
import {Duration} from "@_types/Time";
import {Duration, TimeUnit} from "@_types/Time";

/**
* Get node information.
Expand Down Expand Up @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/pending_tasks/CatPendingTasksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { CatRequestBase } from '@cat/_types/CatBase'
import {Duration} from "@_types/Time";
import {Duration, TimeUnit} from "@_types/Time";

/**
* Get pending task information.
Expand Down Expand Up @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/recovery/CatRecoveryRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { CatRequestBase } from '@cat/_types/CatBase'
import { Bytes, Indices } from '@_types/common'
import {Duration} from "@_types/Time";
import {TimeUnit} from "@_types/Time";

/**
* Get shard recovery information.
Expand Down Expand Up @@ -60,6 +60,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/shards/CatShardsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { CatRequestBase } from '@cat/_types/CatBase'
import { Bytes, Indices } from '@_types/common'
import {Duration} from "@_types/Time";
import {Duration, TimeUnit} from "@_types/Time";

/**
* Get shard information.
Expand Down Expand Up @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/snapshots/CatSnapshotsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { CatRequestBase } from '@cat/_types/CatBase'
import { Names } from '@_types/common'
import {Duration} from "@_types/Time";
import {Duration, TimeUnit} from "@_types/Time";

/**
* Get snapshot information
Expand Down Expand Up @@ -56,6 +56,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}
4 changes: 2 additions & 2 deletions specification/cat/tasks/CatTasksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { CatRequestBase } from '@cat/_types/CatBase'
import {Duration} from "@_types/Time";
import {Duration, TimeUnit} from "@_types/Time";

/**
* Get task information.
Expand Down Expand Up @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase {
/**
* Unit used to display time values.
*/
time?: Duration
time?: TimeUnit
}
}

0 comments on commit 1dabf33

Please sign in to comment.