@chrt-inc/typescript-sdk 1.319.0 → 1.320.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.d.ts +6 -3
- package/dist/cjs/Client.js +12 -7
- package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
- package/dist/cjs/api/resources/cargos/index.d.ts +1 -0
- package/dist/cjs/{exports.js → api/resources/cargos/index.js} +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/connections/client/Client.js +4 -4
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
- package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/dev/client/Client.js +4 -4
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/drivers/client/Client.js +2 -2
- package/dist/cjs/api/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/index.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
- package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +0 -60
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +0 -246
- package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/client/index.js +0 -15
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -31
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +0 -128
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +0 -15
- package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/index.js +0 -4
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +1 -1
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
- package/dist/cjs/core/index.d.ts +0 -2
- package/dist/cjs/core/index.js +1 -3
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +0 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -3
- package/dist/esm/Client.mjs +10 -5
- package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
- package/dist/esm/api/resources/cargos/index.d.mts +1 -0
- package/dist/esm/api/resources/cargos/index.mjs +1 -0
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
- package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
- package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/drivers/client/Client.mjs +2 -2
- package/dist/esm/api/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/index.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
- package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +0 -60
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +0 -213
- package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -31
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +0 -128
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +1 -1
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
- package/dist/esm/core/index.d.mts +0 -2
- package/dist/esm/core/index.mjs +0 -2
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +135 -333
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js +0 -5
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js +0 -5
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +0 -13
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js +0 -5
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.js +0 -2
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/file/exports.d.ts +0 -1
- package/dist/cjs/core/file/exports.js +0 -2
- package/dist/cjs/core/file/file.d.ts +0 -5
- package/dist/cjs/core/file/file.js +0 -203
- package/dist/cjs/core/file/index.d.ts +0 -2
- package/dist/cjs/core/file/index.js +0 -18
- package/dist/cjs/core/file/types.d.ts +0 -66
- package/dist/cjs/core/file/types.js +0 -2
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +0 -16
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +0 -208
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +0 -12
- package/dist/cjs/core/form-data-utils/index.d.ts +0 -2
- package/dist/cjs/core/form-data-utils/index.js +0 -20
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs +0 -4
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs +0 -4
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +0 -13
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs +0 -4
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/file/exports.d.mts +0 -1
- package/dist/esm/core/file/file.d.mts +0 -5
- package/dist/esm/core/file/file.mjs +0 -167
- package/dist/esm/core/file/index.d.mts +0 -2
- package/dist/esm/core/file/index.mjs +0 -2
- package/dist/esm/core/file/types.d.mts +0 -66
- package/dist/esm/core/file/types.mjs +0 -1
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +0 -16
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +0 -170
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +0 -1
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +0 -9
- package/dist/esm/core/form-data-utils/index.d.mts +0 -2
- package/dist/esm/core/form-data-utils/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- /package/dist/{esm/api/resources/taskArtifacts/client/requests/index.mjs → cjs/api/resources/cargos/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/client/requests → cargos/client}/index.js +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/index.mjs → cargos/client/index.d.mts} +0 -0
- /package/dist/esm/{core/file/exports.mjs → api/resources/cargos/client/index.mjs} +0 -0
|
@@ -8,7 +8,7 @@ exports.ChrtGroundCourierTaskActionEnum1 = {
|
|
|
8
8
|
ChrtGroundCourierPickup: "chrt_ground_courier__pickup",
|
|
9
9
|
ChrtGroundCourierRecoverFromAirline: "chrt_ground_courier__recover_from_airline",
|
|
10
10
|
ChrtGroundCourierDeliver: "chrt_ground_courier__deliver",
|
|
11
|
-
|
|
11
|
+
ChrtGroundCourierTenderToAirline: "chrt_ground_courier__tender_to_airline",
|
|
12
12
|
ChrtGroundCourierConsolidate: "chrt_ground_courier__consolidate",
|
|
13
13
|
ChrtGroundCourierHold: "chrt_ground_courier__hold",
|
|
14
14
|
ChrtGroundCourierOther: "chrt_ground_courier__other",
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.url = void 0;
|
|
40
40
|
__exportStar(require("./fetcher/index.js"), exports);
|
|
41
41
|
__exportStar(require("./runtime/index.js"), exports);
|
|
42
42
|
exports.url = __importStar(require("./url/index.js"));
|
|
43
43
|
__exportStar(require("./auth/index.js"), exports);
|
|
44
44
|
__exportStar(require("./base64.js"), exports);
|
|
45
|
-
__exportStar(require("./form-data-utils/index.js"), exports);
|
|
46
|
-
exports.file = __importStar(require("./file/index.js"));
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -32,9 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.ChrtEnvironment = exports.ChrtClient = exports.ChrtTimeoutError = exports.ChrtError = exports.Chrt = void 0;
|
|
40
37
|
exports.Chrt = __importStar(require("./api/index.js"));
|
|
@@ -45,4 +42,3 @@ var Client_js_1 = require("./Client.js");
|
|
|
45
42
|
Object.defineProperty(exports, "ChrtClient", { enumerable: true, get: function () { return Client_js_1.ChrtClient; } });
|
|
46
43
|
var environments_js_1 = require("./environments.js");
|
|
47
44
|
Object.defineProperty(exports, "ChrtEnvironment", { enumerable: true, get: function () { return environments_js_1.ChrtEnvironment; } });
|
|
48
|
-
__exportStar(require("./exports.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.320.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
|
17
17
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
|
-
import {
|
|
20
|
+
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
21
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
22
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
23
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
@@ -29,6 +29,7 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
29
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
30
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
31
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
32
33
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
33
34
|
export declare namespace ChrtClient {
|
|
34
35
|
interface Options {
|
|
@@ -69,7 +70,7 @@ export declare class ChrtClient {
|
|
|
69
70
|
protected _dev: Dev | undefined;
|
|
70
71
|
protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
|
|
71
72
|
protected _drivers: Drivers | undefined;
|
|
72
|
-
protected
|
|
73
|
+
protected _cargos: Cargos | undefined;
|
|
73
74
|
protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
|
|
74
75
|
protected _orders: Orders | undefined;
|
|
75
76
|
protected _orderDrafts: OrderDrafts | undefined;
|
|
@@ -81,6 +82,7 @@ export declare class ChrtClient {
|
|
|
81
82
|
protected _utils: Utils | undefined;
|
|
82
83
|
protected _notifications: Notifications | undefined;
|
|
83
84
|
protected _orgInfoForConnections: OrgInfoForConnections | undefined;
|
|
85
|
+
protected _taskArtifacts: TaskArtifacts | undefined;
|
|
84
86
|
protected _tracking: Tracking | undefined;
|
|
85
87
|
constructor(_options?: ChrtClient.Options);
|
|
86
88
|
get payments(): Payments;
|
|
@@ -97,7 +99,7 @@ export declare class ChrtClient {
|
|
|
97
99
|
get dev(): Dev;
|
|
98
100
|
get taskArtifactNotifications(): TaskArtifactNotifications;
|
|
99
101
|
get drivers(): Drivers;
|
|
100
|
-
get
|
|
102
|
+
get cargos(): Cargos;
|
|
101
103
|
get offChrtShipperOrg(): OffChrtShipperOrg;
|
|
102
104
|
get orders(): Orders;
|
|
103
105
|
get orderDrafts(): OrderDrafts;
|
|
@@ -109,5 +111,6 @@ export declare class ChrtClient {
|
|
|
109
111
|
get utils(): Utils;
|
|
110
112
|
get notifications(): Notifications;
|
|
111
113
|
get orgInfoForConnections(): OrgInfoForConnections;
|
|
114
|
+
get taskArtifacts(): TaskArtifacts;
|
|
112
115
|
get tracking(): Tracking;
|
|
113
116
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
|
17
17
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
|
-
import {
|
|
20
|
+
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
21
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
22
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
23
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
@@ -29,14 +29,15 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
29
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
30
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
31
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
32
33
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
33
34
|
export class ChrtClient {
|
|
34
35
|
constructor(_options = {}) {
|
|
35
36
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
37
|
"X-Fern-Language": "JavaScript",
|
|
37
38
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
39
|
+
"X-Fern-SDK-Version": "1.320.0",
|
|
40
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.320.0",
|
|
40
41
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
42
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
43
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -97,9 +98,9 @@ export class ChrtClient {
|
|
|
97
98
|
var _a;
|
|
98
99
|
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
|
|
99
100
|
}
|
|
100
|
-
get
|
|
101
|
+
get cargos() {
|
|
101
102
|
var _a;
|
|
102
|
-
return ((_a = this.
|
|
103
|
+
return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Cargos(this._options)));
|
|
103
104
|
}
|
|
104
105
|
get offChrtShipperOrg() {
|
|
105
106
|
var _a;
|
|
@@ -145,6 +146,10 @@ export class ChrtClient {
|
|
|
145
146
|
var _a;
|
|
146
147
|
return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new OrgInfoForConnections(this._options)));
|
|
147
148
|
}
|
|
149
|
+
get taskArtifacts() {
|
|
150
|
+
var _a;
|
|
151
|
+
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
|
|
152
|
+
}
|
|
148
153
|
get tracking() {
|
|
149
154
|
var _a;
|
|
150
155
|
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Tracking(this._options)));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
export declare namespace Cargos {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Cargos {
|
|
31
|
+
protected readonly _options: Cargos.Options;
|
|
32
|
+
constructor(_options?: Cargos.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Updates a cargo's details. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, or EXCEPTION status. | authz_personas=[lig_org_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} cargoId
|
|
37
|
+
* @param {Chrt.CargoClientUpdate1} request
|
|
38
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.cargos.updateV1("cargo_id", {})
|
|
44
|
+
*/
|
|
45
|
+
updateV1(cargoId: string, request: Chrt.CargoClientUpdate1, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<string>;
|
|
46
|
+
private __updateV1;
|
|
47
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class Cargos {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Updates a cargo's details. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, or EXCEPTION status. | authz_personas=[lig_org_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} cargoId
|
|
26
|
+
* @param {Chrt.CargoClientUpdate1} request
|
|
27
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.cargos.updateV1("cargo_id", {})
|
|
33
|
+
*/
|
|
34
|
+
updateV1(cargoId, request, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(cargoId, request, requestOptions));
|
|
36
|
+
}
|
|
37
|
+
__updateV1(cargoId, request, requestOptions) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
var _a, _b, _c, _d;
|
|
40
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
+
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, `oort/cargos/update/v1/${encodeURIComponent(cargoId)}`),
|
|
43
|
+
method: "PATCH",
|
|
44
|
+
headers: _headers,
|
|
45
|
+
contentType: "application/json",
|
|
46
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
47
|
+
requestType: "json",
|
|
48
|
+
body: request,
|
|
49
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
50
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
51
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
52
|
+
});
|
|
53
|
+
if (_response.ok) {
|
|
54
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
55
|
+
}
|
|
56
|
+
if (_response.error.reason === "status-code") {
|
|
57
|
+
switch (_response.error.statusCode) {
|
|
58
|
+
case 422:
|
|
59
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
60
|
+
default:
|
|
61
|
+
throw new errors.ChrtError({
|
|
62
|
+
statusCode: _response.error.statusCode,
|
|
63
|
+
body: _response.error.body,
|
|
64
|
+
rawResponse: _response.rawResponse,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
switch (_response.error.reason) {
|
|
69
|
+
case "non-json":
|
|
70
|
+
throw new errors.ChrtError({
|
|
71
|
+
statusCode: _response.error.statusCode,
|
|
72
|
+
body: _response.error.rawBody,
|
|
73
|
+
rawResponse: _response.rawResponse,
|
|
74
|
+
});
|
|
75
|
+
case "timeout":
|
|
76
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/cargos/update/v1/{cargo_id}.");
|
|
77
|
+
case "unknown":
|
|
78
|
+
throw new errors.ChrtError({
|
|
79
|
+
message: _response.error.errorMessage,
|
|
80
|
+
rawResponse: _response.rawResponse,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
_getAuthorizationHeader() {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
88
|
+
if (bearer != null) {
|
|
89
|
+
return `Bearer ${bearer}`;
|
|
90
|
+
}
|
|
91
|
+
return undefined;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -40,7 +40,7 @@ export declare class Connections {
|
|
|
40
40
|
get connectionToShipper(): ConnectionToShipper;
|
|
41
41
|
get connectionToForwarder(): ConnectionToForwarder;
|
|
42
42
|
/**
|
|
43
|
-
* Lists shipper organizations based on the
|
|
43
|
+
* Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
|
|
44
44
|
*
|
|
45
45
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
@@ -50,7 +50,7 @@ export declare class Connections {
|
|
|
50
50
|
listShippersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperConnectionRes[]>;
|
|
51
51
|
private __listShippersV1;
|
|
52
52
|
/**
|
|
53
|
-
* Lists courier organizations based on the
|
|
53
|
+
* Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
|
|
54
54
|
*
|
|
55
55
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
@@ -60,7 +60,7 @@ export declare class Connections {
|
|
|
60
60
|
listCouriersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierConnectionRes[]>;
|
|
61
61
|
private __listCouriersV1;
|
|
62
62
|
/**
|
|
63
|
-
* Lists forwarder organizations based on the
|
|
63
|
+
* Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
|
|
64
64
|
*
|
|
65
65
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
@@ -70,7 +70,7 @@ export declare class Connections {
|
|
|
70
70
|
listForwardersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderConnectionRes[]>;
|
|
71
71
|
private __listForwardersV1;
|
|
72
72
|
/**
|
|
73
|
-
* Gets connection between
|
|
73
|
+
* Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
|
|
74
74
|
*
|
|
75
75
|
* @param {string} handle
|
|
76
76
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -35,7 +35,7 @@ export class Connections {
|
|
|
35
35
|
return ((_a = this._connectionToForwarder) !== null && _a !== void 0 ? _a : (this._connectionToForwarder = new ConnectionToForwarder(this._options)));
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* Lists shipper organizations based on the
|
|
38
|
+
* Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
|
|
39
39
|
*
|
|
40
40
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
@@ -86,7 +86,7 @@ export class Connections {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Lists courier organizations based on the
|
|
89
|
+
* Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
|
|
90
90
|
*
|
|
91
91
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
92
|
*
|
|
@@ -137,7 +137,7 @@ export class Connections {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
* Lists forwarder organizations based on the
|
|
140
|
+
* Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
|
|
141
141
|
*
|
|
142
142
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
143
|
*
|
|
@@ -188,7 +188,7 @@ export class Connections {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
|
-
* Gets connection between
|
|
191
|
+
* Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
|
|
192
192
|
*
|
|
193
193
|
* @param {string} handle
|
|
194
194
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class CourierPayDriverPayouts {
|
|
|
31
31
|
protected readonly _options: CourierPayDriverPayouts.Options;
|
|
32
32
|
constructor(_options?: CourierPayDriverPayouts.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves a specific courier driver payout by ID for the
|
|
34
|
+
* Retrieves a specific courier driver payout by ID for the caller's organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} id
|
|
37
37
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,7 +44,7 @@ export declare class CourierPayDriverPayouts {
|
|
|
44
44
|
getByIdV1(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverStatement1>;
|
|
45
45
|
private __getByIdV1;
|
|
46
46
|
/**
|
|
47
|
-
* Lists all payouts for a specific driver within the
|
|
47
|
+
* Lists all payouts for a specific driver within the caller's organization.
|
|
48
48
|
*
|
|
49
49
|
* @param {string} driverId
|
|
50
50
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class CourierPayDriverPayouts {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves a specific courier driver payout by ID for the
|
|
23
|
+
* Retrieves a specific courier driver payout by ID for the caller's organization.
|
|
24
24
|
*
|
|
25
25
|
* @param {string} id
|
|
26
26
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -79,7 +79,7 @@ export class CourierPayDriverPayouts {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Lists all payouts for a specific driver within the
|
|
82
|
+
* Lists all payouts for a specific driver within the caller's organization.
|
|
83
83
|
*
|
|
84
84
|
* @param {string} driverId
|
|
85
85
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class CourierPayDriverRateSheets {
|
|
|
31
31
|
protected readonly _options: CourierPayDriverRateSheets.Options;
|
|
32
32
|
constructor(_options?: CourierPayDriverRateSheets.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all driver rate sheets for the
|
|
34
|
+
* Lists all driver rate sheets for the caller's courier organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -96,7 +96,7 @@ export declare class CourierPayDriverRateSheets {
|
|
|
96
96
|
getV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
|
|
97
97
|
private __getV1;
|
|
98
98
|
/**
|
|
99
|
-
* Deletes a driver rate sheet owned by the
|
|
99
|
+
* Deletes a driver rate sheet owned by the caller's organization.
|
|
100
100
|
*
|
|
101
101
|
* @param {string} id
|
|
102
102
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -109,7 +109,7 @@ export declare class CourierPayDriverRateSheets {
|
|
|
109
109
|
deleteByIdV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
110
110
|
private __deleteByIdV1;
|
|
111
111
|
/**
|
|
112
|
-
* Updates an existing driver rate sheet owned by the
|
|
112
|
+
* Updates an existing driver rate sheet owned by the caller's organization.
|
|
113
113
|
*
|
|
114
114
|
* @param {string} id
|
|
115
115
|
* @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
|
|
@@ -20,7 +20,7 @@ export class CourierPayDriverRateSheets {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists all driver rate sheets for the
|
|
23
|
+
* Lists all driver rate sheets for the caller's courier organization.
|
|
24
24
|
*
|
|
25
25
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -267,7 +267,7 @@ export class CourierPayDriverRateSheets {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* Deletes a driver rate sheet owned by the
|
|
270
|
+
* Deletes a driver rate sheet owned by the caller's organization.
|
|
271
271
|
*
|
|
272
272
|
* @param {string} id
|
|
273
273
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -326,7 +326,7 @@ export class CourierPayDriverRateSheets {
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
329
|
-
* Updates an existing driver rate sheet owned by the
|
|
329
|
+
* Updates an existing driver rate sheet owned by the caller's organization.
|
|
330
330
|
*
|
|
331
331
|
* @param {string} id
|
|
332
332
|
* @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
|
|
@@ -31,7 +31,7 @@ export declare class CourierPayDriverStatements {
|
|
|
31
31
|
protected readonly _options: CourierPayDriverStatements.Options;
|
|
32
32
|
constructor(_options?: CourierPayDriverStatements.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves a specific courier driver statement by ID for the
|
|
34
|
+
* Retrieves a specific courier driver statement by ID for the caller's organization.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} id
|
|
37
37
|
* @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,7 +44,7 @@ export declare class CourierPayDriverStatements {
|
|
|
44
44
|
getByIdV1(id: string, requestOptions?: CourierPayDriverStatements.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverStatement1>;
|
|
45
45
|
private __getByIdV1;
|
|
46
46
|
/**
|
|
47
|
-
* Lists all statements for a specific driver within the
|
|
47
|
+
* Lists all statements for a specific driver within the caller's organization.
|
|
48
48
|
*
|
|
49
49
|
* @param {string} driverId
|
|
50
50
|
* @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class CourierPayDriverStatements {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves a specific courier driver statement by ID for the
|
|
23
|
+
* Retrieves a specific courier driver statement by ID for the caller's organization.
|
|
24
24
|
*
|
|
25
25
|
* @param {string} id
|
|
26
26
|
* @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -79,7 +79,7 @@ export class CourierPayDriverStatements {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Lists all statements for a specific driver within the
|
|
82
|
+
* Lists all statements for a specific driver within the caller's organization.
|
|
83
83
|
*
|
|
84
84
|
* @param {string} driverId
|
|
85
85
|
* @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class Dev {
|
|
|
31
31
|
protected readonly _options: Dev.Options;
|
|
32
32
|
constructor(_options?: Dev.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Experimental endpoint for running AI agentic workflows. Returns the
|
|
34
|
+
* Experimental endpoint for running AI agentic workflows. Returns the caller's ID for testing purposes. | () -> (str)
|
|
35
35
|
*
|
|
36
36
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -71,7 +71,7 @@ export declare class Dev {
|
|
|
71
71
|
getDecodedJwtV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.DecodedJwtWithOrgAndUserId>;
|
|
72
72
|
private __getDecodedJwtV1;
|
|
73
73
|
/**
|
|
74
|
-
* Retrieves the primary email address for the
|
|
74
|
+
* Retrieves the primary email address for the caller from the authentication service. | () -> (str)
|
|
75
75
|
*
|
|
76
76
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
@@ -81,7 +81,7 @@ export declare class Dev {
|
|
|
81
81
|
getEmailV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
|
|
82
82
|
private __getEmailV1;
|
|
83
83
|
/**
|
|
84
|
-
* Experimental endpoint for running durable execution workflows. Returns the
|
|
84
|
+
* Experimental endpoint for running durable execution workflows. Returns the caller's ID for testing purposes. | () -> (dict[str, Any])
|
|
85
85
|
*
|
|
86
86
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
87
|
*
|
|
@@ -91,7 +91,7 @@ export declare class Dev {
|
|
|
91
91
|
getDurableV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
92
92
|
private __getDurableV1;
|
|
93
93
|
/**
|
|
94
|
-
* Development template endpoint that returns the
|
|
94
|
+
* Development template endpoint that returns the caller's ID for testing. | () -> (str)
|
|
95
95
|
*
|
|
96
96
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
@@ -20,7 +20,7 @@ export class Dev {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Experimental endpoint for running AI agentic workflows. Returns the
|
|
23
|
+
* Experimental endpoint for running AI agentic workflows. Returns the caller's ID for testing purposes. | () -> (str)
|
|
24
24
|
*
|
|
25
25
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -224,7 +224,7 @@ export class Dev {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
|
-
* Retrieves the primary email address for the
|
|
227
|
+
* Retrieves the primary email address for the caller from the authentication service. | () -> (str)
|
|
228
228
|
*
|
|
229
229
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
230
230
|
*
|
|
@@ -275,7 +275,7 @@ export class Dev {
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
* Experimental endpoint for running durable execution workflows. Returns the
|
|
278
|
+
* Experimental endpoint for running durable execution workflows. Returns the caller's ID for testing purposes. | () -> (dict[str, Any])
|
|
279
279
|
*
|
|
280
280
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
281
|
*
|
|
@@ -326,7 +326,7 @@ export class Dev {
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
329
|
-
* Development template endpoint that returns the
|
|
329
|
+
* Development template endpoint that returns the caller's ID for testing. | () -> (str)
|
|
330
330
|
*
|
|
331
331
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
332
332
|
*
|
|
@@ -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
|
|
44
|
+
* Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
|
|
45
45
|
*
|
|
46
46
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
@@ -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
|
|
72
|
+
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
73
73
|
*
|
|
74
74
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
75
|
*
|
|
@@ -71,7 +71,7 @@ export class Drivers {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Lists all drivers belonging to the
|
|
74
|
+
* Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
|
|
75
75
|
*
|
|
76
76
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
@@ -189,7 +189,7 @@ export class Drivers {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* Retrieves driver information for the
|
|
192
|
+
* Retrieves driver information for the caller within their organization. | () -> (Driver1)
|
|
193
193
|
*
|
|
194
194
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
195
|
*
|