@chrt-inc/typescript-sdk 1.719.0 → 1.726.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +3 -3
  3. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.ts → AnalyticsTimePeriodReq.d.ts} +1 -1
  5. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
  6. package/dist/cjs/api/resources/operations/client/Client.d.ts +6 -3
  7. package/dist/cjs/api/resources/operations/client/Client.js +10 -5
  8. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +5 -125
  9. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +17 -494
  10. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.ts +1 -0
  11. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +3 -8
  12. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +0 -4
  13. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +76 -0
  14. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +246 -0
  15. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +19 -0
  16. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -1
  18. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -1
  19. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +1 -1
  20. package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -2
  21. package/dist/cjs/api/resources/operations/resources/index.js +5 -3
  22. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +181 -0
  23. package/dist/cjs/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.js +206 -75
  24. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.js +17 -0
  26. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.ts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts} +3 -2
  27. package/dist/{esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts → cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.ts} +2 -1
  28. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.ts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.ts} +2 -2
  29. package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.ts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.ts} +2 -2
  30. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +13 -0
  31. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.ts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts} +2 -2
  32. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +6 -0
  33. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.js +17 -0
  36. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +23 -5
  37. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +108 -14
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +7 -2
  39. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
  40. package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.ts → operationsTasks/client/requests/OperationsTaskStatusReq.d.ts} +3 -3
  41. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +15 -6
  42. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +0 -14
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +0 -63
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +0 -1
  46. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.ts +0 -1
  47. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.ts +0 -2
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +0 -1
  49. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +0 -2
  50. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
  51. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
  52. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
  53. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +15 -0
  55. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +64 -0
  56. package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts} +3 -3
  57. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -0
  58. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
  60. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
  61. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
  63. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
  65. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
  66. package/dist/cjs/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts} +3 -3
  67. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
  69. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
  70. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
  71. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
  72. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
  76. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  77. package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
  78. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  79. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  80. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  81. package/dist/cjs/api/types/Case1.d.ts +1 -12
  82. package/dist/cjs/api/types/CaseSortByEnum.d.ts +1 -2
  83. package/dist/cjs/api/types/CaseSortByEnum.js +0 -1
  84. package/dist/cjs/api/types/Department1.d.ts +1 -0
  85. package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
  86. package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +10 -10
  87. package/dist/cjs/api/types/DepartmentTypeEnum.js +9 -9
  88. package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
  89. package/dist/cjs/api/types/OffChrtProviderOrg1.d.ts +0 -1
  90. package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +0 -1
  91. package/dist/cjs/api/types/OperationsTask1.d.ts +7 -2
  92. package/dist/cjs/api/types/{Checklist1.d.ts → OperationsTaskList1.d.ts} +3 -2
  93. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +23 -0
  94. package/dist/cjs/api/types/{ChecklistListRes.d.ts → OperationsTaskListListRes.d.ts} +2 -2
  95. package/dist/cjs/api/types/OperationsTaskListListRes.js +5 -0
  96. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +13 -0
  97. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.js +5 -0
  98. package/dist/{esm/api/types/ChecklistSortByEnum.d.mts → cjs/api/types/OperationsTaskListSortByEnum.d.ts} +2 -2
  99. package/dist/cjs/api/types/{ChecklistSortByEnum.js → OperationsTaskListSortByEnum.js} +2 -2
  100. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +17 -0
  101. package/dist/cjs/api/types/{CheckStatusEnum.js → OperationsTaskStatusEnum.js} +4 -7
  102. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +23 -0
  103. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +20 -0
  104. package/dist/cjs/api/types/Order1.d.ts +1 -2
  105. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  106. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  107. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
  108. package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
  109. package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
  110. package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
  111. package/dist/cjs/api/types/ProviderProviderConnection1.d.ts +0 -1
  112. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +8 -0
  113. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +10 -0
  114. package/dist/cjs/api/types/ShipperProviderConnection1.d.ts +0 -1
  115. package/dist/cjs/api/types/Task1.d.ts +1 -1
  116. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  117. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  118. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  119. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  120. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  121. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  122. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  123. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  124. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  125. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  126. package/dist/cjs/api/types/index.d.ts +11 -12
  127. package/dist/cjs/api/types/index.js +11 -12
  128. package/dist/cjs/version.d.ts +1 -1
  129. package/dist/cjs/version.js +1 -1
  130. package/dist/esm/Client.mjs +2 -2
  131. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +3 -3
  132. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  133. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
  134. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
  135. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -3
  136. package/dist/esm/api/resources/operations/client/Client.mjs +8 -3
  137. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +5 -125
  138. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +17 -494
  139. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.mts +1 -0
  140. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +3 -8
  141. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +0 -4
  142. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +76 -0
  143. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +209 -0
  144. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +19 -0
  145. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  146. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +1 -1
  149. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -2
  150. package/dist/esm/api/resources/operations/resources/index.mjs +4 -2
  151. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +181 -0
  152. package/dist/esm/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.mjs +204 -73
  153. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.d.mts +2 -0
  154. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.mjs +1 -0
  155. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.mts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts} +3 -2
  156. package/dist/{cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts → esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.d.mts} +2 -1
  157. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.mts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.mts} +2 -2
  158. package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.mts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.mts} +2 -2
  159. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +13 -0
  160. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.mts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts} +2 -2
  161. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +6 -0
  162. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.mjs +1 -0
  163. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.d.mts +1 -0
  164. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.mjs +1 -0
  165. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +23 -5
  166. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +108 -14
  167. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +7 -2
  168. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
  169. package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.mts → operationsTasks/client/requests/OperationsTaskStatusReq.d.mts} +3 -3
  170. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +15 -6
  171. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  172. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +0 -14
  173. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +0 -63
  174. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +0 -1
  175. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.mts +0 -1
  176. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.mts +0 -2
  177. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +0 -1
  178. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +0 -2
  179. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
  180. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
  181. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
  182. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
  183. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +15 -0
  184. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +64 -0
  185. package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts} +3 -3
  186. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -0
  187. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +1 -0
  188. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
  189. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
  190. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
  191. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
  192. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
  193. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
  194. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
  195. package/dist/esm/api/resources/{operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts → shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts} +3 -3
  196. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  197. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
  198. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
  199. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
  200. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
  201. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
  202. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
  203. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
  204. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
  205. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  206. package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
  207. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  208. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  209. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  210. package/dist/esm/api/types/Case1.d.mts +1 -12
  211. package/dist/esm/api/types/CaseSortByEnum.d.mts +1 -2
  212. package/dist/esm/api/types/CaseSortByEnum.mjs +0 -1
  213. package/dist/esm/api/types/Department1.d.mts +1 -0
  214. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
  215. package/dist/esm/api/types/DepartmentTypeEnum.d.mts +10 -10
  216. package/dist/esm/api/types/DepartmentTypeEnum.mjs +9 -9
  217. package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
  218. package/dist/esm/api/types/OffChrtProviderOrg1.d.mts +0 -1
  219. package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +0 -1
  220. package/dist/esm/api/types/OperationsTask1.d.mts +7 -2
  221. package/dist/esm/api/types/{Checklist1.d.mts → OperationsTaskList1.d.mts} +3 -2
  222. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +23 -0
  223. package/dist/esm/api/types/{ChecklistListRes.d.mts → OperationsTaskListListRes.d.mts} +2 -2
  224. package/dist/esm/api/types/OperationsTaskListListRes.mjs +4 -0
  225. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +13 -0
  226. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.mjs +4 -0
  227. package/dist/{cjs/api/types/ChecklistSortByEnum.d.ts → esm/api/types/OperationsTaskListSortByEnum.d.mts} +2 -2
  228. package/dist/esm/api/types/{ChecklistSortByEnum.mjs → OperationsTaskListSortByEnum.mjs} +1 -1
  229. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +17 -0
  230. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +9 -0
  231. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +23 -0
  232. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +17 -0
  233. package/dist/esm/api/types/Order1.d.mts +1 -2
  234. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  235. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  236. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
  237. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
  238. package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
  239. package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
  240. package/dist/esm/api/types/ProviderProviderConnection1.d.mts +0 -1
  241. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +8 -0
  242. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +7 -0
  243. package/dist/esm/api/types/ShipperProviderConnection1.d.mts +0 -1
  244. package/dist/esm/api/types/Task1.d.mts +1 -1
  245. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  246. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  247. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  248. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  249. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  250. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  251. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  252. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  253. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  254. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  255. package/dist/esm/api/types/index.d.mts +11 -12
  256. package/dist/esm/api/types/index.mjs +11 -12
  257. package/dist/esm/version.d.mts +1 -1
  258. package/dist/esm/version.mjs +1 -1
  259. package/package.json +1 -1
  260. package/reference.md +816 -516
  261. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +0 -15
  262. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +0 -150
  263. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +0 -11
  264. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +0 -5
  265. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +0 -7
  266. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +0 -8
  267. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +0 -27
  268. package/dist/cjs/api/types/CaseStatusEnum.d.ts +0 -9
  269. package/dist/cjs/api/types/CaseStatusEnum.js +0 -11
  270. package/dist/cjs/api/types/Check1.d.ts +0 -33
  271. package/dist/cjs/api/types/CheckEnum.d.ts +0 -46
  272. package/dist/cjs/api/types/CheckEnum.js +0 -23
  273. package/dist/cjs/api/types/CheckStatusEnum.d.ts +0 -32
  274. package/dist/cjs/api/types/ChecklistCheck1.d.ts +0 -15
  275. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +0 -15
  276. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +0 -150
  277. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +0 -11
  278. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +0 -5
  279. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +0 -7
  280. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +0 -8
  281. package/dist/esm/api/types/CaseChecksSummary1.d.mts +0 -27
  282. package/dist/esm/api/types/CaseStatusEnum.d.mts +0 -9
  283. package/dist/esm/api/types/CaseStatusEnum.mjs +0 -8
  284. package/dist/esm/api/types/Check1.d.mts +0 -33
  285. package/dist/esm/api/types/CheckEnum.d.mts +0 -46
  286. package/dist/esm/api/types/CheckEnum.mjs +0 -20
  287. package/dist/esm/api/types/CheckStatusEnum.d.mts +0 -32
  288. package/dist/esm/api/types/CheckStatusEnum.mjs +0 -12
  289. package/dist/esm/api/types/ChecklistCheck1.d.mts +0 -15
  290. /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
  291. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.ts +0 -0
  292. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.js +0 -0
  293. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.js → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.js} +0 -0
  294. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.js +0 -0
  295. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.ts +0 -0
  296. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.js +0 -0
  297. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.js} +0 -0
  298. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.js → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.js} +0 -0
  299. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.js → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js} +0 -0
  300. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.js → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.js} +0 -0
  301. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.js → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.js} +0 -0
  302. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.js → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.js} +0 -0
  303. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.js → operationsTasks/client/requests/OperationsTaskStatusReq.js} +0 -0
  304. /package/dist/cjs/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.js → shipping/resources/drivers/client/requests/DriverStatsReq.js} +0 -0
  305. /package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.js → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js} +0 -0
  306. /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js} +0 -0
  307. /package/dist/cjs/api/{types/CaseChecksDisableReq.js → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js} +0 -0
  308. /package/dist/cjs/api/{types/CaseChecksDismissReq.js → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js} +0 -0
  309. /package/dist/cjs/api/types/{CaseChecksSummary1.js → AnalyticsTimeBucketRes.js} +0 -0
  310. /package/dist/cjs/api/types/{Check1.js → DepartmentRoutingRule1.js} +0 -0
  311. /package/dist/cjs/api/types/{Checklist1.js → DriverStatsRes.js} +0 -0
  312. /package/dist/cjs/api/types/{ChecklistCheck1.js → OperationsTaskList1.js} +0 -0
  313. /package/dist/cjs/api/types/{ChecklistListRes.js → OperationsTaskListEntry1.js} +0 -0
  314. /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
  315. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.mts +0 -0
  316. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.mjs +0 -0
  317. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.mjs} +0 -0
  318. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.mjs +0 -0
  319. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.mts +0 -0
  320. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.mjs +0 -0
  321. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.mjs} +0 -0
  322. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.mjs} +0 -0
  323. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs} +0 -0
  324. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.mjs} +0 -0
  325. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.mjs → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.mjs} +0 -0
  326. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.mjs → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.mjs} +0 -0
  327. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.mjs → operationsTasks/client/requests/OperationsTaskStatusReq.mjs} +0 -0
  328. /package/dist/esm/api/resources/{operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs → shipping/resources/drivers/client/requests/DriverStatsReq.mjs} +0 -0
  329. /package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.mjs → shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs} +0 -0
  330. /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs} +0 -0
  331. /package/dist/esm/api/{types/CaseChecksDisableReq.mjs → resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs} +0 -0
  332. /package/dist/esm/api/{types/CaseChecksDismissReq.mjs → resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs} +0 -0
  333. /package/dist/esm/api/types/{CaseChecksSummary1.mjs → AnalyticsTimeBucketRes.mjs} +0 -0
  334. /package/dist/esm/api/types/{Check1.mjs → DepartmentRoutingRule1.mjs} +0 -0
  335. /package/dist/esm/api/types/{Checklist1.mjs → DriverStatsRes.mjs} +0 -0
  336. /package/dist/esm/api/types/{ChecklistCheck1.mjs → OperationsTaskList1.mjs} +0 -0
  337. /package/dist/esm/api/types/{ChecklistListRes.mjs → OperationsTaskListEntry1.mjs} +0 -0
@@ -60,400 +60,6 @@ class Cases {
60
60
  var _a;
61
61
  return ((_a = this._s3Objects) !== null && _a !== void 0 ? _a : (this._s3Objects = new Client_js_1.S3Objects(this._options)));
62
62
  }
63
- /**
64
- * Records image-analysis workflow results onto every participating org's Case for the order. Walks task_artifact -> task -> order, authorizes the caller against the shipping graph, then fans out to all Cases keyed on `order_id` — upserting one Check1 per surviving result keyed by (check, task_artifact_id) on each Case whose effective check set (`enabled - disabled`) includes it. Silently drops results for checks not in the image-uploaded event family, results for checks not in a given Case's effective set, and results whose existing row on that Case is DISMISSED. Returns True if any Case was updated. Intended to be called by the shipping_task_image_analysis Temporal workflow via an internal delegation JWT. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | (CaseChecksRecordImageAnalysisResultsReq) -> (bool)
65
- *
66
- * @param {string} taskArtifactId
67
- * @param {Chrt.operations.CaseChecksRecordImageAnalysisResultsReq} request
68
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
69
- *
70
- * @throws {@link Chrt.UnprocessableEntityError}
71
- *
72
- * @example
73
- * await client.operations.cases.recordImageAnalysisResultsV1("task_artifact_id", {
74
- * results: {
75
- * "key": "not_started"
76
- * }
77
- * })
78
- */
79
- recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions) {
80
- return core.HttpResponsePromise.fromPromise(this.__recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions));
81
- }
82
- __recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions) {
83
- return __awaiter(this, void 0, void 0, function* () {
84
- var _a, _b, _c, _d;
85
- 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);
86
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
87
- 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, `operations/cases/checks/record_image_analysis_results/v1/${encodeURIComponent(taskArtifactId)}`),
88
- method: "POST",
89
- headers: _headers,
90
- contentType: "application/json",
91
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
92
- requestType: "json",
93
- body: request,
94
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
95
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
96
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
- });
98
- if (_response.ok) {
99
- return { data: _response.body, rawResponse: _response.rawResponse };
100
- }
101
- if (_response.error.reason === "status-code") {
102
- switch (_response.error.statusCode) {
103
- case 422:
104
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
105
- default:
106
- throw new errors.ChrtError({
107
- statusCode: _response.error.statusCode,
108
- body: _response.error.body,
109
- rawResponse: _response.rawResponse,
110
- });
111
- }
112
- }
113
- switch (_response.error.reason) {
114
- case "non-json":
115
- throw new errors.ChrtError({
116
- statusCode: _response.error.statusCode,
117
- body: _response.error.rawBody,
118
- rawResponse: _response.rawResponse,
119
- });
120
- case "timeout":
121
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/record_image_analysis_results/v1/{task_artifact_id}.");
122
- case "unknown":
123
- throw new errors.ChrtError({
124
- message: _response.error.errorMessage,
125
- rawResponse: _response.rawResponse,
126
- });
127
- }
128
- });
129
- }
130
- /**
131
- * Adds the Checklist's checks to the Case's enabled_check_keys (deduped) and records the Checklist id. Does not touch existing check runs. Idempotent. | authz: min_org_role=operator | (CaseChecksApplyChecklistReq) -> (bool)
132
- *
133
- * @param {string} caseId
134
- * @param {Chrt.operations.CaseChecksApplyChecklistReq} request
135
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
136
- *
137
- * @throws {@link Chrt.UnprocessableEntityError}
138
- *
139
- * @example
140
- * await client.operations.cases.applyChecklistV1("case_id", {
141
- * checklist_id: "checklist_id"
142
- * })
143
- */
144
- applyChecklistV1(caseId, request, requestOptions) {
145
- return core.HttpResponsePromise.fromPromise(this.__applyChecklistV1(caseId, request, requestOptions));
146
- }
147
- __applyChecklistV1(caseId, request, requestOptions) {
148
- return __awaiter(this, void 0, void 0, function* () {
149
- var _a, _b, _c, _d;
150
- 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);
151
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
152
- 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, `operations/cases/checks/apply_checklist/v1/${encodeURIComponent(caseId)}`),
153
- method: "POST",
154
- headers: _headers,
155
- contentType: "application/json",
156
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
157
- requestType: "json",
158
- body: request,
159
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
160
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
- });
163
- if (_response.ok) {
164
- return { data: _response.body, rawResponse: _response.rawResponse };
165
- }
166
- if (_response.error.reason === "status-code") {
167
- switch (_response.error.statusCode) {
168
- case 422:
169
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
170
- default:
171
- throw new errors.ChrtError({
172
- statusCode: _response.error.statusCode,
173
- body: _response.error.body,
174
- rawResponse: _response.rawResponse,
175
- });
176
- }
177
- }
178
- switch (_response.error.reason) {
179
- case "non-json":
180
- throw new errors.ChrtError({
181
- statusCode: _response.error.statusCode,
182
- body: _response.error.rawBody,
183
- rawResponse: _response.rawResponse,
184
- });
185
- case "timeout":
186
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/apply_checklist/v1/{case_id}.");
187
- case "unknown":
188
- throw new errors.ChrtError({
189
- message: _response.error.errorMessage,
190
- rawResponse: _response.rawResponse,
191
- });
192
- }
193
- });
194
- }
195
- /**
196
- * Adds a CheckEnum to the Case's disabled_check_keys (operator override). The Checklist that enabled the check stays applied; the workflow's effective set becomes enabled - disabled. Requires the CheckEnum to currently be in enabled_check_keys; otherwise 400. Existing check runs are untouched — operators dismiss them individually if they also want them out of summary counts. | authz: min_org_role=operator | (CaseChecksDisableReq) -> (bool)
197
- *
198
- * @param {string} caseId
199
- * @param {Chrt.CaseChecksDisableReq} request
200
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
201
- *
202
- * @throws {@link Chrt.UnprocessableEntityError}
203
- *
204
- * @example
205
- * await client.operations.cases.disableCheckV1("case_id", {
206
- * check: "shipping.order.placed.order_details_reviewed"
207
- * })
208
- */
209
- disableCheckV1(caseId, request, requestOptions) {
210
- return core.HttpResponsePromise.fromPromise(this.__disableCheckV1(caseId, request, requestOptions));
211
- }
212
- __disableCheckV1(caseId, request, requestOptions) {
213
- return __awaiter(this, void 0, void 0, function* () {
214
- var _a, _b, _c, _d;
215
- 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);
216
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
217
- 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, `operations/cases/checks/disable/v1/${encodeURIComponent(caseId)}`),
218
- method: "POST",
219
- headers: _headers,
220
- contentType: "application/json",
221
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
222
- requestType: "json",
223
- body: request,
224
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
225
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
226
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
227
- });
228
- if (_response.ok) {
229
- return { data: _response.body, rawResponse: _response.rawResponse };
230
- }
231
- if (_response.error.reason === "status-code") {
232
- switch (_response.error.statusCode) {
233
- case 422:
234
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
235
- default:
236
- throw new errors.ChrtError({
237
- statusCode: _response.error.statusCode,
238
- body: _response.error.body,
239
- rawResponse: _response.rawResponse,
240
- });
241
- }
242
- }
243
- switch (_response.error.reason) {
244
- case "non-json":
245
- throw new errors.ChrtError({
246
- statusCode: _response.error.statusCode,
247
- body: _response.error.rawBody,
248
- rawResponse: _response.rawResponse,
249
- });
250
- case "timeout":
251
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/disable/v1/{case_id}.");
252
- case "unknown":
253
- throw new errors.ChrtError({
254
- message: _response.error.errorMessage,
255
- rawResponse: _response.rawResponse,
256
- });
257
- }
258
- });
259
- }
260
- /**
261
- * Removes a CheckEnum from the Case's disabled_check_keys, restoring it to the workflow's effective set. Inverse of disable. No-op if the CheckEnum isn't currently disabled. | authz: min_org_role=operator | (CaseChecksDisableReq) -> (bool)
262
- *
263
- * @param {string} caseId
264
- * @param {Chrt.CaseChecksDisableReq} request
265
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
266
- *
267
- * @throws {@link Chrt.UnprocessableEntityError}
268
- *
269
- * @example
270
- * await client.operations.cases.enableCheckV1("case_id", {
271
- * check: "shipping.order.placed.order_details_reviewed"
272
- * })
273
- */
274
- enableCheckV1(caseId, request, requestOptions) {
275
- return core.HttpResponsePromise.fromPromise(this.__enableCheckV1(caseId, request, requestOptions));
276
- }
277
- __enableCheckV1(caseId, request, requestOptions) {
278
- return __awaiter(this, void 0, void 0, function* () {
279
- var _a, _b, _c, _d;
280
- 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);
281
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
282
- 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, `operations/cases/checks/enable/v1/${encodeURIComponent(caseId)}`),
283
- method: "POST",
284
- headers: _headers,
285
- contentType: "application/json",
286
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
287
- requestType: "json",
288
- body: request,
289
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
290
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
291
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
292
- });
293
- if (_response.ok) {
294
- return { data: _response.body, rawResponse: _response.rawResponse };
295
- }
296
- if (_response.error.reason === "status-code") {
297
- switch (_response.error.statusCode) {
298
- case 422:
299
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
300
- default:
301
- throw new errors.ChrtError({
302
- statusCode: _response.error.statusCode,
303
- body: _response.error.body,
304
- rawResponse: _response.rawResponse,
305
- });
306
- }
307
- }
308
- switch (_response.error.reason) {
309
- case "non-json":
310
- throw new errors.ChrtError({
311
- statusCode: _response.error.statusCode,
312
- body: _response.error.rawBody,
313
- rawResponse: _response.rawResponse,
314
- });
315
- case "timeout":
316
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/enable/v1/{case_id}.");
317
- case "unknown":
318
- throw new errors.ChrtError({
319
- message: _response.error.errorMessage,
320
- rawResponse: _response.rawResponse,
321
- });
322
- }
323
- });
324
- }
325
- /**
326
- * Transitions one (check, entity_id) Check1 to status=DISMISSED. Does not affect other runs of the same check on different entity_ids. | authz: min_org_role=operator | (CaseChecksDismissReq) -> (bool)
327
- *
328
- * @param {string} caseId
329
- * @param {Chrt.CaseChecksDismissReq} request
330
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
331
- *
332
- * @throws {@link Chrt.UnprocessableEntityError}
333
- *
334
- * @example
335
- * await client.operations.cases.dismissCheckV1("case_id", {
336
- * check: "shipping.order.placed.order_details_reviewed",
337
- * entity_id: "entity_id"
338
- * })
339
- */
340
- dismissCheckV1(caseId, request, requestOptions) {
341
- return core.HttpResponsePromise.fromPromise(this.__dismissCheckV1(caseId, request, requestOptions));
342
- }
343
- __dismissCheckV1(caseId, request, requestOptions) {
344
- return __awaiter(this, void 0, void 0, function* () {
345
- var _a, _b, _c, _d;
346
- 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);
347
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
348
- 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, `operations/cases/checks/dismiss/v1/${encodeURIComponent(caseId)}`),
349
- method: "POST",
350
- headers: _headers,
351
- contentType: "application/json",
352
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
353
- requestType: "json",
354
- body: request,
355
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
356
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
357
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
358
- });
359
- if (_response.ok) {
360
- return { data: _response.body, rawResponse: _response.rawResponse };
361
- }
362
- if (_response.error.reason === "status-code") {
363
- switch (_response.error.statusCode) {
364
- case 422:
365
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
366
- default:
367
- throw new errors.ChrtError({
368
- statusCode: _response.error.statusCode,
369
- body: _response.error.body,
370
- rawResponse: _response.rawResponse,
371
- });
372
- }
373
- }
374
- switch (_response.error.reason) {
375
- case "non-json":
376
- throw new errors.ChrtError({
377
- statusCode: _response.error.statusCode,
378
- body: _response.error.rawBody,
379
- rawResponse: _response.rawResponse,
380
- });
381
- case "timeout":
382
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/dismiss/v1/{case_id}.");
383
- case "unknown":
384
- throw new errors.ChrtError({
385
- message: _response.error.errorMessage,
386
- rawResponse: _response.rawResponse,
387
- });
388
- }
389
- });
390
- }
391
- /**
392
- * Transitions a DISMISSED (check, entity_id) Check1 back to NOT_STARTED so the next matching event re-evaluates it. No-op if not currently DISMISSED. | authz: min_org_role=operator | (CaseChecksDismissReq) -> (bool)
393
- *
394
- * @param {string} caseId
395
- * @param {Chrt.CaseChecksDismissReq} request
396
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
397
- *
398
- * @throws {@link Chrt.UnprocessableEntityError}
399
- *
400
- * @example
401
- * await client.operations.cases.undismissCheckV1("case_id", {
402
- * check: "shipping.order.placed.order_details_reviewed",
403
- * entity_id: "entity_id"
404
- * })
405
- */
406
- undismissCheckV1(caseId, request, requestOptions) {
407
- return core.HttpResponsePromise.fromPromise(this.__undismissCheckV1(caseId, request, requestOptions));
408
- }
409
- __undismissCheckV1(caseId, request, requestOptions) {
410
- return __awaiter(this, void 0, void 0, function* () {
411
- var _a, _b, _c, _d;
412
- 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);
413
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
414
- 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, `operations/cases/checks/undismiss/v1/${encodeURIComponent(caseId)}`),
415
- method: "POST",
416
- headers: _headers,
417
- contentType: "application/json",
418
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
419
- requestType: "json",
420
- body: request,
421
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
422
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
423
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
424
- });
425
- if (_response.ok) {
426
- return { data: _response.body, rawResponse: _response.rawResponse };
427
- }
428
- if (_response.error.reason === "status-code") {
429
- switch (_response.error.statusCode) {
430
- case 422:
431
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
432
- default:
433
- throw new errors.ChrtError({
434
- statusCode: _response.error.statusCode,
435
- body: _response.error.body,
436
- rawResponse: _response.rawResponse,
437
- });
438
- }
439
- }
440
- switch (_response.error.reason) {
441
- case "non-json":
442
- throw new errors.ChrtError({
443
- statusCode: _response.error.statusCode,
444
- body: _response.error.rawBody,
445
- rawResponse: _response.rawResponse,
446
- });
447
- case "timeout":
448
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/undismiss/v1/{case_id}.");
449
- case "unknown":
450
- throw new errors.ChrtError({
451
- message: _response.error.errorMessage,
452
- rawResponse: _response.rawResponse,
453
- });
454
- }
455
- });
456
- }
457
63
  /**
458
64
  * Lists cases for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (CaseListRes)
459
65
  *
@@ -468,8 +74,7 @@ class Cases {
468
74
  * sort_order: "asc",
469
75
  * page: 1,
470
76
  * page_size: 1,
471
- * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
472
- * filter_needs_action: true,
77
+ * filter_assigned_user_id: "filter_assigned_user_id",
473
78
  * filter_unassigned: true
474
79
  * })
475
80
  */
@@ -478,8 +83,8 @@ class Cases {
478
83
  }
479
84
  __listV1() {
480
85
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
481
- var _a, _b, _c, _d, _e, _f, _g, _h;
482
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_department_id: filterDepartmentId, filter_assigned_operator_user_id: filterAssignedOperatorUserId, filter_needs_action: filterNeedsAction, filter_unassigned: filterUnassigned, } = request;
86
+ var _a, _b, _c, _d, _e, _f, _g;
87
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_id: filterDepartmentId, filter_assigned_user_id: filterAssignedUserId, filter_unassigned: filterUnassigned, } = request;
483
88
  const _queryParams = {};
484
89
  if (sortBy !== undefined) {
485
90
  _queryParams["sort_by"] = sortBy;
@@ -493,14 +98,6 @@ class Cases {
493
98
  if (pageSize !== undefined) {
494
99
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
495
100
  }
496
- if (filterStatus !== undefined) {
497
- if (Array.isArray(filterStatus)) {
498
- _queryParams["filter_status"] = filterStatus.map((item) => item);
499
- }
500
- else {
501
- _queryParams["filter_status"] = filterStatus;
502
- }
503
- }
504
101
  if (filterDepartmentId !== undefined) {
505
102
  if (Array.isArray(filterDepartmentId)) {
506
103
  _queryParams["filter_department_id"] = filterDepartmentId.map((item) => item);
@@ -509,18 +106,15 @@ class Cases {
509
106
  _queryParams["filter_department_id"] = filterDepartmentId;
510
107
  }
511
108
  }
512
- if (filterAssignedOperatorUserId !== undefined) {
513
- _queryParams["filter_assigned_operator_user_id"] = filterAssignedOperatorUserId;
514
- }
515
- if (filterNeedsAction !== undefined) {
516
- _queryParams["filter_needs_action"] = (_c = filterNeedsAction === null || filterNeedsAction === void 0 ? void 0 : filterNeedsAction.toString()) !== null && _c !== void 0 ? _c : null;
109
+ if (filterAssignedUserId !== undefined) {
110
+ _queryParams["filter_assigned_user_id"] = filterAssignedUserId;
517
111
  }
518
112
  if (filterUnassigned !== undefined) {
519
- _queryParams["filter_unassigned"] = (_d = filterUnassigned === null || filterUnassigned === void 0 ? void 0 : filterUnassigned.toString()) !== null && _d !== void 0 ? _d : null;
113
+ _queryParams["filter_unassigned"] = (_c = filterUnassigned === null || filterUnassigned === void 0 ? void 0 : filterUnassigned.toString()) !== null && _c !== void 0 ? _c : null;
520
114
  }
521
- let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
522
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
523
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "operations/cases/list/v1"),
115
+ 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);
116
+ const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
117
+ 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, "operations/cases/list/v1"),
524
118
  method: "GET",
525
119
  headers: _headers,
526
120
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -860,99 +454,28 @@ class Cases {
860
454
  });
861
455
  }
862
456
  /**
863
- * Updates whether a case needs action. | authz: min_org_role=operator | (CaseNeedsActionReq) -> (bool)
864
- *
865
- * @param {string} caseId
866
- * @param {Chrt.operations.CaseNeedsActionReq} request
867
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
868
- *
869
- * @throws {@link Chrt.UnprocessableEntityError}
870
- *
871
- * @example
872
- * await client.operations.cases.updateNeedsActionV1("case_id", {
873
- * needs_action: true
874
- * })
875
- */
876
- updateNeedsActionV1(caseId, request, requestOptions) {
877
- return core.HttpResponsePromise.fromPromise(this.__updateNeedsActionV1(caseId, request, requestOptions));
878
- }
879
- __updateNeedsActionV1(caseId, request, requestOptions) {
880
- return __awaiter(this, void 0, void 0, function* () {
881
- var _a, _b, _c, _d;
882
- 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);
883
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
884
- 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, `operations/cases/needs_action/v1/${encodeURIComponent(caseId)}`),
885
- method: "PATCH",
886
- headers: _headers,
887
- contentType: "application/json",
888
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
889
- requestType: "json",
890
- body: request,
891
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
892
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
893
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
894
- });
895
- if (_response.ok) {
896
- return { data: _response.body, rawResponse: _response.rawResponse };
897
- }
898
- if (_response.error.reason === "status-code") {
899
- switch (_response.error.statusCode) {
900
- case 422:
901
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
902
- default:
903
- throw new errors.ChrtError({
904
- statusCode: _response.error.statusCode,
905
- body: _response.error.body,
906
- rawResponse: _response.rawResponse,
907
- });
908
- }
909
- }
910
- switch (_response.error.reason) {
911
- case "non-json":
912
- throw new errors.ChrtError({
913
- statusCode: _response.error.statusCode,
914
- body: _response.error.rawBody,
915
- rawResponse: _response.rawResponse,
916
- });
917
- case "timeout":
918
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/needs_action/v1/{case_id}.");
919
- case "unknown":
920
- throw new errors.ChrtError({
921
- message: _response.error.errorMessage,
922
- rawResponse: _response.rawResponse,
923
- });
924
- }
925
- });
926
- }
927
- /**
928
- * Updates a case's status. Closing a case also clears needs_action. | authz: min_org_role=operator | (CaseStatusReq) -> (bool)
457
+ * Returns the department this case's order would map to from the shipper connection — a non-binding default for the UI. Department is never auto-applied; the frontend applies it explicitly via the update route. | authz: min_org_role=operator | () -> (PydanticObjectId | None)
929
458
  *
930
459
  * @param {string} caseId
931
- * @param {Chrt.operations.CaseStatusReq} request
932
460
  * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
933
461
  *
934
462
  * @throws {@link Chrt.UnprocessableEntityError}
935
463
  *
936
464
  * @example
937
- * await client.operations.cases.updateStatusV1("case_id", {
938
- * status: "open"
939
- * })
465
+ * await client.operations.cases.getSuggestedDepartmentV1("case_id")
940
466
  */
941
- updateStatusV1(caseId, request, requestOptions) {
942
- return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(caseId, request, requestOptions));
467
+ getSuggestedDepartmentV1(caseId, requestOptions) {
468
+ return core.HttpResponsePromise.fromPromise(this.__getSuggestedDepartmentV1(caseId, requestOptions));
943
469
  }
944
- __updateStatusV1(caseId, request, requestOptions) {
470
+ __getSuggestedDepartmentV1(caseId, requestOptions) {
945
471
  return __awaiter(this, void 0, void 0, function* () {
946
472
  var _a, _b, _c, _d;
947
473
  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);
948
474
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
949
- 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, `operations/cases/status/v1/${encodeURIComponent(caseId)}`),
950
- method: "PATCH",
475
+ 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, `operations/cases/suggested_department/v1/${encodeURIComponent(caseId)}`),
476
+ method: "GET",
951
477
  headers: _headers,
952
- contentType: "application/json",
953
478
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
954
- requestType: "json",
955
- body: request,
956
479
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
957
480
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
958
481
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -980,7 +503,7 @@ class Cases {
980
503
  rawResponse: _response.rawResponse,
981
504
  });
982
505
  case "timeout":
983
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/status/v1/{case_id}.");
506
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/suggested_department/v1/{case_id}.");
984
507
  case "unknown":
985
508
  throw new errors.ChrtError({
986
509
  message: _response.error.errorMessage,
@@ -7,5 +7,6 @@
7
7
  */
8
8
  export interface CaseClientUpdate1 {
9
9
  department_id?: string | null;
10
+ assigned_user_ids?: string[];
10
11
  department_id__set_to_None?: boolean;
11
12
  }
@@ -9,8 +9,7 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
- * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
13
- * filter_needs_action: true,
12
+ * filter_assigned_user_id: "filter_assigned_user_id",
14
13
  * filter_unassigned: true
15
14
  * }
16
15
  */
@@ -21,14 +20,10 @@ export interface CasesListV1Request {
21
20
  sort_order?: Chrt.SortOrderEnum | null;
22
21
  page?: number | null;
23
22
  page_size?: number | null;
24
- /** Filter by status(es) */
25
- filter_status?: (Chrt.CaseStatusEnum | null) | (Chrt.CaseStatusEnum | null)[];
26
23
  /** Filter by department ID(s) */
27
24
  filter_department_id?: (string | null) | (string | null)[];
28
- /** Filter by assigned operator user ID (matches any case that includes this user) */
29
- filter_assigned_operator_user_id?: string | null;
30
- /** Filter by needs_action flag */
31
- filter_needs_action?: boolean | null;
25
+ /** Filter by assigned user ID (matches any case that includes this user) */
26
+ filter_assigned_user_id?: string | null;
32
27
  /** Filter for unassigned cases */
33
28
  filter_unassigned?: boolean | null;
34
29
  }
@@ -1,9 +1,5 @@
1
- export { type CaseChecksRecordImageAnalysisResultsReq } from "./CaseChecksRecordImageAnalysisResultsReq.js";
2
- export { type CaseChecksApplyChecklistReq } from "./CaseChecksApplyChecklistReq.js";
3
1
  export { type CasesListV1Request } from "./CasesListV1Request.js";
4
2
  export { type CaseClientUpdate1 } from "./CaseClientUpdate1.js";
5
- export { type CaseNeedsActionReq } from "./CaseNeedsActionReq.js";
6
- export { type CaseStatusReq } from "./CaseStatusReq.js";
7
3
  export { type CaseAssignReq } from "./CaseAssignReq.js";
8
4
  export { type CaseUnassignReq } from "./CaseUnassignReq.js";
9
5
  export { type CaseAddMessageReq } from "./CaseAddMessageReq.js";