@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
|
@@ -8,10 +8,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface OrderTemplateNewClientUpdate1 {
|
|
10
10
|
coordinator_assigned_user_ids?: string[];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
coordinator_label?: string | null;
|
|
14
|
-
coordinator_label__set_to_None?: boolean;
|
|
11
|
+
coordinator_department_ids?: string[];
|
|
12
|
+
coordinator_labels?: string[];
|
|
15
13
|
/** Must be a string starting with `org_` */
|
|
16
14
|
coordinator_org_id?: string | null;
|
|
17
15
|
coordinator_org_id__set_to_None?: boolean;
|
|
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
12
12
|
* search: "search",
|
|
13
13
|
* filter_archived: true,
|
|
14
14
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15
|
-
*
|
|
15
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
16
16
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
17
17
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
18
18
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -39,8 +39,8 @@ export interface OrderTemplatesNewListV1Request {
|
|
|
39
39
|
filter_archived?: boolean | null;
|
|
40
40
|
/** Filter by the user that created the template. */
|
|
41
41
|
filter_owned_by_user_id?: string | null;
|
|
42
|
-
/** Filter by coordinator
|
|
43
|
-
|
|
42
|
+
/** Filter by any of the supplied coordinator labels (exact match). */
|
|
43
|
+
filter_coordinator_labels?: (string | null) | (string | null)[];
|
|
44
44
|
/** Filter by an on-CHRT executor organization ID. */
|
|
45
45
|
filter_executor_org_id?: string | null;
|
|
46
46
|
/** Filter by an off-CHRT executor organization data ID. */
|
|
@@ -111,6 +111,7 @@ export declare class Orders {
|
|
|
111
111
|
* @example
|
|
112
112
|
* await client.shipping.orders.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
|
|
113
113
|
* department_id: "department_id",
|
|
114
|
+
* entry_tag: "entry_tag",
|
|
114
115
|
* body: "2024-01-15T09:30:00Z"
|
|
115
116
|
* })
|
|
116
117
|
*/
|
|
@@ -172,7 +173,7 @@ export declare class Orders {
|
|
|
172
173
|
stageV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
173
174
|
private __stageV1;
|
|
174
175
|
/**
|
|
175
|
-
* Returns the coordinator's account-level default department for the order's shipper. |
|
|
176
|
+
* Returns the coordinator's account-level default department for the order's shipper. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (PydanticObjectId | None)
|
|
176
177
|
*
|
|
177
178
|
* @param {string} orderId
|
|
178
179
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -201,7 +202,7 @@ export declare class Orders {
|
|
|
201
202
|
taskGroupOrderingV1(orderId: string, request: Chrt.shipping.OrdersTaskGroupOrderingReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
202
203
|
private __taskGroupOrderingV1;
|
|
203
204
|
/**
|
|
204
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
205
|
+
* 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])
|
|
205
206
|
*
|
|
206
207
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
207
208
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -262,19 +263,19 @@ export declare class Orders {
|
|
|
262
263
|
undoCancelV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
263
264
|
private __undoCancelV1;
|
|
264
265
|
/**
|
|
265
|
-
*
|
|
266
|
+
* 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)
|
|
266
267
|
*
|
|
267
268
|
* @param {string} orderId
|
|
268
|
-
* @param {Chrt.shipping.
|
|
269
|
+
* @param {Chrt.shipping.OrdersUpdateDepartmentsReq} request
|
|
269
270
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
270
271
|
*
|
|
271
272
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
272
273
|
*
|
|
273
274
|
* @example
|
|
274
|
-
* await client.shipping.orders.
|
|
275
|
+
* await client.shipping.orders.updateDepartmentsV1("order_id")
|
|
275
276
|
*/
|
|
276
|
-
|
|
277
|
-
private
|
|
277
|
+
updateDepartmentsV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDepartmentsReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
278
|
+
private __updateDepartmentsV1;
|
|
278
279
|
/**
|
|
279
280
|
* Updates service-line and organization assignments on a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersUpdateDraftReq) -> (OrdersUpdateDraftRes)
|
|
280
281
|
*
|
|
@@ -290,19 +291,19 @@ export declare class Orders {
|
|
|
290
291
|
updateDraftV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDraftReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateDraftRes>;
|
|
291
292
|
private __updateDraftV1;
|
|
292
293
|
/**
|
|
293
|
-
*
|
|
294
|
+
* 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)
|
|
294
295
|
*
|
|
295
296
|
* @param {string} orderId
|
|
296
|
-
* @param {Chrt.shipping.
|
|
297
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
297
298
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
298
299
|
*
|
|
299
300
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
300
301
|
*
|
|
301
302
|
* @example
|
|
302
|
-
* await client.shipping.orders.
|
|
303
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
303
304
|
*/
|
|
304
|
-
|
|
305
|
-
private
|
|
305
|
+
updateLabelsV1(orderId: string, request?: Chrt.shipping.OrdersUpdateLabelsReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
306
|
+
private __updateLabelsV1;
|
|
306
307
|
/**
|
|
307
308
|
* Updates off_chrt_reference_id on an order. Drafts require the creating org's operator; operational orders require the order creator org's operator. | authz_personas=[draft_creator_org_operator, order_creator_org_operators] | (OrdersUpdateOffChrtReferenceIdReq) -> (OrdersUpdateOffChrtReferenceIdRes)
|
|
308
309
|
*
|
|
@@ -260,6 +260,7 @@ export class Orders {
|
|
|
260
260
|
* @example
|
|
261
261
|
* await client.shipping.orders.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
|
|
262
262
|
* department_id: "department_id",
|
|
263
|
+
* entry_tag: "entry_tag",
|
|
263
264
|
* body: "2024-01-15T09:30:00Z"
|
|
264
265
|
* })
|
|
265
266
|
*/
|
|
@@ -269,11 +270,14 @@ export class Orders {
|
|
|
269
270
|
__addCoordinatorTaskListToApplyAtOrderStagingV1(orderId_1, taskListId_1) {
|
|
270
271
|
return __awaiter(this, arguments, void 0, function* (orderId, taskListId, request = {}, requestOptions) {
|
|
271
272
|
var _a, _b, _c, _d;
|
|
272
|
-
const { department_id: departmentId, body: _body } = request;
|
|
273
|
+
const { department_id: departmentId, entry_tag: entryTag, body: _body } = request;
|
|
273
274
|
const _queryParams = {};
|
|
274
275
|
if (departmentId !== undefined) {
|
|
275
276
|
_queryParams["department_id"] = departmentId;
|
|
276
277
|
}
|
|
278
|
+
if (entryTag !== undefined) {
|
|
279
|
+
_queryParams["entry_tag"] = entryTag;
|
|
280
|
+
}
|
|
277
281
|
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);
|
|
278
282
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
279
283
|
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)}`),
|
|
@@ -562,7 +566,7 @@ export class Orders {
|
|
|
562
566
|
});
|
|
563
567
|
}
|
|
564
568
|
/**
|
|
565
|
-
* Returns the coordinator's account-level default department for the order's shipper. |
|
|
569
|
+
* Returns the coordinator's account-level default department for the order's shipper. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (PydanticObjectId | None)
|
|
566
570
|
*
|
|
567
571
|
* @param {string} orderId
|
|
568
572
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -686,7 +690,7 @@ export class Orders {
|
|
|
686
690
|
});
|
|
687
691
|
}
|
|
688
692
|
/**
|
|
689
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
693
|
+
* 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])
|
|
690
694
|
*
|
|
691
695
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
692
696
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -946,26 +950,26 @@ export class Orders {
|
|
|
946
950
|
});
|
|
947
951
|
}
|
|
948
952
|
/**
|
|
949
|
-
*
|
|
953
|
+
* 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)
|
|
950
954
|
*
|
|
951
955
|
* @param {string} orderId
|
|
952
|
-
* @param {Chrt.shipping.
|
|
956
|
+
* @param {Chrt.shipping.OrdersUpdateDepartmentsReq} request
|
|
953
957
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
954
958
|
*
|
|
955
959
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
956
960
|
*
|
|
957
961
|
* @example
|
|
958
|
-
* await client.shipping.orders.
|
|
962
|
+
* await client.shipping.orders.updateDepartmentsV1("order_id")
|
|
959
963
|
*/
|
|
960
|
-
|
|
961
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
964
|
+
updateDepartmentsV1(orderId, request = {}, requestOptions) {
|
|
965
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentsV1(orderId, request, requestOptions));
|
|
962
966
|
}
|
|
963
|
-
|
|
967
|
+
__updateDepartmentsV1(orderId_1) {
|
|
964
968
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
965
969
|
var _a, _b, _c, _d;
|
|
966
970
|
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);
|
|
967
971
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
968
|
-
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/
|
|
972
|
+
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)}`),
|
|
969
973
|
method: "PATCH",
|
|
970
974
|
headers: _headers,
|
|
971
975
|
contentType: "application/json",
|
|
@@ -999,7 +1003,7 @@ export class Orders {
|
|
|
999
1003
|
rawResponse: _response.rawResponse,
|
|
1000
1004
|
});
|
|
1001
1005
|
case "timeout":
|
|
1002
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1006
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_departments/v1/{order_id}.");
|
|
1003
1007
|
case "unknown":
|
|
1004
1008
|
throw new errors.ChrtError({
|
|
1005
1009
|
message: _response.error.errorMessage,
|
|
@@ -1072,26 +1076,26 @@ export class Orders {
|
|
|
1072
1076
|
});
|
|
1073
1077
|
}
|
|
1074
1078
|
/**
|
|
1075
|
-
*
|
|
1079
|
+
* 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)
|
|
1076
1080
|
*
|
|
1077
1081
|
* @param {string} orderId
|
|
1078
|
-
* @param {Chrt.shipping.
|
|
1082
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
1079
1083
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
1080
1084
|
*
|
|
1081
1085
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1082
1086
|
*
|
|
1083
1087
|
* @example
|
|
1084
|
-
* await client.shipping.orders.
|
|
1088
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
1085
1089
|
*/
|
|
1086
|
-
|
|
1087
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1090
|
+
updateLabelsV1(orderId, request = {}, requestOptions) {
|
|
1091
|
+
return core.HttpResponsePromise.fromPromise(this.__updateLabelsV1(orderId, request, requestOptions));
|
|
1088
1092
|
}
|
|
1089
|
-
|
|
1093
|
+
__updateLabelsV1(orderId_1) {
|
|
1090
1094
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
1091
1095
|
var _a, _b, _c, _d;
|
|
1092
1096
|
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);
|
|
1093
1097
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1094
|
-
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/
|
|
1098
|
+
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)}`),
|
|
1095
1099
|
method: "PATCH",
|
|
1096
1100
|
headers: _headers,
|
|
1097
1101
|
contentType: "application/json",
|
|
@@ -1125,7 +1129,7 @@ export class Orders {
|
|
|
1125
1129
|
rawResponse: _response.rawResponse,
|
|
1126
1130
|
});
|
|
1127
1131
|
case "timeout":
|
|
1128
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1132
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_labels/v1/{order_id}.");
|
|
1129
1133
|
case "unknown":
|
|
1130
1134
|
throw new errors.ChrtError({
|
|
1131
1135
|
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.mj
|
|
|
6
6
|
export { type OrdersTypeaheadLabelV1Request } from "./OrdersTypeaheadLabelV1Request.mjs";
|
|
7
7
|
export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.mjs";
|
|
8
8
|
export { type OrdersUnassignReq } from "./OrdersUnassignReq.mjs";
|
|
9
|
-
export { type
|
|
9
|
+
export { type OrdersUpdateDepartmentsReq } from "./OrdersUpdateDepartmentsReq.mjs";
|
|
10
10
|
export { type OrdersUpdateDraftReq } from "./OrdersUpdateDraftReq.mjs";
|
|
11
|
-
export { type
|
|
11
|
+
export { type OrdersUpdateLabelsReq } from "./OrdersUpdateLabelsReq.mjs";
|
|
12
12
|
export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.mjs";
|
|
@@ -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/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts
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/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -179,15 +179,15 @@ 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
|
-
*
|
|
182
|
+
* filter_executor_department_ids: ["filter_executor_department_ids"],
|
|
183
183
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
184
184
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
185
185
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
186
186
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
187
187
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
188
|
-
*
|
|
188
|
+
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
189
189
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
190
|
-
*
|
|
190
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
191
191
|
* body: {}
|
|
192
192
|
* })
|
|
193
193
|
*/
|
|
@@ -197,7 +197,7 @@ export class Expanded {
|
|
|
197
197
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
198
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
199
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
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,
|
|
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_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;
|
|
201
201
|
const _queryParams = {};
|
|
202
202
|
if (providerRole !== undefined) {
|
|
203
203
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -288,8 +288,13 @@ export class Expanded {
|
|
|
288
288
|
if (filterExecutorOrgId !== undefined) {
|
|
289
289
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
290
290
|
}
|
|
291
|
-
if (
|
|
292
|
-
|
|
291
|
+
if (filterExecutorDepartmentIds !== undefined) {
|
|
292
|
+
if (Array.isArray(filterExecutorDepartmentIds)) {
|
|
293
|
+
_queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds.map((item) => item);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
_queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds;
|
|
297
|
+
}
|
|
293
298
|
}
|
|
294
299
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
295
300
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
@@ -311,8 +316,13 @@ export class Expanded {
|
|
|
311
316
|
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
312
317
|
}
|
|
313
318
|
}
|
|
314
|
-
if (
|
|
315
|
-
|
|
319
|
+
if (filterCoordinatorDepartmentIds !== undefined) {
|
|
320
|
+
if (Array.isArray(filterCoordinatorDepartmentIds)) {
|
|
321
|
+
_queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds.map((item) => item);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
_queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds;
|
|
325
|
+
}
|
|
316
326
|
}
|
|
317
327
|
if (filterCoordinatorAssignedUserIds !== undefined) {
|
|
318
328
|
if (Array.isArray(filterCoordinatorAssignedUserIds)) {
|
|
@@ -322,8 +332,13 @@ export class Expanded {
|
|
|
322
332
|
_queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
|
|
323
333
|
}
|
|
324
334
|
}
|
|
325
|
-
if (
|
|
326
|
-
|
|
335
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
336
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
337
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
341
|
+
}
|
|
327
342
|
}
|
|
328
343
|
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
329
344
|
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
@@ -29,15 +29,15 @@ 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
|
-
*
|
|
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/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts
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/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs
CHANGED
|
@@ -463,7 +463,7 @@ export class TaskGroup {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
|
|
466
|
+
* 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)
|
|
467
467
|
*
|
|
468
468
|
* @param {string} taskGroupId
|
|
469
469
|
* @param {Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq} request
|
|
@@ -472,15 +472,13 @@ export class TaskGroup {
|
|
|
472
472
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
473
473
|
*
|
|
474
474
|
* @example
|
|
475
|
-
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id"
|
|
476
|
-
* vehicle_type: "sedan"
|
|
477
|
-
* })
|
|
475
|
+
* await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id")
|
|
478
476
|
*/
|
|
479
|
-
setVehicleTypeV1(taskGroupId, request, requestOptions) {
|
|
477
|
+
setVehicleTypeV1(taskGroupId, request = {}, requestOptions) {
|
|
480
478
|
return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
|
|
481
479
|
}
|
|
482
|
-
__setVehicleTypeV1(
|
|
483
|
-
return __awaiter(this,
|
|
480
|
+
__setVehicleTypeV1(taskGroupId_1) {
|
|
481
|
+
return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
|
|
484
482
|
var _a, _b, _c, _d;
|
|
485
483
|
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);
|
|
486
484
|
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.mjs";
|
|
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",
|
|
@@ -174,6 +174,8 @@ export class Devices {
|
|
|
174
174
|
* page_size: 1,
|
|
175
175
|
* search: "search",
|
|
176
176
|
* org_scope: "owned",
|
|
177
|
+
* filter_device_id: "filter_device_id",
|
|
178
|
+
* filter_device_mac_address: "filter_device_mac_address",
|
|
177
179
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
178
180
|
* filter_type: "D15N-tag",
|
|
179
181
|
* filter_active_cargo_id: "filter_active_cargo_id",
|
|
@@ -195,7 +197,7 @@ export class Devices {
|
|
|
195
197
|
__listV1() {
|
|
196
198
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
197
199
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
198
|
-
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;
|
|
200
|
+
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;
|
|
199
201
|
const _queryParams = {};
|
|
200
202
|
if (sortBy !== undefined) {
|
|
201
203
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -215,6 +217,12 @@ export class Devices {
|
|
|
215
217
|
if (orgScope !== undefined) {
|
|
216
218
|
_queryParams["org_scope"] = orgScope;
|
|
217
219
|
}
|
|
220
|
+
if (filterDeviceId !== undefined) {
|
|
221
|
+
_queryParams["filter_device_id"] = filterDeviceId;
|
|
222
|
+
}
|
|
223
|
+
if (filterDeviceMacAddress !== undefined) {
|
|
224
|
+
_queryParams["filter_device_mac_address"] = filterDeviceMacAddress;
|
|
225
|
+
}
|
|
218
226
|
if (filterOffChrtReferenceId !== undefined) {
|
|
219
227
|
_queryParams["filter_off_chrt_reference_id"] = filterOffChrtReferenceId;
|
|
220
228
|
}
|
package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts
CHANGED
|
@@ -11,6 +11,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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.mjs";
|
|
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
|
+
}
|