@chrt-inc/typescript-sdk 0.0.179 → 0.0.183-b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +24 -24
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
- package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -0
- package/dist/cjs/api/resources/dev/client/Client.js +49 -0
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +1 -1
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +10 -10
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +5 -5
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
- package/dist/cjs/api/types/Driver1.d.ts +10 -10
- package/dist/cjs/api/types/Expense1.d.ts +2 -2
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +10 -10
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/Order1.d.ts +8 -8
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +1 -1
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
- package/dist/cjs/api/types/Task1.d.ts +12 -12
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
- package/dist/cjs/api/types/UserPublicData6.d.ts +3 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +24 -24
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
- package/dist/esm/api/resources/dev/client/Client.d.mts +10 -0
- package/dist/esm/api/resources/dev/client/Client.mjs +49 -0
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +1 -1
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +10 -10
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +5 -5
- package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
- package/dist/esm/api/types/Driver1.d.mts +10 -10
- package/dist/esm/api/types/Expense1.d.mts +2 -2
- package/dist/esm/api/types/Feature.d.mts +3 -3
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +10 -10
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/Order1.d.mts +8 -8
- package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +1 -1
- package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
- package/dist/esm/api/types/Task1.d.mts +12 -12
- package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
- package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
- package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
- package/dist/esm/api/types/UserPublicData6.d.mts +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +55 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -63,8 +63,8 @@ class ChrtClient {
|
|
|
63
63
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
66
|
-
"X-Fern-SDK-Version": "0.0.
|
|
67
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
66
|
+
"X-Fern-SDK-Version": "0.0.183-b",
|
|
67
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.183-b",
|
|
68
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -84,27 +84,27 @@ class CourierPayDriverLineItemGroup {
|
|
|
84
84
|
}
|
|
85
85
|
__preview(request, requestOptions) {
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
var _a, _b, _c, _d;
|
|
87
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
88
88
|
const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
|
|
89
89
|
const _queryParams = {};
|
|
90
90
|
_queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
|
|
91
91
|
_queryParams["task_group_id"] = taskGroupId;
|
|
92
|
-
if (dangerousGoods
|
|
93
|
-
_queryParams["dangerous_goods"] = dangerousGoods.toString();
|
|
92
|
+
if (dangerousGoods !== undefined) {
|
|
93
|
+
_queryParams["dangerous_goods"] = (_a = dangerousGoods === null || dangerousGoods === void 0 ? void 0 : dangerousGoods.toString()) !== null && _a !== void 0 ? _a : null;
|
|
94
94
|
}
|
|
95
|
-
if (holiday
|
|
96
|
-
_queryParams["holiday"] = holiday.toString();
|
|
95
|
+
if (holiday !== undefined) {
|
|
96
|
+
_queryParams["holiday"] = (_b = holiday === null || holiday === void 0 ? void 0 : holiday.toString()) !== null && _b !== void 0 ? _b : null;
|
|
97
97
|
}
|
|
98
|
-
if (weekend
|
|
99
|
-
_queryParams["weekend"] = weekend.toString();
|
|
98
|
+
if (weekend !== undefined) {
|
|
99
|
+
_queryParams["weekend"] = (_c = weekend === null || weekend === void 0 ? void 0 : weekend.toString()) !== null && _c !== void 0 ? _c : null;
|
|
100
100
|
}
|
|
101
|
-
if (afterHours
|
|
102
|
-
_queryParams["after_hours"] = afterHours.toString();
|
|
101
|
+
if (afterHours !== undefined) {
|
|
102
|
+
_queryParams["after_hours"] = (_d = afterHours === null || afterHours === void 0 ? void 0 : afterHours.toString()) !== null && _d !== void 0 ? _d : null;
|
|
103
103
|
}
|
|
104
|
-
const _response = yield ((
|
|
105
|
-
url: core.url.join((
|
|
104
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
105
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/preview"),
|
|
106
106
|
method: "GET",
|
|
107
|
-
headers: (0, headers_js_1.mergeHeaders)((
|
|
107
|
+
headers: (0, headers_js_1.mergeHeaders)((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
108
108
|
queryParameters: _queryParams,
|
|
109
109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
110
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -278,27 +278,27 @@ class CourierPayDriverLineItemGroup {
|
|
|
278
278
|
}
|
|
279
279
|
__create(request, requestOptions) {
|
|
280
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
-
var _a, _b, _c, _d;
|
|
281
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
282
282
|
const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
|
|
283
283
|
const _queryParams = {};
|
|
284
284
|
_queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
|
|
285
285
|
_queryParams["task_group_id"] = taskGroupId;
|
|
286
|
-
if (dangerousGoods
|
|
287
|
-
_queryParams["dangerous_goods"] = dangerousGoods.toString();
|
|
286
|
+
if (dangerousGoods !== undefined) {
|
|
287
|
+
_queryParams["dangerous_goods"] = (_a = dangerousGoods === null || dangerousGoods === void 0 ? void 0 : dangerousGoods.toString()) !== null && _a !== void 0 ? _a : null;
|
|
288
288
|
}
|
|
289
|
-
if (holiday
|
|
290
|
-
_queryParams["holiday"] = holiday.toString();
|
|
289
|
+
if (holiday !== undefined) {
|
|
290
|
+
_queryParams["holiday"] = (_b = holiday === null || holiday === void 0 ? void 0 : holiday.toString()) !== null && _b !== void 0 ? _b : null;
|
|
291
291
|
}
|
|
292
|
-
if (weekend
|
|
293
|
-
_queryParams["weekend"] = weekend.toString();
|
|
292
|
+
if (weekend !== undefined) {
|
|
293
|
+
_queryParams["weekend"] = (_c = weekend === null || weekend === void 0 ? void 0 : weekend.toString()) !== null && _c !== void 0 ? _c : null;
|
|
294
294
|
}
|
|
295
|
-
if (afterHours
|
|
296
|
-
_queryParams["after_hours"] = afterHours.toString();
|
|
295
|
+
if (afterHours !== undefined) {
|
|
296
|
+
_queryParams["after_hours"] = (_d = afterHours === null || afterHours === void 0 ? void 0 : afterHours.toString()) !== null && _d !== void 0 ? _d : null;
|
|
297
297
|
}
|
|
298
|
-
const _response = yield ((
|
|
299
|
-
url: core.url.join((
|
|
298
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
299
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/create"),
|
|
300
300
|
method: "POST",
|
|
301
|
-
headers: (0, headers_js_1.mergeHeaders)((
|
|
301
|
+
headers: (0, headers_js_1.mergeHeaders)((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
302
302
|
queryParameters: _queryParams,
|
|
303
303
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
304
304
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
export interface CourierPayDriverLineItemGroupCreateRequest {
|
|
12
12
|
courier_pay_driver_rate_sheet_id: string;
|
|
13
13
|
task_group_id: string;
|
|
14
|
-
dangerous_goods?: boolean;
|
|
15
|
-
holiday?: boolean;
|
|
16
|
-
weekend?: boolean;
|
|
17
|
-
after_hours?: boolean;
|
|
14
|
+
dangerous_goods?: boolean | null;
|
|
15
|
+
holiday?: boolean | null;
|
|
16
|
+
weekend?: boolean | null;
|
|
17
|
+
after_hours?: boolean | null;
|
|
18
18
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
export interface CourierPayDriverLineItemGroupPreviewRequest {
|
|
12
12
|
courier_pay_driver_rate_sheet_id: string;
|
|
13
13
|
task_group_id: string;
|
|
14
|
-
dangerous_goods?: boolean;
|
|
15
|
-
holiday?: boolean;
|
|
16
|
-
weekend?: boolean;
|
|
17
|
-
after_hours?: boolean;
|
|
14
|
+
dangerous_goods?: boolean | null;
|
|
15
|
+
holiday?: boolean | null;
|
|
16
|
+
weekend?: boolean | null;
|
|
17
|
+
after_hours?: boolean | null;
|
|
18
18
|
}
|
|
@@ -24,14 +24,14 @@ import * as Chrt from "../../../../index.js";
|
|
|
24
24
|
*/
|
|
25
25
|
export interface CourierPayDriverRateSheetClientCreate1 {
|
|
26
26
|
schema_version: number;
|
|
27
|
-
name?: string;
|
|
28
|
-
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
29
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
30
|
-
route_types?: Chrt.RouteTypeEnum1[];
|
|
31
|
-
driver_ids?: string[];
|
|
27
|
+
name?: string | null;
|
|
28
|
+
cargo_types?: Chrt.CargoTypeEnum1[] | null;
|
|
29
|
+
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
30
|
+
route_types?: Chrt.RouteTypeEnum1[] | null;
|
|
31
|
+
driver_ids?: string[] | null;
|
|
32
32
|
/** Must be a string starting with `org_` */
|
|
33
33
|
courier_org_id: string;
|
|
34
|
-
comments?: string;
|
|
34
|
+
comments?: string | null;
|
|
35
35
|
base_mileage_distance_miles: number;
|
|
36
36
|
base_mileage_rate_usd_per_instance: number;
|
|
37
37
|
/** applies only to the additional miles */
|
|
@@ -7,23 +7,23 @@ import * as Chrt from "../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface CourierPayDriverRateSheetClientUpdate1 {
|
|
10
|
-
name?: string;
|
|
11
|
-
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
12
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
13
|
-
route_types?: Chrt.RouteTypeEnum1[];
|
|
14
|
-
driver_ids?: string[];
|
|
15
|
-
comments?: string;
|
|
16
|
-
base_mileage_distance_miles?: number;
|
|
17
|
-
base_mileage_rate_usd_per_instance?: number;
|
|
18
|
-
additional_mileage_rate_usd_per_mile?: number;
|
|
19
|
-
long_distance_surcharge_miles_before_surcharge?: number;
|
|
20
|
-
long_distance_surcharge_rate_usd_per_mile?: number;
|
|
21
|
-
fuel_surchage_rate_usd_per_mile?: number;
|
|
22
|
-
wait_time_before_charge_minutes?: number;
|
|
23
|
-
wait_time_rate_usd_per_minute?: number;
|
|
24
|
-
extra_stop_rate_usd?: number;
|
|
25
|
-
dangerous_goods_rate_usd_per_instance?: number;
|
|
26
|
-
after_hours?: number;
|
|
27
|
-
weekend?: number;
|
|
28
|
-
holiday?: number;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
cargo_types?: Chrt.CargoTypeEnum1[] | null;
|
|
12
|
+
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
13
|
+
route_types?: Chrt.RouteTypeEnum1[] | null;
|
|
14
|
+
driver_ids?: string[] | null;
|
|
15
|
+
comments?: string | null;
|
|
16
|
+
base_mileage_distance_miles?: number | null;
|
|
17
|
+
base_mileage_rate_usd_per_instance?: number | null;
|
|
18
|
+
additional_mileage_rate_usd_per_mile?: number | null;
|
|
19
|
+
long_distance_surcharge_miles_before_surcharge?: number | null;
|
|
20
|
+
long_distance_surcharge_rate_usd_per_mile?: number | null;
|
|
21
|
+
fuel_surchage_rate_usd_per_mile?: number | null;
|
|
22
|
+
wait_time_before_charge_minutes?: number | null;
|
|
23
|
+
wait_time_rate_usd_per_minute?: number | null;
|
|
24
|
+
extra_stop_rate_usd?: number | null;
|
|
25
|
+
dangerous_goods_rate_usd_per_instance?: number | null;
|
|
26
|
+
after_hours?: number | null;
|
|
27
|
+
weekend?: number | null;
|
|
28
|
+
holiday?: number | null;
|
|
29
29
|
}
|
|
@@ -58,6 +58,16 @@ export declare class Dev {
|
|
|
58
58
|
*/
|
|
59
59
|
getEmail(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
|
|
60
60
|
private __getEmail;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
63
|
+
*
|
|
64
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.dev.getGitInfo()
|
|
68
|
+
*/
|
|
69
|
+
getGitInfo(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
70
|
+
private __getGitInfo;
|
|
61
71
|
/**
|
|
62
72
|
* Development template endpoint that returns the authenticated user's ID for testing.
|
|
63
73
|
*
|
|
@@ -202,6 +202,55 @@ class Dev {
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Returns the current GitHub PR number and commit hash for the deployment.
|
|
207
|
+
*
|
|
208
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* await client.dev.getGitInfo()
|
|
212
|
+
*/
|
|
213
|
+
getGitInfo(requestOptions) {
|
|
214
|
+
return core.HttpResponsePromise.fromPromise(this.__getGitInfo(requestOptions));
|
|
215
|
+
}
|
|
216
|
+
__getGitInfo(requestOptions) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
var _a, _b, _c, _d;
|
|
219
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
220
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
|
|
221
|
+
method: "GET",
|
|
222
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
223
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
});
|
|
227
|
+
if (_response.ok) {
|
|
228
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
229
|
+
}
|
|
230
|
+
if (_response.error.reason === "status-code") {
|
|
231
|
+
throw new errors.ChrtError({
|
|
232
|
+
statusCode: _response.error.statusCode,
|
|
233
|
+
body: _response.error.body,
|
|
234
|
+
rawResponse: _response.rawResponse,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
switch (_response.error.reason) {
|
|
238
|
+
case "non-json":
|
|
239
|
+
throw new errors.ChrtError({
|
|
240
|
+
statusCode: _response.error.statusCode,
|
|
241
|
+
body: _response.error.rawBody,
|
|
242
|
+
rawResponse: _response.rawResponse,
|
|
243
|
+
});
|
|
244
|
+
case "timeout":
|
|
245
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/git_info.");
|
|
246
|
+
case "unknown":
|
|
247
|
+
throw new errors.ChrtError({
|
|
248
|
+
message: _response.error.errorMessage,
|
|
249
|
+
rawResponse: _response.rawResponse,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
205
254
|
/**
|
|
206
255
|
* Development template endpoint that returns the authenticated user's ID for testing.
|
|
207
256
|
*
|
|
@@ -10,9 +10,9 @@ import * as Chrt from "../../../../index.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export interface UpdateDriverDetailsReq {
|
|
12
12
|
driver_object_id: string;
|
|
13
|
-
email_address_primary?: string;
|
|
14
|
-
email_address_secondary?: string;
|
|
15
|
-
phone_number_primary?: string;
|
|
16
|
-
phone_number_secondary?: string;
|
|
17
|
-
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
13
|
+
email_address_primary?: string | null;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
phone_number_primary?: string | null;
|
|
16
|
+
phone_number_secondary?: string | null;
|
|
17
|
+
vehicle_types?: Chrt.VehicleTypeEnum[] | null;
|
|
18
18
|
}
|
|
@@ -76,7 +76,7 @@ class Images {
|
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
var _a, _b, _c, _d;
|
|
78
78
|
const _queryParams = {};
|
|
79
|
-
if (request.comments
|
|
79
|
+
if (request.comments !== undefined) {
|
|
80
80
|
_queryParams["comments"] = request.comments;
|
|
81
81
|
}
|
|
82
82
|
const _request = yield core.newFormData();
|
|
@@ -11,15 +11,15 @@ import * as Chrt from "../../../../index.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.Feature;
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.Feature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
24
|
-
company_name?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
|
+
company_name?: string | null;
|
|
25
25
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.Feature;
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.Feature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
|
@@ -35,11 +35,11 @@ export interface CreateOrderReq {
|
|
|
35
35
|
order_dispatch_type: Chrt.OrderDispatchTypeEnum;
|
|
36
36
|
transport_type: Chrt.TransportTypeEnum;
|
|
37
37
|
/** Optionally used when a courier places a DTC order or chrt places a DTC/FF order */
|
|
38
|
-
shipper_org_id?: string;
|
|
38
|
+
shipper_org_id?: string | null;
|
|
39
39
|
/** Must be a string starting with `user_` */
|
|
40
|
-
shipper_user_id?: string;
|
|
40
|
+
shipper_user_id?: string | null;
|
|
41
41
|
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
42
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
42
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
43
43
|
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
44
|
-
courier_org_id?: string;
|
|
44
|
+
courier_org_id?: string | null;
|
|
45
45
|
}
|
|
@@ -11,14 +11,14 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface CourierOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.Feature;
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.Feature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
24
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface CourierOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.Feature;
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.Feature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
|
@@ -11,14 +11,14 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface ShipperOrgConnectionInfoClientCreate1 {
|
|
13
13
|
schema_version: number;
|
|
14
|
-
industry?: string;
|
|
15
|
-
street_address?: Chrt.Feature;
|
|
16
|
-
contact_first_name?: string;
|
|
17
|
-
contact_last_name?: string;
|
|
18
|
-
phone_number_primary?: string;
|
|
19
|
-
phone_number_secondary?: string;
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.Feature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
20
|
email_address_primary: string;
|
|
21
|
-
email_address_secondary?: string;
|
|
22
|
-
job_title?: string;
|
|
23
|
-
notes?: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
24
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface ShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
industry?: string;
|
|
11
|
-
street_address?: Chrt.Feature;
|
|
12
|
-
contact_first_name?: string;
|
|
13
|
-
contact_last_name?: string;
|
|
14
|
-
phone_number_primary?: string;
|
|
15
|
-
phone_number_secondary?: string;
|
|
16
|
-
email_address_primary?: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
job_title?: string;
|
|
19
|
-
notes?: string;
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.Feature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface CourierOrgProfileClientUpdate3 {
|
|
9
|
-
description?: string;
|
|
10
|
-
email_address_primary?: string;
|
|
11
|
-
phone_number_primary?: string;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
email_address_primary?: string | null;
|
|
11
|
+
phone_number_primary?: string | null;
|
|
12
12
|
}
|
|
@@ -7,15 +7,15 @@ import * as Chrt from "../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface ShipperContactInfoClientUpdate1 {
|
|
10
|
-
company_name?: string;
|
|
11
|
-
industry?: string;
|
|
12
|
-
street_address?: Chrt.Feature;
|
|
13
|
-
contact_first_name?: string;
|
|
14
|
-
contact_last_name?: string;
|
|
15
|
-
phone_number_primary?: string;
|
|
16
|
-
phone_number_secondary?: string;
|
|
17
|
-
email_address_primary?: string;
|
|
18
|
-
email_address_secondary?: string;
|
|
19
|
-
job_title?: string;
|
|
20
|
-
notes?: string;
|
|
10
|
+
company_name?: string | null;
|
|
11
|
+
industry?: string | null;
|
|
12
|
+
street_address?: Chrt.Feature | null;
|
|
13
|
+
contact_first_name?: string | null;
|
|
14
|
+
contact_last_name?: string | null;
|
|
15
|
+
phone_number_primary?: string | null;
|
|
16
|
+
phone_number_secondary?: string | null;
|
|
17
|
+
email_address_primary?: string | null;
|
|
18
|
+
email_address_secondary?: string | null;
|
|
19
|
+
job_title?: string | null;
|
|
20
|
+
notes?: string | null;
|
|
21
21
|
}
|
|
@@ -5,11 +5,11 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface Cargo1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
cargo_type: Chrt.CargoTypeEnum1;
|
|
8
|
-
quantity?: number;
|
|
9
|
-
weight_pounds?: number;
|
|
10
|
-
length_inches?: number;
|
|
11
|
-
width_inches?: number;
|
|
12
|
-
height_inches?: number;
|
|
8
|
+
quantity?: number | null;
|
|
9
|
+
weight_pounds?: number | null;
|
|
10
|
+
length_inches?: number | null;
|
|
11
|
+
width_inches?: number | null;
|
|
12
|
+
height_inches?: number | null;
|
|
13
13
|
_id: string;
|
|
14
14
|
order_id: string;
|
|
15
15
|
order_short_id: string;
|
|
@@ -5,9 +5,9 @@ import * as Chrt from "../index.js";
|
|
|
5
5
|
export interface CargoClientCreate1 {
|
|
6
6
|
schema_version: number;
|
|
7
7
|
cargo_type: Chrt.CargoTypeEnum1;
|
|
8
|
-
quantity?: number;
|
|
9
|
-
weight_pounds?: number;
|
|
10
|
-
length_inches?: number;
|
|
11
|
-
width_inches?: number;
|
|
12
|
-
height_inches?: number;
|
|
8
|
+
quantity?: number | null;
|
|
9
|
+
weight_pounds?: number | null;
|
|
10
|
+
length_inches?: number | null;
|
|
11
|
+
width_inches?: number | null;
|
|
12
|
+
height_inches?: number | null;
|
|
13
13
|
}
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface CourierOrgConnectionInfo1 {
|
|
6
6
|
schema_version: number;
|
|
7
|
-
industry?: string;
|
|
8
|
-
street_address?: Chrt.Feature;
|
|
9
|
-
contact_first_name?: string;
|
|
10
|
-
contact_last_name?: string;
|
|
11
|
-
phone_number_primary?: string;
|
|
12
|
-
phone_number_secondary?: string;
|
|
7
|
+
industry?: string | null;
|
|
8
|
+
street_address?: Chrt.Feature | null;
|
|
9
|
+
contact_first_name?: string | null;
|
|
10
|
+
contact_last_name?: string | null;
|
|
11
|
+
phone_number_primary?: string | null;
|
|
12
|
+
phone_number_secondary?: string | null;
|
|
13
13
|
email_address_primary: string;
|
|
14
|
-
email_address_secondary?: string;
|
|
15
|
-
job_title?: string;
|
|
16
|
-
notes?: string;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
job_title?: string | null;
|
|
16
|
+
notes?: string | null;
|
|
17
17
|
/** Must be a string starting with `org_` */
|
|
18
18
|
courier_org_id: string;
|
|
19
19
|
/** Must be a string starting with `user_` */
|
|
20
|
-
courier_user_id?: string;
|
|
20
|
+
courier_user_id?: string | null;
|
|
21
21
|
_id: string;
|
|
22
22
|
}
|