@chrt-inc/typescript-sdk 1.304.0 → 1.306.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/README.md +585 -0
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/drivers/client/Client.js +10 -10
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +5 -5
- package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/orderDrafts/client/Client.js +6 -6
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.js +4 -4
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.js +3 -3
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +16 -2
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +65 -2
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.d.ts +13 -0
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orders/client/Client.js +1 -1
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +2 -2
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +28 -5
- package/dist/cjs/api/resources/orgs/client/Client.js +122 -9
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +1 -5
- package/dist/cjs/api/resources/orgs/client/requests/SetOrgTypeReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +9 -9
- package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.js +1 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +47 -19
- package/dist/cjs/api/resources/taskGroups/client/Client.js +157 -31
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +12 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +12 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +12 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +11 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.js +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/users/client/Client.js +5 -5
- package/dist/cjs/api/types/ClerkOrgData.d.ts +2 -1
- package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +7 -0
- package/dist/cjs/api/types/CreateOrgPublicDataRes.js +5 -0
- package/dist/cjs/api/types/OrderDraftExpandedRes.d.ts +1 -0
- package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -1
- package/dist/cjs/api/types/OrgRoleEnum.d.ts +28 -0
- package/dist/cjs/api/types/OrgRoleEnum.js +12 -0
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/UserPublicData1.d.ts +1 -2
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- 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/drivers/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/drivers/client/Client.mjs +10 -10
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/orderDrafts/client/Client.mjs +6 -6
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.mjs +4 -4
- package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.mjs +3 -3
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +16 -2
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +65 -2
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.d.mts +13 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orders/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/client/Client.d.mts +28 -5
- package/dist/esm/api/resources/orgs/client/Client.mjs +122 -9
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +1 -5
- package/dist/esm/api/resources/orgs/client/requests/SetOrgTypeReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +9 -9
- package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +47 -19
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +157 -31
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +12 -0
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +12 -0
- package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +12 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +11 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.mjs +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/users/client/Client.mjs +5 -5
- package/dist/esm/api/types/ClerkOrgData.d.mts +2 -1
- package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +7 -0
- package/dist/esm/api/types/CreateOrgPublicDataRes.mjs +4 -0
- package/dist/esm/api/types/OrderDraftExpandedRes.d.mts +1 -0
- package/dist/esm/api/types/OrgPublicData1.d.mts +1 -1
- package/dist/esm/api/types/OrgRoleEnum.d.mts +28 -0
- package/dist/esm/api/types/OrgRoleEnum.mjs +9 -0
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/UserPublicData1.d.mts +1 -2
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +420 -82
- package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +0 -14
- package/dist/esm/api/resources/taskGroups/client/requests/SetTaskGroupPauseReq.d.mts +0 -14
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +0 -14
- /package/dist/cjs/api/resources/{taskGroups/client/requests/SetTaskGroupPauseReq.js → orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.js} +0 -0
- /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupReq.js → orgs/client/requests/SetOrgTypeReq.js} +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/SetTaskGroupPauseReq.mjs → orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.mjs} +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupReq.mjs → orgs/client/requests/SetOrgTypeReq.mjs} +0 -0
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface OrgPublicData1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
+
org_type: Chrt.OrgTypeEnum;
|
|
7
8
|
/** Must be a string starting with `org_` */
|
|
8
9
|
org_id: string;
|
|
9
10
|
company_name?: string | null;
|
|
10
11
|
handle?: string | null;
|
|
11
|
-
org_type: Chrt.OrgTypeEnum;
|
|
12
12
|
_id: string;
|
|
13
13
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Organization roles used by Clerk in `jwt.o.rol` field
|
|
6
|
+
*
|
|
7
|
+
* Hierarchy (highest to lowest):
|
|
8
|
+
* owner > administrator > operator > driver
|
|
9
|
+
*
|
|
10
|
+
* Role availability by org type:
|
|
11
|
+
* {owner, administrator, operator} → COURIER | SHIPPER | FORWARDER
|
|
12
|
+
* {driver} → COURIER only
|
|
13
|
+
*
|
|
14
|
+
* Note: Hierarchical enforcement depends on utils_oort_authz helper functions.
|
|
15
|
+
*
|
|
16
|
+
* Clerk dashboard with roles settings:
|
|
17
|
+
* - prod: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDmMgzRGFXd6Ml6N8eV8pOXeyI/organizations-settings/roles
|
|
18
|
+
* - dev: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDeFZFEZ3nIC9VQt3zYfvzL14Z/organizations-settings/roles
|
|
19
|
+
*
|
|
20
|
+
* Clerk includes the "org:" prefix automatically, so we use it in the enum.
|
|
21
|
+
*/
|
|
22
|
+
export type OrgRoleEnum = "org:owner" | "org:administrator" | "org:operator" | "org:driver";
|
|
23
|
+
export declare const OrgRoleEnum: {
|
|
24
|
+
readonly OrgOwner: "org:owner";
|
|
25
|
+
readonly OrgAdministrator: "org:administrator";
|
|
26
|
+
readonly OrgOperator: "org:operator";
|
|
27
|
+
readonly OrgDriver: "org:driver";
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.OrgRoleEnum = void 0;
|
|
7
|
+
exports.OrgRoleEnum = {
|
|
8
|
+
OrgOwner: "org:owner",
|
|
9
|
+
OrgAdministrator: "org:administrator",
|
|
10
|
+
OrgOperator: "org:operator",
|
|
11
|
+
OrgDriver: "org:driver",
|
|
12
|
+
};
|
|
@@ -6,6 +6,7 @@ export interface TaskClientUpdate1 {
|
|
|
6
6
|
location?: Chrt.LocationFeature | null;
|
|
7
7
|
action?: TaskClientUpdate1.Action | null;
|
|
8
8
|
time_windows?: Chrt.TimeWindow1[] | null;
|
|
9
|
+
order_placer_comments?: string | null;
|
|
9
10
|
shipper_contact_info_ids?: string[] | null;
|
|
10
11
|
flight_number?: string | null;
|
|
11
12
|
}
|
|
@@ -21,6 +21,7 @@ export * from "./CreateCheckoutSessionRes.js";
|
|
|
21
21
|
export * from "./CreateConnectAccountLinkRes.js";
|
|
22
22
|
export * from "./CreateConnectAccountRes.js";
|
|
23
23
|
export * from "./CreateConnectionReq.js";
|
|
24
|
+
export * from "./CreateOrgPublicDataRes.js";
|
|
24
25
|
export * from "./CreateShipperPayCourierPaymentReq.js";
|
|
25
26
|
export * from "./CreateShipperPayCourierStatementReq.js";
|
|
26
27
|
export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
@@ -69,6 +70,7 @@ export * from "./OrgMemberDetails.js";
|
|
|
69
70
|
export * from "./OrgMembersAndDrivers.js";
|
|
70
71
|
export * from "./OrgProfileRes1.js";
|
|
71
72
|
export * from "./OrgPublicData1.js";
|
|
73
|
+
export * from "./OrgRoleEnum.js";
|
|
72
74
|
export * from "./OrgTypeEnum.js";
|
|
73
75
|
export * from "./OutlierLabellerEnum.js";
|
|
74
76
|
export * from "./PaymentPreviewResponse.js";
|
|
@@ -37,6 +37,7 @@ __exportStar(require("./CreateCheckoutSessionRes.js"), exports);
|
|
|
37
37
|
__exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
|
|
38
38
|
__exportStar(require("./CreateConnectAccountRes.js"), exports);
|
|
39
39
|
__exportStar(require("./CreateConnectionReq.js"), exports);
|
|
40
|
+
__exportStar(require("./CreateOrgPublicDataRes.js"), exports);
|
|
40
41
|
__exportStar(require("./CreateShipperPayCourierPaymentReq.js"), exports);
|
|
41
42
|
__exportStar(require("./CreateShipperPayCourierStatementReq.js"), exports);
|
|
42
43
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
@@ -85,6 +86,7 @@ __exportStar(require("./OrgMemberDetails.js"), exports);
|
|
|
85
86
|
__exportStar(require("./OrgMembersAndDrivers.js"), exports);
|
|
86
87
|
__exportStar(require("./OrgProfileRes1.js"), exports);
|
|
87
88
|
__exportStar(require("./OrgPublicData1.js"), exports);
|
|
89
|
+
__exportStar(require("./OrgRoleEnum.js"), exports);
|
|
88
90
|
__exportStar(require("./OrgTypeEnum.js"), exports);
|
|
89
91
|
__exportStar(require("./OutlierLabellerEnum.js"), exports);
|
|
90
92
|
__exportStar(require("./PaymentPreviewResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.306.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -35,8 +35,8 @@ export class ChrtClient {
|
|
|
35
35
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
36
|
"X-Fern-Language": "JavaScript",
|
|
37
37
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
38
|
+
"X-Fern-SDK-Version": "1.306.0",
|
|
39
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.306.0",
|
|
40
40
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
41
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
42
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,7 +31,7 @@ export declare class Drivers {
|
|
|
31
31
|
protected readonly _options: Drivers.Options;
|
|
32
32
|
constructor(_options?: Drivers.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all organization members paired with their driver information if they are drivers.
|
|
34
|
+
* Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
|
|
35
35
|
*
|
|
36
36
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Drivers {
|
|
|
41
41
|
listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
|
|
42
42
|
private __listOrgMembersAndDriversV1;
|
|
43
43
|
/**
|
|
44
|
-
* Lists all drivers belonging to the authenticated organization.
|
|
44
|
+
* Lists all drivers belonging to the authenticated organization. | () -> (list[Driver1])
|
|
45
45
|
*
|
|
46
46
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
@@ -51,7 +51,7 @@ export declare class Drivers {
|
|
|
51
51
|
listV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
|
|
52
52
|
private __listV1;
|
|
53
53
|
/**
|
|
54
|
-
* Creates a new driver profile for an organization member with optional vehicle type assignments.
|
|
54
|
+
* Creates a new driver profile for an organization member with optional vehicle type assignments. | (DriverCreateReq) -> (PydanticObjectId)
|
|
55
55
|
*
|
|
56
56
|
* @param {Chrt.DriverCreateReq} request
|
|
57
57
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,7 +69,7 @@ export declare class Drivers {
|
|
|
69
69
|
createV1(request: Chrt.DriverCreateReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
|
|
70
70
|
private __createV1;
|
|
71
71
|
/**
|
|
72
|
-
* Retrieves driver information for the authenticated user within their organization.
|
|
72
|
+
* Retrieves driver information for the authenticated user within their organization. | () -> (Driver1)
|
|
73
73
|
*
|
|
74
74
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
75
|
*
|
|
@@ -79,7 +79,7 @@ export declare class Drivers {
|
|
|
79
79
|
getV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
80
80
|
private __getV1;
|
|
81
81
|
/**
|
|
82
|
-
* Retrieves detailed driver information by driver ID within the organization.
|
|
82
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
83
83
|
*
|
|
84
84
|
* @param {string} driverId
|
|
85
85
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,7 +92,7 @@ export declare class Drivers {
|
|
|
92
92
|
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
93
93
|
private __getByDriverIdV1;
|
|
94
94
|
/**
|
|
95
|
-
* Deletes a driver from the organization and removes them from associated rate sheets.
|
|
95
|
+
* Deletes a driver from the organization and removes them from associated rate sheets. | () -> (bool)
|
|
96
96
|
*
|
|
97
97
|
* @param {string} driverId
|
|
98
98
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -105,7 +105,7 @@ export declare class Drivers {
|
|
|
105
105
|
deleteV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
106
106
|
private __deleteV1;
|
|
107
107
|
/**
|
|
108
|
-
* Sets the activation status of a driver (active/inactive) within the organization.
|
|
108
|
+
* Sets the activation status of a driver (active/inactive) within the organization. | (SetDriverActivationReq) -> (bool)
|
|
109
109
|
*
|
|
110
110
|
* @param {Chrt.SetDriverActivationReq} request
|
|
111
111
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -121,7 +121,7 @@ export declare class Drivers {
|
|
|
121
121
|
setActivationV1(request: Chrt.SetDriverActivationReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
122
122
|
private __setActivationV1;
|
|
123
123
|
/**
|
|
124
|
-
* Updates the driver's last known location and timestamp for tracking purposes.
|
|
124
|
+
* Updates the driver's last known location and timestamp for tracking purposes. | (DriverLastSeenReq) -> (bool)
|
|
125
125
|
*
|
|
126
126
|
* @param {Chrt.DriverLastSeenReq} request
|
|
127
127
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -145,7 +145,7 @@ export declare class Drivers {
|
|
|
145
145
|
lastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
146
146
|
private __lastSeenV1;
|
|
147
147
|
/**
|
|
148
|
-
* Clears the driver's last known location and timestamp.
|
|
148
|
+
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
149
149
|
*
|
|
150
150
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
151
|
*
|
|
@@ -155,7 +155,7 @@ export declare class Drivers {
|
|
|
155
155
|
lastSeenClearV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
156
156
|
private __lastSeenClearV1;
|
|
157
157
|
/**
|
|
158
|
-
* Updates driver contact details and vehicle type assignments within the organization.
|
|
158
|
+
* Updates driver contact details and vehicle type assignments within the organization. | (UpdateDriverDetailsReq) -> (bool)
|
|
159
159
|
*
|
|
160
160
|
* @param {Chrt.UpdateDriverDetailsReq} request
|
|
161
161
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Drivers {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists all organization members paired with their driver information if they are drivers.
|
|
23
|
+
* Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
|
|
24
24
|
*
|
|
25
25
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -71,7 +71,7 @@ export class Drivers {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Lists all drivers belonging to the authenticated organization.
|
|
74
|
+
* Lists all drivers belonging to the authenticated organization. | () -> (list[Driver1])
|
|
75
75
|
*
|
|
76
76
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
@@ -122,7 +122,7 @@ export class Drivers {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Creates a new driver profile for an organization member with optional vehicle type assignments.
|
|
125
|
+
* Creates a new driver profile for an organization member with optional vehicle type assignments. | (DriverCreateReq) -> (PydanticObjectId)
|
|
126
126
|
*
|
|
127
127
|
* @param {Chrt.DriverCreateReq} request
|
|
128
128
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -189,7 +189,7 @@ export class Drivers {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* Retrieves driver information for the authenticated user within their organization.
|
|
192
|
+
* Retrieves driver information for the authenticated user within their organization. | () -> (Driver1)
|
|
193
193
|
*
|
|
194
194
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
195
|
*
|
|
@@ -240,7 +240,7 @@ export class Drivers {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
|
-
* Retrieves detailed driver information by driver ID within the organization.
|
|
243
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
244
244
|
*
|
|
245
245
|
* @param {string} driverId
|
|
246
246
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -299,7 +299,7 @@ export class Drivers {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
* Deletes a driver from the organization and removes them from associated rate sheets.
|
|
302
|
+
* Deletes a driver from the organization and removes them from associated rate sheets. | () -> (bool)
|
|
303
303
|
*
|
|
304
304
|
* @param {string} driverId
|
|
305
305
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -358,7 +358,7 @@ export class Drivers {
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* Sets the activation status of a driver (active/inactive) within the organization.
|
|
361
|
+
* Sets the activation status of a driver (active/inactive) within the organization. | (SetDriverActivationReq) -> (bool)
|
|
362
362
|
*
|
|
363
363
|
* @param {Chrt.SetDriverActivationReq} request
|
|
364
364
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -423,7 +423,7 @@ export class Drivers {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
|
-
* Updates the driver's last known location and timestamp for tracking purposes.
|
|
426
|
+
* Updates the driver's last known location and timestamp for tracking purposes. | (DriverLastSeenReq) -> (bool)
|
|
427
427
|
*
|
|
428
428
|
* @param {Chrt.DriverLastSeenReq} request
|
|
429
429
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -496,7 +496,7 @@ export class Drivers {
|
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
|
-
* Clears the driver's last known location and timestamp.
|
|
499
|
+
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
500
500
|
*
|
|
501
501
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
502
502
|
*
|
|
@@ -547,7 +547,7 @@ export class Drivers {
|
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
550
|
-
* Updates driver contact details and vehicle type assignments within the organization.
|
|
550
|
+
* Updates driver contact details and vehicle type assignments within the organization. | (UpdateDriverDetailsReq) -> (bool)
|
|
551
551
|
*
|
|
552
552
|
* @param {Chrt.UpdateDriverDetailsReq} request
|
|
553
553
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class OffChrtShipperOrg {
|
|
|
31
31
|
protected readonly _options: OffChrtShipperOrg.Options;
|
|
32
32
|
constructor(_options?: OffChrtShipperOrg.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Creates an off-platform shipper organization record.
|
|
34
|
+
* Creates an off-platform shipper organization record. | (OffChrtShipperOrgClientCreate1) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.OffChrtShipperOrgClientCreate1} request
|
|
37
37
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,7 +47,7 @@ export declare class OffChrtShipperOrg {
|
|
|
47
47
|
createV1(request: Chrt.OffChrtShipperOrgClientCreate1, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __createV1;
|
|
49
49
|
/**
|
|
50
|
-
* Lists all off-platform shipper organizations created by the authenticated organization.
|
|
50
|
+
* Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
|
|
51
51
|
*
|
|
52
52
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
@@ -57,7 +57,7 @@ export declare class OffChrtShipperOrg {
|
|
|
57
57
|
listV1(requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrg1[]>;
|
|
58
58
|
private __listV1;
|
|
59
59
|
/**
|
|
60
|
-
* Retrieves specific off-platform shipper organization by ID.
|
|
60
|
+
* Retrieves specific off-platform shipper organization by ID. | () -> (OffChrtShipperOrg1)
|
|
61
61
|
*
|
|
62
62
|
* @param {string} id
|
|
63
63
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -70,7 +70,7 @@ export declare class OffChrtShipperOrg {
|
|
|
70
70
|
getByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrg1>;
|
|
71
71
|
private __getByIdV1;
|
|
72
72
|
/**
|
|
73
|
-
* Deletes off-platform shipper organization owned by the authenticated organization.
|
|
73
|
+
* Deletes off-platform shipper organization owned by the authenticated organization. | () -> (bool)
|
|
74
74
|
*
|
|
75
75
|
* @param {string} id
|
|
76
76
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,7 +83,7 @@ export declare class OffChrtShipperOrg {
|
|
|
83
83
|
deleteByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
84
|
private __deleteByIdV1;
|
|
85
85
|
/**
|
|
86
|
-
* Updates existing off-platform shipper organization owned by the authenticated organization.
|
|
86
|
+
* Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
|
|
87
87
|
*
|
|
88
88
|
* @param {string} id
|
|
89
89
|
* @param {Chrt.OffChrtShipperOrgClientUpdate1} request
|
|
@@ -20,7 +20,7 @@ export class OffChrtShipperOrg {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Creates an off-platform shipper organization record.
|
|
23
|
+
* Creates an off-platform shipper organization record. | (OffChrtShipperOrgClientCreate1) -> (PydanticObjectId)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.OffChrtShipperOrgClientCreate1} request
|
|
26
26
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -85,7 +85,7 @@ export class OffChrtShipperOrg {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Lists all off-platform shipper organizations created by the authenticated organization.
|
|
88
|
+
* Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
|
|
89
89
|
*
|
|
90
90
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
91
|
*
|
|
@@ -136,7 +136,7 @@ export class OffChrtShipperOrg {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
* Retrieves specific off-platform shipper organization by ID.
|
|
139
|
+
* Retrieves specific off-platform shipper organization by ID. | () -> (OffChrtShipperOrg1)
|
|
140
140
|
*
|
|
141
141
|
* @param {string} id
|
|
142
142
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -195,7 +195,7 @@ export class OffChrtShipperOrg {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
|
-
* Deletes off-platform shipper organization owned by the authenticated organization.
|
|
198
|
+
* Deletes off-platform shipper organization owned by the authenticated organization. | () -> (bool)
|
|
199
199
|
*
|
|
200
200
|
* @param {string} id
|
|
201
201
|
* @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -254,7 +254,7 @@ export class OffChrtShipperOrg {
|
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
|
-
* Updates existing off-platform shipper organization owned by the authenticated organization.
|
|
257
|
+
* Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
|
|
258
258
|
*
|
|
259
259
|
* @param {string} id
|
|
260
260
|
* @param {Chrt.OffChrtShipperOrgClientUpdate1} request
|
|
@@ -43,7 +43,7 @@ export declare class OrderDrafts {
|
|
|
43
43
|
get taskArtifact(): TaskArtifact;
|
|
44
44
|
get cargo(): Cargo;
|
|
45
45
|
/**
|
|
46
|
-
* Creates a new draft order with org assignments based on caller's organization type.
|
|
46
|
+
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
47
47
|
*
|
|
48
48
|
* @param {Chrt.OrdersNewDraftReq} request
|
|
49
49
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ export declare class OrderDrafts {
|
|
|
56
56
|
newV1(request?: Chrt.OrdersNewDraftReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersNewDraftRes>;
|
|
57
57
|
private __newV1;
|
|
58
58
|
/**
|
|
59
|
-
* Updates forwarder and/or shipper org assignments for a draft order
|
|
59
|
+
* Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.OrdersDraftUpdateReq} request
|
|
62
62
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -71,7 +71,7 @@ export declare class OrderDrafts {
|
|
|
71
71
|
updateV1(request: Chrt.OrdersDraftUpdateReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
|
|
72
72
|
private __updateV1;
|
|
73
73
|
/**
|
|
74
|
-
* Deletes a draft order and all associated entities
|
|
74
|
+
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
75
75
|
*
|
|
76
76
|
* @param {string} orderId
|
|
77
77
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -84,7 +84,7 @@ export declare class OrderDrafts {
|
|
|
84
84
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
85
85
|
private __deleteV1;
|
|
86
86
|
/**
|
|
87
|
-
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it.
|
|
87
|
+
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
|
|
88
88
|
*
|
|
89
89
|
* @param {string} orderIdOrShortId
|
|
90
90
|
* @param {Chrt.OrderDraftExpandedReq} request
|
|
@@ -98,7 +98,7 @@ export declare class OrderDrafts {
|
|
|
98
98
|
expandedV1(orderIdOrShortId: string, request?: Chrt.OrderDraftExpandedReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedRes>;
|
|
99
99
|
private __expandedV1;
|
|
100
100
|
/**
|
|
101
|
-
* Lists all draft orders created by the authenticated user with optional expanded related data.
|
|
101
|
+
* Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
|
|
102
102
|
*
|
|
103
103
|
* @param {Chrt.OrderDraftExpandedListReq} request
|
|
104
104
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -111,7 +111,7 @@ export declare class OrderDrafts {
|
|
|
111
111
|
expandedListV1(request?: Chrt.OrderDraftExpandedListReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
|
|
112
112
|
private __expandedListV1;
|
|
113
113
|
/**
|
|
114
|
-
* Checks whether the draft order satisfies all requirements to move into staging.
|
|
114
|
+
* Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
|
|
115
115
|
*
|
|
116
116
|
* @param {string} orderId
|
|
117
117
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -40,7 +40,7 @@ export class OrderDrafts {
|
|
|
40
40
|
return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Cargo(this._options)));
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* Creates a new draft order with org assignments based on caller's organization type.
|
|
43
|
+
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
44
44
|
*
|
|
45
45
|
* @param {Chrt.OrdersNewDraftReq} request
|
|
46
46
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -102,7 +102,7 @@ export class OrderDrafts {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
* Updates forwarder and/or shipper org assignments for a draft order
|
|
105
|
+
* Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
106
106
|
*
|
|
107
107
|
* @param {Chrt.OrdersDraftUpdateReq} request
|
|
108
108
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -166,7 +166,7 @@ export class OrderDrafts {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* Deletes a draft order and all associated entities
|
|
169
|
+
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
170
170
|
*
|
|
171
171
|
* @param {string} orderId
|
|
172
172
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -225,7 +225,7 @@ export class OrderDrafts {
|
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
|
-
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it.
|
|
228
|
+
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
|
|
229
229
|
*
|
|
230
230
|
* @param {string} orderIdOrShortId
|
|
231
231
|
* @param {Chrt.OrderDraftExpandedReq} request
|
|
@@ -288,7 +288,7 @@ export class OrderDrafts {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
|
-
* Lists all draft orders created by the authenticated user with optional expanded related data.
|
|
291
|
+
* Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
|
|
292
292
|
*
|
|
293
293
|
* @param {Chrt.OrderDraftExpandedListReq} request
|
|
294
294
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -350,7 +350,7 @@ export class OrderDrafts {
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
|
-
* Checks whether the draft order satisfies all requirements to move into staging.
|
|
353
|
+
* Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
|
|
354
354
|
*
|
|
355
355
|
* @param {string} orderId
|
|
356
356
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class Cargo {
|
|
|
31
31
|
protected readonly _options: Cargo.Options;
|
|
32
32
|
constructor(_options?: Cargo.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller.
|
|
34
|
+
* Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddCargoReq) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.orderDrafts.OrderDraftAddCargoReq} request
|
|
37
37
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -50,7 +50,7 @@ export declare class Cargo {
|
|
|
50
50
|
addV1(request: Chrt.orderDrafts.OrderDraftAddCargoReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
|
|
51
51
|
private __addV1;
|
|
52
52
|
/**
|
|
53
|
-
* Associates existing cargo with a task in a draft order.
|
|
53
|
+
* Associates existing cargo with a task in a draft order. | (OrderDraftAssociateCargoWithTaskReq) -> (bool)
|
|
54
54
|
*
|
|
55
55
|
* @param {Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq} request
|
|
56
56
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,7 +67,7 @@ export declare class Cargo {
|
|
|
67
67
|
associateWithTaskV1(request: Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
69
|
/**
|
|
70
|
-
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller.
|
|
70
|
+
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
|
|
71
71
|
*
|
|
72
72
|
* @param {Chrt.orderDrafts.OrderDraftUpdateCargoReq} request
|
|
73
73
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,7 +83,7 @@ export declare class Cargo {
|
|
|
83
83
|
updateV1(request: Chrt.orderDrafts.OrderDraftUpdateCargoReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
|
|
84
84
|
private __updateV1;
|
|
85
85
|
/**
|
|
86
|
-
* Deletes a cargo item from a draft order and removes references from associated tasks
|
|
86
|
+
* Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
|
|
87
87
|
*
|
|
88
88
|
* @param {string} cargoId
|
|
89
89
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Cargo {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller.
|
|
23
|
+
* Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddCargoReq) -> (PydanticObjectId)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.orderDrafts.OrderDraftAddCargoReq} request
|
|
26
26
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,7 +88,7 @@ export class Cargo {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Associates existing cargo with a task in a draft order.
|
|
91
|
+
* Associates existing cargo with a task in a draft order. | (OrderDraftAssociateCargoWithTaskReq) -> (bool)
|
|
92
92
|
*
|
|
93
93
|
* @param {Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq} request
|
|
94
94
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -154,7 +154,7 @@ export class Cargo {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller.
|
|
157
|
+
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
|
|
158
158
|
*
|
|
159
159
|
* @param {Chrt.orderDrafts.OrderDraftUpdateCargoReq} request
|
|
160
160
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -219,7 +219,7 @@ export class Cargo {
|
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
* Deletes a cargo item from a draft order and removes references from associated tasks
|
|
222
|
+
* Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
|
|
223
223
|
*
|
|
224
224
|
* @param {string} cargoId
|
|
225
225
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class Task {
|
|
|
31
31
|
protected readonly _options: Task.Options;
|
|
32
32
|
constructor(_options?: Task.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type.
|
|
34
|
+
* Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type. | (OrderDraftAddTaskReqV1) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.orderDrafts.OrderDraftAddTaskReqV1} request
|
|
37
37
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -49,7 +49,7 @@ export declare class Task {
|
|
|
49
49
|
addV1(request: Chrt.orderDrafts.OrderDraftAddTaskReqV1, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
|
|
50
50
|
private __addV1;
|
|
51
51
|
/**
|
|
52
|
-
* Updates a task in an existing draft order
|
|
52
|
+
* Updates a task in an existing draft order. | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
53
53
|
*
|
|
54
54
|
* @param {Chrt.orderDrafts.OrderDraftUpdateTaskReq} request
|
|
55
55
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,7 +65,7 @@ export declare class Task {
|
|
|
65
65
|
updateV1(request: Chrt.orderDrafts.OrderDraftUpdateTaskReq, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
|
|
66
66
|
private __updateV1;
|
|
67
67
|
/**
|
|
68
|
-
* Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group.
|
|
68
|
+
* Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group. | () -> (bool)
|
|
69
69
|
*
|
|
70
70
|
* @param {string} taskId
|
|
71
71
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Task {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type.
|
|
23
|
+
* Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type. | (OrderDraftAddTaskReqV1) -> (PydanticObjectId)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.orderDrafts.OrderDraftAddTaskReqV1} request
|
|
26
26
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -87,7 +87,7 @@ export class Task {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Updates a task in an existing draft order
|
|
90
|
+
* Updates a task in an existing draft order. | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.orderDrafts.OrderDraftUpdateTaskReq} request
|
|
93
93
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -152,7 +152,7 @@ export class Task {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group.
|
|
155
|
+
* Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group. | () -> (bool)
|
|
156
156
|
*
|
|
157
157
|
* @param {string} taskId
|
|
158
158
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|