@chrt-inc/typescript-sdk 1.906.0 → 1.908.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +6 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetVehicleTypeReq.d.ts +4 -3
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
- 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/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +6 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetVehicleTypeReq.d.mts +4 -3
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +4 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -58,8 +58,8 @@ class ChrtClient {
|
|
|
58
58
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
59
59
|
"X-Fern-Language": "JavaScript",
|
|
60
60
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
61
|
-
"X-Fern-SDK-Version": "1.
|
|
62
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
61
|
+
"X-Fern-SDK-Version": "1.908.0",
|
|
62
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.908.0",
|
|
63
63
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
64
64
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
65
65
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export declare class ChrtGroundProviderRates {
|
|
|
101
101
|
listV1(request?: Chrt.billingNew.ChrtGroundProviderRatesListV1Request, requestOptions?: ChrtGroundProviderRates.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGroundProviderRatesListRes>;
|
|
102
102
|
private __listV1;
|
|
103
103
|
/**
|
|
104
|
-
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
104
|
+
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. Candidates must match (a) the order's service line, (b) the TaskGroup's vehicle type, (c) a Task's coordinator shipper account, (d) the invoice type (AP or AR), and (e) the relevant counterparty (executor for AP; shipper for AR). | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
105
105
|
*
|
|
106
106
|
* @param {Chrt.billingNew.ResolveChrtGroundProviderRatesReq} request
|
|
107
107
|
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js
CHANGED
|
@@ -394,7 +394,7 @@ class ChrtGroundProviderRates {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
/**
|
|
397
|
-
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
397
|
+
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. Candidates must match (a) the order's service line, (b) the TaskGroup's vehicle type, (c) a Task's coordinator shipper account, (d) the invoice type (AP or AR), and (e) the relevant counterparty (executor for AP; shipper for AR). | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
398
398
|
*
|
|
399
399
|
* @param {Chrt.billingNew.ResolveChrtGroundProviderRatesReq} request
|
|
400
400
|
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -163,9 +163,11 @@ export declare class TaskGroup {
|
|
|
163
163
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
|
-
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id"
|
|
166
|
+
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
|
|
167
|
+
* vehicle_type: "sedan"
|
|
168
|
+
* })
|
|
167
169
|
*/
|
|
168
|
-
setVehicleTypeV1(taskGroupId: string, request
|
|
170
|
+
setVehicleTypeV1(taskGroupId: string, request: Chrt.shipping.orders.drafts.SetVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
169
171
|
private __setVehicleTypeV1;
|
|
170
172
|
/**
|
|
171
173
|
* Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
|
|
@@ -571,13 +571,15 @@ class TaskGroup {
|
|
|
571
571
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
|
-
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id"
|
|
574
|
+
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
|
|
575
|
+
* vehicle_type: "sedan"
|
|
576
|
+
* })
|
|
575
577
|
*/
|
|
576
|
-
setVehicleTypeV1(taskGroupId, request
|
|
578
|
+
setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
577
579
|
return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
|
|
578
580
|
}
|
|
579
|
-
__setVehicleTypeV1(
|
|
580
|
-
return __awaiter(this,
|
|
581
|
+
__setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
581
583
|
var _a, _b, _c, _d;
|
|
582
584
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
583
585
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as Chrt from "../../../../../../../../../../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* vehicle_type: "sedan"
|
|
9
|
+
* }
|
|
8
10
|
*/
|
|
9
11
|
export interface SetVehicleTypeReq {
|
|
10
|
-
vehicle_type
|
|
11
|
-
vehicle_type__set_to_None?: boolean;
|
|
12
|
+
vehicle_type: Chrt.VehicleTypeEnum;
|
|
12
13
|
}
|
|
@@ -46,6 +46,6 @@ export interface TaskGroup1 {
|
|
|
46
46
|
task_group_s3_object_metadata_ids?: string[];
|
|
47
47
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
48
48
|
task_ids?: string[];
|
|
49
|
-
vehicle_type?: Chrt.VehicleTypeEnum
|
|
49
|
+
vehicle_type?: Chrt.VehicleTypeEnum;
|
|
50
50
|
wait_time_total_minutes?: number | null;
|
|
51
51
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.908.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -22,8 +22,8 @@ export class ChrtClient {
|
|
|
22
22
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
23
23
|
"X-Fern-Language": "JavaScript",
|
|
24
24
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
25
|
-
"X-Fern-SDK-Version": "1.
|
|
26
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
25
|
+
"X-Fern-SDK-Version": "1.908.0",
|
|
26
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.908.0",
|
|
27
27
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
28
28
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
29
29
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts
CHANGED
|
@@ -101,7 +101,7 @@ export declare class ChrtGroundProviderRates {
|
|
|
101
101
|
listV1(request?: Chrt.billingNew.ChrtGroundProviderRatesListV1Request, requestOptions?: ChrtGroundProviderRates.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGroundProviderRatesListRes>;
|
|
102
102
|
private __listV1;
|
|
103
103
|
/**
|
|
104
|
-
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
104
|
+
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. Candidates must match (a) the order's service line, (b) the TaskGroup's vehicle type, (c) a Task's coordinator shipper account, (d) the invoice type (AP or AR), and (e) the relevant counterparty (executor for AP; shipper for AR). | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
105
105
|
*
|
|
106
106
|
* @param {Chrt.billingNew.ResolveChrtGroundProviderRatesReq} request
|
|
107
107
|
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs
CHANGED
|
@@ -358,7 +358,7 @@ export class ChrtGroundProviderRates {
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
361
|
+
* Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. Candidates must match (a) the order's service line, (b) the TaskGroup's vehicle type, (c) a Task's coordinator shipper account, (d) the invoice type (AP or AR), and (e) the relevant counterparty (executor for AP; shipper for AR). | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
362
362
|
*
|
|
363
363
|
* @param {Chrt.billingNew.ResolveChrtGroundProviderRatesReq} request
|
|
364
364
|
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -163,9 +163,11 @@ export declare class TaskGroup {
|
|
|
163
163
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
164
164
|
*
|
|
165
165
|
* @example
|
|
166
|
-
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id"
|
|
166
|
+
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
|
|
167
|
+
* vehicle_type: "sedan"
|
|
168
|
+
* })
|
|
167
169
|
*/
|
|
168
|
-
setVehicleTypeV1(taskGroupId: string, request
|
|
170
|
+
setVehicleTypeV1(taskGroupId: string, request: Chrt.shipping.orders.drafts.SetVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
169
171
|
private __setVehicleTypeV1;
|
|
170
172
|
/**
|
|
171
173
|
* Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
|
|
@@ -535,13 +535,15 @@ export class TaskGroup {
|
|
|
535
535
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
536
536
|
*
|
|
537
537
|
* @example
|
|
538
|
-
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id"
|
|
538
|
+
* await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
|
|
539
|
+
* vehicle_type: "sedan"
|
|
540
|
+
* })
|
|
539
541
|
*/
|
|
540
|
-
setVehicleTypeV1(taskGroupId, request
|
|
542
|
+
setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
541
543
|
return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
|
|
542
544
|
}
|
|
543
|
-
__setVehicleTypeV1(
|
|
544
|
-
return __awaiter(this,
|
|
545
|
+
__setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
547
|
var _a, _b, _c, _d;
|
|
546
548
|
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);
|
|
547
549
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as Chrt from "../../../../../../../../../../index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* vehicle_type: "sedan"
|
|
9
|
+
* }
|
|
8
10
|
*/
|
|
9
11
|
export interface SetVehicleTypeReq {
|
|
10
|
-
vehicle_type
|
|
11
|
-
vehicle_type__set_to_None?: boolean;
|
|
12
|
+
vehicle_type: Chrt.VehicleTypeEnum;
|
|
12
13
|
}
|
|
@@ -46,6 +46,6 @@ export interface TaskGroup1 {
|
|
|
46
46
|
task_group_s3_object_metadata_ids?: string[];
|
|
47
47
|
task_group_type: Chrt.TaskGroupTypeEnum1;
|
|
48
48
|
task_ids?: string[];
|
|
49
|
-
vehicle_type?: Chrt.VehicleTypeEnum
|
|
49
|
+
vehicle_type?: Chrt.VehicleTypeEnum;
|
|
50
50
|
wait_time_total_minutes?: number | null;
|
|
51
51
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.908.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.908.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -6585,7 +6585,7 @@ await client.billingNew.chrtGroundProviderRates.listV1({
|
|
|
6585
6585
|
<dl>
|
|
6586
6586
|
<dd>
|
|
6587
6587
|
|
|
6588
|
-
Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
6588
|
+
Returns accounts-payable and accounts-receivable CHRT-ground provider-rate candidates for each eligible TaskGroup. Candidates must match (a) the order's service line, (b) the TaskGroup's vehicle type, (c) a Task's coordinator shipper account, (d) the invoice type (AP or AR), and (e) the relevant counterparty (executor for AP; shipper for AR). | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (ResolveChrtGroundProviderRatesReq) -> (list[ResolvedTaskGroupChrtGroundProviderRates1])
|
|
6589
6589
|
|
|
6590
6590
|
</dd>
|
|
6591
6591
|
</dl>
|
|
@@ -29579,7 +29579,9 @@ Sets the vehicle type on a draft task group. | authz_personas=[draft_creator_org
|
|
|
29579
29579
|
<dd>
|
|
29580
29580
|
|
|
29581
29581
|
```typescript
|
|
29582
|
-
await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id"
|
|
29582
|
+
await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
|
|
29583
|
+
vehicle_type: "sedan",
|
|
29584
|
+
});
|
|
29583
29585
|
```
|
|
29584
29586
|
|
|
29585
29587
|
</dd>
|