@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
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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);
@@ -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 OrdersCancelManyReq {
11
+ order_ids: string[];
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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: {}
@@ -168,11 +168,10 @@ export class Expanded {
168
168
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
169
169
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
170
170
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
171
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
172
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
171
173
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
172
174
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
173
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
174
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
175
- * filter_order_cancelled: true,
176
175
  * filter_executor_org_id: "filter_executor_org_id",
177
176
  * filter_shipper_org_id: "filter_shipper_org_id",
178
177
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
@@ -184,8 +183,8 @@ export class Expanded {
184
183
  }
185
184
  __listForCoordinatorOperatorsV1(request, requestOptions) {
186
185
  return __awaiter(this, void 0, void 0, function* () {
187
- var _a, _b, _c, _d, _e, _f, _g;
188
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, filter_order_cancelled: filterOrderCancelled, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
186
+ var _a, _b, _c, _d, _e, _f;
187
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_id: filterOffChrtShipperOrgId, body: _body, } = request;
189
188
  const _queryParams = {};
190
189
  if (sortBy !== undefined) {
191
190
  _queryParams["sort_by"] = sortBy;
@@ -234,21 +233,18 @@ export class Expanded {
234
233
  if (filterCompletedAtTimestampGte !== undefined) {
235
234
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
236
235
  }
236
+ if (filterCancelledAtTimestampLte !== undefined) {
237
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
238
+ }
239
+ if (filterCancelledAtTimestampGte !== undefined) {
240
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
241
+ }
237
242
  if (filterExceptionAtTimestampLte !== undefined) {
238
243
  _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
239
244
  }
240
245
  if (filterExceptionAtTimestampGte !== undefined) {
241
246
  _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
242
247
  }
243
- if (filterOrderCancelledAtTimestampLte !== undefined) {
244
- _queryParams["filter_order_cancelled_at_timestamp_lte"] = filterOrderCancelledAtTimestampLte;
245
- }
246
- if (filterOrderCancelledAtTimestampGte !== undefined) {
247
- _queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
248
- }
249
- if (filterOrderCancelled !== undefined) {
250
- _queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
251
- }
252
248
  if (filterExecutorOrgId !== undefined) {
253
249
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
254
250
  }
@@ -258,9 +254,9 @@ export class Expanded {
258
254
  if (filterOffChrtShipperOrgId !== undefined) {
259
255
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
260
256
  }
261
- let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
262
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
263
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_coordinator_operators/v1"),
257
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
258
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
259
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_coordinator_operators/v1"),
264
260
  method: "POST",
265
261
  headers: _headers,
266
262
  contentType: "application/json",
@@ -326,11 +322,10 @@ export class Expanded {
326
322
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
327
323
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
328
324
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
325
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
326
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
329
327
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
330
328
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
331
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
332
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
333
- * filter_order_cancelled: true,
334
329
  * filter_executor_org_id: "filter_executor_org_id",
335
330
  * filter_coordinator_org_id: "filter_coordinator_org_id",
336
331
  * body: {}
@@ -341,8 +336,8 @@ export class Expanded {
341
336
  }
342
337
  __listForShipperOperatorsV1(request, requestOptions) {
343
338
  return __awaiter(this, void 0, void 0, function* () {
344
- var _a, _b, _c, _d, _e, _f, _g;
345
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, filter_order_cancelled: filterOrderCancelled, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
339
+ var _a, _b, _c, _d, _e, _f;
340
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
346
341
  const _queryParams = {};
347
342
  if (sortBy !== undefined) {
348
343
  _queryParams["sort_by"] = sortBy;
@@ -391,30 +386,27 @@ export class Expanded {
391
386
  if (filterCompletedAtTimestampGte !== undefined) {
392
387
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
393
388
  }
389
+ if (filterCancelledAtTimestampLte !== undefined) {
390
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
391
+ }
392
+ if (filterCancelledAtTimestampGte !== undefined) {
393
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
394
+ }
394
395
  if (filterExceptionAtTimestampLte !== undefined) {
395
396
  _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
396
397
  }
397
398
  if (filterExceptionAtTimestampGte !== undefined) {
398
399
  _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
399
400
  }
400
- if (filterOrderCancelledAtTimestampLte !== undefined) {
401
- _queryParams["filter_order_cancelled_at_timestamp_lte"] = filterOrderCancelledAtTimestampLte;
402
- }
403
- if (filterOrderCancelledAtTimestampGte !== undefined) {
404
- _queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
405
- }
406
- if (filterOrderCancelled !== undefined) {
407
- _queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
408
- }
409
401
  if (filterExecutorOrgId !== undefined) {
410
402
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
411
403
  }
412
404
  if (filterCoordinatorOrgId !== undefined) {
413
405
  _queryParams["filter_coordinator_org_id"] = filterCoordinatorOrgId;
414
406
  }
415
- let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
416
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
417
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_shipper_operators/v1"),
407
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
408
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
409
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/orders/expanded/list/for_shipper_operators/v1"),
418
410
  method: "POST",
419
411
  headers: _headers,
420
412
  contentType: "application/json",
@@ -18,11 +18,10 @@ import * as Chrt from "../../../../../../../../index.mjs";
18
18
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
19
19
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
20
20
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
22
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
23
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
22
24
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
23
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
24
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
- * filter_order_cancelled: true,
26
25
  * filter_executor_org_id: "filter_executor_org_id",
27
26
  * filter_shipper_org_id: "filter_shipper_org_id",
28
27
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
@@ -46,11 +45,10 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
46
45
  filter_in_progress_at_timestamp_gte?: string | null;
47
46
  filter_completed_at_timestamp_lte?: string | null;
48
47
  filter_completed_at_timestamp_gte?: string | null;
48
+ filter_cancelled_at_timestamp_lte?: string | null;
49
+ filter_cancelled_at_timestamp_gte?: string | null;
49
50
  filter_exception_at_timestamp_lte?: string | null;
50
51
  filter_exception_at_timestamp_gte?: string | null;
51
- filter_order_cancelled_at_timestamp_lte?: string | null;
52
- filter_order_cancelled_at_timestamp_gte?: string | null;
53
- filter_order_cancelled?: boolean | null;
54
52
  filter_executor_org_id?: string | null;
55
53
  filter_shipper_org_id?: string | null;
56
54
  filter_off_chrt_shipper_org_id?: string | null;