@chrt-inc/typescript-sdk 1.746.0 → 1.751.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +8 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +25 -41
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +51 -125
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -4
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.ts +64 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.js +196 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.js +6 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +8 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -13
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -62
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/Cargo1.d.ts +1 -3
- package/dist/cjs/api/types/CargoManifest1.d.ts +6 -0
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +4 -3
- package/dist/cjs/api/types/FlightLeg1.d.ts +19 -0
- package/dist/cjs/api/types/FlightLegClientCreate1.d.ts +16 -0
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +9 -0
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +11 -0
- package/dist/cjs/api/types/FlightLegWebhookInfo.d.ts +22 -0
- package/dist/cjs/api/types/OrderManifest1.d.ts +2 -2
- package/dist/cjs/api/types/OrderSchedule1.d.ts +6 -7
- package/dist/cjs/api/types/OrderScheduleAboutRes.d.ts +1 -1
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatus.d.ts +0 -1
- package/dist/cjs/api/types/OrderScheduleSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/OrderScheduleSortByEnum.js +1 -1
- package/dist/cjs/api/types/OrderScheduleSpec1.d.ts +11 -0
- package/dist/cjs/api/types/OrderScheduleSpec1.js +5 -0
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +3 -4
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +3 -4
- package/dist/cjs/api/types/Task1.d.ts +2 -4
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -3
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +2 -5
- package/dist/cjs/api/types/TaskGroupManifest1.d.ts +1 -1
- package/dist/cjs/api/types/TaskManifest1.d.ts +13 -4
- package/dist/cjs/api/types/index.d.ts +5 -3
- package/dist/cjs/api/types/index.js +5 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +8 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +25 -41
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +49 -123
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -4
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.mts +64 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.mjs +159 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +8 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -1
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -13
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -62
- package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/Cargo1.d.mts +1 -3
- package/dist/esm/api/types/CargoManifest1.d.mts +6 -0
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +4 -3
- package/dist/esm/api/types/FlightLeg1.d.mts +19 -0
- package/dist/esm/api/types/FlightLegClientCreate1.d.mts +16 -0
- package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +9 -0
- package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +8 -0
- package/dist/esm/api/types/FlightLegWebhookInfo.d.mts +22 -0
- package/dist/esm/api/types/OrderManifest1.d.mts +2 -2
- package/dist/esm/api/types/OrderSchedule1.d.mts +6 -7
- package/dist/esm/api/types/OrderScheduleAboutRes.d.mts +1 -1
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatus.d.mts +0 -1
- package/dist/esm/api/types/OrderScheduleSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/OrderScheduleSortByEnum.mjs +1 -1
- package/dist/esm/api/types/OrderScheduleSpec1.d.mts +11 -0
- package/dist/esm/api/types/OrderScheduleSpec1.mjs +4 -0
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +3 -4
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +3 -4
- package/dist/esm/api/types/Task1.d.mts +2 -4
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -3
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +2 -5
- package/dist/esm/api/types/TaskGroupManifest1.d.mts +1 -1
- package/dist/esm/api/types/TaskManifest1.d.mts +13 -4
- package/dist/esm/api/types/index.d.mts +5 -3
- package/dist/esm/api/types/index.mjs +5 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +239 -160
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.ts +0 -13
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.ts +0 -10
- package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.js +0 -12
- package/dist/cjs/api/types/ScheduleSpec.d.ts +0 -14
- package/dist/cjs/api/types/ScheduledPingRes.d.ts +0 -16
- package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.mts +0 -13
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.mts +0 -10
- package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.mjs +0 -9
- package/dist/esm/api/types/ScheduleSpec.d.mts +0 -14
- package/dist/esm/api/types/ScheduledPingRes.d.mts +0 -16
- /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.js +0 -0
- /package/dist/cjs/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.js → types/FlightLeg1.js} +0 -0
- /package/dist/cjs/api/types/{ScheduleSpec.js → FlightLegClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{ScheduledPingRes.js → FlightLegWebhookInfo.js} +0 -0
- /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.mjs +0 -0
- /package/dist/esm/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.mjs → types/FlightLeg1.mjs} +0 -0
- /package/dist/esm/api/types/{ScheduleSpec.mjs → FlightLegClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{ScheduledPingRes.mjs → FlightLegWebhookInfo.mjs} +0 -0
package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* schema_version: 1,
|
|
9
|
-
* name: "name"
|
|
10
|
-
* order_manifest: {},
|
|
11
|
-
* schedule_spec: {}
|
|
9
|
+
* name: "name"
|
|
12
10
|
* }
|
|
13
11
|
*/
|
|
14
12
|
export interface OrderScheduleClientCreate1 {
|
|
15
13
|
schema_version: number;
|
|
16
14
|
name: string;
|
|
17
15
|
description?: string | null;
|
|
18
|
-
order_manifest
|
|
19
|
-
schedule_spec
|
|
16
|
+
order_manifest?: Chrt.OrderManifest1 | null;
|
|
17
|
+
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
20
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
@@ -10,6 +10,6 @@ export interface OrderScheduleClientUpdate1 {
|
|
|
10
10
|
name?: string | null;
|
|
11
11
|
description?: string | null;
|
|
12
12
|
order_manifest?: Chrt.OrderManifest1 | null;
|
|
13
|
-
schedule_spec?: Chrt.
|
|
13
|
+
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
14
14
|
description__set_to_None?: boolean;
|
|
15
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -32,6 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.orderManifest = void 0;
|
|
39
|
+
exports.orderManifest = exports.draft = void 0;
|
|
40
|
+
exports.draft = __importStar(require("./draft/index.js"));
|
|
37
41
|
exports.orderManifest = __importStar(require("./orderManifest/index.js"));
|
|
42
|
+
__exportStar(require("./draft/client/requests/index.js"), exports);
|
|
@@ -141,7 +141,7 @@ export declare class TaskGroups {
|
|
|
141
141
|
removeExecutorV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
142
142
|
private __removeExecutorV1;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
|
|
145
145
|
*
|
|
146
146
|
* @param {string} taskGroupId
|
|
147
147
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -150,7 +150,13 @@ export declare class TaskGroups {
|
|
|
150
150
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
|
-
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
153
|
+
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
154
|
+
* flight_legs: [{
|
|
155
|
+
* schema_version: 1,
|
|
156
|
+
* flight_number: "flight_number",
|
|
157
|
+
* provenance: "manual"
|
|
158
|
+
* }]
|
|
159
|
+
* })
|
|
154
160
|
*/
|
|
155
161
|
setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
156
162
|
private __setFlightInfoV1;
|
|
@@ -509,7 +509,7 @@ class TaskGroups {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
512
|
-
*
|
|
512
|
+
* Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
|
|
513
513
|
*
|
|
514
514
|
* @param {string} taskGroupId
|
|
515
515
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -518,7 +518,13 @@ class TaskGroups {
|
|
|
518
518
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
|
-
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
521
|
+
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
522
|
+
* flight_legs: [{
|
|
523
|
+
* schema_version: 1,
|
|
524
|
+
* flight_number: "flight_number",
|
|
525
|
+
* provenance: "manual"
|
|
526
|
+
* }]
|
|
527
|
+
* })
|
|
522
528
|
*/
|
|
523
529
|
setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
524
530
|
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
|
|
@@ -36,7 +36,7 @@ export interface ExpandedListForDriverForExecutorV1Request {
|
|
|
36
36
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
37
37
|
page?: number | null;
|
|
38
38
|
page_size?: number | null;
|
|
39
|
-
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id
|
|
39
|
+
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
|
|
40
40
|
search?: string | null;
|
|
41
41
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
42
42
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
@@ -37,7 +37,7 @@ export interface ExpandedListForExecutorOperatorsV1Request {
|
|
|
37
37
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
38
38
|
page?: number | null;
|
|
39
39
|
page_size?: number | null;
|
|
40
|
-
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id
|
|
40
|
+
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
|
|
41
41
|
search?: string | null;
|
|
42
42
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
43
43
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
@@ -30,19 +30,6 @@ export declare namespace Dev {
|
|
|
30
30
|
export declare class Dev {
|
|
31
31
|
protected readonly _options: Dev.Options;
|
|
32
32
|
constructor(_options?: Dev.Options);
|
|
33
|
-
/**
|
|
34
|
-
* Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
|
|
35
|
-
*
|
|
36
|
-
* @param {Chrt.utils.ScheduledPingReq} request
|
|
37
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
-
*
|
|
39
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* await client.utils.dev.postAgentPingScheduleV1()
|
|
43
|
-
*/
|
|
44
|
-
postAgentPingScheduleV1(request?: Chrt.utils.ScheduledPingReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledPingRes>;
|
|
45
|
-
private __postAgentPingScheduleV1;
|
|
46
33
|
/**
|
|
47
34
|
* Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
|
|
48
35
|
*
|
|
@@ -55,68 +55,6 @@ class Dev {
|
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
|
|
60
|
-
*
|
|
61
|
-
* @param {Chrt.utils.ScheduledPingReq} request
|
|
62
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.utils.dev.postAgentPingScheduleV1()
|
|
68
|
-
*/
|
|
69
|
-
postAgentPingScheduleV1(request = {}, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__postAgentPingScheduleV1(request, requestOptions));
|
|
71
|
-
}
|
|
72
|
-
__postAgentPingScheduleV1() {
|
|
73
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
|
-
var _a, _b, _c, _d;
|
|
75
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/ping-schedule/v1"),
|
|
78
|
-
method: "POST",
|
|
79
|
-
headers: _headers,
|
|
80
|
-
contentType: "application/json",
|
|
81
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
82
|
-
requestType: "json",
|
|
83
|
-
body: request,
|
|
84
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
-
});
|
|
88
|
-
if (_response.ok) {
|
|
89
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
90
|
-
}
|
|
91
|
-
if (_response.error.reason === "status-code") {
|
|
92
|
-
switch (_response.error.statusCode) {
|
|
93
|
-
case 422:
|
|
94
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
95
|
-
default:
|
|
96
|
-
throw new errors.ChrtError({
|
|
97
|
-
statusCode: _response.error.statusCode,
|
|
98
|
-
body: _response.error.body,
|
|
99
|
-
rawResponse: _response.rawResponse,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
switch (_response.error.reason) {
|
|
104
|
-
case "non-json":
|
|
105
|
-
throw new errors.ChrtError({
|
|
106
|
-
statusCode: _response.error.statusCode,
|
|
107
|
-
body: _response.error.rawBody,
|
|
108
|
-
rawResponse: _response.rawResponse,
|
|
109
|
-
});
|
|
110
|
-
case "timeout":
|
|
111
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/ping-schedule/v1.");
|
|
112
|
-
case "unknown":
|
|
113
|
-
throw new errors.ChrtError({
|
|
114
|
-
message: _response.error.errorMessage,
|
|
115
|
-
rawResponse: _response.rawResponse,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
58
|
/**
|
|
121
59
|
* Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
|
|
122
60
|
*
|
|
@@ -18,9 +18,7 @@ export interface Cargo1 {
|
|
|
18
18
|
_id: string;
|
|
19
19
|
order_id: string;
|
|
20
20
|
order_short_id: string;
|
|
21
|
-
|
|
22
|
-
order_schedule_run_idempotency_key?: string | null;
|
|
23
|
-
order_schedule_template_path?: string | null;
|
|
21
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
24
22
|
/** Must be a string starting with `org_` */
|
|
25
23
|
created_by_org_id: string;
|
|
26
24
|
/** Must be a string starting with `user_` */
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* Cargo template used when generating a scheduled order.
|
|
7
|
+
*
|
|
8
|
+
* Reuses the cargo create shape verbatim (CargoClientCreate1) so the manifest
|
|
9
|
+
* cannot drift from the real cargo model. A scheduled cargo carries no
|
|
10
|
+
* template-specific fields of its own.
|
|
7
11
|
*/
|
|
8
12
|
export interface CargoManifest1 {
|
|
9
13
|
schema_version: number;
|
|
@@ -16,4 +20,6 @@ export interface CargoManifest1 {
|
|
|
16
20
|
turnable?: boolean | null;
|
|
17
21
|
stackable?: boolean | null;
|
|
18
22
|
description?: string | null;
|
|
23
|
+
/** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
|
|
24
|
+
awb_number?: string | null;
|
|
19
25
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
/**
|
|
5
|
-
* Response model for flight info lookup by task
|
|
6
|
+
* Response model for flight info lookup by task — the ordered flight legs
|
|
7
|
+
* of the adjacent CARGO_ON_FLIGHT task group.
|
|
6
8
|
*/
|
|
7
9
|
export interface FlightInfoForTaskRes {
|
|
8
|
-
|
|
9
|
-
fa_flight_ids?: string[];
|
|
10
|
+
flight_legs?: Chrt.FlightLeg1[];
|
|
10
11
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface FlightLeg1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
_id: string;
|
|
8
|
+
order_id: string;
|
|
9
|
+
task_group_id: string;
|
|
10
|
+
flight_number: string;
|
|
11
|
+
provenance: Chrt.FlightLegProvenanceEnum1;
|
|
12
|
+
carrier_iata?: string | null;
|
|
13
|
+
carrier_icao?: string | null;
|
|
14
|
+
origin_iata?: string | null;
|
|
15
|
+
destination_iata?: string | null;
|
|
16
|
+
scheduled_departure_utc?: string | null;
|
|
17
|
+
scheduled_arrival_utc?: string | null;
|
|
18
|
+
fa_flight_ids?: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface FlightLegClientCreate1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
flight_number: string;
|
|
8
|
+
provenance: Chrt.FlightLegProvenanceEnum1;
|
|
9
|
+
carrier_iata?: string | null;
|
|
10
|
+
carrier_icao?: string | null;
|
|
11
|
+
origin_iata?: string | null;
|
|
12
|
+
destination_iata?: string | null;
|
|
13
|
+
scheduled_departure_utc?: string | null;
|
|
14
|
+
scheduled_arrival_utc?: string | null;
|
|
15
|
+
fa_flight_ids?: string[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type FlightLegProvenanceEnum1 = "manual" | "cirium" | "flightaware";
|
|
5
|
+
export declare const FlightLegProvenanceEnum1: {
|
|
6
|
+
readonly Manual: "manual";
|
|
7
|
+
readonly Cirium: "cirium";
|
|
8
|
+
readonly Flightaware: "flightaware";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlightLegProvenanceEnum1 = void 0;
|
|
7
|
+
exports.FlightLegProvenanceEnum1 = {
|
|
8
|
+
Manual: "manual",
|
|
9
|
+
Cirium: "cirium",
|
|
10
|
+
Flightaware: "flightaware",
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A single flight leg in a task group's ordered flight legs.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlightLegWebhookInfo {
|
|
8
|
+
/** The flight number */
|
|
9
|
+
flight_number: string;
|
|
10
|
+
/** Carrier IATA code */
|
|
11
|
+
carrier_iata?: string | null;
|
|
12
|
+
/** Origin airport IATA code */
|
|
13
|
+
origin_iata?: string | null;
|
|
14
|
+
/** Destination airport IATA code */
|
|
15
|
+
destination_iata?: string | null;
|
|
16
|
+
/** Scheduled departure (UTC) */
|
|
17
|
+
scheduled_departure_utc?: string | null;
|
|
18
|
+
/** Scheduled arrival (UTC) */
|
|
19
|
+
scheduled_arrival_utc?: string | null;
|
|
20
|
+
/** FlightAware flight UUIDs associated with this leg */
|
|
21
|
+
fa_flight_ids?: string[];
|
|
22
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface OrderManifest1 {
|
|
|
13
13
|
off_chrt_shipper_org_id?: string | null;
|
|
14
14
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
15
15
|
off_chrt_reference_id?: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
cargo_manifests?: Chrt.CargoManifest1[];
|
|
17
|
+
task_group_manifests?: Chrt.TaskGroupManifest1[];
|
|
18
18
|
auto_stage?: boolean;
|
|
19
19
|
}
|
|
@@ -6,9 +6,10 @@ export interface OrderSchedule1 {
|
|
|
6
6
|
schema_version: number;
|
|
7
7
|
name: string;
|
|
8
8
|
description?: string | null;
|
|
9
|
-
order_manifest
|
|
10
|
-
schedule_spec
|
|
9
|
+
order_manifest?: Chrt.OrderManifest1 | null;
|
|
10
|
+
schedule_spec?: Chrt.OrderScheduleSpec1 | null;
|
|
11
11
|
_id: string;
|
|
12
|
+
short_id: string;
|
|
12
13
|
/** Must be a string starting with `user_` */
|
|
13
14
|
owned_by_user_id: string;
|
|
14
15
|
/** Must be a string starting with `org_` */
|
|
@@ -16,9 +17,7 @@ export interface OrderSchedule1 {
|
|
|
16
17
|
owned_by_org_type: Chrt.OrgTypeEnum;
|
|
17
18
|
created_at_timestamp: string;
|
|
18
19
|
last_edited_at_timestamp: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
orchestrator_schedule_paused?: boolean | null;
|
|
23
|
-
orchestrator_schedule_created_at_timestamp?: string | null;
|
|
20
|
+
intended_status?: Chrt.OrderScheduleStatusEnum1;
|
|
21
|
+
orchestrator_schedule_id?: string | null;
|
|
22
|
+
orchestrator_schedule_paused?: boolean;
|
|
24
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrderScheduleSortByEnum = "created_at_timestamp" | "last_edited_at_timestamp" | "name" | "
|
|
4
|
+
export type OrderScheduleSortByEnum = "created_at_timestamp" | "last_edited_at_timestamp" | "name" | "intended_status";
|
|
5
5
|
export declare const OrderScheduleSortByEnum: {
|
|
6
6
|
readonly CreatedAtTimestamp: "created_at_timestamp";
|
|
7
7
|
readonly LastEditedAtTimestamp: "last_edited_at_timestamp";
|
|
8
8
|
readonly Name: "name";
|
|
9
|
-
readonly
|
|
9
|
+
readonly IntendedStatus: "intended_status";
|
|
10
10
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface OrderScheduleSpec1 {
|
|
6
|
+
schedule_calendar_spec?: Chrt.ScheduleCalendarSpec | null;
|
|
7
|
+
start_at?: string | null;
|
|
8
|
+
end_at?: string | null;
|
|
9
|
+
/** IANA time zone name (e.g. `America/New_York`). */
|
|
10
|
+
time_zone_name: string;
|
|
11
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface SetFlightInfoReq {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/** Flight Aware's uuid for flights */
|
|
8
|
-
fa_flight_ids?: string[] | null;
|
|
6
|
+
/** Ordered list of flight legs for the task group. Replaces any existing flight legs. Pass an empty list to clear all flight legs. */
|
|
7
|
+
flight_legs: Chrt.FlightLegClientCreate1[];
|
|
9
8
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface ShippingTaskGroupFlightInfoUpdatedWebhookPayload {
|
|
5
6
|
event_type?: "shipping.task_group.flight_info_updated";
|
|
6
7
|
/** UTC timestamp when the event occurred */
|
|
@@ -9,8 +10,6 @@ export interface ShippingTaskGroupFlightInfoUpdatedWebhookPayload {
|
|
|
9
10
|
order_id: string;
|
|
10
11
|
/** The task group whose flight info was updated */
|
|
11
12
|
task_group_id: string;
|
|
12
|
-
/** The
|
|
13
|
-
|
|
14
|
-
/** FlightAware flight UUIDs associated with this task group */
|
|
15
|
-
fa_flight_ids: string[];
|
|
13
|
+
/** The task group's ordered flight legs */
|
|
14
|
+
flight_legs: Chrt.FlightLegWebhookInfo[];
|
|
16
15
|
}
|
|
@@ -7,16 +7,14 @@ export interface Task1 {
|
|
|
7
7
|
location?: Chrt.LocationFeature | null;
|
|
8
8
|
geofence_distance_miles?: number;
|
|
9
9
|
action?: Task1.Action | null;
|
|
10
|
-
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
11
10
|
order_placer_comments?: string | null;
|
|
12
11
|
directory_entry_ids?: string[];
|
|
12
|
+
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
13
13
|
_id: string;
|
|
14
14
|
order_id: string;
|
|
15
15
|
order_short_id: string;
|
|
16
16
|
task_group_id: string;
|
|
17
|
-
|
|
18
|
-
order_schedule_run_idempotency_key?: string | null;
|
|
19
|
-
order_schedule_template_path?: string | null;
|
|
17
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
20
18
|
/** Must be a string starting with `org_` */
|
|
21
19
|
created_by_org_id: string;
|
|
22
20
|
/** Must be a string starting with `user_` */
|
|
@@ -11,9 +11,7 @@ export interface TaskArtifact1 {
|
|
|
11
11
|
order_short_id: string;
|
|
12
12
|
task_group_id: string;
|
|
13
13
|
task_id: string;
|
|
14
|
-
|
|
15
|
-
order_schedule_run_idempotency_key?: string | null;
|
|
16
|
-
order_schedule_template_path?: string | null;
|
|
14
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
17
15
|
task_artifact_s3_object_metadata_ids?: string[];
|
|
18
16
|
/** Must be a string starting with `org_` */
|
|
19
17
|
created_by_org_id: string;
|
|
@@ -7,9 +7,9 @@ export interface TaskClientCreate1 {
|
|
|
7
7
|
location?: Chrt.LocationFeature | null;
|
|
8
8
|
geofence_distance_miles?: number;
|
|
9
9
|
action?: TaskClientCreate1.Action | null;
|
|
10
|
-
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
11
10
|
order_placer_comments?: string | null;
|
|
12
11
|
directory_entry_ids?: string[];
|
|
12
|
+
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
13
13
|
}
|
|
14
14
|
export declare namespace TaskClientCreate1 {
|
|
15
15
|
type Action = Chrt.ChrtGroundProviderTaskActionEnum1 | Chrt.CargoOnFlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
@@ -10,9 +10,7 @@ export interface TaskGroup1 {
|
|
|
10
10
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
11
11
|
order_off_chrt_reference_id?: string | null;
|
|
12
12
|
task_ids?: string[];
|
|
13
|
-
|
|
14
|
-
order_schedule_run_idempotency_key?: string | null;
|
|
15
|
-
order_schedule_template_path?: string | null;
|
|
13
|
+
order_schedule_template_path_idempotency_key?: string | null;
|
|
16
14
|
/** Must be a string starting with `user_` */
|
|
17
15
|
created_by_user_id?: string | null;
|
|
18
16
|
/** Must be a string starting with `org_` */
|
|
@@ -41,8 +39,7 @@ export interface TaskGroup1 {
|
|
|
41
39
|
mileage_observed?: number | null;
|
|
42
40
|
wait_time_total_minutes?: number | null;
|
|
43
41
|
mileage_asserted?: boolean;
|
|
44
|
-
|
|
45
|
-
fa_flight_ids?: string[];
|
|
42
|
+
flight_leg_ids?: string[];
|
|
46
43
|
messages?: Chrt.TaskGroupMessage1[];
|
|
47
44
|
shipper_pay_provider_rate_sheet_id?: string | null;
|
|
48
45
|
shipper_pay_provider_line_item_group_id?: string | null;
|