@chrt-inc/typescript-sdk 1.723.0 → 1.733.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 (194) 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/OrderManifestValidationRequirements.d.ts +1 -0
  72. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
  73. package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
  74. package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
  75. package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
  76. package/dist/cjs/api/types/Task1.d.ts +1 -1
  77. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  78. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  79. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  80. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  81. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  82. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  83. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  84. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  85. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  86. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  87. package/dist/cjs/api/types/index.d.ts +3 -2
  88. package/dist/cjs/api/types/index.js +3 -2
  89. package/dist/cjs/version.d.ts +1 -1
  90. package/dist/cjs/version.js +1 -1
  91. package/dist/esm/Client.mjs +2 -2
  92. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +3 -3
  93. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  94. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
  95. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
  96. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
  97. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
  98. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
  99. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
  100. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  101. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
  102. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
  103. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
  104. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
  105. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
  106. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
  107. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
  108. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
  109. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
  110. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.mjs +4 -0
  111. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
  112. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +31 -0
  113. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +129 -0
  114. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts +12 -0
  115. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs +4 -0
  116. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
  117. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
  118. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +2 -0
  119. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
  120. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
  121. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
  122. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
  123. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
  124. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
  125. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
  126. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
  127. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +4 -0
  128. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
  129. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +4 -0
  130. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
  131. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
  132. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
  133. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts +12 -0
  134. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs +4 -0
  135. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  136. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
  137. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
  138. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
  139. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
  140. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
  141. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
  142. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
  143. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
  144. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
  145. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
  146. package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
  147. package/dist/esm/api/types/AnalyticsTimeBucketRes.mjs +4 -0
  148. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  149. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  150. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  151. package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
  152. package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
  153. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
  154. package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
  155. package/dist/esm/api/types/DriverStatsRes.mjs +4 -0
  156. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
  157. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
  158. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
  159. package/dist/esm/api/types/Order1.d.mts +1 -2
  160. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  161. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  162. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
  163. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
  164. package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
  165. package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
  166. package/dist/esm/api/types/Task1.d.mts +1 -1
  167. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  168. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  169. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  170. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  171. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  172. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  173. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  174. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  175. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  176. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  177. package/dist/esm/api/types/index.d.mts +3 -2
  178. package/dist/esm/api/types/index.mjs +3 -2
  179. package/dist/esm/version.d.mts +1 -1
  180. package/dist/esm/version.mjs +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +736 -129
  183. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
  184. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
  185. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
  186. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
  187. /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
  188. /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
  189. /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
  190. /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js} +0 -0
  191. /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
  192. /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
  193. /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
  194. /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs} +0 -0
@@ -56,7 +56,7 @@ class TaskGroup {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * 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)
59
+ * 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)
60
60
  *
61
61
  * @param {Chrt.shipping.orderDrafts.OrderDraftAddTaskGroupReq} request
62
62
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -246,6 +246,252 @@ class TaskGroup {
246
246
  }
247
247
  });
248
248
  }
249
+ /**
250
+ * 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)
251
+ *
252
+ * @param {string} taskGroupId
253
+ * @param {Chrt.shipping.orderDrafts.OrderDraftAddExecutorReq} request
254
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
255
+ *
256
+ * @throws {@link Chrt.UnprocessableEntityError}
257
+ *
258
+ * @example
259
+ * await client.shipping.orderDrafts.taskGroup.addExecutorV1("task_group_id")
260
+ */
261
+ addExecutorV1(taskGroupId, request = {}, requestOptions) {
262
+ return core.HttpResponsePromise.fromPromise(this.__addExecutorV1(taskGroupId, request, requestOptions));
263
+ }
264
+ __addExecutorV1(taskGroupId_1) {
265
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
266
+ var _a, _b, _c, _d;
267
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
268
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
269
+ 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)}`),
270
+ method: "PATCH",
271
+ headers: _headers,
272
+ contentType: "application/json",
273
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
274
+ requestType: "json",
275
+ body: request,
276
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
277
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
278
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
279
+ });
280
+ if (_response.ok) {
281
+ return { data: _response.body, rawResponse: _response.rawResponse };
282
+ }
283
+ if (_response.error.reason === "status-code") {
284
+ switch (_response.error.statusCode) {
285
+ case 422:
286
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
287
+ default:
288
+ throw new errors.ChrtError({
289
+ statusCode: _response.error.statusCode,
290
+ body: _response.error.body,
291
+ rawResponse: _response.rawResponse,
292
+ });
293
+ }
294
+ }
295
+ switch (_response.error.reason) {
296
+ case "non-json":
297
+ throw new errors.ChrtError({
298
+ statusCode: _response.error.statusCode,
299
+ body: _response.error.rawBody,
300
+ rawResponse: _response.rawResponse,
301
+ });
302
+ case "timeout":
303
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/add_executor/v1/{task_group_id}.");
304
+ case "unknown":
305
+ throw new errors.ChrtError({
306
+ message: _response.error.errorMessage,
307
+ rawResponse: _response.rawResponse,
308
+ });
309
+ }
310
+ });
311
+ }
312
+ /**
313
+ * 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)
314
+ *
315
+ * @param {string} taskGroupId
316
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
317
+ *
318
+ * @throws {@link Chrt.UnprocessableEntityError}
319
+ *
320
+ * @example
321
+ * await client.shipping.orderDrafts.taskGroup.removeExecutorV1("task_group_id")
322
+ */
323
+ removeExecutorV1(taskGroupId, requestOptions) {
324
+ return core.HttpResponsePromise.fromPromise(this.__removeExecutorV1(taskGroupId, requestOptions));
325
+ }
326
+ __removeExecutorV1(taskGroupId, requestOptions) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ var _a, _b, _c, _d;
329
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
330
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
331
+ 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)}`),
332
+ method: "PATCH",
333
+ headers: _headers,
334
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
335
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
336
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
337
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
338
+ });
339
+ if (_response.ok) {
340
+ return { data: _response.body, rawResponse: _response.rawResponse };
341
+ }
342
+ if (_response.error.reason === "status-code") {
343
+ switch (_response.error.statusCode) {
344
+ case 422:
345
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
346
+ default:
347
+ throw new errors.ChrtError({
348
+ statusCode: _response.error.statusCode,
349
+ body: _response.error.body,
350
+ rawResponse: _response.rawResponse,
351
+ });
352
+ }
353
+ }
354
+ switch (_response.error.reason) {
355
+ case "non-json":
356
+ throw new errors.ChrtError({
357
+ statusCode: _response.error.statusCode,
358
+ body: _response.error.rawBody,
359
+ rawResponse: _response.rawResponse,
360
+ });
361
+ case "timeout":
362
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/remove_executor/v1/{task_group_id}.");
363
+ case "unknown":
364
+ throw new errors.ChrtError({
365
+ message: _response.error.errorMessage,
366
+ rawResponse: _response.rawResponse,
367
+ });
368
+ }
369
+ });
370
+ }
371
+ /**
372
+ * Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
373
+ *
374
+ * @param {string} taskGroupId
375
+ * @param {Chrt.shipping.orderDrafts.OrderDraftUpdateDriverReq} request
376
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
377
+ *
378
+ * @throws {@link Chrt.UnprocessableEntityError}
379
+ *
380
+ * @example
381
+ * await client.shipping.orderDrafts.taskGroup.updateDriverV1("task_group_id", {
382
+ * driver_id: "driver_id"
383
+ * })
384
+ */
385
+ updateDriverV1(taskGroupId, request, requestOptions) {
386
+ return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
387
+ }
388
+ __updateDriverV1(taskGroupId, request, requestOptions) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ var _a, _b, _c, _d;
391
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
392
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
393
+ 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)}`),
394
+ method: "PATCH",
395
+ headers: _headers,
396
+ contentType: "application/json",
397
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
398
+ requestType: "json",
399
+ body: request,
400
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
401
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
402
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
403
+ });
404
+ if (_response.ok) {
405
+ return { data: _response.body, rawResponse: _response.rawResponse };
406
+ }
407
+ if (_response.error.reason === "status-code") {
408
+ switch (_response.error.statusCode) {
409
+ case 422:
410
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
411
+ default:
412
+ throw new errors.ChrtError({
413
+ statusCode: _response.error.statusCode,
414
+ body: _response.error.body,
415
+ rawResponse: _response.rawResponse,
416
+ });
417
+ }
418
+ }
419
+ switch (_response.error.reason) {
420
+ case "non-json":
421
+ throw new errors.ChrtError({
422
+ statusCode: _response.error.statusCode,
423
+ body: _response.error.rawBody,
424
+ rawResponse: _response.rawResponse,
425
+ });
426
+ case "timeout":
427
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/update_driver/v1/{task_group_id}.");
428
+ case "unknown":
429
+ throw new errors.ChrtError({
430
+ message: _response.error.errorMessage,
431
+ rawResponse: _response.rawResponse,
432
+ });
433
+ }
434
+ });
435
+ }
436
+ /**
437
+ * Clears the driver on a draft task group. Only the executor org may remove drivers. | authz_personas=[executor_org_operators] | () -> (bool)
438
+ *
439
+ * @param {string} taskGroupId
440
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
441
+ *
442
+ * @throws {@link Chrt.UnprocessableEntityError}
443
+ *
444
+ * @example
445
+ * await client.shipping.orderDrafts.taskGroup.removeDriverV1("task_group_id")
446
+ */
447
+ removeDriverV1(taskGroupId, requestOptions) {
448
+ return core.HttpResponsePromise.fromPromise(this.__removeDriverV1(taskGroupId, requestOptions));
449
+ }
450
+ __removeDriverV1(taskGroupId, requestOptions) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ var _a, _b, _c, _d;
453
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
454
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
455
+ 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)}`),
456
+ method: "PATCH",
457
+ headers: _headers,
458
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
459
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
460
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
461
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
462
+ });
463
+ if (_response.ok) {
464
+ return { data: _response.body, rawResponse: _response.rawResponse };
465
+ }
466
+ if (_response.error.reason === "status-code") {
467
+ switch (_response.error.statusCode) {
468
+ case 422:
469
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
470
+ default:
471
+ throw new errors.ChrtError({
472
+ statusCode: _response.error.statusCode,
473
+ body: _response.error.body,
474
+ rawResponse: _response.rawResponse,
475
+ });
476
+ }
477
+ }
478
+ switch (_response.error.reason) {
479
+ case "non-json":
480
+ throw new errors.ChrtError({
481
+ statusCode: _response.error.statusCode,
482
+ body: _response.error.rawBody,
483
+ rawResponse: _response.rawResponse,
484
+ });
485
+ case "timeout":
486
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/order_drafts/task_group/remove_driver/v1/{task_group_id}.");
487
+ case "unknown":
488
+ throw new errors.ChrtError({
489
+ message: _response.error.errorMessage,
490
+ rawResponse: _response.rawResponse,
491
+ });
492
+ }
493
+ });
494
+ }
249
495
  /**
250
496
  * Sets the ordering of tasks within a draft task group. Must provide all task IDs with no duplicates. | (SetTaskOrderingDraftReq) -> (bool)
251
497
  *
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * 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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,6 @@
1
1
  export { type OrderDraftAddTaskGroupReq } from "./OrderDraftAddTaskGroupReq.js";
2
2
  export { type SetVehicleTypeReq } from "./SetVehicleTypeReq.js";
3
+ export { type OrderDraftAddExecutorReq } from "./OrderDraftAddExecutorReq.js";
4
+ export { type OrderDraftUpdateDriverReq } from "./OrderDraftUpdateDriverReq.js";
3
5
  export { type SetTaskOrderingDraftReq } from "./SetTaskOrderingDraftReq.js";
4
6
  export { type SetRateSheetsReq } from "./SetRateSheetsReq.js";
@@ -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
  }
@@ -186,7 +186,7 @@ class Orders {
186
186
  });
187
187
  }
188
188
  /**
189
- * Cancels an order and all related task groups and tasks in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
189
+ * Cancels an order and non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | () -> (bool)
190
190
  *
191
191
  * @param {string} orderId
192
192
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -244,6 +244,70 @@ class Orders {
244
244
  }
245
245
  });
246
246
  }
247
+ /**
248
+ * Cancels multiple orders and their non-terminal child entities in a transaction. | authz_personas=[lig_owner_operators] | (OrdersCancelManyReq) -> (bool)
249
+ *
250
+ * @param {Chrt.shipping.OrdersCancelManyReq} request
251
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
252
+ *
253
+ * @throws {@link Chrt.UnprocessableEntityError}
254
+ *
255
+ * @example
256
+ * await client.shipping.orders.cancelManyV1({
257
+ * order_ids: ["order_ids"]
258
+ * })
259
+ */
260
+ cancelManyV1(request, requestOptions) {
261
+ return core.HttpResponsePromise.fromPromise(this.__cancelManyV1(request, requestOptions));
262
+ }
263
+ __cancelManyV1(request, requestOptions) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ var _a, _b, _c, _d;
266
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
267
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
268
+ 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"),
269
+ method: "PUT",
270
+ headers: _headers,
271
+ contentType: "application/json",
272
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
273
+ requestType: "json",
274
+ body: request,
275
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
276
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
277
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
+ });
279
+ if (_response.ok) {
280
+ return { data: _response.body, rawResponse: _response.rawResponse };
281
+ }
282
+ if (_response.error.reason === "status-code") {
283
+ switch (_response.error.statusCode) {
284
+ case 422:
285
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
286
+ default:
287
+ throw new errors.ChrtError({
288
+ statusCode: _response.error.statusCode,
289
+ body: _response.error.body,
290
+ rawResponse: _response.rawResponse,
291
+ });
292
+ }
293
+ }
294
+ switch (_response.error.reason) {
295
+ case "non-json":
296
+ throw new errors.ChrtError({
297
+ statusCode: _response.error.statusCode,
298
+ body: _response.error.rawBody,
299
+ rawResponse: _response.rawResponse,
300
+ });
301
+ case "timeout":
302
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/cancel_many/v1.");
303
+ case "unknown":
304
+ throw new errors.ChrtError({
305
+ message: _response.error.errorMessage,
306
+ rawResponse: _response.rawResponse,
307
+ });
308
+ }
309
+ });
310
+ }
247
311
  _getAuthorizationHeader() {
248
312
  return __awaiter(this, void 0, void 0, function* () {
249
313
  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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.js";
2
+ export { type OrdersCancelManyReq } from "./OrdersCancelManyReq.js";
@@ -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: {}
@@ -204,11 +204,10 @@ class Expanded {
204
204
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
205
205
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
206
206
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
207
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
208
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
207
209
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
208
210
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
209
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
210
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
211
- * filter_order_cancelled: true,
212
211
  * filter_executor_org_id: "filter_executor_org_id",
213
212
  * filter_shipper_org_id: "filter_shipper_org_id",
214
213
  * filter_off_chrt_shipper_org_id: "filter_off_chrt_shipper_org_id",
@@ -220,8 +219,8 @@ class Expanded {
220
219
  }
221
220
  __listForCoordinatorOperatorsV1(request, requestOptions) {
222
221
  return __awaiter(this, void 0, void 0, function* () {
223
- var _a, _b, _c, _d, _e, _f, _g;
224
- 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;
222
+ var _a, _b, _c, _d, _e, _f;
223
+ 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;
225
224
  const _queryParams = {};
226
225
  if (sortBy !== undefined) {
227
226
  _queryParams["sort_by"] = sortBy;
@@ -270,21 +269,18 @@ class Expanded {
270
269
  if (filterCompletedAtTimestampGte !== undefined) {
271
270
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
272
271
  }
272
+ if (filterCancelledAtTimestampLte !== undefined) {
273
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
274
+ }
275
+ if (filterCancelledAtTimestampGte !== undefined) {
276
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
277
+ }
273
278
  if (filterExceptionAtTimestampLte !== undefined) {
274
279
  _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
275
280
  }
276
281
  if (filterExceptionAtTimestampGte !== undefined) {
277
282
  _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
278
283
  }
279
- if (filterOrderCancelledAtTimestampLte !== undefined) {
280
- _queryParams["filter_order_cancelled_at_timestamp_lte"] = filterOrderCancelledAtTimestampLte;
281
- }
282
- if (filterOrderCancelledAtTimestampGte !== undefined) {
283
- _queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
284
- }
285
- if (filterOrderCancelled !== undefined) {
286
- _queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
287
- }
288
284
  if (filterExecutorOrgId !== undefined) {
289
285
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
290
286
  }
@@ -294,9 +290,9 @@ class Expanded {
294
290
  if (filterOffChrtShipperOrgId !== undefined) {
295
291
  _queryParams["filter_off_chrt_shipper_org_id"] = filterOffChrtShipperOrgId;
296
292
  }
297
- let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
298
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
299
- 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"),
293
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
294
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
295
+ 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"),
300
296
  method: "POST",
301
297
  headers: _headers,
302
298
  contentType: "application/json",
@@ -362,11 +358,10 @@ class Expanded {
362
358
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
363
359
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
364
360
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
361
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
362
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
365
363
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
366
364
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
367
- * filter_order_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
368
- * filter_order_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
369
- * filter_order_cancelled: true,
370
365
  * filter_executor_org_id: "filter_executor_org_id",
371
366
  * filter_coordinator_org_id: "filter_coordinator_org_id",
372
367
  * body: {}
@@ -377,8 +372,8 @@ class Expanded {
377
372
  }
378
373
  __listForShipperOperatorsV1(request, requestOptions) {
379
374
  return __awaiter(this, void 0, void 0, function* () {
380
- var _a, _b, _c, _d, _e, _f, _g;
381
- 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;
375
+ var _a, _b, _c, _d, _e, _f;
376
+ 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;
382
377
  const _queryParams = {};
383
378
  if (sortBy !== undefined) {
384
379
  _queryParams["sort_by"] = sortBy;
@@ -427,30 +422,27 @@ class Expanded {
427
422
  if (filterCompletedAtTimestampGte !== undefined) {
428
423
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
429
424
  }
425
+ if (filterCancelledAtTimestampLte !== undefined) {
426
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
427
+ }
428
+ if (filterCancelledAtTimestampGte !== undefined) {
429
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
430
+ }
430
431
  if (filterExceptionAtTimestampLte !== undefined) {
431
432
  _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
432
433
  }
433
434
  if (filterExceptionAtTimestampGte !== undefined) {
434
435
  _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
435
436
  }
436
- if (filterOrderCancelledAtTimestampLte !== undefined) {
437
- _queryParams["filter_order_cancelled_at_timestamp_lte"] = filterOrderCancelledAtTimestampLte;
438
- }
439
- if (filterOrderCancelledAtTimestampGte !== undefined) {
440
- _queryParams["filter_order_cancelled_at_timestamp_gte"] = filterOrderCancelledAtTimestampGte;
441
- }
442
- if (filterOrderCancelled !== undefined) {
443
- _queryParams["filter_order_cancelled"] = (_c = filterOrderCancelled === null || filterOrderCancelled === void 0 ? void 0 : filterOrderCancelled.toString()) !== null && _c !== void 0 ? _c : null;
444
- }
445
437
  if (filterExecutorOrgId !== undefined) {
446
438
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
447
439
  }
448
440
  if (filterCoordinatorOrgId !== undefined) {
449
441
  _queryParams["filter_coordinator_org_id"] = filterCoordinatorOrgId;
450
442
  }
451
- let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
452
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
453
- 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"),
443
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
444
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
445
+ 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"),
454
446
  method: "POST",
455
447
  headers: _headers,
456
448
  contentType: "application/json",