Skip to content

Commit a3d6e6f

Browse files
committed
Use friendlier date_time model
1 parent 71d3554 commit a3d6e6f

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/generated/models/SourceAttribution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ export interface SourceAttribution {
2828
fixitUrl?: string | null;
2929
/**
3030
* The source identifier.
31-
* The ID of the record as it appears in the original source.
3231
* @type {string}
3332
* @memberof SourceAttribution
3433
*/
3534
source: string;
3635
/**
37-
*
36+
* The ID of the record as it appears in the original source.
3837
* @type {string}
3938
* @memberof SourceAttribution
4039
*/

src/generated/models/TimeConstraintV1.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
import { mapValues } from "../runtime";
1616
/**
17-
* Specifies the time context for time-dependent routing (e.g., to account for traffic patterns or time-based access restrictions). Defaults "now" for traffic-influenced routing profiles like `auto_traffic`.
17+
* Specifies the time context for time-dependent routing (e.g., to account for traffic patterns or time-based access restrictions). Defaults to "depart_now" for traffic-influenced routing profiles like `auto_traffic`.
1818
* @export
1919
* @interface TimeConstraintV1
2020
*/
2121
export interface TimeConstraintV1 {
2222
/**
23-
* The type of time constraint: 0 = current time (depart now), 1 = depart at the specified time, 2 = arrive by the specified time.
23+
* The type of time constraint: "depart_now" = depart now (current time), "depart_at" = depart at the specified time, "arrive_at" = arrive by the specified time.
2424
* @type {TimeConstraintV1TypeEnum}
2525
* @memberof TimeConstraintV1
2626
*/
2727
type: TimeConstraintV1TypeEnum;
2828
/**
29-
* The date and time in `YYYY-MM-DDTHH:MM` format (seconds are accepted, but will be ignored). The date and time are local (civil) time as observed at the location. Required for types 1 and 2. Must not be provided for type 0.
29+
* The date and time in `YYYY-MM-DDTHH:MM` format (seconds are accepted, but will be ignored). The date and time are local (civil) time as observed at the location. Required when type is depart_at or arrive_at. Must not be provided for depart_now.
3030
* @type {string}
3131
* @memberof TimeConstraintV1
3232
*/
@@ -37,9 +37,9 @@ export interface TimeConstraintV1 {
3737
* @export
3838
*/
3939
export const TimeConstraintV1TypeEnum = {
40-
NUMBER_0: 0,
41-
NUMBER_1: 1,
42-
NUMBER_2: 2,
40+
DepartNow: "depart_now",
41+
DepartAt: "depart_at",
42+
ArriveAt: "arrive_at",
4343
} as const;
4444
export type TimeConstraintV1TypeEnum =
4545
(typeof TimeConstraintV1TypeEnum)[keyof typeof TimeConstraintV1TypeEnum];

0 commit comments

Comments
 (0)