@chrt-inc/typescript-sdk 1.929.0 → 1.930.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/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/shipping/client/Client.js +10 -15
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +19 -11
- package/dist/cjs/api/resources/shipping/resources/flights/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/index.js +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +103 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +442 -0
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.ts} +1 -1
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.ts} +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts → client/requests/OrdersUpdateDraftReq.d.ts} +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +0 -109
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +0 -452
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +59 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +11 -7
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +4 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +0 -1
- package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +0 -1
- package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.d.ts → OrdersDeleteManyDraftsRes.d.ts} +1 -1
- package/dist/cjs/api/types/{OrdersDraftUpdateRes.d.ts → OrdersUpdateDraftRes.d.ts} +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -9
- package/dist/cjs/api/types/index.js +2 -9
- 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/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +19 -11
- package/dist/esm/api/resources/shipping/resources/flights/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/index.mjs +1 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +103 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +442 -0
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.mts} +1 -1
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.mts} +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts → client/requests/OrdersUpdateDraftReq.d.mts} +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +0 -109
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +0 -452
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +59 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +11 -7
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +4 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +0 -1
- package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +0 -1
- package/dist/esm/api/types/{OrdersDraftDeleteManyRes.d.mts → OrdersDeleteManyDraftsRes.d.mts} +1 -1
- package/dist/esm/api/types/{OrdersDraftUpdateRes.d.mts → OrdersUpdateDraftRes.d.mts} +1 -1
- package/dist/esm/api/types/index.d.mts +2 -9
- package/dist/esm/api/types/index.mjs +2 -9
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +326 -935
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +0 -182
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +0 -720
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.js +0 -17
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +0 -33
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +0 -37
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +0 -14
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +0 -80
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.js +0 -17
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.js +0 -5
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.ts +0 -46
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.js +0 -127
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.js +0 -17
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js +0 -38
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +0 -46
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +0 -127
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.js +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.js +0 -17
- package/dist/cjs/api/types/Order1.d.ts +0 -43
- package/dist/cjs/api/types/Order1.js +0 -5
- package/dist/cjs/api/types/OrderTemplate1.d.ts +0 -35
- package/dist/cjs/api/types/OrderTemplate1.js +0 -5
- package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +0 -16
- package/dist/cjs/api/types/OrderTemplateExpanded1.js +0 -5
- package/dist/cjs/api/types/OrderTemplateListRes.d.ts +0 -8
- package/dist/cjs/api/types/OrderTemplateListRes.js +0 -5
- package/dist/cjs/api/types/OrderTemplateOrgInfo1.d.ts +0 -10
- package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +0 -5
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +0 -13
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +0 -15
- package/dist/cjs/api/types/OrderTemplateSortByEnum.d.ts +0 -11
- package/dist/cjs/api/types/OrderTemplateSortByEnum.js +0 -13
- package/dist/cjs/api/types/OrdersDraftDeleteManyRes.js +0 -5
- package/dist/cjs/api/types/OrdersDraftUpdateRes.js +0 -5
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +0 -182
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +0 -683
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +0 -33
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +0 -37
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +0 -14
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +0 -80
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplates/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +0 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.mts +0 -46
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.mjs +0 -90
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +0 -46
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +0 -90
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.mjs +0 -1
- package/dist/esm/api/types/Order1.d.mts +0 -43
- package/dist/esm/api/types/Order1.mjs +0 -4
- package/dist/esm/api/types/OrderTemplate1.d.mts +0 -35
- package/dist/esm/api/types/OrderTemplate1.mjs +0 -4
- package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +0 -16
- package/dist/esm/api/types/OrderTemplateExpanded1.mjs +0 -4
- package/dist/esm/api/types/OrderTemplateListRes.d.mts +0 -8
- package/dist/esm/api/types/OrderTemplateListRes.mjs +0 -4
- package/dist/esm/api/types/OrderTemplateOrgInfo1.d.mts +0 -10
- package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +0 -4
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +0 -13
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +0 -12
- package/dist/esm/api/types/OrderTemplateSortByEnum.d.mts +0 -11
- package/dist/esm/api/types/OrderTemplateSortByEnum.mjs +0 -10
- package/dist/esm/api/types/OrdersDraftDeleteManyRes.mjs +0 -4
- package/dist/esm/api/types/OrdersDraftUpdateRes.mjs +0 -4
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.js → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.js → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js → orders/client/requests/OrdersDeleteManyDraftsReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.js → orders/client/requests/OrdersTaskGroupOrderingReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → client/requests/OrdersUpdateDraftReq.js} +0 -0
- /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.js → types/OrdersDeleteManyDraftsRes.js} +0 -0
- /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.js → types/OrdersUpdateDraftRes.js} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.mjs → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs → orders/client/requests/OrdersDeleteManyDraftsReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.mjs → orders/client/requests/OrdersTaskGroupOrderingReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → client/requests/OrdersUpdateDraftReq.mjs} +0 -0
- /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.mjs → types/OrdersDeleteManyDraftsRes.mjs} +0 -0
- /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.mjs → types/OrdersUpdateDraftRes.mjs} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
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,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* name: "name",
|
|
9
|
-
* schema_version: 1
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export interface OrderTemplateClientCreate1 {
|
|
13
|
-
contact_ids?: string[];
|
|
14
|
-
coordinator_label?: string | null;
|
|
15
|
-
/** Must be a string starting with `org_` */
|
|
16
|
-
coordinator_org_id?: string | null;
|
|
17
|
-
coordinator_shipper_account_ids?: string[];
|
|
18
|
-
department_id?: string | null;
|
|
19
|
-
description?: string | null;
|
|
20
|
-
driver_ids?: string[];
|
|
21
|
-
executor_org_ids?: string[];
|
|
22
|
-
name: string;
|
|
23
|
-
off_chrt_executor_org_data_ids?: string[];
|
|
24
|
-
off_chrt_reference_id_str?: string | null;
|
|
25
|
-
off_chrt_shipper_org_data_id?: string | null;
|
|
26
|
-
schema_version: number;
|
|
27
|
-
service_line?: Chrt.ServiceLineEnum;
|
|
28
|
-
/** Must be a string starting with `org_` */
|
|
29
|
-
shipper_org_id?: string | null;
|
|
30
|
-
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
|
|
31
|
-
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
|
|
32
|
-
text?: string | null;
|
|
33
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {}
|
|
8
|
-
*/
|
|
9
|
-
export interface OrderTemplateClientUpdate1 {
|
|
10
|
-
contact_ids?: string[];
|
|
11
|
-
coordinator_label?: string | null;
|
|
12
|
-
coordinator_label__set_to_None?: boolean;
|
|
13
|
-
/** Must be a string starting with `org_` */
|
|
14
|
-
coordinator_org_id?: string | null;
|
|
15
|
-
coordinator_org_id__set_to_None?: boolean;
|
|
16
|
-
coordinator_shipper_account_ids?: string[];
|
|
17
|
-
department_id?: string | null;
|
|
18
|
-
department_id__set_to_None?: boolean;
|
|
19
|
-
description?: string | null;
|
|
20
|
-
description__set_to_None?: boolean;
|
|
21
|
-
driver_ids?: string[];
|
|
22
|
-
executor_org_ids?: string[];
|
|
23
|
-
name?: string | null;
|
|
24
|
-
off_chrt_executor_org_data_ids?: string[];
|
|
25
|
-
off_chrt_reference_id_str?: string | null;
|
|
26
|
-
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
27
|
-
off_chrt_shipper_org_data_id?: string | null;
|
|
28
|
-
off_chrt_shipper_org_data_id__set_to_None?: boolean;
|
|
29
|
-
service_line?: Chrt.ServiceLineEnum | null;
|
|
30
|
-
/** Must be a string starting with `org_` */
|
|
31
|
-
shipper_org_id?: string | null;
|
|
32
|
-
shipper_org_id__set_to_None?: boolean;
|
|
33
|
-
task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
|
|
34
|
-
task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
|
|
35
|
-
text?: string | null;
|
|
36
|
-
text__set_to_None?: boolean;
|
|
37
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* column: "shipper_org_id"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface OrderTemplateRemoveReferenceReq {
|
|
12
|
-
column: Chrt.OrderTemplateReferenceColumnEnum1;
|
|
13
|
-
object_id?: string | null;
|
|
14
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* sort_by: "created_at_timestamp",
|
|
9
|
-
* sort_order: "asc",
|
|
10
|
-
* page: 1,
|
|
11
|
-
* page_size: 1,
|
|
12
|
-
* search: "search",
|
|
13
|
-
* filter_archived: true,
|
|
14
|
-
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15
|
-
* filter_off_chrt_reference_id_str: "filter_off_chrt_reference_id_str",
|
|
16
|
-
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
17
|
-
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
18
|
-
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
19
|
-
* filter_department_id: "filter_department_id",
|
|
20
|
-
* filter_coordinator_label: "filter_coordinator_label",
|
|
21
|
-
* filter_driver_id: "filter_driver_id",
|
|
22
|
-
* filter_contact_id: "filter_contact_id",
|
|
23
|
-
* filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
|
|
24
|
-
* filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
|
|
25
|
-
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
26
|
-
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
27
|
-
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
28
|
-
* filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
29
|
-
* filter_last_used_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
30
|
-
* filter_last_used_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
31
|
-
* }
|
|
32
|
-
*/
|
|
33
|
-
export interface OrderTemplatesListV1Request {
|
|
34
|
-
/** Field to sort by. */
|
|
35
|
-
sort_by?: Chrt.OrderTemplateSortByEnum | null;
|
|
36
|
-
/** Sort order (asc or desc). */
|
|
37
|
-
sort_order?: Chrt.SortOrderEnum | null;
|
|
38
|
-
page?: number | null;
|
|
39
|
-
page_size?: number | null;
|
|
40
|
-
/** Full-text search query */
|
|
41
|
-
search?: string | null;
|
|
42
|
-
/** Filter by archived (True) vs active (False) templates. */
|
|
43
|
-
filter_archived?: boolean | null;
|
|
44
|
-
/** Filter by the user who owns the order template. */
|
|
45
|
-
filter_owned_by_user_id?: string | null;
|
|
46
|
-
/** Filter by service line. */
|
|
47
|
-
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
48
|
-
/** Filter by the off-CHRT reference ID string. */
|
|
49
|
-
filter_off_chrt_reference_id_str?: string | null;
|
|
50
|
-
/** Filter by on-CHRT shipper org ID. */
|
|
51
|
-
filter_shipper_org_id?: string | null;
|
|
52
|
-
/** Filter by off-CHRT shipper organization data ID. */
|
|
53
|
-
filter_off_chrt_shipper_org_data_id?: string | null;
|
|
54
|
-
/** Filter by coordinator org ID. */
|
|
55
|
-
filter_coordinator_org_id?: string | null;
|
|
56
|
-
/** Filter by coordinator department ID. */
|
|
57
|
-
filter_department_id?: string | null;
|
|
58
|
-
/** Filter by coordinator label. */
|
|
59
|
-
filter_coordinator_label?: string | null;
|
|
60
|
-
/** Filter by driver ID included in the template. */
|
|
61
|
-
filter_driver_id?: string | null;
|
|
62
|
-
/** Filter by contact ID included in the template. */
|
|
63
|
-
filter_contact_id?: string | null;
|
|
64
|
-
/** Filter by task list ID included in order-creation applications. */
|
|
65
|
-
filter_task_lists_to_apply_at_order_creation_task_list_id?: string | null;
|
|
66
|
-
/** Filter by task list ID included in staging applications. */
|
|
67
|
-
filter_task_lists_to_apply_at_order_staging_task_list_id?: string | null;
|
|
68
|
-
/** Filter created_at_timestamp >= value (inclusive). */
|
|
69
|
-
filter_created_at_timestamp_gte?: string | null;
|
|
70
|
-
/** Filter created_at_timestamp <= value (inclusive). */
|
|
71
|
-
filter_created_at_timestamp_lte?: string | null;
|
|
72
|
-
/** Filter last_edited_at_timestamp >= value (inclusive). */
|
|
73
|
-
filter_last_edited_at_timestamp_gte?: string | null;
|
|
74
|
-
/** Filter last_edited_at_timestamp <= value (inclusive). */
|
|
75
|
-
filter_last_edited_at_timestamp_lte?: string | null;
|
|
76
|
-
/** Filter last_used_at_timestamp >= value (inclusive). */
|
|
77
|
-
filter_last_used_at_timestamp_gte?: string | null;
|
|
78
|
-
/** Filter last_used_at_timestamp <= value (inclusive). */
|
|
79
|
-
filter_last_used_at_timestamp_lte?: string | null;
|
|
80
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { type OrderTemplatesListV1Request } from "./OrderTemplatesListV1Request.js";
|
|
2
|
-
export { type OrderTemplateRemoveReferenceReq } from "./OrderTemplateRemoveReferenceReq.js";
|
|
3
|
-
export { type OrderTemplateClientUpdate1 } from "./OrderTemplateClientUpdate1.js";
|
|
4
|
-
export { type OrderTemplateClientCreate1 } from "./OrderTemplateClientCreate1.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client/index.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
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);
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../../../../../../../environments.js";
|
|
5
|
-
import * as core from "../../../../../../../../../../core/index.js";
|
|
6
|
-
export declare namespace Cargo {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
/** Additional headers to include in requests. */
|
|
13
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
14
|
-
fetcher?: core.FetchFunction;
|
|
15
|
-
}
|
|
16
|
-
interface RequestOptions {
|
|
17
|
-
/** The maximum time to wait for a response in seconds. */
|
|
18
|
-
timeoutInSeconds?: number;
|
|
19
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
-
maxRetries?: number;
|
|
21
|
-
/** A hook to abort the request. */
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
/** Additional query string parameters to include in the request. */
|
|
24
|
-
queryParams?: Record<string, unknown>;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export declare class Cargo {
|
|
30
|
-
protected readonly _options: Cargo.Options;
|
|
31
|
-
constructor(_options?: Cargo.Options);
|
|
32
|
-
/**
|
|
33
|
-
* Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
|
|
34
|
-
*
|
|
35
|
-
* @param {string} cargoId
|
|
36
|
-
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
-
*
|
|
38
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* await client.shipping.orders.drafts.cargo.deleteV1("cargo_id")
|
|
42
|
-
*/
|
|
43
|
-
deleteV1(cargoId: string, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
44
|
-
private __deleteV1;
|
|
45
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
46
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.Cargo = void 0;
|
|
49
|
-
const environments = __importStar(require("../../../../../../../../../../environments.js"));
|
|
50
|
-
const core = __importStar(require("../../../../../../../../../../core/index.js"));
|
|
51
|
-
const Chrt = __importStar(require("../../../../../../../../../index.js"));
|
|
52
|
-
const headers_js_1 = require("../../../../../../../../../../core/headers.js");
|
|
53
|
-
const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
|
|
54
|
-
class Cargo {
|
|
55
|
-
constructor(_options = {}) {
|
|
56
|
-
this._options = _options;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
|
|
60
|
-
*
|
|
61
|
-
* @param {string} cargoId
|
|
62
|
-
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.shipping.orders.drafts.cargo.deleteV1("cargo_id")
|
|
68
|
-
*/
|
|
69
|
-
deleteV1(cargoId, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteV1(cargoId, requestOptions));
|
|
71
|
-
}
|
|
72
|
-
__deleteV1(cargoId, requestOptions) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
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, `shipping/orders/drafts/cargo/delete/v1/${encodeURIComponent(cargoId)}`),
|
|
78
|
-
method: "DELETE",
|
|
79
|
-
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
-
});
|
|
85
|
-
if (_response.ok) {
|
|
86
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
-
}
|
|
88
|
-
if (_response.error.reason === "status-code") {
|
|
89
|
-
switch (_response.error.statusCode) {
|
|
90
|
-
case 422:
|
|
91
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
-
default:
|
|
93
|
-
throw new errors.ChrtError({
|
|
94
|
-
statusCode: _response.error.statusCode,
|
|
95
|
-
body: _response.error.body,
|
|
96
|
-
rawResponse: _response.rawResponse,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
switch (_response.error.reason) {
|
|
101
|
-
case "non-json":
|
|
102
|
-
throw new errors.ChrtError({
|
|
103
|
-
statusCode: _response.error.statusCode,
|
|
104
|
-
body: _response.error.rawBody,
|
|
105
|
-
rawResponse: _response.rawResponse,
|
|
106
|
-
});
|
|
107
|
-
case "timeout":
|
|
108
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/drafts/cargo/delete/v1/{cargo_id}.");
|
|
109
|
-
case "unknown":
|
|
110
|
-
throw new errors.ChrtError({
|
|
111
|
-
message: _response.error.errorMessage,
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
_getAuthorizationHeader() {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
120
|
-
if (bearer != null) {
|
|
121
|
-
return `Bearer ${bearer}`;
|
|
122
|
-
}
|
|
123
|
-
return undefined;
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.Cargo = Cargo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client/index.js";
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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);
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.taskGroup = exports.cargo = void 0;
|
|
37
|
-
exports.cargo = __importStar(require("./cargo/index.js"));
|
|
38
|
-
exports.taskGroup = __importStar(require("./taskGroup/index.js"));
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../../../../../../../environments.js";
|
|
5
|
-
import * as core from "../../../../../../../../../../core/index.js";
|
|
6
|
-
export declare namespace TaskGroup {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
/** Additional headers to include in requests. */
|
|
13
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
14
|
-
fetcher?: core.FetchFunction;
|
|
15
|
-
}
|
|
16
|
-
interface RequestOptions {
|
|
17
|
-
/** The maximum time to wait for a response in seconds. */
|
|
18
|
-
timeoutInSeconds?: number;
|
|
19
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
-
maxRetries?: number;
|
|
21
|
-
/** A hook to abort the request. */
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
/** Additional query string parameters to include in the request. */
|
|
24
|
-
queryParams?: Record<string, unknown>;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export declare class TaskGroup {
|
|
30
|
-
protected readonly _options: TaskGroup.Options;
|
|
31
|
-
constructor(_options?: TaskGroup.Options);
|
|
32
|
-
/**
|
|
33
|
-
* Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
|
|
34
|
-
*
|
|
35
|
-
* @param {string} taskGroupId
|
|
36
|
-
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
-
*
|
|
38
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* await client.shipping.orders.drafts.taskGroup.deleteV1("task_group_id")
|
|
42
|
-
*/
|
|
43
|
-
deleteV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
44
|
-
private __deleteV1;
|
|
45
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
46
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.TaskGroup = void 0;
|
|
49
|
-
const environments = __importStar(require("../../../../../../../../../../environments.js"));
|
|
50
|
-
const core = __importStar(require("../../../../../../../../../../core/index.js"));
|
|
51
|
-
const Chrt = __importStar(require("../../../../../../../../../index.js"));
|
|
52
|
-
const headers_js_1 = require("../../../../../../../../../../core/headers.js");
|
|
53
|
-
const errors = __importStar(require("../../../../../../../../../../errors/index.js"));
|
|
54
|
-
class TaskGroup {
|
|
55
|
-
constructor(_options = {}) {
|
|
56
|
-
this._options = _options;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
|
|
60
|
-
*
|
|
61
|
-
* @param {string} taskGroupId
|
|
62
|
-
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.shipping.orders.drafts.taskGroup.deleteV1("task_group_id")
|
|
68
|
-
*/
|
|
69
|
-
deleteV1(taskGroupId, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteV1(taskGroupId, requestOptions));
|
|
71
|
-
}
|
|
72
|
-
__deleteV1(taskGroupId, requestOptions) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
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, `shipping/orders/drafts/task_group/delete/v1/${encodeURIComponent(taskGroupId)}`),
|
|
78
|
-
method: "DELETE",
|
|
79
|
-
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
-
});
|
|
85
|
-
if (_response.ok) {
|
|
86
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
-
}
|
|
88
|
-
if (_response.error.reason === "status-code") {
|
|
89
|
-
switch (_response.error.statusCode) {
|
|
90
|
-
case 422:
|
|
91
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
-
default:
|
|
93
|
-
throw new errors.ChrtError({
|
|
94
|
-
statusCode: _response.error.statusCode,
|
|
95
|
-
body: _response.error.body,
|
|
96
|
-
rawResponse: _response.rawResponse,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
switch (_response.error.reason) {
|
|
101
|
-
case "non-json":
|
|
102
|
-
throw new errors.ChrtError({
|
|
103
|
-
statusCode: _response.error.statusCode,
|
|
104
|
-
body: _response.error.rawBody,
|
|
105
|
-
rawResponse: _response.rawResponse,
|
|
106
|
-
});
|
|
107
|
-
case "timeout":
|
|
108
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/drafts/task_group/delete/v1/{task_group_id}.");
|
|
109
|
-
case "unknown":
|
|
110
|
-
throw new errors.ChrtError({
|
|
111
|
-
message: _response.error.errorMessage,
|
|
112
|
-
rawResponse: _response.rawResponse,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
_getAuthorizationHeader() {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
120
|
-
if (bearer != null) {
|
|
121
|
-
return `Bearer ${bearer}`;
|
|
122
|
-
}
|
|
123
|
-
return undefined;
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.TaskGroup = TaskGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|