@chrt-inc/typescript-sdk 1.719.0 → 1.726.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 (337) 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/client/Client.d.ts +6 -3
  7. package/dist/cjs/api/resources/operations/client/Client.js +10 -5
  8. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +5 -125
  9. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +17 -494
  10. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.ts +1 -0
  11. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +3 -8
  12. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +0 -4
  13. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +76 -0
  14. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +246 -0
  15. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +19 -0
  16. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -1
  18. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -1
  19. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +1 -1
  20. package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -2
  21. package/dist/cjs/api/resources/operations/resources/index.js +5 -3
  22. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +181 -0
  23. package/dist/cjs/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.js +206 -75
  24. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.js +17 -0
  26. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.ts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts} +3 -2
  27. package/dist/{esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts → cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.ts} +2 -1
  28. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.ts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.ts} +2 -2
  29. package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.ts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.ts} +2 -2
  30. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +13 -0
  31. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.ts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts} +2 -2
  32. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +6 -0
  33. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.js +17 -0
  36. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +23 -5
  37. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +108 -14
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +7 -2
  39. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
  40. package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.ts → operationsTasks/client/requests/OperationsTaskStatusReq.d.ts} +3 -3
  41. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +15 -6
  42. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +0 -14
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +0 -63
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +0 -1
  46. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.ts +0 -1
  47. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.ts +0 -2
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +0 -1
  49. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +0 -2
  50. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
  51. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
  52. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
  53. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +15 -0
  55. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +64 -0
  56. package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts} +3 -3
  57. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -0
  58. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
  60. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
  61. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
  63. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
  65. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
  66. package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts} +3 -3
  67. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
  69. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
  70. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
  71. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
  72. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
  76. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  77. package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
  78. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  79. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  80. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  81. package/dist/cjs/api/types/Case1.d.ts +1 -12
  82. package/dist/cjs/api/types/CaseSortByEnum.d.ts +1 -2
  83. package/dist/cjs/api/types/CaseSortByEnum.js +0 -1
  84. package/dist/cjs/api/types/Department1.d.ts +1 -0
  85. package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
  86. package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +10 -10
  87. package/dist/cjs/api/types/DepartmentTypeEnum.js +9 -9
  88. package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
  89. package/dist/cjs/api/types/OffChrtProviderOrg1.d.ts +0 -1
  90. package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +0 -1
  91. package/dist/cjs/api/types/OperationsTask1.d.ts +7 -2
  92. package/dist/cjs/api/types/{Checklist1.d.ts → OperationsTaskList1.d.ts} +3 -2
  93. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +23 -0
  94. package/dist/cjs/api/types/{ChecklistListRes.d.ts → OperationsTaskListListRes.d.ts} +2 -2
  95. package/dist/cjs/api/types/OperationsTaskListListRes.js +5 -0
  96. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +13 -0
  97. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.js +5 -0
  98. package/dist/{esm/api/types/ChecklistSortByEnum.d.mts → cjs/api/types/OperationsTaskListSortByEnum.d.ts} +2 -2
  99. package/dist/cjs/api/types/{ChecklistSortByEnum.js → OperationsTaskListSortByEnum.js} +2 -2
  100. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +17 -0
  101. package/dist/cjs/api/types/{CheckStatusEnum.js → OperationsTaskStatusEnum.js} +4 -7
  102. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +23 -0
  103. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +20 -0
  104. package/dist/cjs/api/types/Order1.d.ts +1 -2
  105. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  106. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  107. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
  108. package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
  109. package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
  110. package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
  111. package/dist/cjs/api/types/ProviderProviderConnection1.d.ts +0 -1
  112. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +8 -0
  113. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +10 -0
  114. package/dist/cjs/api/types/ShipperProviderConnection1.d.ts +0 -1
  115. package/dist/cjs/api/types/Task1.d.ts +1 -1
  116. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  117. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  118. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  119. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  120. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  121. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  122. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  123. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  124. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  125. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  126. package/dist/cjs/api/types/index.d.ts +11 -12
  127. package/dist/cjs/api/types/index.js +11 -12
  128. package/dist/cjs/version.d.ts +1 -1
  129. package/dist/cjs/version.js +1 -1
  130. package/dist/esm/Client.mjs +2 -2
  131. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +3 -3
  132. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  133. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
  134. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
  135. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -3
  136. package/dist/esm/api/resources/operations/client/Client.mjs +8 -3
  137. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +5 -125
  138. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +17 -494
  139. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.mts +1 -0
  140. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +3 -8
  141. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +0 -4
  142. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +76 -0
  143. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +209 -0
  144. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +19 -0
  145. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  146. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +1 -1
  149. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -2
  150. package/dist/esm/api/resources/operations/resources/index.mjs +4 -2
  151. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +181 -0
  152. package/dist/esm/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.mjs +204 -73
  153. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.d.mts +2 -0
  154. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.mjs +1 -0
  155. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.mts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts} +3 -2
  156. package/dist/{cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts → esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.mts} +2 -1
  157. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.mts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.mts} +2 -2
  158. package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.mts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.mts} +2 -2
  159. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +13 -0
  160. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.mts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts} +2 -2
  161. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +6 -0
  162. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.mjs +1 -0
  163. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.d.mts +1 -0
  164. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.mjs +1 -0
  165. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +23 -5
  166. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +108 -14
  167. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +7 -2
  168. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
  169. package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.mts → operationsTasks/client/requests/OperationsTaskStatusReq.d.mts} +3 -3
  170. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +15 -6
  171. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  172. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +0 -14
  173. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +0 -63
  174. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +0 -1
  175. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.mts +0 -1
  176. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.mts +0 -2
  177. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +0 -1
  178. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +0 -2
  179. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
  180. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
  181. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
  182. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
  183. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +15 -0
  184. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +64 -0
  185. package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts} +3 -3
  186. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -0
  187. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +1 -0
  188. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
  189. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
  190. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
  191. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
  192. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
  193. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
  194. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
  195. package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts} +3 -3
  196. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  197. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
  198. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
  199. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
  200. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
  201. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
  202. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
  203. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
  204. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
  205. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  206. package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
  207. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  208. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  209. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  210. package/dist/esm/api/types/Case1.d.mts +1 -12
  211. package/dist/esm/api/types/CaseSortByEnum.d.mts +1 -2
  212. package/dist/esm/api/types/CaseSortByEnum.mjs +0 -1
  213. package/dist/esm/api/types/Department1.d.mts +1 -0
  214. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
  215. package/dist/esm/api/types/DepartmentTypeEnum.d.mts +10 -10
  216. package/dist/esm/api/types/DepartmentTypeEnum.mjs +9 -9
  217. package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
  218. package/dist/esm/api/types/OffChrtProviderOrg1.d.mts +0 -1
  219. package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +0 -1
  220. package/dist/esm/api/types/OperationsTask1.d.mts +7 -2
  221. package/dist/esm/api/types/{Checklist1.d.mts → OperationsTaskList1.d.mts} +3 -2
  222. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +23 -0
  223. package/dist/esm/api/types/{ChecklistListRes.d.mts → OperationsTaskListListRes.d.mts} +2 -2
  224. package/dist/esm/api/types/OperationsTaskListListRes.mjs +4 -0
  225. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +13 -0
  226. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.mjs +4 -0
  227. package/dist/{cjs/api/types/ChecklistSortByEnum.d.ts → esm/api/types/OperationsTaskListSortByEnum.d.mts} +2 -2
  228. package/dist/esm/api/types/{ChecklistSortByEnum.mjs → OperationsTaskListSortByEnum.mjs} +1 -1
  229. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +17 -0
  230. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +9 -0
  231. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +23 -0
  232. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +17 -0
  233. package/dist/esm/api/types/Order1.d.mts +1 -2
  234. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  235. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  236. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
  237. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
  238. package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
  239. package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
  240. package/dist/esm/api/types/ProviderProviderConnection1.d.mts +0 -1
  241. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +8 -0
  242. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +7 -0
  243. package/dist/esm/api/types/ShipperProviderConnection1.d.mts +0 -1
  244. package/dist/esm/api/types/Task1.d.mts +1 -1
  245. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  246. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  247. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  248. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  249. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  250. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  251. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  252. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  253. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  254. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  255. package/dist/esm/api/types/index.d.mts +11 -12
  256. package/dist/esm/api/types/index.mjs +11 -12
  257. package/dist/esm/version.d.mts +1 -1
  258. package/dist/esm/version.mjs +1 -1
  259. package/package.json +1 -1
  260. package/reference.md +816 -516
  261. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +0 -15
  262. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +0 -150
  263. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +0 -11
  264. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +0 -5
  265. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +0 -7
  266. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +0 -8
  267. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +0 -27
  268. package/dist/cjs/api/types/CaseStatusEnum.d.ts +0 -9
  269. package/dist/cjs/api/types/CaseStatusEnum.js +0 -11
  270. package/dist/cjs/api/types/Check1.d.ts +0 -33
  271. package/dist/cjs/api/types/CheckEnum.d.ts +0 -46
  272. package/dist/cjs/api/types/CheckEnum.js +0 -23
  273. package/dist/cjs/api/types/CheckStatusEnum.d.ts +0 -32
  274. package/dist/cjs/api/types/ChecklistCheck1.d.ts +0 -15
  275. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +0 -15
  276. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +0 -150
  277. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +0 -11
  278. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +0 -5
  279. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +0 -7
  280. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +0 -8
  281. package/dist/esm/api/types/CaseChecksSummary1.d.mts +0 -27
  282. package/dist/esm/api/types/CaseStatusEnum.d.mts +0 -9
  283. package/dist/esm/api/types/CaseStatusEnum.mjs +0 -8
  284. package/dist/esm/api/types/Check1.d.mts +0 -33
  285. package/dist/esm/api/types/CheckEnum.d.mts +0 -46
  286. package/dist/esm/api/types/CheckEnum.mjs +0 -20
  287. package/dist/esm/api/types/CheckStatusEnum.d.mts +0 -32
  288. package/dist/esm/api/types/CheckStatusEnum.mjs +0 -12
  289. package/dist/esm/api/types/ChecklistCheck1.d.mts +0 -15
  290. /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
  291. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.ts +0 -0
  292. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.js +0 -0
  293. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.js → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.js} +0 -0
  294. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.js +0 -0
  295. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.ts +0 -0
  296. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.js +0 -0
  297. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.js} +0 -0
  298. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.js → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.js} +0 -0
  299. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.js → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js} +0 -0
  300. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.js → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.js} +0 -0
  301. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.js → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.js} +0 -0
  302. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.js → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.js} +0 -0
  303. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.js → operationsTasks/client/requests/OperationsTaskStatusReq.js} +0 -0
  304. /package/dist/cjs/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.js → shipping/resources/drivers/client/requests/DriverStatsReq.js} +0 -0
  305. /package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.js → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js} +0 -0
  306. /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js} +0 -0
  307. /package/dist/cjs/api/{types/CaseChecksDisableReq.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js} +0 -0
  308. /package/dist/cjs/api/{types/CaseChecksDismissReq.js → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js} +0 -0
  309. /package/dist/cjs/api/types/{CaseChecksSummary1.js → AnalyticsTimeBucketRes.js} +0 -0
  310. /package/dist/cjs/api/types/{Check1.js → DepartmentRoutingRule1.js} +0 -0
  311. /package/dist/cjs/api/types/{Checklist1.js → DriverStatsRes.js} +0 -0
  312. /package/dist/cjs/api/types/{ChecklistCheck1.js → OperationsTaskList1.js} +0 -0
  313. /package/dist/cjs/api/types/{ChecklistListRes.js → OperationsTaskListEntry1.js} +0 -0
  314. /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
  315. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.mts +0 -0
  316. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.mjs +0 -0
  317. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.mjs} +0 -0
  318. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.mjs +0 -0
  319. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.mts +0 -0
  320. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.mjs +0 -0
  321. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.mjs} +0 -0
  322. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.mjs} +0 -0
  323. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs} +0 -0
  324. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.mjs} +0 -0
  325. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.mjs → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.mjs} +0 -0
  326. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.mjs → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.mjs} +0 -0
  327. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.mjs → operationsTasks/client/requests/OperationsTaskStatusReq.mjs} +0 -0
  328. /package/dist/esm/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs → shipping/resources/drivers/client/requests/DriverStatsReq.mjs} +0 -0
  329. /package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.mjs → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs} +0 -0
  330. /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs} +0 -0
  331. /package/dist/esm/api/{types/CaseChecksDisableReq.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs} +0 -0
  332. /package/dist/esm/api/{types/CaseChecksDismissReq.mjs → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs} +0 -0
  333. /package/dist/esm/api/types/{CaseChecksSummary1.mjs → AnalyticsTimeBucketRes.mjs} +0 -0
  334. /package/dist/esm/api/types/{Check1.mjs → DepartmentRoutingRule1.mjs} +0 -0
  335. /package/dist/esm/api/types/{Checklist1.mjs → DriverStatsRes.mjs} +0 -0
  336. /package/dist/esm/api/types/{ChecklistCheck1.mjs → OperationsTaskList1.mjs} +0 -0
  337. /package/dist/esm/api/types/{ChecklistListRes.mjs → OperationsTaskListEntry1.mjs} +0 -0
@@ -233,6 +233,70 @@ export class OrderDrafts {
233
233
  }
234
234
  });
235
235
  }
236
+ /**
237
+ * Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
238
+ *
239
+ * @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
240
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
241
+ *
242
+ * @throws {@link Chrt.UnprocessableEntityError}
243
+ *
244
+ * @example
245
+ * await client.shipping.orderDrafts.deleteManyV1({
246
+ * order_ids: ["order_ids"]
247
+ * })
248
+ */
249
+ deleteManyV1(request, requestOptions) {
250
+ return core.HttpResponsePromise.fromPromise(this.__deleteManyV1(request, requestOptions));
251
+ }
252
+ __deleteManyV1(request, requestOptions) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ var _a, _b, _c, _d;
255
+ 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);
256
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
257
+ 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"),
258
+ method: "DELETE",
259
+ headers: _headers,
260
+ contentType: "application/json",
261
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
262
+ requestType: "json",
263
+ body: request,
264
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
265
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
266
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
267
+ });
268
+ if (_response.ok) {
269
+ return { data: _response.body, rawResponse: _response.rawResponse };
270
+ }
271
+ if (_response.error.reason === "status-code") {
272
+ switch (_response.error.statusCode) {
273
+ case 422:
274
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
275
+ default:
276
+ throw new errors.ChrtError({
277
+ statusCode: _response.error.statusCode,
278
+ body: _response.error.body,
279
+ rawResponse: _response.rawResponse,
280
+ });
281
+ }
282
+ }
283
+ switch (_response.error.reason) {
284
+ case "non-json":
285
+ throw new errors.ChrtError({
286
+ statusCode: _response.error.statusCode,
287
+ body: _response.error.rawBody,
288
+ rawResponse: _response.rawResponse,
289
+ });
290
+ case "timeout":
291
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/order_drafts/delete_many/v1.");
292
+ case "unknown":
293
+ throw new errors.ChrtError({
294
+ message: _response.error.errorMessage,
295
+ rawResponse: _response.rawResponse,
296
+ });
297
+ }
298
+ });
299
+ }
236
300
  /**
237
301
  * Converts an order screenshot into lightly structured text for the AI order builder. | (UploadFile) -> (str)
238
302
  *
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * checklist_id: "checklist_id"
7
+ * order_ids: ["order_ids"]
8
8
  * }
9
9
  */
10
- export interface CaseChecksApplyChecklistReq {
11
- checklist_id: string;
10
+ export interface OrdersDraftDeleteManyReq {
11
+ order_ids: string[];
12
12
  }
@@ -13,4 +13,5 @@ export interface OrdersNewDraftReq {
13
13
  off_chrt_shipper_org_id?: string | null;
14
14
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
15
15
  off_chrt_reference_id?: string | null;
16
+ department_id?: string | null;
16
17
  }
@@ -1,3 +1,4 @@
1
1
  export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.mjs";
2
2
  export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.mjs";
3
+ export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.mjs";
3
4
  export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.mjs";
@@ -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
  *
@@ -20,7 +20,7 @@ export class TaskGroup {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * 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)
23
+ * 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)
24
24
  *
25
25
  * @param {Chrt.shipping.orderDrafts.OrderDraftAddTaskGroupReq} request
26
26
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -210,6 +210,252 @@ export class TaskGroup {
210
210
  }
211
211
  });
212
212
  }
213
+ /**
214
+ * 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)
215
+ *
216
+ * @param {string} taskGroupId
217
+ * @param {Chrt.shipping.orderDrafts.OrderDraftAddExecutorReq} request
218
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
219
+ *
220
+ * @throws {@link Chrt.UnprocessableEntityError}
221
+ *
222
+ * @example
223
+ * await client.shipping.orderDrafts.taskGroup.addExecutorV1("task_group_id")
224
+ */
225
+ addExecutorV1(taskGroupId, request = {}, requestOptions) {
226
+ return core.HttpResponsePromise.fromPromise(this.__addExecutorV1(taskGroupId, request, requestOptions));
227
+ }
228
+ __addExecutorV1(taskGroupId_1) {
229
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
230
+ var _a, _b, _c, _d;
231
+ 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);
232
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
233
+ 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/task_group/add_executor/v1/${encodeURIComponent(taskGroupId)}`),
234
+ method: "PATCH",
235
+ headers: _headers,
236
+ contentType: "application/json",
237
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
238
+ requestType: "json",
239
+ body: request,
240
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
241
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
242
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
243
+ });
244
+ if (_response.ok) {
245
+ return { data: _response.body, rawResponse: _response.rawResponse };
246
+ }
247
+ if (_response.error.reason === "status-code") {
248
+ switch (_response.error.statusCode) {
249
+ case 422:
250
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
251
+ default:
252
+ throw new errors.ChrtError({
253
+ statusCode: _response.error.statusCode,
254
+ body: _response.error.body,
255
+ rawResponse: _response.rawResponse,
256
+ });
257
+ }
258
+ }
259
+ switch (_response.error.reason) {
260
+ case "non-json":
261
+ throw new errors.ChrtError({
262
+ statusCode: _response.error.statusCode,
263
+ body: _response.error.rawBody,
264
+ rawResponse: _response.rawResponse,
265
+ });
266
+ case "timeout":
267
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/add_executor/v1/{task_group_id}.");
268
+ case "unknown":
269
+ throw new errors.ChrtError({
270
+ message: _response.error.errorMessage,
271
+ rawResponse: _response.rawResponse,
272
+ });
273
+ }
274
+ });
275
+ }
276
+ /**
277
+ * 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)
278
+ *
279
+ * @param {string} taskGroupId
280
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
281
+ *
282
+ * @throws {@link Chrt.UnprocessableEntityError}
283
+ *
284
+ * @example
285
+ * await client.shipping.orderDrafts.taskGroup.removeExecutorV1("task_group_id")
286
+ */
287
+ removeExecutorV1(taskGroupId, requestOptions) {
288
+ return core.HttpResponsePromise.fromPromise(this.__removeExecutorV1(taskGroupId, requestOptions));
289
+ }
290
+ __removeExecutorV1(taskGroupId, requestOptions) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ var _a, _b, _c, _d;
293
+ 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);
294
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
295
+ 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/task_group/remove_executor/v1/${encodeURIComponent(taskGroupId)}`),
296
+ method: "PATCH",
297
+ headers: _headers,
298
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
299
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
300
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
301
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
302
+ });
303
+ if (_response.ok) {
304
+ return { data: _response.body, rawResponse: _response.rawResponse };
305
+ }
306
+ if (_response.error.reason === "status-code") {
307
+ switch (_response.error.statusCode) {
308
+ case 422:
309
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
310
+ default:
311
+ throw new errors.ChrtError({
312
+ statusCode: _response.error.statusCode,
313
+ body: _response.error.body,
314
+ rawResponse: _response.rawResponse,
315
+ });
316
+ }
317
+ }
318
+ switch (_response.error.reason) {
319
+ case "non-json":
320
+ throw new errors.ChrtError({
321
+ statusCode: _response.error.statusCode,
322
+ body: _response.error.rawBody,
323
+ rawResponse: _response.rawResponse,
324
+ });
325
+ case "timeout":
326
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/remove_executor/v1/{task_group_id}.");
327
+ case "unknown":
328
+ throw new errors.ChrtError({
329
+ message: _response.error.errorMessage,
330
+ rawResponse: _response.rawResponse,
331
+ });
332
+ }
333
+ });
334
+ }
335
+ /**
336
+ * Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
337
+ *
338
+ * @param {string} taskGroupId
339
+ * @param {Chrt.shipping.orderDrafts.OrderDraftUpdateDriverReq} request
340
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
341
+ *
342
+ * @throws {@link Chrt.UnprocessableEntityError}
343
+ *
344
+ * @example
345
+ * await client.shipping.orderDrafts.taskGroup.updateDriverV1("task_group_id", {
346
+ * driver_id: "driver_id"
347
+ * })
348
+ */
349
+ updateDriverV1(taskGroupId, request, requestOptions) {
350
+ return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
351
+ }
352
+ __updateDriverV1(taskGroupId, request, requestOptions) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ var _a, _b, _c, _d;
355
+ 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);
356
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
357
+ 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/task_group/update_driver/v1/${encodeURIComponent(taskGroupId)}`),
358
+ method: "PATCH",
359
+ headers: _headers,
360
+ contentType: "application/json",
361
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
362
+ requestType: "json",
363
+ body: request,
364
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
365
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
366
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
367
+ });
368
+ if (_response.ok) {
369
+ return { data: _response.body, rawResponse: _response.rawResponse };
370
+ }
371
+ if (_response.error.reason === "status-code") {
372
+ switch (_response.error.statusCode) {
373
+ case 422:
374
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
375
+ default:
376
+ throw new errors.ChrtError({
377
+ statusCode: _response.error.statusCode,
378
+ body: _response.error.body,
379
+ rawResponse: _response.rawResponse,
380
+ });
381
+ }
382
+ }
383
+ switch (_response.error.reason) {
384
+ case "non-json":
385
+ throw new errors.ChrtError({
386
+ statusCode: _response.error.statusCode,
387
+ body: _response.error.rawBody,
388
+ rawResponse: _response.rawResponse,
389
+ });
390
+ case "timeout":
391
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/update_driver/v1/{task_group_id}.");
392
+ case "unknown":
393
+ throw new errors.ChrtError({
394
+ message: _response.error.errorMessage,
395
+ rawResponse: _response.rawResponse,
396
+ });
397
+ }
398
+ });
399
+ }
400
+ /**
401
+ * Clears the driver on a draft task group. Only the executor org may remove drivers. | authz_personas=[executor_org_operators] | () -> (bool)
402
+ *
403
+ * @param {string} taskGroupId
404
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
405
+ *
406
+ * @throws {@link Chrt.UnprocessableEntityError}
407
+ *
408
+ * @example
409
+ * await client.shipping.orderDrafts.taskGroup.removeDriverV1("task_group_id")
410
+ */
411
+ removeDriverV1(taskGroupId, requestOptions) {
412
+ return core.HttpResponsePromise.fromPromise(this.__removeDriverV1(taskGroupId, requestOptions));
413
+ }
414
+ __removeDriverV1(taskGroupId, requestOptions) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ var _a, _b, _c, _d;
417
+ 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);
418
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
419
+ 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/task_group/remove_driver/v1/${encodeURIComponent(taskGroupId)}`),
420
+ method: "PATCH",
421
+ headers: _headers,
422
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
423
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
424
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
425
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
426
+ });
427
+ if (_response.ok) {
428
+ return { data: _response.body, rawResponse: _response.rawResponse };
429
+ }
430
+ if (_response.error.reason === "status-code") {
431
+ switch (_response.error.statusCode) {
432
+ case 422:
433
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
434
+ default:
435
+ throw new errors.ChrtError({
436
+ statusCode: _response.error.statusCode,
437
+ body: _response.error.body,
438
+ rawResponse: _response.rawResponse,
439
+ });
440
+ }
441
+ }
442
+ switch (_response.error.reason) {
443
+ case "non-json":
444
+ throw new errors.ChrtError({
445
+ statusCode: _response.error.statusCode,
446
+ body: _response.error.rawBody,
447
+ rawResponse: _response.rawResponse,
448
+ });
449
+ case "timeout":
450
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/remove_driver/v1/{task_group_id}.");
451
+ case "unknown":
452
+ throw new errors.ChrtError({
453
+ message: _response.error.errorMessage,
454
+ rawResponse: _response.rawResponse,
455
+ });
456
+ }
457
+ });
458
+ }
213
459
  /**
214
460
  * Sets the ordering of tasks within a draft task group. Must provide all task IDs with no duplicates. | (SetTaskOrderingDraftReq) -> (bool)
215
461
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface OrderDraftAddExecutorReq {
9
+ /** On-platform provider org to assign as executor. */
10
+ executor_org_id?: string | null;
11
+ /** Off-platform provider org to assign as executor. */
12
+ off_chrt_executor_org_id?: string | null;
13
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * driver_id: "driver_id"
8
+ * }
9
+ */
10
+ export interface OrderDraftUpdateDriverReq {
11
+ /** Driver to assign to the draft task group. */
12
+ driver_id: string;
13
+ }
@@ -1,4 +1,6 @@
1
1
  export { type OrderDraftAddTaskGroupReq } from "./OrderDraftAddTaskGroupReq.mjs";
2
2
  export { type SetVehicleTypeReq } from "./SetVehicleTypeReq.mjs";
3
+ export { type OrderDraftAddExecutorReq } from "./OrderDraftAddExecutorReq.mjs";
4
+ export { type OrderDraftUpdateDriverReq } from "./OrderDraftUpdateDriverReq.mjs";
3
5
  export { type SetTaskOrderingDraftReq } from "./SetTaskOrderingDraftReq.mjs";
4
6
  export { type SetRateSheetsReq } from "./SetRateSheetsReq.mjs";
@@ -61,7 +61,7 @@ export declare class Orders {
61
61
  updateOffChrtReferenceIdV1(orderId: string, request?: Chrt.shipping.OrdersUpdateOffChrtReferenceIdReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateOffChrtReferenceIdRes>;
62
62
  private __updateOffChrtReferenceIdV1;
63
63
  /**
64
- * Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
64
+ * Cancels an order and non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
65
65
  *
66
66
  * @param {string} orderId
67
67
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -73,5 +73,20 @@ export declare class Orders {
73
73
  */
74
74
  cancelV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
75
75
  private __cancelV1;
76
+ /**
77
+ * Cancels multiple orders and their non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | (OrdersCancelManyReq) -> (bool)
78
+ *
79
+ * @param {Chrt.shipping.OrdersCancelManyReq} request
80
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
81
+ *
82
+ * @throws {@link Chrt.UnprocessableEntityError}
83
+ *
84
+ * @example
85
+ * await client.shipping.orders.cancelManyV1({
86
+ * order_ids: ["order_ids"]
87
+ * })
88
+ */
89
+ cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
90
+ private __cancelManyV1;
76
91
  protected _getAuthorizationHeader(): Promise<string | undefined>;
77
92
  }
@@ -150,7 +150,7 @@ export class Orders {
150
150
  });
151
151
  }
152
152
  /**
153
- * Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
153
+ * Cancels an order and non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
154
154
  *
155
155
  * @param {string} orderId
156
156
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -208,6 +208,70 @@ export class Orders {
208
208
  }
209
209
  });
210
210
  }
211
+ /**
212
+ * Cancels multiple orders and their non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | (OrdersCancelManyReq) -> (bool)
213
+ *
214
+ * @param {Chrt.shipping.OrdersCancelManyReq} request
215
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
216
+ *
217
+ * @throws {@link Chrt.UnprocessableEntityError}
218
+ *
219
+ * @example
220
+ * await client.shipping.orders.cancelManyV1({
221
+ * order_ids: ["order_ids"]
222
+ * })
223
+ */
224
+ cancelManyV1(request, requestOptions) {
225
+ return core.HttpResponsePromise.fromPromise(this.__cancelManyV1(request, requestOptions));
226
+ }
227
+ __cancelManyV1(request, requestOptions) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ var _a, _b, _c, _d;
230
+ 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);
231
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
232
+ 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/cancel_many/v1"),
233
+ method: "PUT",
234
+ headers: _headers,
235
+ contentType: "application/json",
236
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
237
+ requestType: "json",
238
+ body: request,
239
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
241
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
242
+ });
243
+ if (_response.ok) {
244
+ return { data: _response.body, rawResponse: _response.rawResponse };
245
+ }
246
+ if (_response.error.reason === "status-code") {
247
+ switch (_response.error.statusCode) {
248
+ case 422:
249
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
250
+ default:
251
+ throw new errors.ChrtError({
252
+ statusCode: _response.error.statusCode,
253
+ body: _response.error.body,
254
+ rawResponse: _response.rawResponse,
255
+ });
256
+ }
257
+ }
258
+ switch (_response.error.reason) {
259
+ case "non-json":
260
+ throw new errors.ChrtError({
261
+ statusCode: _response.error.statusCode,
262
+ body: _response.error.rawBody,
263
+ rawResponse: _response.rawResponse,
264
+ });
265
+ case "timeout":
266
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/cancel_many/v1.");
267
+ case "unknown":
268
+ throw new errors.ChrtError({
269
+ message: _response.error.errorMessage,
270
+ rawResponse: _response.rawResponse,
271
+ });
272
+ }
273
+ });
274
+ }
211
275
  _getAuthorizationHeader() {
212
276
  return __awaiter(this, void 0, void 0, function* () {
213
277
  const bearer = yield core.Supplier.get(this._options.token);
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * needs_action: true
7
+ * order_ids: ["order_ids"]
8
8
  * }
9
9
  */
10
- export interface CaseNeedsActionReq {
11
- needs_action: boolean;
10
+ export interface OrdersCancelManyReq {
11
+ order_ids: string[];
12
12
  }
@@ -1 +1,2 @@
1
1
  export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.mjs";
2
+ export { type OrdersCancelManyReq } from "./OrdersCancelManyReq.mjs";
@@ -81,11 +81,10 @@ export declare class Expanded {
81
81
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
82
82
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
83
83
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
84
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
85
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
84
86
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
85
87
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
86
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
87
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
88
- * filter_order_cancelled: true,
89
88
  * filter_executor_org_id: "filter_executor_org_id",
90
89
  * filter_shipper_org_id: "filter_shipper_org_id",
91
90
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
@@ -117,11 +116,10 @@ export declare class Expanded {
117
116
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
118
117
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
119
118
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
119
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
120
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
120
121
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
121
122
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
122
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
123
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
124
- * filter_order_cancelled: true,
125
123
  * filter_executor_org_id: "filter_executor_org_id",
126
124
  * filter_coordinator_org_id: "filter_coordinator_org_id",
127
125
  * body: {}