@chrt-inc/typescript-sdk 1.723.0 → 1.732.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/analytics/resources/shipping/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.ts → AnalyticsTimePeriodReq.d.ts} +1 -1
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +22 -14
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +3 -5
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +21 -21
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.ts → OperationsTaskListReorderEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.ts → OperationsTaskListSetEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +31 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +129 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
- package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
- package/dist/cjs/api/types/AnalyticsTimeBucketRes.js +5 -0
- package/dist/cjs/api/types/Cargo1.d.ts +1 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
- package/dist/cjs/api/types/DeadlineAnchorEnum.d.ts +13 -0
- package/dist/cjs/api/types/DeadlineAnchorEnum.js +10 -0
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +3 -3
- package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
- package/dist/cjs/api/types/DriverStatsRes.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +9 -7
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +16 -8
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +6 -7
- package/dist/cjs/api/types/Order1.d.ts +1 -2
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderDraftValidationResult.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -1
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
- package/dist/cjs/api/types/ValidationIssue.d.ts +8 -0
- package/dist/cjs/api/types/ValidationIssue.js +5 -0
- package/dist/cjs/api/types/ValidationIssueScope.d.ts +8 -0
- package/dist/cjs/api/types/ValidationIssueScope.js +5 -0
- package/dist/cjs/api/types/index.d.ts +5 -2
- package/dist/cjs/api/types/index.js +5 -2
- 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/analytics/resources/shipping/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +31 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +129 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts +12 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts +12 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
- package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
- package/dist/esm/api/types/AnalyticsTimeBucketRes.mjs +4 -0
- package/dist/esm/api/types/Cargo1.d.mts +1 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
- package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
- package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
- package/dist/esm/api/types/DriverStatsRes.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
- package/dist/esm/api/types/Order1.d.mts +1 -2
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderDraftValidationResult.d.mts +1 -0
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/Task1.d.mts +1 -1
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/ValidationIssue.d.mts +8 -0
- package/dist/esm/api/types/ValidationIssue.mjs +4 -0
- package/dist/esm/api/types/ValidationIssueScope.d.mts +8 -0
- package/dist/esm/api/types/ValidationIssueScope.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +5 -2
- package/dist/esm/api/types/index.mjs +5 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +736 -129
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
- /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
- /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js} +0 -0
- /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
- /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs} +0 -0
|
@@ -75,6 +75,22 @@ export declare class OrderDrafts {
|
|
|
75
75
|
*/
|
|
76
76
|
updateV1(orderId: string, request?: Chrt.shipping.OrdersDraftUpdateReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
|
|
77
77
|
private __updateV1;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
80
|
+
*
|
|
81
|
+
* @param {string} orderId
|
|
82
|
+
* @param {Chrt.shipping.SetTaskGroupOrderingDraftReq} request
|
|
83
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.shipping.orderDrafts.setTaskGroupOrderingV1("order_id", {
|
|
89
|
+
* task_group_ids: ["task_group_ids"]
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
setTaskGroupOrderingV1(orderId: string, request: Chrt.shipping.SetTaskGroupOrderingDraftReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
93
|
+
private __setTaskGroupOrderingV1;
|
|
78
94
|
/**
|
|
79
95
|
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
80
96
|
*
|
|
@@ -88,6 +104,21 @@ export declare class OrderDrafts {
|
|
|
88
104
|
*/
|
|
89
105
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
90
106
|
private __deleteV1;
|
|
107
|
+
/**
|
|
108
|
+
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
|
|
109
|
+
*
|
|
110
|
+
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
111
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.shipping.orderDrafts.deleteManyV1({
|
|
117
|
+
* order_ids: ["order_ids"]
|
|
118
|
+
* })
|
|
119
|
+
*/
|
|
120
|
+
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
121
|
+
private __deleteManyV1;
|
|
91
122
|
/**
|
|
92
123
|
* Converts an order screenshot into lightly structured text for the AI order builder. | (UploadFile) -> (str)
|
|
93
124
|
*
|
|
@@ -210,6 +210,71 @@ class OrderDrafts {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
215
|
+
*
|
|
216
|
+
* @param {string} orderId
|
|
217
|
+
* @param {Chrt.shipping.SetTaskGroupOrderingDraftReq} request
|
|
218
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
219
|
+
*
|
|
220
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* await client.shipping.orderDrafts.setTaskGroupOrderingV1("order_id", {
|
|
224
|
+
* task_group_ids: ["task_group_ids"]
|
|
225
|
+
* })
|
|
226
|
+
*/
|
|
227
|
+
setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
228
|
+
return core.HttpResponsePromise.fromPromise(this.__setTaskGroupOrderingV1(orderId, request, requestOptions));
|
|
229
|
+
}
|
|
230
|
+
__setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a, _b, _c, _d;
|
|
233
|
+
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);
|
|
234
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
235
|
+
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/order_drafts/set_task_group_ordering/v1/${encodeURIComponent(orderId)}`),
|
|
236
|
+
method: "PUT",
|
|
237
|
+
headers: _headers,
|
|
238
|
+
contentType: "application/json",
|
|
239
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
240
|
+
requestType: "json",
|
|
241
|
+
body: request,
|
|
242
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
243
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
244
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
|
+
});
|
|
246
|
+
if (_response.ok) {
|
|
247
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
248
|
+
}
|
|
249
|
+
if (_response.error.reason === "status-code") {
|
|
250
|
+
switch (_response.error.statusCode) {
|
|
251
|
+
case 422:
|
|
252
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
253
|
+
default:
|
|
254
|
+
throw new errors.ChrtError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.body,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
switch (_response.error.reason) {
|
|
262
|
+
case "non-json":
|
|
263
|
+
throw new errors.ChrtError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.rawBody,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
case "timeout":
|
|
269
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/order_drafts/set_task_group_ordering/v1/{order_id}.");
|
|
270
|
+
case "unknown":
|
|
271
|
+
throw new errors.ChrtError({
|
|
272
|
+
message: _response.error.errorMessage,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
213
278
|
/**
|
|
214
279
|
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
215
280
|
*
|
|
@@ -269,6 +334,70 @@ class OrderDrafts {
|
|
|
269
334
|
}
|
|
270
335
|
});
|
|
271
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
|
|
339
|
+
*
|
|
340
|
+
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
341
|
+
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
342
|
+
*
|
|
343
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
344
|
+
*
|
|
345
|
+
* @example
|
|
346
|
+
* await client.shipping.orderDrafts.deleteManyV1({
|
|
347
|
+
* order_ids: ["order_ids"]
|
|
348
|
+
* })
|
|
349
|
+
*/
|
|
350
|
+
deleteManyV1(request, requestOptions) {
|
|
351
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteManyV1(request, requestOptions));
|
|
352
|
+
}
|
|
353
|
+
__deleteManyV1(request, requestOptions) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
var _a, _b, _c, _d;
|
|
356
|
+
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);
|
|
357
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
358
|
+
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/order_drafts/delete_many/v1"),
|
|
359
|
+
method: "DELETE",
|
|
360
|
+
headers: _headers,
|
|
361
|
+
contentType: "application/json",
|
|
362
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
363
|
+
requestType: "json",
|
|
364
|
+
body: request,
|
|
365
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
366
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
367
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
368
|
+
});
|
|
369
|
+
if (_response.ok) {
|
|
370
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
371
|
+
}
|
|
372
|
+
if (_response.error.reason === "status-code") {
|
|
373
|
+
switch (_response.error.statusCode) {
|
|
374
|
+
case 422:
|
|
375
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
376
|
+
default:
|
|
377
|
+
throw new errors.ChrtError({
|
|
378
|
+
statusCode: _response.error.statusCode,
|
|
379
|
+
body: _response.error.body,
|
|
380
|
+
rawResponse: _response.rawResponse,
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
switch (_response.error.reason) {
|
|
385
|
+
case "non-json":
|
|
386
|
+
throw new errors.ChrtError({
|
|
387
|
+
statusCode: _response.error.statusCode,
|
|
388
|
+
body: _response.error.rawBody,
|
|
389
|
+
rawResponse: _response.rawResponse,
|
|
390
|
+
});
|
|
391
|
+
case "timeout":
|
|
392
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/order_drafts/delete_many/v1.");
|
|
393
|
+
case "unknown":
|
|
394
|
+
throw new errors.ChrtError({
|
|
395
|
+
message: _response.error.errorMessage,
|
|
396
|
+
rawResponse: _response.rawResponse,
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
}
|
|
272
401
|
/**
|
|
273
402
|
* Converts an order screenshot into lightly structured text for the AI order builder. | (UploadFile) -> (str)
|
|
274
403
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* task_group_ids: ["task_group_ids"]
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SetTaskGroupOrderingDraftReq {
|
|
11
|
+
/** Complete list of task group IDs in the desired order */
|
|
12
|
+
task_group_ids: string[];
|
|
13
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.js";
|
|
2
2
|
export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.js";
|
|
3
|
+
export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.js";
|
|
4
|
+
export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.js";
|
|
3
5
|
export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.js";
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts
CHANGED
|
@@ -66,6 +66,23 @@ export declare class Cargo {
|
|
|
66
66
|
*/
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orderDrafts.OrderDraftAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
|
+
/**
|
|
70
|
+
* Removes an existing cargo association from a task in a draft order (e.g. when the wrong cargo was selected). | (OrderDraftUnassociateCargoWithTaskReq) -> (bool)
|
|
71
|
+
*
|
|
72
|
+
* @param {Chrt.shipping.orderDrafts.OrderDraftUnassociateCargoWithTaskReq} request
|
|
73
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.orderDrafts.cargo.unassociateWithTaskV1({
|
|
79
|
+
* order_id: "order_id",
|
|
80
|
+
* task_id: "task_id",
|
|
81
|
+
* cargo_id: "cargo_id"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
unassociateWithTaskV1(request: Chrt.shipping.orderDrafts.OrderDraftUnassociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
85
|
+
private __unassociateWithTaskV1;
|
|
69
86
|
/**
|
|
70
87
|
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
|
|
71
88
|
*
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js
CHANGED
|
@@ -189,6 +189,72 @@ class Cargo {
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Removes an existing cargo association from a task in a draft order (e.g. when the wrong cargo was selected). | (OrderDraftUnassociateCargoWithTaskReq) -> (bool)
|
|
194
|
+
*
|
|
195
|
+
* @param {Chrt.shipping.orderDrafts.OrderDraftUnassociateCargoWithTaskReq} request
|
|
196
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
198
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.shipping.orderDrafts.cargo.unassociateWithTaskV1({
|
|
202
|
+
* order_id: "order_id",
|
|
203
|
+
* task_id: "task_id",
|
|
204
|
+
* cargo_id: "cargo_id"
|
|
205
|
+
* })
|
|
206
|
+
*/
|
|
207
|
+
unassociateWithTaskV1(request, requestOptions) {
|
|
208
|
+
return core.HttpResponsePromise.fromPromise(this.__unassociateWithTaskV1(request, requestOptions));
|
|
209
|
+
}
|
|
210
|
+
__unassociateWithTaskV1(request, requestOptions) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
var _a, _b, _c, _d;
|
|
213
|
+
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);
|
|
214
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
215
|
+
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/order_drafts/cargo/unassociate_with_task/v1"),
|
|
216
|
+
method: "POST",
|
|
217
|
+
headers: _headers,
|
|
218
|
+
contentType: "application/json",
|
|
219
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
220
|
+
requestType: "json",
|
|
221
|
+
body: request,
|
|
222
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
223
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
224
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
225
|
+
});
|
|
226
|
+
if (_response.ok) {
|
|
227
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
228
|
+
}
|
|
229
|
+
if (_response.error.reason === "status-code") {
|
|
230
|
+
switch (_response.error.statusCode) {
|
|
231
|
+
case 422:
|
|
232
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
233
|
+
default:
|
|
234
|
+
throw new errors.ChrtError({
|
|
235
|
+
statusCode: _response.error.statusCode,
|
|
236
|
+
body: _response.error.body,
|
|
237
|
+
rawResponse: _response.rawResponse,
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
switch (_response.error.reason) {
|
|
242
|
+
case "non-json":
|
|
243
|
+
throw new errors.ChrtError({
|
|
244
|
+
statusCode: _response.error.statusCode,
|
|
245
|
+
body: _response.error.rawBody,
|
|
246
|
+
rawResponse: _response.rawResponse,
|
|
247
|
+
});
|
|
248
|
+
case "timeout":
|
|
249
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_drafts/cargo/unassociate_with_task/v1.");
|
|
250
|
+
case "unknown":
|
|
251
|
+
throw new errors.ChrtError({
|
|
252
|
+
message: _response.error.errorMessage,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
192
258
|
/**
|
|
193
259
|
* Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
|
|
194
260
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* order_id: "order_id",
|
|
8
|
+
* task_id: "task_id",
|
|
9
|
+
* cargo_id: "cargo_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface OrderDraftUnassociateCargoWithTaskReq {
|
|
13
|
+
order_id: string;
|
|
14
|
+
task_id: string;
|
|
15
|
+
cargo_id: string;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type OrderDraftAddCargoReq } from "./OrderDraftAddCargoReq.js";
|
|
2
2
|
export { type OrderDraftAssociateCargoWithTaskReq } from "./OrderDraftAssociateCargoWithTaskReq.js";
|
|
3
|
+
export { type OrderDraftUnassociateCargoWithTaskReq } from "./OrderDraftUnassociateCargoWithTaskReq.js";
|
|
3
4
|
export { type OrderDraftUpdateCargoReq } from "./OrderDraftUpdateCargoReq.js";
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class TaskGroup {
|
|
|
31
31
|
protected readonly _options: TaskGroup.Options;
|
|
32
32
|
constructor(_options?: TaskGroup.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Adds a task group to an existing order draft.
|
|
34
|
+
* Adds a task group to an existing order draft. The task group is created without an executor; use draft assignment routes to assign executor or driver before staging. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.shipping.orderDrafts.OrderDraftAddTaskGroupReq} request
|
|
37
37
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,6 +74,62 @@ export declare class TaskGroup {
|
|
|
74
74
|
*/
|
|
75
75
|
setVehicleTypeV1(taskGroupId: string, request?: Chrt.shipping.orderDrafts.SetVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
76
76
|
private __setVehicleTypeV1;
|
|
77
|
+
/**
|
|
78
|
+
* Assigns an executor organization to a draft task group. Coordinator-only; provider-provider direct assignments require auto-assign consent. | authz_personas=[task_group_coordinator_operators] | (OrderDraftAddExecutorReq) -> (bool)
|
|
79
|
+
*
|
|
80
|
+
* @param {string} taskGroupId
|
|
81
|
+
* @param {Chrt.shipping.orderDrafts.OrderDraftAddExecutorReq} request
|
|
82
|
+
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.shipping.orderDrafts.taskGroup.addExecutorV1("task_group_id")
|
|
88
|
+
*/
|
|
89
|
+
addExecutorV1(taskGroupId: string, request?: Chrt.shipping.orderDrafts.OrderDraftAddExecutorReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
90
|
+
private __addExecutorV1;
|
|
91
|
+
/**
|
|
92
|
+
* Clears the executor, driver, and PPP/PPD billing attachments from a draft task group. Coordinator-only; executor Cases are preserved. | authz_personas=[task_group_coordinator_operators] | () -> (bool)
|
|
93
|
+
*
|
|
94
|
+
* @param {string} taskGroupId
|
|
95
|
+
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.shipping.orderDrafts.taskGroup.removeExecutorV1("task_group_id")
|
|
101
|
+
*/
|
|
102
|
+
removeExecutorV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
103
|
+
private __removeExecutorV1;
|
|
104
|
+
/**
|
|
105
|
+
* Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
|
|
106
|
+
*
|
|
107
|
+
* @param {string} taskGroupId
|
|
108
|
+
* @param {Chrt.shipping.orderDrafts.OrderDraftUpdateDriverReq} request
|
|
109
|
+
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.shipping.orderDrafts.taskGroup.updateDriverV1("task_group_id", {
|
|
115
|
+
* driver_id: "driver_id"
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
updateDriverV1(taskGroupId: string, request: Chrt.shipping.orderDrafts.OrderDraftUpdateDriverReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
119
|
+
private __updateDriverV1;
|
|
120
|
+
/**
|
|
121
|
+
* Clears the driver on a draft task group. Only the executor org may remove drivers. | authz_personas=[executor_org_operators] | () -> (bool)
|
|
122
|
+
*
|
|
123
|
+
* @param {string} taskGroupId
|
|
124
|
+
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* await client.shipping.orderDrafts.taskGroup.removeDriverV1("task_group_id")
|
|
130
|
+
*/
|
|
131
|
+
removeDriverV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
132
|
+
private __removeDriverV1;
|
|
77
133
|
/**
|
|
78
134
|
* Sets the ordering of tasks within a draft task group. Must provide all task IDs with no duplicates. | (SetTaskOrderingDraftReq) -> (bool)
|
|
79
135
|
*
|