@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.
Files changed (204) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +3 -3
  3. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.ts → AnalyticsTimePeriodReq.d.ts} +1 -1
  5. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
  6. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +8 -8
  7. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +22 -14
  8. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +3 -5
  9. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.ts +14 -0
  10. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +12 -12
  12. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +21 -21
  13. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.ts → OperationsTaskListReorderEntries1.d.ts} +1 -1
  14. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.ts → OperationsTaskListSetEntries1.d.ts} +1 -1
  15. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +3 -3
  16. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +2 -2
  17. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
  18. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
  19. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
  20. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.js +5 -0
  21. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +31 -0
  23. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +129 -0
  24. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts +12 -0
  25. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js +5 -0
  26. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts +13 -0
  27. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.js +5 -0
  28. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +17 -0
  30. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +66 -0
  31. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +16 -0
  32. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +5 -0
  33. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
  35. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
  36. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js +5 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js +5 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
  42. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
  43. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js +5 -0
  45. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
  47. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
  48. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
  49. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
  50. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
  51. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
  52. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
  53. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
  54. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
  55. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
  56. package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
  57. package/dist/cjs/api/types/AnalyticsTimeBucketRes.js +5 -0
  58. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  59. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  60. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  61. package/dist/cjs/api/types/DeadlineAnchorEnum.d.ts +13 -0
  62. package/dist/cjs/api/types/DeadlineAnchorEnum.js +10 -0
  63. package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +3 -3
  64. package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
  65. package/dist/cjs/api/types/DriverStatsRes.js +5 -0
  66. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +9 -7
  67. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +16 -8
  68. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +6 -7
  69. package/dist/cjs/api/types/Order1.d.ts +1 -2
  70. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  71. package/dist/cjs/api/types/OrderDraftValidationResult.d.ts +1 -0
  72. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  73. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
  74. package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
  75. package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
  76. package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
  77. package/dist/cjs/api/types/Task1.d.ts +1 -1
  78. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  79. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  80. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  81. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  82. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  83. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  84. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  85. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  86. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  87. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  88. package/dist/cjs/api/types/ValidationIssue.d.ts +8 -0
  89. package/dist/cjs/api/types/ValidationIssue.js +5 -0
  90. package/dist/cjs/api/types/ValidationIssueScope.d.ts +8 -0
  91. package/dist/cjs/api/types/ValidationIssueScope.js +5 -0
  92. package/dist/cjs/api/types/index.d.ts +5 -2
  93. package/dist/cjs/api/types/index.js +5 -2
  94. package/dist/cjs/version.d.ts +1 -1
  95. package/dist/cjs/version.js +1 -1
  96. package/dist/esm/Client.mjs +2 -2
  97. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +3 -3
  98. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  99. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
  100. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
  101. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
  102. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
  103. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
  104. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
  105. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
  107. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
  108. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
  109. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
  110. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
  111. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
  112. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
  113. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
  114. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
  115. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.mjs +4 -0
  116. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
  117. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +31 -0
  118. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +129 -0
  119. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts +12 -0
  120. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs +4 -0
  121. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
  122. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
  123. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +2 -0
  124. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
  125. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
  126. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
  127. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
  128. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
  129. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
  130. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
  131. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
  132. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +4 -0
  133. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
  134. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +4 -0
  135. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
  136. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
  137. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
  138. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts +12 -0
  139. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs +4 -0
  140. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
  142. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
  143. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
  144. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
  145. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
  146. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
  147. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
  148. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
  149. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
  150. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
  151. package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
  152. package/dist/esm/api/types/AnalyticsTimeBucketRes.mjs +4 -0
  153. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  154. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  155. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  156. package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
  157. package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
  158. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
  159. package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
  160. package/dist/esm/api/types/DriverStatsRes.mjs +4 -0
  161. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
  162. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
  163. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
  164. package/dist/esm/api/types/Order1.d.mts +1 -2
  165. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  166. package/dist/esm/api/types/OrderDraftValidationResult.d.mts +1 -0
  167. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  168. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
  169. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
  170. package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
  171. package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
  172. package/dist/esm/api/types/Task1.d.mts +1 -1
  173. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  174. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  175. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  176. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  177. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  178. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  179. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  180. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  181. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  182. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  183. package/dist/esm/api/types/ValidationIssue.d.mts +8 -0
  184. package/dist/esm/api/types/ValidationIssue.mjs +4 -0
  185. package/dist/esm/api/types/ValidationIssueScope.d.mts +8 -0
  186. package/dist/esm/api/types/ValidationIssueScope.mjs +4 -0
  187. package/dist/esm/api/types/index.d.mts +5 -2
  188. package/dist/esm/api/types/index.mjs +5 -2
  189. package/dist/esm/version.d.mts +1 -1
  190. package/dist/esm/version.mjs +1 -1
  191. package/package.json +1 -1
  192. package/reference.md +736 -129
  193. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
  194. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
  195. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
  196. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
  197. /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
  198. /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
  199. /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
  200. /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js} +0 -0
  201. /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
  202. /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
  203. /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
  204. /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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * order_ids: ["order_ids"]
8
+ * }
9
+ */
10
+ export interface OrdersDraftDeleteManyReq {
11
+ order_ids: string[];
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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";
@@ -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
  *
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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";
@@ -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. Validates order is in DRAFT status and owned by caller. The task group is created with no executor TG-level party assignments happen post-stage via /shipping/task_groups/add_executor/v1. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
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
  *