@chrt-inc/typescript-sdk 1.970.0 → 1.972.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/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/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 +72 -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.972.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.972.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
|
|
@@ -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.972.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.972.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.972.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
|
|
@@ -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
|
*
|
|
@@ -886,6 +886,65 @@ export class Orders {
|
|
|
886
886
|
}
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* 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)
|
|
891
|
+
*
|
|
892
|
+
* @param {string} orderId
|
|
893
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
894
|
+
*
|
|
895
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
896
|
+
*
|
|
897
|
+
* @example
|
|
898
|
+
* await client.shipping.orders.undoCancelV1("order_id")
|
|
899
|
+
*/
|
|
900
|
+
undoCancelV1(orderId, requestOptions) {
|
|
901
|
+
return core.HttpResponsePromise.fromPromise(this.__undoCancelV1(orderId, requestOptions));
|
|
902
|
+
}
|
|
903
|
+
__undoCancelV1(orderId, requestOptions) {
|
|
904
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
+
var _a, _b, _c, _d;
|
|
906
|
+
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);
|
|
907
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
908
|
+
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)}`),
|
|
909
|
+
method: "PUT",
|
|
910
|
+
headers: _headers,
|
|
911
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
912
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
913
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
914
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
915
|
+
});
|
|
916
|
+
if (_response.ok) {
|
|
917
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
918
|
+
}
|
|
919
|
+
if (_response.error.reason === "status-code") {
|
|
920
|
+
switch (_response.error.statusCode) {
|
|
921
|
+
case 422:
|
|
922
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
923
|
+
default:
|
|
924
|
+
throw new errors.ChrtError({
|
|
925
|
+
statusCode: _response.error.statusCode,
|
|
926
|
+
body: _response.error.body,
|
|
927
|
+
rawResponse: _response.rawResponse,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
switch (_response.error.reason) {
|
|
932
|
+
case "non-json":
|
|
933
|
+
throw new errors.ChrtError({
|
|
934
|
+
statusCode: _response.error.statusCode,
|
|
935
|
+
body: _response.error.rawBody,
|
|
936
|
+
rawResponse: _response.rawResponse,
|
|
937
|
+
});
|
|
938
|
+
case "timeout":
|
|
939
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/undo_cancel/v1/{order_id}.");
|
|
940
|
+
case "unknown":
|
|
941
|
+
throw new errors.ChrtError({
|
|
942
|
+
message: _response.error.errorMessage,
|
|
943
|
+
rawResponse: _response.rawResponse,
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
889
948
|
/**
|
|
890
949
|
* 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)
|
|
891
950
|
*
|
package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts
CHANGED
|
@@ -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.
|
|
@@ -154,7 +154,7 @@ export class Cargo {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Deletes
|
|
157
|
+
* 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)
|
|
158
158
|
*
|
|
159
159
|
* @param {string} cargoId
|
|
160
160
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts
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/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -179,6 +179,7 @@ export class Expanded {
|
|
|
179
179
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
180
180
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
181
181
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
182
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
182
183
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
183
184
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
184
185
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -196,7 +197,7 @@ export class Expanded {
|
|
|
196
197
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
197
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
199
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
199
|
-
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;
|
|
200
|
+
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;
|
|
200
201
|
const _queryParams = {};
|
|
201
202
|
if (providerRole !== undefined) {
|
|
202
203
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -287,6 +288,9 @@ export class Expanded {
|
|
|
287
288
|
if (filterExecutorOrgId !== undefined) {
|
|
288
289
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
289
290
|
}
|
|
291
|
+
if (filterExecutorDepartmentId !== undefined) {
|
|
292
|
+
_queryParams["filter_executor_department_id"] = filterExecutorDepartmentId;
|
|
293
|
+
}
|
|
290
294
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
291
295
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
292
296
|
}
|
|
@@ -29,6 +29,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
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.
|
|
@@ -87,7 +87,7 @@ export class Task {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Deletes a task
|
|
90
|
+
* Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
91
91
|
*
|
|
92
92
|
* @param {string} taskId
|
|
93
93
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts
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/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class TaskGroup {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Adds a task group to
|
|
23
|
+
* 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)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.shipping.orders.OrdersAddTaskGroupReq} request
|
|
26
26
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -148,7 +148,7 @@ export class TaskGroup {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* Deletes a task group
|
|
151
|
+
* Deletes a task group in any lifecycle state and synchronizes affected shipping state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
152
152
|
*
|
|
153
153
|
* @param {string} taskGroupId
|
|
154
154
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -325,7 +325,7 @@ export class TaskGroup {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
* Replaces the ordered flight legs on an order task group. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
328
|
+
* 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)
|
|
329
329
|
*
|
|
330
330
|
* @param {string} taskGroupId
|
|
331
331
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupFlightInfoReq} request
|
|
@@ -398,7 +398,7 @@ export class TaskGroup {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
|
-
* Sets
|
|
401
|
+
* 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)
|
|
402
402
|
*
|
|
403
403
|
* @param {string} taskGroupId
|
|
404
404
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupTaskOrderingReq} request
|
|
@@ -463,7 +463,7 @@ export class TaskGroup {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Sets the vehicle type
|
|
466
|
+
* Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
467
467
|
*
|
|
468
468
|
* @param {string} taskGroupId
|
|
469
469
|
* @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.mjs";
|
|
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/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.972.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.972.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3953,7 +3953,7 @@ await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
|
|
|
3953
3953
|
<dl>
|
|
3954
3954
|
<dd>
|
|
3955
3955
|
|
|
3956
|
-
Lists up to 1,000 shipment-level export rows for one
|
|
3956
|
+
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)
|
|
3957
3957
|
|
|
3958
3958
|
</dd>
|
|
3959
3959
|
</dl>
|
|
@@ -17607,6 +17607,69 @@ await client.shipping.orders.unassignV1("order_id", {
|
|
|
17607
17607
|
</dl>
|
|
17608
17608
|
</details>
|
|
17609
17609
|
|
|
17610
|
+
<details><summary><code>client.shipping.orders.<a href="/src/api/resources/shipping/resources/orders/client/Client.ts">undoCancelV1</a>(orderId) -> boolean</code></summary>
|
|
17611
|
+
<dl>
|
|
17612
|
+
<dd>
|
|
17613
|
+
|
|
17614
|
+
#### 📝 Description
|
|
17615
|
+
|
|
17616
|
+
<dl>
|
|
17617
|
+
<dd>
|
|
17618
|
+
|
|
17619
|
+
<dl>
|
|
17620
|
+
<dd>
|
|
17621
|
+
|
|
17622
|
+
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)
|
|
17623
|
+
|
|
17624
|
+
</dd>
|
|
17625
|
+
</dl>
|
|
17626
|
+
</dd>
|
|
17627
|
+
</dl>
|
|
17628
|
+
|
|
17629
|
+
#### 🔌 Usage
|
|
17630
|
+
|
|
17631
|
+
<dl>
|
|
17632
|
+
<dd>
|
|
17633
|
+
|
|
17634
|
+
<dl>
|
|
17635
|
+
<dd>
|
|
17636
|
+
|
|
17637
|
+
```typescript
|
|
17638
|
+
await client.shipping.orders.undoCancelV1("order_id");
|
|
17639
|
+
```
|
|
17640
|
+
|
|
17641
|
+
</dd>
|
|
17642
|
+
</dl>
|
|
17643
|
+
</dd>
|
|
17644
|
+
</dl>
|
|
17645
|
+
|
|
17646
|
+
#### ⚙️ Parameters
|
|
17647
|
+
|
|
17648
|
+
<dl>
|
|
17649
|
+
<dd>
|
|
17650
|
+
|
|
17651
|
+
<dl>
|
|
17652
|
+
<dd>
|
|
17653
|
+
|
|
17654
|
+
**orderId:** `string`
|
|
17655
|
+
|
|
17656
|
+
</dd>
|
|
17657
|
+
</dl>
|
|
17658
|
+
|
|
17659
|
+
<dl>
|
|
17660
|
+
<dd>
|
|
17661
|
+
|
|
17662
|
+
**requestOptions:** `Orders.RequestOptions`
|
|
17663
|
+
|
|
17664
|
+
</dd>
|
|
17665
|
+
</dl>
|
|
17666
|
+
</dd>
|
|
17667
|
+
</dl>
|
|
17668
|
+
|
|
17669
|
+
</dd>
|
|
17670
|
+
</dl>
|
|
17671
|
+
</details>
|
|
17672
|
+
|
|
17610
17673
|
<details><summary><code>client.shipping.orders.<a href="/src/api/resources/shipping/resources/orders/client/Client.ts">updateDepartmentV1</a>(orderId, { ...params }) -> boolean</code></summary>
|
|
17611
17674
|
<dl>
|
|
17612
17675
|
<dd>
|
|
@@ -21317,7 +21380,7 @@ await client.shipping.orders.cargo.associateWithTaskV1({
|
|
|
21317
21380
|
<dl>
|
|
21318
21381
|
<dd>
|
|
21319
21382
|
|
|
21320
|
-
Deletes
|
|
21383
|
+
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)
|
|
21321
21384
|
|
|
21322
21385
|
</dd>
|
|
21323
21386
|
</dl>
|
|
@@ -21894,6 +21957,7 @@ await client.shipping.orders.expanded.listForProviderOperatorsV1({
|
|
|
21894
21957
|
filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21895
21958
|
filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
21896
21959
|
filter_executor_org_id: "filter_executor_org_id",
|
|
21960
|
+
filter_executor_department_id: "filter_executor_department_id",
|
|
21897
21961
|
filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
21898
21962
|
filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
21899
21963
|
filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -22255,7 +22319,7 @@ await client.shipping.orders.task.addV1({
|
|
|
22255
22319
|
<dl>
|
|
22256
22320
|
<dd>
|
|
22257
22321
|
|
|
22258
|
-
Deletes a task
|
|
22322
|
+
Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
22259
22323
|
|
|
22260
22324
|
</dd>
|
|
22261
22325
|
</dl>
|
|
@@ -22532,7 +22596,7 @@ await client.shipping.orders.taskArtifact.deleteV1("task_artifact_id");
|
|
|
22532
22596
|
<dl>
|
|
22533
22597
|
<dd>
|
|
22534
22598
|
|
|
22535
|
-
Adds a task group to
|
|
22599
|
+
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)
|
|
22536
22600
|
|
|
22537
22601
|
</dd>
|
|
22538
22602
|
</dl>
|
|
@@ -22669,7 +22733,7 @@ await client.shipping.orders.taskGroup.addExecutorV1("task_group_id");
|
|
|
22669
22733
|
<dl>
|
|
22670
22734
|
<dd>
|
|
22671
22735
|
|
|
22672
|
-
Deletes a task group
|
|
22736
|
+
Deletes a task group in any lifecycle state and synchronizes affected shipping state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
22673
22737
|
|
|
22674
22738
|
</dd>
|
|
22675
22739
|
</dl>
|
|
@@ -22858,7 +22922,7 @@ await client.shipping.orders.taskGroup.removeExecutorV1("task_group_id");
|
|
|
22858
22922
|
<dl>
|
|
22859
22923
|
<dd>
|
|
22860
22924
|
|
|
22861
|
-
Replaces the ordered flight legs on an order task group. | (OrdersSetTaskGroupFlightInfoReq) -> (bool)
|
|
22925
|
+
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)
|
|
22862
22926
|
|
|
22863
22927
|
</dd>
|
|
22864
22928
|
</dl>
|
|
@@ -22941,7 +23005,7 @@ await client.shipping.orders.taskGroup.setFlightInfoV1("task_group_id", {
|
|
|
22941
23005
|
<dl>
|
|
22942
23006
|
<dd>
|
|
22943
23007
|
|
|
22944
|
-
Sets
|
|
23008
|
+
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)
|
|
22945
23009
|
|
|
22946
23010
|
</dd>
|
|
22947
23011
|
</dl>
|
|
@@ -23014,7 +23078,7 @@ await client.shipping.orders.taskGroup.setTaskOrderingV1("task_group_id", {
|
|
|
23014
23078
|
<dl>
|
|
23015
23079
|
<dd>
|
|
23016
23080
|
|
|
23017
|
-
Sets the vehicle type
|
|
23081
|
+
Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
23018
23082
|
|
|
23019
23083
|
</dd>
|
|
23020
23084
|
</dl>
|