@chrt-inc/typescript-sdk 1.970.0 → 1.976.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/invoices/resources/export/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +5 -5
- package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/DepartmentTypeEnum.js +1 -0
- package/dist/cjs/api/types/InvoiceExportListItem.d.ts +1 -1
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -0
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateNewTask1.d.ts +1 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +5 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +5 -5
- package/dist/esm/api/types/DepartmentTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/DepartmentTypeEnum.mjs +1 -0
- package/dist/esm/api/types/InvoiceExportListItem.d.mts +1 -1
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -0
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateNewTask1.d.mts +1 -0
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +73 -8
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.976.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.976.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Export {
|
|
|
31
31
|
protected readonly _options: Export.Options;
|
|
32
32
|
constructor(_options?: Export.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
34
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} invoiceId
|
|
37
37
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.js
CHANGED
|
@@ -56,7 +56,7 @@ class Export {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
59
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} invoiceId
|
|
62
62
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
|
@@ -70,6 +70,7 @@ export declare class Orders {
|
|
|
70
70
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
71
71
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
72
72
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
73
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
73
74
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
74
75
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
75
76
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -162,6 +162,7 @@ class Orders {
|
|
|
162
162
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
163
163
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
164
164
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
165
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
165
166
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
166
167
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
167
168
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -183,7 +184,7 @@ class Orders {
|
|
|
183
184
|
__listExpandedForCoordinatorOperatorsV1() {
|
|
184
185
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
185
186
|
var _a, _b, _c, _d, _e, _f;
|
|
186
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_label: filterCoordinatorLabel, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_coordinator_label", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
187
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_label: filterCoordinatorLabel, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_off_chrt_executor_org_data_id", "filter_coordinator_label", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
187
188
|
const _queryParams = {};
|
|
188
189
|
if (sortBy !== undefined) {
|
|
189
190
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -228,6 +229,9 @@ class Orders {
|
|
|
228
229
|
if (filterExecutorOrgId !== undefined) {
|
|
229
230
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
230
231
|
}
|
|
232
|
+
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
233
|
+
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
234
|
+
}
|
|
231
235
|
if (filterCoordinatorLabel !== undefined) {
|
|
232
236
|
_queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
|
|
233
237
|
}
|
|
@@ -16,6 +16,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
16
16
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
17
17
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
18
18
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
19
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
19
20
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
20
21
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
21
22
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -52,6 +53,8 @@ export interface OrderBillingExpandedListReq {
|
|
|
52
53
|
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
53
54
|
/** Filter by an on-CHRT executor organization. */
|
|
54
55
|
filter_executor_org_id?: string | null;
|
|
56
|
+
/** Filter by an off-CHRT executor. */
|
|
57
|
+
filter_off_chrt_executor_org_data_id?: string | null;
|
|
55
58
|
/** Filter by an exact coordinator label. */
|
|
56
59
|
filter_coordinator_label?: string | null;
|
|
57
60
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
@@ -12,6 +12,7 @@ export interface OrderTemplateNewTaskClientCreate1 {
|
|
|
12
12
|
contact_ids?: string[];
|
|
13
13
|
coordinator_shipper_account_ids?: string[];
|
|
14
14
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
15
|
+
flight_leg_id?: string | null;
|
|
15
16
|
geofence_distance_miles?: number;
|
|
16
17
|
location?: Chrt.LocationFeature | null;
|
|
17
18
|
order_placer_comments?: string | null;
|
|
@@ -248,6 +248,19 @@ export declare class Orders {
|
|
|
248
248
|
*/
|
|
249
249
|
unassignV1(orderId: string, request: Chrt.shipping.OrdersUnassignReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
250
250
|
private __unassignV1;
|
|
251
|
+
/**
|
|
252
|
+
* Reopens a cancelled order, restaging every cancelled task group, task, task artifact, operations task, and cargo on it regardless of when each was cancelled, then re-deriving order, cargo, and driver status from the surviving work. | authz_personas=[task_group_operating_org_operators] | () -> (bool)
|
|
253
|
+
*
|
|
254
|
+
* @param {string} orderId
|
|
255
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
256
|
+
*
|
|
257
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.shipping.orders.undoCancelV1("order_id")
|
|
261
|
+
*/
|
|
262
|
+
undoCancelV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
263
|
+
private __undoCancelV1;
|
|
251
264
|
/**
|
|
252
265
|
* Updates department_id for the caller's role on the order. Coordinator writes coordinator_department_id; executor writes executor_department_id on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentReq) -> (bool)
|
|
253
266
|
*
|
|
@@ -922,6 +922,65 @@ class Orders {
|
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
|
+
/**
|
|
926
|
+
* Reopens a cancelled order, restaging every cancelled task group, task, task artifact, operations task, and cargo on it regardless of when each was cancelled, then re-deriving order, cargo, and driver status from the surviving work. | authz_personas=[task_group_operating_org_operators] | () -> (bool)
|
|
927
|
+
*
|
|
928
|
+
* @param {string} orderId
|
|
929
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
930
|
+
*
|
|
931
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
932
|
+
*
|
|
933
|
+
* @example
|
|
934
|
+
* await client.shipping.orders.undoCancelV1("order_id")
|
|
935
|
+
*/
|
|
936
|
+
undoCancelV1(orderId, requestOptions) {
|
|
937
|
+
return core.HttpResponsePromise.fromPromise(this.__undoCancelV1(orderId, requestOptions));
|
|
938
|
+
}
|
|
939
|
+
__undoCancelV1(orderId, requestOptions) {
|
|
940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
941
|
+
var _a, _b, _c, _d;
|
|
942
|
+
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);
|
|
943
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
944
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/undo_cancel/v1/${encodeURIComponent(orderId)}`),
|
|
945
|
+
method: "PUT",
|
|
946
|
+
headers: _headers,
|
|
947
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
948
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
949
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
950
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
951
|
+
});
|
|
952
|
+
if (_response.ok) {
|
|
953
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
954
|
+
}
|
|
955
|
+
if (_response.error.reason === "status-code") {
|
|
956
|
+
switch (_response.error.statusCode) {
|
|
957
|
+
case 422:
|
|
958
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
959
|
+
default:
|
|
960
|
+
throw new errors.ChrtError({
|
|
961
|
+
statusCode: _response.error.statusCode,
|
|
962
|
+
body: _response.error.body,
|
|
963
|
+
rawResponse: _response.rawResponse,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
switch (_response.error.reason) {
|
|
968
|
+
case "non-json":
|
|
969
|
+
throw new errors.ChrtError({
|
|
970
|
+
statusCode: _response.error.statusCode,
|
|
971
|
+
body: _response.error.rawBody,
|
|
972
|
+
rawResponse: _response.rawResponse,
|
|
973
|
+
});
|
|
974
|
+
case "timeout":
|
|
975
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/undo_cancel/v1/{order_id}.");
|
|
976
|
+
case "unknown":
|
|
977
|
+
throw new errors.ChrtError({
|
|
978
|
+
message: _response.error.errorMessage,
|
|
979
|
+
rawResponse: _response.rawResponse,
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
925
984
|
/**
|
|
926
985
|
* Updates department_id for the caller's role on the order. Coordinator writes coordinator_department_id; executor writes executor_department_id on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentReq) -> (bool)
|
|
927
986
|
*
|
|
@@ -67,7 +67,7 @@ export declare class Cargo {
|
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orders.OrdersAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
69
|
/**
|
|
70
|
-
* Deletes
|
|
70
|
+
* Deletes cargo in any lifecycle state, removes task associations, and resynchronizes the order AWB cache. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
71
71
|
*
|
|
72
72
|
* @param {string} cargoId
|
|
73
73
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -190,7 +190,7 @@ class Cargo {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* Deletes
|
|
193
|
+
* Deletes cargo in any lifecycle state, removes task associations, and resynchronizes the order AWB cache. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
194
194
|
*
|
|
195
195
|
* @param {string} cargoId
|
|
196
196
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare class Expanded {
|
|
|
92
92
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
93
93
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
94
94
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
95
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
95
96
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
96
97
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
97
98
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -215,6 +215,7 @@ class Expanded {
|
|
|
215
215
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
216
216
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
217
217
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
218
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
218
219
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
219
220
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
220
221
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -232,7 +233,7 @@ class Expanded {
|
|
|
232
233
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
233
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
235
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
235
|
-
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
236
|
+
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_id: filterExecutorDepartmentId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
236
237
|
const _queryParams = {};
|
|
237
238
|
if (providerRole !== undefined) {
|
|
238
239
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -323,6 +324,9 @@ class Expanded {
|
|
|
323
324
|
if (filterExecutorOrgId !== undefined) {
|
|
324
325
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
325
326
|
}
|
|
327
|
+
if (filterExecutorDepartmentId !== undefined) {
|
|
328
|
+
_queryParams["filter_executor_department_id"] = filterExecutorDepartmentId;
|
|
329
|
+
}
|
|
326
330
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
327
331
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
328
332
|
}
|
|
@@ -29,6 +29,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
29
29
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
30
30
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
31
31
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
32
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
32
33
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
33
34
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
34
35
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -71,6 +72,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
71
72
|
filter_exception_at_timestamp_lte?: string | null;
|
|
72
73
|
filter_exception_at_timestamp_gte?: string | null;
|
|
73
74
|
filter_executor_org_id?: string | null;
|
|
75
|
+
/** Filter by executor department ID */
|
|
76
|
+
filter_executor_department_id?: string | null;
|
|
74
77
|
/** Filter by off-CHRT executor org data ID */
|
|
75
78
|
filter_off_chrt_executor_org_data_id?: string | null;
|
|
76
79
|
filter_coordinator_org_id?: string | null;
|
|
@@ -49,7 +49,7 @@ export declare class Task {
|
|
|
49
49
|
addV1(request: Chrt.shipping.orders.OrdersAddTaskReq, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
|
|
50
50
|
private __addV1;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes a task
|
|
52
|
+
* Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
53
53
|
*
|
|
54
54
|
* @param {string} taskId
|
|
55
55
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -123,7 +123,7 @@ class Task {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* Deletes a task
|
|
126
|
+
* Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
127
127
|
*
|
|
128
128
|
* @param {string} taskId
|
|
129
129
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class TaskGroup {
|
|
|
31
31
|
protected readonly _options: TaskGroup.Options;
|
|
32
32
|
constructor(_options?: TaskGroup.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Adds a task group to
|
|
34
|
+
* Adds a task group to an order. Draft groups are DRAFT; all later lifecycle groups are STAGED and parent state is synchronized. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersAddTaskGroupReq) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.shipping.orders.OrdersAddTaskGroupReq} request
|
|
37
37
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -61,7 +61,7 @@ export declare class TaskGroup {
|
|
|
61
61
|
addExecutorV1(taskGroupId: string, request?: Chrt.shipping.orders.OrdersAddTaskGroupExecutorReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
62
62
|
private __addExecutorV1;
|
|
63
63
|
/**
|
|
64
|
-
* Deletes a task group
|
|
64
|
+
* Deletes a task group in any lifecycle state and synchronizes affected shipping state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
65
65
|
*
|
|
66
66
|
* @param {string} taskGroupId
|
|
67
67
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -100,7 +100,7 @@ export declare class TaskGroup {
|
|
|
100
100
|
removeExecutorV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
101
101
|
private __removeExecutorV1;
|
|
102
102
|
/**
|
|
103
|
-
* Replaces the ordered flight legs on an order task group. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
103
|
+
* Replaces the ordered flight legs on an order task group. A submitted leg that is the same physical flight (carrier, flight number, origin, destination, UTC departure date) as an existing leg keeps its id, so tasks reporting on it stay attached. Changing any of those five details is a different flight: the old leg is deleted and any task referencing it has its flight_leg_id cleared. Because flight_leg_id is not editable, re-attaching such a task requires deleting and recreating it. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
104
104
|
*
|
|
105
105
|
* @param {string} taskGroupId
|
|
106
106
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupFlightInfoReq} request
|
|
@@ -124,7 +124,7 @@ export declare class TaskGroup {
|
|
|
124
124
|
setFlightInfoV1(taskGroupId: string, request: Chrt.shipping.orders.OrdersSetTaskGroupFlightInfoReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
125
125
|
private __setFlightInfoV1;
|
|
126
126
|
/**
|
|
127
|
-
* Sets
|
|
127
|
+
* Sets task ordering in any lifecycle state, recalculating mileage and affected cargo state. | authz_personas=[draft_creator_org_operator, task_group_operating_org_operators] | (OrdersSetTaskGroupTaskOrderingReq) -> (bool)
|
|
128
128
|
*
|
|
129
129
|
* @param {string} taskGroupId
|
|
130
130
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupTaskOrderingReq} request
|
|
@@ -140,7 +140,7 @@ export declare class TaskGroup {
|
|
|
140
140
|
setTaskOrderingV1(taskGroupId: string, request: Chrt.shipping.orders.OrdersSetTaskGroupTaskOrderingReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
141
141
|
private __setTaskOrderingV1;
|
|
142
142
|
/**
|
|
143
|
-
* Sets the vehicle type
|
|
143
|
+
* Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
144
144
|
*
|
|
145
145
|
* @param {string} taskGroupId
|
|
146
146
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq} request
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js
CHANGED
|
@@ -56,7 +56,7 @@ class TaskGroup {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Adds a task group to
|
|
59
|
+
* Adds a task group to an order. Draft groups are DRAFT; all later lifecycle groups are STAGED and parent state is synchronized. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersAddTaskGroupReq) -> (PydanticObjectId)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.shipping.orders.OrdersAddTaskGroupReq} request
|
|
62
62
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -184,7 +184,7 @@ class TaskGroup {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
|
-
* Deletes a task group
|
|
187
|
+
* Deletes a task group in any lifecycle state and synchronizes affected shipping state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
188
188
|
*
|
|
189
189
|
* @param {string} taskGroupId
|
|
190
190
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -361,7 +361,7 @@ class TaskGroup {
|
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
|
-
* Replaces the ordered flight legs on an order task group. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
364
|
+
* Replaces the ordered flight legs on an order task group. A submitted leg that is the same physical flight (carrier, flight number, origin, destination, UTC departure date) as an existing leg keeps its id, so tasks reporting on it stay attached. Changing any of those five details is a different flight: the old leg is deleted and any task referencing it has its flight_leg_id cleared. Because flight_leg_id is not editable, re-attaching such a task requires deleting and recreating it. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
365
365
|
*
|
|
366
366
|
* @param {string} taskGroupId
|
|
367
367
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupFlightInfoReq} request
|
|
@@ -434,7 +434,7 @@ class TaskGroup {
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
|
-
* Sets
|
|
437
|
+
* Sets task ordering in any lifecycle state, recalculating mileage and affected cargo state. | authz_personas=[draft_creator_org_operator, task_group_operating_org_operators] | (OrdersSetTaskGroupTaskOrderingReq) -> (bool)
|
|
438
438
|
*
|
|
439
439
|
* @param {string} taskGroupId
|
|
440
440
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupTaskOrderingReq} request
|
|
@@ -499,7 +499,7 @@ class TaskGroup {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
|
-
* Sets the vehicle type
|
|
502
|
+
* Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
503
503
|
*
|
|
504
504
|
* @param {string} taskGroupId
|
|
505
505
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq} request
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type DepartmentTypeEnum = "aerospace" | "agriculture" | "automotive" | "chemicals" | "electronics" | "energy" | "food_and_beverage" | "general" | "healthcare" | "industrials" | "life_sciences" | "live_animals" | "manufacturing" | "pharmaceutical" | "radiopharma" | "retail" | "semiconductor";
|
|
4
|
+
export type DepartmentTypeEnum = "aerospace" | "agriculture" | "automotive" | "chemicals" | "electronics" | "energy" | "food_and_beverage" | "general" | "healthcare" | "industrials" | "life_sciences" | "live_animals" | "manufacturing" | "marine" | "pharmaceutical" | "radiopharma" | "retail" | "semiconductor";
|
|
5
5
|
export declare const DepartmentTypeEnum: {
|
|
6
6
|
readonly Aerospace: "aerospace";
|
|
7
7
|
readonly Agriculture: "agriculture";
|
|
@@ -16,6 +16,7 @@ export declare const DepartmentTypeEnum: {
|
|
|
16
16
|
readonly LifeSciences: "life_sciences";
|
|
17
17
|
readonly LiveAnimals: "live_animals";
|
|
18
18
|
readonly Manufacturing: "manufacturing";
|
|
19
|
+
readonly Marine: "marine";
|
|
19
20
|
readonly Pharmaceutical: "pharmaceutical";
|
|
20
21
|
readonly Radiopharma: "radiopharma";
|
|
21
22
|
readonly Retail: "retail";
|
|
@@ -21,7 +21,7 @@ export interface InvoiceExportListItem {
|
|
|
21
21
|
delivery_stops_on_order?: number | null;
|
|
22
22
|
destination_iata?: string | null;
|
|
23
23
|
flight_numbers?: string[];
|
|
24
|
-
invoice_approval_timestamp
|
|
24
|
+
invoice_approval_timestamp?: string | null;
|
|
25
25
|
invoice_number: string;
|
|
26
26
|
mileage_estimated?: number | null;
|
|
27
27
|
net_billing: number;
|
|
@@ -5,10 +5,12 @@ export interface OrderAndTaskGroupExpandedReq {
|
|
|
5
5
|
expand_accounts?: boolean;
|
|
6
6
|
expand_cargos?: boolean;
|
|
7
7
|
expand_contacts?: boolean;
|
|
8
|
+
expand_coordinator_department?: boolean;
|
|
8
9
|
expand_coordinator_org_company_name?: boolean;
|
|
9
10
|
expand_coordinator_org_handle?: boolean;
|
|
10
11
|
expand_coordinator_task_lists_to_apply_at_order_staging?: boolean;
|
|
11
12
|
expand_driver?: boolean;
|
|
13
|
+
expand_executor_department?: boolean;
|
|
12
14
|
expand_executor_org_company_name?: boolean;
|
|
13
15
|
expand_executor_org_handle?: boolean;
|
|
14
16
|
expand_notification_intents_ad_hoc?: boolean;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface OrderExpandedForProvider {
|
|
6
|
+
coordinator_department?: Chrt.Department1 | null;
|
|
6
7
|
coordinator_org_company_name?: string | null;
|
|
7
8
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
8
9
|
coordinator_org_handle?: string | null;
|
|
@@ -8,6 +8,7 @@ export interface OrderTemplateNewTask1 {
|
|
|
8
8
|
contact_ids?: string[];
|
|
9
9
|
coordinator_shipper_account_ids?: string[];
|
|
10
10
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
11
|
+
flight_leg_id?: string | null;
|
|
11
12
|
geofence_distance_miles?: number;
|
|
12
13
|
location?: Chrt.LocationFeature | null;
|
|
13
14
|
order_placer_comments?: string | null;
|
|
@@ -24,6 +24,7 @@ export interface Task1 {
|
|
|
24
24
|
draft_started_at_timestamp: string;
|
|
25
25
|
exception_at_timestamp?: string | null;
|
|
26
26
|
executor_org_notes?: Chrt.TaskExecutorOrgNote1[];
|
|
27
|
+
flight_leg_id?: string | null;
|
|
27
28
|
geofence_distance_miles?: number;
|
|
28
29
|
location?: Chrt.LocationFeature | null;
|
|
29
30
|
order_id: string;
|
|
@@ -7,6 +7,7 @@ export interface TaskClientCreate1 {
|
|
|
7
7
|
contact_ids?: string[];
|
|
8
8
|
coordinator_shipper_account_ids?: string[];
|
|
9
9
|
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
10
|
+
flight_leg_id?: string | null;
|
|
10
11
|
geofence_distance_miles?: number;
|
|
11
12
|
location?: Chrt.LocationFeature | null;
|
|
12
13
|
order_placer_comments?: string | null;
|
|
@@ -10,6 +10,7 @@ export interface TaskGroupExpanded {
|
|
|
10
10
|
/** Must be a string starting with `org_` */
|
|
11
11
|
coordinator_org_id?: string | null;
|
|
12
12
|
driver?: Chrt.Driver1 | null;
|
|
13
|
+
executor_department?: Chrt.Department1 | null;
|
|
13
14
|
executor_org_company_name?: string | null;
|
|
14
15
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
15
16
|
executor_org_handle?: string | null;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.976.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -24,8 +24,8 @@ export class ChrtClient {
|
|
|
24
24
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
25
25
|
"X-Fern-Language": "JavaScript",
|
|
26
26
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
27
|
-
"X-Fern-SDK-Version": "1.
|
|
28
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
27
|
+
"X-Fern-SDK-Version": "1.976.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.976.0",
|
|
29
29
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
30
30
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
31
31
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Export {
|
|
|
31
31
|
protected readonly _options: Export.Options;
|
|
32
32
|
constructor(_options?: Export.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
34
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} invoiceId
|
|
37
37
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class Export {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
23
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} invoiceId
|
|
26
26
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
|
@@ -70,6 +70,7 @@ export declare class Orders {
|
|
|
70
70
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
71
71
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
72
72
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
73
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
73
74
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
74
75
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
75
76
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -126,6 +126,7 @@ export class Orders {
|
|
|
126
126
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
127
127
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
128
128
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
129
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
129
130
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
130
131
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
131
132
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -147,7 +148,7 @@ export class Orders {
|
|
|
147
148
|
__listExpandedForCoordinatorOperatorsV1() {
|
|
148
149
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
149
150
|
var _a, _b, _c, _d, _e, _f;
|
|
150
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_label: filterCoordinatorLabel, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_coordinator_label", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
151
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_label: filterCoordinatorLabel, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_off_chrt_executor_org_data_id", "filter_coordinator_label", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
151
152
|
const _queryParams = {};
|
|
152
153
|
if (sortBy !== undefined) {
|
|
153
154
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -192,6 +193,9 @@ export class Orders {
|
|
|
192
193
|
if (filterExecutorOrgId !== undefined) {
|
|
193
194
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
194
195
|
}
|
|
196
|
+
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
197
|
+
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
198
|
+
}
|
|
195
199
|
if (filterCoordinatorLabel !== undefined) {
|
|
196
200
|
_queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
|
|
197
201
|
}
|
|
@@ -16,6 +16,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
16
16
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
17
17
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
18
18
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
19
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
19
20
|
* filter_coordinator_label: "filter_coordinator_label",
|
|
20
21
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
21
22
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -52,6 +53,8 @@ export interface OrderBillingExpandedListReq {
|
|
|
52
53
|
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
53
54
|
/** Filter by an on-CHRT executor organization. */
|
|
54
55
|
filter_executor_org_id?: string | null;
|
|
56
|
+
/** Filter by an off-CHRT executor. */
|
|
57
|
+
filter_off_chrt_executor_org_data_id?: string | null;
|
|
55
58
|
/** Filter by an exact coordinator label. */
|
|
56
59
|
filter_coordinator_label?: string | null;
|
|
57
60
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
@@ -12,6 +12,7 @@ export interface OrderTemplateNewTaskClientCreate1 {
|
|
|
12
12
|
contact_ids?: string[];
|
|
13
13
|
coordinator_shipper_account_ids?: string[];
|
|
14
14
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
15
|
+
flight_leg_id?: string | null;
|
|
15
16
|
geofence_distance_miles?: number;
|
|
16
17
|
location?: Chrt.LocationFeature | null;
|
|
17
18
|
order_placer_comments?: string | null;
|