@chrt-inc/typescript-sdk 1.984.0 → 1.992.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/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +9 -4
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +3 -3
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +7 -7
- package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +6 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +13 -5
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +38 -5
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +164 -11
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +6 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +6 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.ts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.ts} +5 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.js +11 -2
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +163 -16
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +10 -5
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +2 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +13 -12
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +23 -19
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.ts → OrdersUpdateDepartmentsReq.d.ts} +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.js +5 -0
- package/dist/{esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.d.ts} +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +25 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +9 -7
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +3 -5
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +5 -7
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.ts +3 -4
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +9 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +6 -0
- package/dist/cjs/api/types/BidThreadForListing1.d.ts +19 -0
- package/dist/cjs/api/types/BidThreadForListing1.js +5 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.d.ts +8 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.js +5 -0
- package/dist/cjs/api/types/Driver1.d.ts +1 -0
- package/dist/cjs/api/types/DriverBiddingGroupListItemRes.d.ts +17 -0
- package/dist/cjs/api/types/DriverBiddingGroupListItemRes.js +5 -0
- package/dist/cjs/api/types/DriverBiddingGroupListRes.d.ts +1 -1
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTask1.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +2 -2
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -2
- package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +1 -1
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +1 -1
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNew1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +3 -2
- package/dist/cjs/api/types/OrgBiddingGroupListItemRes.d.ts +17 -0
- package/dist/cjs/api/types/OrgBiddingGroupListItemRes.js +5 -0
- package/dist/cjs/api/types/OrgBiddingGroupListRes.d.ts +1 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.js +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
- package/dist/cjs/api/types/TaskListToApplyToOrder1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -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/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +9 -4
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +3 -3
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +7 -7
- package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +6 -2
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +13 -5
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.mts +4 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +38 -5
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +164 -11
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +6 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +6 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.mts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.mts} +5 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/orgs/client/Client.mjs +11 -2
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +163 -16
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +10 -5
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +2 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +13 -12
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +23 -19
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.d.mts +10 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.d.mts +10 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +25 -10
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +9 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +3 -5
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +5 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.mts +3 -4
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +9 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +6 -0
- package/dist/esm/api/types/BidThreadForListing1.d.mts +19 -0
- package/dist/esm/api/types/BidThreadForListing1.mjs +4 -0
- package/dist/esm/api/types/BidThreadForListingListRes.d.mts +8 -0
- package/dist/esm/api/types/BidThreadForListingListRes.mjs +4 -0
- package/dist/esm/api/types/Driver1.d.mts +1 -0
- package/dist/esm/api/types/DriverBiddingGroupListItemRes.d.mts +17 -0
- package/dist/esm/api/types/DriverBiddingGroupListItemRes.mjs +4 -0
- package/dist/esm/api/types/DriverBiddingGroupListRes.d.mts +1 -1
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +1 -0
- package/dist/esm/api/types/OperationsTask1.d.mts +1 -0
- package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +2 -2
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -2
- package/dist/esm/api/types/OrderBillingExecutor1.d.mts +1 -1
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +1 -1
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +2 -2
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNew1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +3 -2
- package/dist/esm/api/types/OrgBiddingGroupListItemRes.d.mts +17 -0
- package/dist/esm/api/types/OrgBiddingGroupListItemRes.mjs +4 -0
- package/dist/esm/api/types/OrgBiddingGroupListRes.d.mts +1 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
- package/dist/esm/api/types/TaskListToApplyToOrder1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +310 -40
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.js} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.mjs} +0 -0
|
@@ -296,6 +296,7 @@ class Orders {
|
|
|
296
296
|
* @example
|
|
297
297
|
* await client.shipping.orders.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
|
|
298
298
|
* department_id: "department_id",
|
|
299
|
+
* entry_tag: "entry_tag",
|
|
299
300
|
* body: "2024-01-15T09:30:00Z"
|
|
300
301
|
* })
|
|
301
302
|
*/
|
|
@@ -305,11 +306,14 @@ class Orders {
|
|
|
305
306
|
__addCoordinatorTaskListToApplyAtOrderStagingV1(orderId_1, taskListId_1) {
|
|
306
307
|
return __awaiter(this, arguments, void 0, function* (orderId, taskListId, request = {}, requestOptions) {
|
|
307
308
|
var _a, _b, _c, _d;
|
|
308
|
-
const { department_id: departmentId, body: _body } = request;
|
|
309
|
+
const { department_id: departmentId, entry_tag: entryTag, body: _body } = request;
|
|
309
310
|
const _queryParams = {};
|
|
310
311
|
if (departmentId !== undefined) {
|
|
311
312
|
_queryParams["department_id"] = departmentId;
|
|
312
313
|
}
|
|
314
|
+
if (entryTag !== undefined) {
|
|
315
|
+
_queryParams["entry_tag"] = entryTag;
|
|
316
|
+
}
|
|
313
317
|
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);
|
|
314
318
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
315
319
|
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/coordinator_task_lists_to_apply_at_order_staging/add/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(taskListId)}`),
|
|
@@ -598,7 +602,7 @@ class Orders {
|
|
|
598
602
|
});
|
|
599
603
|
}
|
|
600
604
|
/**
|
|
601
|
-
* Returns the coordinator's account-level default department for the order's shipper. |
|
|
605
|
+
* Returns the coordinator's account-level default department for the order's shipper. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (PydanticObjectId | None)
|
|
602
606
|
*
|
|
603
607
|
* @param {string} orderId
|
|
604
608
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -722,7 +726,7 @@ class Orders {
|
|
|
722
726
|
});
|
|
723
727
|
}
|
|
724
728
|
/**
|
|
725
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
729
|
+
* Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_labels) or executor (task_group_details.executor_labels). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
|
|
726
730
|
*
|
|
727
731
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
728
732
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -982,26 +986,26 @@ class Orders {
|
|
|
982
986
|
});
|
|
983
987
|
}
|
|
984
988
|
/**
|
|
985
|
-
*
|
|
989
|
+
* Replaces department_ids for the caller's role on the order. Coordinator writes coordinator_department_ids; executor writes executor_department_ids on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentsReq) -> (bool)
|
|
986
990
|
*
|
|
987
991
|
* @param {string} orderId
|
|
988
|
-
* @param {Chrt.shipping.
|
|
992
|
+
* @param {Chrt.shipping.OrdersUpdateDepartmentsReq} request
|
|
989
993
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
990
994
|
*
|
|
991
995
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
992
996
|
*
|
|
993
997
|
* @example
|
|
994
|
-
* await client.shipping.orders.
|
|
998
|
+
* await client.shipping.orders.updateDepartmentsV1("order_id")
|
|
995
999
|
*/
|
|
996
|
-
|
|
997
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1000
|
+
updateDepartmentsV1(orderId, request = {}, requestOptions) {
|
|
1001
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentsV1(orderId, request, requestOptions));
|
|
998
1002
|
}
|
|
999
|
-
|
|
1003
|
+
__updateDepartmentsV1(orderId_1) {
|
|
1000
1004
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
1001
1005
|
var _a, _b, _c, _d;
|
|
1002
1006
|
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);
|
|
1003
1007
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1004
|
-
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/
|
|
1008
|
+
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/update_departments/v1/${encodeURIComponent(orderId)}`),
|
|
1005
1009
|
method: "PATCH",
|
|
1006
1010
|
headers: _headers,
|
|
1007
1011
|
contentType: "application/json",
|
|
@@ -1035,7 +1039,7 @@ class Orders {
|
|
|
1035
1039
|
rawResponse: _response.rawResponse,
|
|
1036
1040
|
});
|
|
1037
1041
|
case "timeout":
|
|
1038
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1042
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_departments/v1/{order_id}.");
|
|
1039
1043
|
case "unknown":
|
|
1040
1044
|
throw new errors.ChrtError({
|
|
1041
1045
|
message: _response.error.errorMessage,
|
|
@@ -1108,26 +1112,26 @@ class Orders {
|
|
|
1108
1112
|
});
|
|
1109
1113
|
}
|
|
1110
1114
|
/**
|
|
1111
|
-
*
|
|
1115
|
+
* Replaces labels for the caller's role on the order. Coordinator writes coordinator_labels; executor writes executor_labels on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelsReq) -> (bool)
|
|
1112
1116
|
*
|
|
1113
1117
|
* @param {string} orderId
|
|
1114
|
-
* @param {Chrt.shipping.
|
|
1118
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
1115
1119
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
1116
1120
|
*
|
|
1117
1121
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1118
1122
|
*
|
|
1119
1123
|
* @example
|
|
1120
|
-
* await client.shipping.orders.
|
|
1124
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
1121
1125
|
*/
|
|
1122
|
-
|
|
1123
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1126
|
+
updateLabelsV1(orderId, request = {}, requestOptions) {
|
|
1127
|
+
return core.HttpResponsePromise.fromPromise(this.__updateLabelsV1(orderId, request, requestOptions));
|
|
1124
1128
|
}
|
|
1125
|
-
|
|
1129
|
+
__updateLabelsV1(orderId_1) {
|
|
1126
1130
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
1127
1131
|
var _a, _b, _c, _d;
|
|
1128
1132
|
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);
|
|
1129
1133
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1130
|
-
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/
|
|
1134
|
+
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/update_labels/v1/${encodeURIComponent(orderId)}`),
|
|
1131
1135
|
method: "PATCH",
|
|
1132
1136
|
headers: _headers,
|
|
1133
1137
|
contentType: "application/json",
|
|
@@ -1161,7 +1165,7 @@ class Orders {
|
|
|
1161
1165
|
rawResponse: _response.rawResponse,
|
|
1162
1166
|
});
|
|
1163
1167
|
case "timeout":
|
|
1164
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1168
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_labels/v1/{order_id}.");
|
|
1165
1169
|
case "unknown":
|
|
1166
1170
|
throw new errors.ChrtError({
|
|
1167
1171
|
message: _response.error.errorMessage,
|
|
@@ -5,10 +5,13 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* department_id: "department_id",
|
|
8
|
+
* entry_tag: "entry_tag",
|
|
8
9
|
* body: "2024-01-15T09:30:00Z"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request {
|
|
12
13
|
department_id?: string | null;
|
|
14
|
+
/** Context tag for the generated tasks */
|
|
15
|
+
entry_tag?: string | null;
|
|
13
16
|
body?: string | null;
|
|
14
17
|
}
|
|
@@ -6,7 +6,7 @@ export { type OrdersTaskGroupOrderingReq } from "./OrdersTaskGroupOrderingReq.js
|
|
|
6
6
|
export { type OrdersTypeaheadLabelV1Request } from "./OrdersTypeaheadLabelV1Request.js";
|
|
7
7
|
export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.js";
|
|
8
8
|
export { type OrdersUnassignReq } from "./OrdersUnassignReq.js";
|
|
9
|
-
export { type
|
|
9
|
+
export { type OrdersUpdateDepartmentsReq } from "./OrdersUpdateDepartmentsReq.js";
|
|
10
10
|
export { type OrdersUpdateDraftReq } from "./OrdersUpdateDraftReq.js";
|
|
11
|
-
export { type
|
|
11
|
+
export { type OrdersUpdateLabelsReq } from "./OrdersUpdateLabelsReq.js";
|
|
12
12
|
export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.js";
|
|
@@ -11,8 +11,8 @@ export interface OrdersOpenDraftReq {
|
|
|
11
11
|
coordinator_org_id?: string | null;
|
|
12
12
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
13
13
|
creation_idempotency_key?: string | null;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
department_ids?: string[];
|
|
15
|
+
labels?: string[];
|
|
16
16
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
17
|
off_chrt_reference_id?: string | null;
|
|
18
18
|
off_chrt_shipper_org_data_id?: string | null;
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -92,15 +92,15 @@ 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
|
-
*
|
|
95
|
+
* filter_executor_department_ids: ["filter_executor_department_ids"],
|
|
96
96
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
97
97
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
98
98
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
99
99
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
100
100
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
101
|
-
*
|
|
101
|
+
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
102
102
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
103
|
-
*
|
|
103
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
104
104
|
* body: {}
|
|
105
105
|
* })
|
|
106
106
|
*/
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -215,15 +215,15 @@ 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
|
-
*
|
|
218
|
+
* filter_executor_department_ids: ["filter_executor_department_ids"],
|
|
219
219
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
220
220
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
221
221
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
222
222
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
223
223
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
224
|
-
*
|
|
224
|
+
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
225
225
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
226
|
-
*
|
|
226
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
227
227
|
* body: {}
|
|
228
228
|
* })
|
|
229
229
|
*/
|
|
@@ -233,7 +233,7 @@ class Expanded {
|
|
|
233
233
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
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,
|
|
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_ids: filterExecutorDepartmentIds, 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_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_labels: filterCoordinatorLabels, body: _body, } = request;
|
|
237
237
|
const _queryParams = {};
|
|
238
238
|
if (providerRole !== undefined) {
|
|
239
239
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -324,8 +324,13 @@ class Expanded {
|
|
|
324
324
|
if (filterExecutorOrgId !== undefined) {
|
|
325
325
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
326
326
|
}
|
|
327
|
-
if (
|
|
328
|
-
|
|
327
|
+
if (filterExecutorDepartmentIds !== undefined) {
|
|
328
|
+
if (Array.isArray(filterExecutorDepartmentIds)) {
|
|
329
|
+
_queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds.map((item) => item);
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
_queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds;
|
|
333
|
+
}
|
|
329
334
|
}
|
|
330
335
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
331
336
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
@@ -347,8 +352,13 @@ class Expanded {
|
|
|
347
352
|
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
348
353
|
}
|
|
349
354
|
}
|
|
350
|
-
if (
|
|
351
|
-
|
|
355
|
+
if (filterCoordinatorDepartmentIds !== undefined) {
|
|
356
|
+
if (Array.isArray(filterCoordinatorDepartmentIds)) {
|
|
357
|
+
_queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds.map((item) => item);
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
_queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds;
|
|
361
|
+
}
|
|
352
362
|
}
|
|
353
363
|
if (filterCoordinatorAssignedUserIds !== undefined) {
|
|
354
364
|
if (Array.isArray(filterCoordinatorAssignedUserIds)) {
|
|
@@ -358,8 +368,13 @@ class Expanded {
|
|
|
358
368
|
_queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
|
|
359
369
|
}
|
|
360
370
|
}
|
|
361
|
-
if (
|
|
362
|
-
|
|
371
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
372
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
373
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
377
|
+
}
|
|
363
378
|
}
|
|
364
379
|
let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
380
|
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
@@ -29,15 +29,15 @@ 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
|
-
*
|
|
32
|
+
* filter_executor_department_ids: ["filter_executor_department_ids"],
|
|
33
33
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
34
34
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
35
35
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
36
36
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
37
37
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
38
|
-
*
|
|
38
|
+
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
39
39
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
40
|
-
*
|
|
40
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
41
41
|
* body: {}
|
|
42
42
|
* }
|
|
43
43
|
*/
|
|
@@ -72,8 +72,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
72
72
|
filter_exception_at_timestamp_lte?: string | null;
|
|
73
73
|
filter_exception_at_timestamp_gte?: string | null;
|
|
74
74
|
filter_executor_org_id?: string | null;
|
|
75
|
-
/** Filter by executor department
|
|
76
|
-
|
|
75
|
+
/** Filter by executor department IDs */
|
|
76
|
+
filter_executor_department_ids?: (string | null) | (string | null)[];
|
|
77
77
|
/** Filter by off-CHRT executor org data ID */
|
|
78
78
|
filter_off_chrt_executor_org_data_id?: string | null;
|
|
79
79
|
filter_coordinator_org_id?: string | null;
|
|
@@ -81,8 +81,10 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
81
81
|
filter_off_chrt_shipper_org_data_id?: string | null;
|
|
82
82
|
/** Filter by coordinator shipper account IDs */
|
|
83
83
|
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
84
|
-
|
|
84
|
+
/** Filter by coordinator department IDs */
|
|
85
|
+
filter_coordinator_department_ids?: (string | null) | (string | null)[];
|
|
85
86
|
filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
|
|
86
|
-
|
|
87
|
+
/** Filter by any of the supplied coordinator labels (exact match). */
|
|
88
|
+
filter_coordinator_labels?: (string | null) | (string | null)[];
|
|
87
89
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
88
90
|
}
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts
CHANGED
|
@@ -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 task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
143
|
+
* Sets the task-group vehicle type in any lifecycle state; vehicle_type__set_to_None clears it. | 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
|
|
@@ -149,11 +149,9 @@ export declare class TaskGroup {
|
|
|
149
149
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
150
150
|
*
|
|
151
151
|
* @example
|
|
152
|
-
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id"
|
|
153
|
-
* vehicle_type: "sedan"
|
|
154
|
-
* })
|
|
152
|
+
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id")
|
|
155
153
|
*/
|
|
156
|
-
setVehicleTypeV1(taskGroupId: string, request
|
|
154
|
+
setVehicleTypeV1(taskGroupId: string, request?: Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
157
155
|
private __setVehicleTypeV1;
|
|
158
156
|
/**
|
|
159
157
|
* Assigns or swaps the driver on an order task group. The driver must belong to the task group's executor organization and permit direct assignment. | authz_personas=[executor_org_operators] | (OrdersUpdateTaskGroupDriverReq) -> (bool)
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js
CHANGED
|
@@ -499,7 +499,7 @@ class TaskGroup {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
|
-
* Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
502
|
+
* Sets the task-group vehicle type in any lifecycle state; vehicle_type__set_to_None clears it. | 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
|
|
@@ -508,15 +508,13 @@ class TaskGroup {
|
|
|
508
508
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
509
509
|
*
|
|
510
510
|
* @example
|
|
511
|
-
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id"
|
|
512
|
-
* vehicle_type: "sedan"
|
|
513
|
-
* })
|
|
511
|
+
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id")
|
|
514
512
|
*/
|
|
515
|
-
setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
513
|
+
setVehicleTypeV1(taskGroupId, request = {}, requestOptions) {
|
|
516
514
|
return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
|
|
517
515
|
}
|
|
518
|
-
__setVehicleTypeV1(
|
|
519
|
-
return __awaiter(this,
|
|
516
|
+
__setVehicleTypeV1(taskGroupId_1) {
|
|
517
|
+
return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
|
|
520
518
|
var _a, _b, _c, _d;
|
|
521
519
|
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);
|
|
522
520
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
import * as Chrt from "../../../../../../../../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
8
|
-
* vehicle_type: "sedan"
|
|
9
|
-
* }
|
|
7
|
+
* {}
|
|
10
8
|
*/
|
|
11
9
|
export interface OrdersSetTaskGroupVehicleTypeReq {
|
|
12
|
-
vehicle_type
|
|
10
|
+
vehicle_type?: Chrt.VehicleTypeEnum | null;
|
|
11
|
+
vehicle_type__set_to_None?: boolean;
|
|
13
12
|
}
|
|
@@ -76,6 +76,8 @@ export declare class Devices {
|
|
|
76
76
|
* page_size: 1,
|
|
77
77
|
* search: "search",
|
|
78
78
|
* org_scope: "owned",
|
|
79
|
+
* filter_device_id: "filter_device_id",
|
|
80
|
+
* filter_device_mac_address: "filter_device_mac_address",
|
|
79
81
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
80
82
|
* filter_type: "D15N-tag",
|
|
81
83
|
* filter_active_cargo_id: "filter_active_cargo_id",
|
|
@@ -210,6 +210,8 @@ class Devices {
|
|
|
210
210
|
* page_size: 1,
|
|
211
211
|
* search: "search",
|
|
212
212
|
* org_scope: "owned",
|
|
213
|
+
* filter_device_id: "filter_device_id",
|
|
214
|
+
* filter_device_mac_address: "filter_device_mac_address",
|
|
213
215
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
214
216
|
* filter_type: "D15N-tag",
|
|
215
217
|
* filter_active_cargo_id: "filter_active_cargo_id",
|
|
@@ -231,7 +233,7 @@ class Devices {
|
|
|
231
233
|
__listV1() {
|
|
232
234
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
233
235
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
234
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
236
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_device_id: filterDeviceId, filter_device_mac_address: filterDeviceMacAddress, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
235
237
|
const _queryParams = {};
|
|
236
238
|
if (sortBy !== undefined) {
|
|
237
239
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -251,6 +253,12 @@ class Devices {
|
|
|
251
253
|
if (orgScope !== undefined) {
|
|
252
254
|
_queryParams["org_scope"] = orgScope;
|
|
253
255
|
}
|
|
256
|
+
if (filterDeviceId !== undefined) {
|
|
257
|
+
_queryParams["filter_device_id"] = filterDeviceId;
|
|
258
|
+
}
|
|
259
|
+
if (filterDeviceMacAddress !== undefined) {
|
|
260
|
+
_queryParams["filter_device_mac_address"] = filterDeviceMacAddress;
|
|
261
|
+
}
|
|
254
262
|
if (filterOffChrtReferenceId !== undefined) {
|
|
255
263
|
_queryParams["filter_off_chrt_reference_id"] = filterOffChrtReferenceId;
|
|
256
264
|
}
|
package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
11
11
|
* page_size: 1,
|
|
12
12
|
* search: "search",
|
|
13
13
|
* org_scope: "owned",
|
|
14
|
+
* filter_device_id: "filter_device_id",
|
|
15
|
+
* filter_device_mac_address: "filter_device_mac_address",
|
|
14
16
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
15
17
|
* filter_type: "D15N-tag",
|
|
16
18
|
* filter_active_cargo_id: "filter_active_cargo_id",
|
|
@@ -37,6 +39,10 @@ export interface DevicesListV1Request {
|
|
|
37
39
|
search?: string | null;
|
|
38
40
|
/** Filter by org ownership: owned, shared, or owned_and_shared */
|
|
39
41
|
org_scope?: Chrt.TrackingOrgScopeEnum | null;
|
|
42
|
+
/** Filter by device ID (exact match) */
|
|
43
|
+
filter_device_id?: string | null;
|
|
44
|
+
/** Filter by device MAC address (exact match) */
|
|
45
|
+
filter_device_mac_address?: string | null;
|
|
40
46
|
/** Filter by off-CHRT reference ID (exact match) */
|
|
41
47
|
filter_off_chrt_reference_id?: string | null;
|
|
42
48
|
/** Filter by device type */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface BidThreadForListing1 {
|
|
6
|
+
_id: string;
|
|
7
|
+
accepted_pro_forma_line_items?: Chrt.ProFormaLineItem1[] | null;
|
|
8
|
+
bidder_driver?: Chrt.Driver1 | null;
|
|
9
|
+
bidder_driver_id?: string | null;
|
|
10
|
+
bidder_provider_org?: Chrt.OrgPublicData1 | null;
|
|
11
|
+
/** Must be a string starting with `org_` */
|
|
12
|
+
bidder_provider_org_id?: string | null;
|
|
13
|
+
bids: Chrt.Bid[];
|
|
14
|
+
created_at_timestamp: string;
|
|
15
|
+
listing_id: string;
|
|
16
|
+
schema_version?: number;
|
|
17
|
+
status: Chrt.BidThreadStatusEnum;
|
|
18
|
+
status_changed_at_timestamp: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface DriverBiddingGroupListItemRes {
|
|
6
|
+
_id: string;
|
|
7
|
+
created_at_timestamp: string;
|
|
8
|
+
/** Must be a string starting with `user_` */
|
|
9
|
+
created_by_user_id: string;
|
|
10
|
+
driver_ids?: string[];
|
|
11
|
+
drivers?: Chrt.Driver1[];
|
|
12
|
+
group_name: string;
|
|
13
|
+
last_edited_at_timestamp: string;
|
|
14
|
+
/** Must be a string starting with `org_` */
|
|
15
|
+
owner_org_id: string;
|
|
16
|
+
schema_version: number;
|
|
17
|
+
}
|
|
@@ -11,6 +11,7 @@ import * as Chrt from "../index.js";
|
|
|
11
11
|
export interface DriverWithActiveTaskGroupIds1 {
|
|
12
12
|
_id: string;
|
|
13
13
|
active_task_group_ids?: string[];
|
|
14
|
+
archived_at_timestamp?: string | null;
|
|
14
15
|
auto_assign_enabled?: boolean;
|
|
15
16
|
available_according_to_driver?: boolean;
|
|
16
17
|
available_according_to_operators?: boolean;
|
|
@@ -12,6 +12,7 @@ export interface OperationsTask1 {
|
|
|
12
12
|
deadline_timestamp?: string;
|
|
13
13
|
department_id?: string | null;
|
|
14
14
|
description: string;
|
|
15
|
+
entry_tag?: string | null;
|
|
15
16
|
order_id: string;
|
|
16
17
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
18
|
order_off_chrt_reference_id?: string | null;
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* structurally parallel to the Check status model in anticipation of the
|
|
9
9
|
* eventual Task <-> Check merge.
|
|
10
10
|
*/
|
|
11
|
-
export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "completed" | "skipped" | "cancelled";
|
|
11
|
+
export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "blocked" | "completed" | "skipped" | "cancelled";
|
|
12
12
|
export declare const OperationsTaskStatusEnum: {
|
|
13
13
|
readonly NotStarted: "not_started";
|
|
14
14
|
readonly InProgress: "in_progress";
|
|
15
|
+
readonly Blocked: "blocked";
|
|
15
16
|
readonly Completed: "completed";
|
|
16
17
|
readonly Skipped: "skipped";
|
|
17
18
|
readonly Cancelled: "cancelled";
|