@chrt-inc/typescript-sdk 1.719.0 → 1.723.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 (229) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/operations/client/Client.d.ts +6 -3
  3. package/dist/cjs/api/resources/operations/client/Client.js +10 -5
  4. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +5 -125
  5. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +17 -494
  6. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.ts +1 -0
  7. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +3 -8
  8. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +0 -4
  9. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +76 -0
  10. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +246 -0
  11. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +19 -0
  12. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +1 -1
  14. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +1 -1
  15. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.ts +1 -1
  16. package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -2
  17. package/dist/cjs/api/resources/operations/resources/index.js +5 -3
  18. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +181 -0
  19. package/dist/cjs/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.js +206 -75
  20. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.d.ts +2 -0
  21. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/index.js +17 -0
  22. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.ts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts} +3 -2
  23. 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
  24. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.ts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.ts} +2 -2
  25. package/dist/cjs/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.ts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.ts} +2 -2
  26. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +13 -0
  27. package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.ts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts} +2 -2
  28. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +6 -0
  29. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/index.js +17 -0
  32. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +23 -5
  33. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +108 -14
  34. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +7 -2
  35. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
  36. package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.ts → operationsTasks/client/requests/OperationsTaskStatusReq.d.ts} +3 -3
  37. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +15 -6
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +0 -14
  40. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +0 -63
  41. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +0 -1
  42. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.ts +0 -1
  43. package/dist/cjs/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.ts +0 -2
  44. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +0 -1
  45. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +0 -2
  46. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -0
  47. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  48. package/dist/cjs/api/types/Case1.d.ts +1 -12
  49. package/dist/cjs/api/types/CaseSortByEnum.d.ts +1 -2
  50. package/dist/cjs/api/types/CaseSortByEnum.js +0 -1
  51. package/dist/cjs/api/types/Department1.d.ts +1 -0
  52. package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +16 -0
  53. package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +10 -10
  54. package/dist/cjs/api/types/DepartmentTypeEnum.js +9 -9
  55. package/dist/cjs/api/types/OffChrtProviderOrg1.d.ts +0 -1
  56. package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +0 -1
  57. package/dist/cjs/api/types/OperationsTask1.d.ts +7 -2
  58. package/dist/cjs/api/types/{Checklist1.d.ts → OperationsTaskList1.d.ts} +3 -2
  59. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +23 -0
  60. package/dist/cjs/api/types/{ChecklistListRes.d.ts → OperationsTaskListListRes.d.ts} +2 -2
  61. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +13 -0
  62. package/dist/{esm/api/types/ChecklistSortByEnum.d.mts → cjs/api/types/OperationsTaskListSortByEnum.d.ts} +2 -2
  63. package/dist/cjs/api/types/{ChecklistSortByEnum.js → OperationsTaskListSortByEnum.js} +2 -2
  64. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +17 -0
  65. package/dist/cjs/api/types/{CheckStatusEnum.js → OperationsTaskStatusEnum.js} +4 -7
  66. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +23 -0
  67. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +20 -0
  68. package/dist/cjs/api/types/ProviderProviderConnection1.d.ts +0 -1
  69. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +8 -0
  70. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +10 -0
  71. package/dist/cjs/api/types/ShipperProviderConnection1.d.ts +0 -1
  72. package/dist/cjs/api/types/index.d.ts +9 -11
  73. package/dist/cjs/api/types/index.js +9 -11
  74. package/dist/cjs/version.d.ts +1 -1
  75. package/dist/cjs/version.js +1 -1
  76. package/dist/esm/Client.mjs +2 -2
  77. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -3
  78. package/dist/esm/api/resources/operations/client/Client.mjs +8 -3
  79. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +5 -125
  80. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +17 -494
  81. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseClientUpdate1.d.mts +1 -0
  82. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +3 -8
  83. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +0 -4
  84. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +76 -0
  85. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +209 -0
  86. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +19 -0
  87. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  88. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +1 -1
  89. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +1 -1
  90. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentClientCreate1.d.mts +1 -1
  91. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -2
  92. package/dist/esm/api/resources/operations/resources/index.mjs +4 -2
  93. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +181 -0
  94. package/dist/esm/api/resources/operations/resources/{checklists → operationsTaskLists}/client/Client.mjs +204 -73
  95. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.d.mts +2 -0
  96. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.d.mts → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts} +3 -2
  98. 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
  99. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.d.mts → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.d.mts} +2 -2
  100. package/dist/esm/api/resources/{orgs/resources/connections/client/requests/SetDepartmentReq.d.mts → operations/resources/operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.d.mts} +2 -2
  101. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +13 -0
  102. package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistsListV1Request.d.mts → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts} +2 -2
  103. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +6 -0
  104. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.mjs +1 -0
  105. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.d.mts +1 -0
  106. package/dist/esm/api/resources/operations/resources/operationsTaskLists/index.mjs +1 -0
  107. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +23 -5
  108. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +108 -14
  109. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +7 -2
  110. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
  111. package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.d.mts → operationsTasks/client/requests/OperationsTaskStatusReq.d.mts} +3 -3
  112. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +15 -6
  113. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  114. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +0 -14
  115. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +0 -63
  116. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +0 -1
  117. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientCreate1.d.mts +0 -1
  118. package/dist/esm/api/resources/orgs/resources/offChrtProviderOrg/client/requests/OffChrtProviderOrgClientUpdate1.d.mts +0 -2
  119. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +0 -1
  120. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +0 -2
  121. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -0
  122. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  123. package/dist/esm/api/types/Case1.d.mts +1 -12
  124. package/dist/esm/api/types/CaseSortByEnum.d.mts +1 -2
  125. package/dist/esm/api/types/CaseSortByEnum.mjs +0 -1
  126. package/dist/esm/api/types/Department1.d.mts +1 -0
  127. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +16 -0
  128. package/dist/esm/api/types/DepartmentTypeEnum.d.mts +10 -10
  129. package/dist/esm/api/types/DepartmentTypeEnum.mjs +9 -9
  130. package/dist/esm/api/types/OffChrtProviderOrg1.d.mts +0 -1
  131. package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +0 -1
  132. package/dist/esm/api/types/OperationsTask1.d.mts +7 -2
  133. package/dist/esm/api/types/{Checklist1.d.mts → OperationsTaskList1.d.mts} +3 -2
  134. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +23 -0
  135. package/dist/esm/api/types/{ChecklistListRes.d.mts → OperationsTaskListListRes.d.mts} +2 -2
  136. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +13 -0
  137. package/dist/{cjs/api/types/ChecklistSortByEnum.d.ts → esm/api/types/OperationsTaskListSortByEnum.d.mts} +2 -2
  138. package/dist/esm/api/types/{ChecklistSortByEnum.mjs → OperationsTaskListSortByEnum.mjs} +1 -1
  139. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +17 -0
  140. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +9 -0
  141. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +23 -0
  142. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +17 -0
  143. package/dist/esm/api/types/ProviderProviderConnection1.d.mts +0 -1
  144. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +8 -0
  145. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +7 -0
  146. package/dist/esm/api/types/ShipperProviderConnection1.d.mts +0 -1
  147. package/dist/esm/api/types/index.d.mts +9 -11
  148. package/dist/esm/api/types/index.mjs +9 -11
  149. package/dist/esm/version.d.mts +1 -1
  150. package/dist/esm/version.mjs +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +323 -497
  153. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts +0 -12
  154. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +0 -15
  155. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.ts +0 -12
  156. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +0 -150
  157. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +0 -11
  158. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +0 -5
  159. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +0 -7
  160. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +0 -8
  161. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +0 -27
  162. package/dist/cjs/api/types/CaseStatusEnum.d.ts +0 -9
  163. package/dist/cjs/api/types/CaseStatusEnum.js +0 -11
  164. package/dist/cjs/api/types/Check1.d.ts +0 -33
  165. package/dist/cjs/api/types/Check1.js +0 -5
  166. package/dist/cjs/api/types/CheckEnum.d.ts +0 -46
  167. package/dist/cjs/api/types/CheckEnum.js +0 -23
  168. package/dist/cjs/api/types/CheckStatusEnum.d.ts +0 -32
  169. package/dist/cjs/api/types/Checklist1.js +0 -5
  170. package/dist/cjs/api/types/ChecklistCheck1.d.ts +0 -15
  171. package/dist/cjs/api/types/ChecklistCheck1.js +0 -5
  172. package/dist/cjs/api/types/ChecklistListRes.js +0 -5
  173. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts +0 -12
  174. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +0 -15
  175. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseNeedsActionReq.d.mts +0 -12
  176. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +0 -150
  177. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +0 -11
  178. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +0 -5
  179. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +0 -7
  180. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +0 -8
  181. package/dist/esm/api/types/CaseChecksSummary1.d.mts +0 -27
  182. package/dist/esm/api/types/CaseStatusEnum.d.mts +0 -9
  183. package/dist/esm/api/types/CaseStatusEnum.mjs +0 -8
  184. package/dist/esm/api/types/Check1.d.mts +0 -33
  185. package/dist/esm/api/types/Check1.mjs +0 -4
  186. package/dist/esm/api/types/CheckEnum.d.mts +0 -46
  187. package/dist/esm/api/types/CheckEnum.mjs +0 -20
  188. package/dist/esm/api/types/CheckStatusEnum.d.mts +0 -32
  189. package/dist/esm/api/types/CheckStatusEnum.mjs +0 -12
  190. package/dist/esm/api/types/Checklist1.mjs +0 -4
  191. package/dist/esm/api/types/ChecklistCheck1.d.mts +0 -15
  192. package/dist/esm/api/types/ChecklistCheck1.mjs +0 -4
  193. package/dist/esm/api/types/ChecklistListRes.mjs +0 -4
  194. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.ts +0 -0
  195. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.js +0 -0
  196. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.js → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.js} +0 -0
  197. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.js +0 -0
  198. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.ts +0 -0
  199. /package/dist/cjs/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.js +0 -0
  200. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.js} +0 -0
  201. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.js → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.js} +0 -0
  202. /package/dist/cjs/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.js → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js} +0 -0
  203. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.js → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.js} +0 -0
  204. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.js → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.js} +0 -0
  205. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.js → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.js} +0 -0
  206. /package/dist/cjs/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.js → operationsTasks/client/requests/OperationsTaskStatusReq.js} +0 -0
  207. /package/dist/cjs/api/{resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.js → types/DepartmentRoutingRule1.js} +0 -0
  208. /package/dist/cjs/api/{resources/orgs/resources/connections/client/requests/SetDepartmentReq.js → types/OperationsTaskList1.js} +0 -0
  209. /package/dist/cjs/api/types/{CaseChecksDisableReq.js → OperationsTaskListEntry1.js} +0 -0
  210. /package/dist/cjs/api/types/{CaseChecksDismissReq.js → OperationsTaskListListRes.js} +0 -0
  211. /package/dist/cjs/api/types/{CaseChecksSummary1.js → OperationsTaskListRemoveFromCaseRes1.js} +0 -0
  212. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.d.mts +0 -0
  213. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/index.mjs +0 -0
  214. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksApplyChecklistReq.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.mjs} +0 -0
  215. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/client/requests/index.mjs +0 -0
  216. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.d.mts +0 -0
  217. /package/dist/esm/api/resources/operations/resources/{checklists → departmentRoutingRules}/index.mjs +0 -0
  218. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientCreate1.mjs} +0 -0
  219. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseNeedsActionReq.mjs → operationsTaskLists/client/requests/OperationsTaskListClientUpdate1.mjs} +0 -0
  220. /package/dist/esm/api/resources/operations/resources/{cases/client/requests/CaseStatusReq.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs} +0 -0
  221. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksAdd1.mjs → operationsTaskLists/client/requests/OperationsTaskListEntriesRemove1.mjs} +0 -0
  222. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistChecksRemove1.mjs → operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.mjs} +0 -0
  223. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientCreate1.mjs → operationsTaskLists/client/requests/OperationsTaskListsListV1Request.mjs} +0 -0
  224. /package/dist/esm/api/resources/operations/resources/{checklists/client/requests/ChecklistClientUpdate1.mjs → operationsTasks/client/requests/OperationsTaskStatusReq.mjs} +0 -0
  225. /package/dist/esm/api/{resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs → types/DepartmentRoutingRule1.mjs} +0 -0
  226. /package/dist/esm/api/{resources/orgs/resources/connections/client/requests/SetDepartmentReq.mjs → types/OperationsTaskList1.mjs} +0 -0
  227. /package/dist/esm/api/types/{CaseChecksDisableReq.mjs → OperationsTaskListEntry1.mjs} +0 -0
  228. /package/dist/esm/api/types/{CaseChecksDismissReq.mjs → OperationsTaskListListRes.mjs} +0 -0
  229. /package/dist/esm/api/types/{CaseChecksSummary1.mjs → OperationsTaskListRemoveFromCaseRes1.mjs} +0 -0
@@ -24,400 +24,6 @@ export class Cases {
24
24
  var _a;
25
25
  return ((_a = this._s3Objects) !== null && _a !== void 0 ? _a : (this._s3Objects = new S3Objects(this._options)));
26
26
  }
27
- /**
28
- * 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)
29
- *
30
- * @param {string} taskArtifactId
31
- * @param {Chrt.operations.CaseChecksRecordImageAnalysisResultsReq} request
32
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
33
- *
34
- * @throws {@link Chrt.UnprocessableEntityError}
35
- *
36
- * @example
37
- * await client.operations.cases.recordImageAnalysisResultsV1("task_artifact_id", {
38
- * results: {
39
- * "key": "not_started"
40
- * }
41
- * })
42
- */
43
- recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions) {
44
- return core.HttpResponsePromise.fromPromise(this.__recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions));
45
- }
46
- __recordImageAnalysisResultsV1(taskArtifactId, request, requestOptions) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- var _a, _b, _c, _d;
49
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
51
- 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)}`),
52
- method: "POST",
53
- headers: _headers,
54
- contentType: "application/json",
55
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
56
- requestType: "json",
57
- body: request,
58
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
59
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
60
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
61
- });
62
- if (_response.ok) {
63
- return { data: _response.body, rawResponse: _response.rawResponse };
64
- }
65
- if (_response.error.reason === "status-code") {
66
- switch (_response.error.statusCode) {
67
- case 422:
68
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
69
- default:
70
- throw new errors.ChrtError({
71
- statusCode: _response.error.statusCode,
72
- body: _response.error.body,
73
- rawResponse: _response.rawResponse,
74
- });
75
- }
76
- }
77
- switch (_response.error.reason) {
78
- case "non-json":
79
- throw new errors.ChrtError({
80
- statusCode: _response.error.statusCode,
81
- body: _response.error.rawBody,
82
- rawResponse: _response.rawResponse,
83
- });
84
- case "timeout":
85
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/record_image_analysis_results/v1/{task_artifact_id}.");
86
- case "unknown":
87
- throw new errors.ChrtError({
88
- message: _response.error.errorMessage,
89
- rawResponse: _response.rawResponse,
90
- });
91
- }
92
- });
93
- }
94
- /**
95
- * 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)
96
- *
97
- * @param {string} caseId
98
- * @param {Chrt.operations.CaseChecksApplyChecklistReq} request
99
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
100
- *
101
- * @throws {@link Chrt.UnprocessableEntityError}
102
- *
103
- * @example
104
- * await client.operations.cases.applyChecklistV1("case_id", {
105
- * checklist_id: "checklist_id"
106
- * })
107
- */
108
- applyChecklistV1(caseId, request, requestOptions) {
109
- return core.HttpResponsePromise.fromPromise(this.__applyChecklistV1(caseId, request, requestOptions));
110
- }
111
- __applyChecklistV1(caseId, request, requestOptions) {
112
- return __awaiter(this, void 0, void 0, function* () {
113
- var _a, _b, _c, _d;
114
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
115
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
116
- 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)}`),
117
- method: "POST",
118
- headers: _headers,
119
- contentType: "application/json",
120
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
121
- requestType: "json",
122
- body: request,
123
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
124
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
125
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
126
- });
127
- if (_response.ok) {
128
- return { data: _response.body, rawResponse: _response.rawResponse };
129
- }
130
- if (_response.error.reason === "status-code") {
131
- switch (_response.error.statusCode) {
132
- case 422:
133
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
134
- default:
135
- throw new errors.ChrtError({
136
- statusCode: _response.error.statusCode,
137
- body: _response.error.body,
138
- rawResponse: _response.rawResponse,
139
- });
140
- }
141
- }
142
- switch (_response.error.reason) {
143
- case "non-json":
144
- throw new errors.ChrtError({
145
- statusCode: _response.error.statusCode,
146
- body: _response.error.rawBody,
147
- rawResponse: _response.rawResponse,
148
- });
149
- case "timeout":
150
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/apply_checklist/v1/{case_id}.");
151
- case "unknown":
152
- throw new errors.ChrtError({
153
- message: _response.error.errorMessage,
154
- rawResponse: _response.rawResponse,
155
- });
156
- }
157
- });
158
- }
159
- /**
160
- * 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)
161
- *
162
- * @param {string} caseId
163
- * @param {Chrt.CaseChecksDisableReq} request
164
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
165
- *
166
- * @throws {@link Chrt.UnprocessableEntityError}
167
- *
168
- * @example
169
- * await client.operations.cases.disableCheckV1("case_id", {
170
- * check: "shipping.order.placed.order_details_reviewed"
171
- * })
172
- */
173
- disableCheckV1(caseId, request, requestOptions) {
174
- return core.HttpResponsePromise.fromPromise(this.__disableCheckV1(caseId, request, requestOptions));
175
- }
176
- __disableCheckV1(caseId, request, requestOptions) {
177
- return __awaiter(this, void 0, void 0, function* () {
178
- var _a, _b, _c, _d;
179
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
180
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
181
- 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)}`),
182
- method: "POST",
183
- headers: _headers,
184
- contentType: "application/json",
185
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
186
- requestType: "json",
187
- body: request,
188
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
189
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
190
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
191
- });
192
- if (_response.ok) {
193
- return { data: _response.body, rawResponse: _response.rawResponse };
194
- }
195
- if (_response.error.reason === "status-code") {
196
- switch (_response.error.statusCode) {
197
- case 422:
198
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
199
- default:
200
- throw new errors.ChrtError({
201
- statusCode: _response.error.statusCode,
202
- body: _response.error.body,
203
- rawResponse: _response.rawResponse,
204
- });
205
- }
206
- }
207
- switch (_response.error.reason) {
208
- case "non-json":
209
- throw new errors.ChrtError({
210
- statusCode: _response.error.statusCode,
211
- body: _response.error.rawBody,
212
- rawResponse: _response.rawResponse,
213
- });
214
- case "timeout":
215
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/disable/v1/{case_id}.");
216
- case "unknown":
217
- throw new errors.ChrtError({
218
- message: _response.error.errorMessage,
219
- rawResponse: _response.rawResponse,
220
- });
221
- }
222
- });
223
- }
224
- /**
225
- * 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)
226
- *
227
- * @param {string} caseId
228
- * @param {Chrt.CaseChecksDisableReq} request
229
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
230
- *
231
- * @throws {@link Chrt.UnprocessableEntityError}
232
- *
233
- * @example
234
- * await client.operations.cases.enableCheckV1("case_id", {
235
- * check: "shipping.order.placed.order_details_reviewed"
236
- * })
237
- */
238
- enableCheckV1(caseId, request, requestOptions) {
239
- return core.HttpResponsePromise.fromPromise(this.__enableCheckV1(caseId, request, requestOptions));
240
- }
241
- __enableCheckV1(caseId, request, requestOptions) {
242
- return __awaiter(this, void 0, void 0, function* () {
243
- var _a, _b, _c, _d;
244
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
245
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
246
- 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)}`),
247
- method: "POST",
248
- headers: _headers,
249
- contentType: "application/json",
250
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
251
- requestType: "json",
252
- body: request,
253
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
254
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
255
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
256
- });
257
- if (_response.ok) {
258
- return { data: _response.body, rawResponse: _response.rawResponse };
259
- }
260
- if (_response.error.reason === "status-code") {
261
- switch (_response.error.statusCode) {
262
- case 422:
263
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
264
- default:
265
- throw new errors.ChrtError({
266
- statusCode: _response.error.statusCode,
267
- body: _response.error.body,
268
- rawResponse: _response.rawResponse,
269
- });
270
- }
271
- }
272
- switch (_response.error.reason) {
273
- case "non-json":
274
- throw new errors.ChrtError({
275
- statusCode: _response.error.statusCode,
276
- body: _response.error.rawBody,
277
- rawResponse: _response.rawResponse,
278
- });
279
- case "timeout":
280
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/enable/v1/{case_id}.");
281
- case "unknown":
282
- throw new errors.ChrtError({
283
- message: _response.error.errorMessage,
284
- rawResponse: _response.rawResponse,
285
- });
286
- }
287
- });
288
- }
289
- /**
290
- * 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)
291
- *
292
- * @param {string} caseId
293
- * @param {Chrt.CaseChecksDismissReq} request
294
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
295
- *
296
- * @throws {@link Chrt.UnprocessableEntityError}
297
- *
298
- * @example
299
- * await client.operations.cases.dismissCheckV1("case_id", {
300
- * check: "shipping.order.placed.order_details_reviewed",
301
- * entity_id: "entity_id"
302
- * })
303
- */
304
- dismissCheckV1(caseId, request, requestOptions) {
305
- return core.HttpResponsePromise.fromPromise(this.__dismissCheckV1(caseId, request, requestOptions));
306
- }
307
- __dismissCheckV1(caseId, request, requestOptions) {
308
- return __awaiter(this, void 0, void 0, function* () {
309
- var _a, _b, _c, _d;
310
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
311
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
312
- 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)}`),
313
- method: "POST",
314
- headers: _headers,
315
- contentType: "application/json",
316
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
317
- requestType: "json",
318
- body: request,
319
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
320
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
321
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
322
- });
323
- if (_response.ok) {
324
- return { data: _response.body, rawResponse: _response.rawResponse };
325
- }
326
- if (_response.error.reason === "status-code") {
327
- switch (_response.error.statusCode) {
328
- case 422:
329
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
330
- default:
331
- throw new errors.ChrtError({
332
- statusCode: _response.error.statusCode,
333
- body: _response.error.body,
334
- rawResponse: _response.rawResponse,
335
- });
336
- }
337
- }
338
- switch (_response.error.reason) {
339
- case "non-json":
340
- throw new errors.ChrtError({
341
- statusCode: _response.error.statusCode,
342
- body: _response.error.rawBody,
343
- rawResponse: _response.rawResponse,
344
- });
345
- case "timeout":
346
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/dismiss/v1/{case_id}.");
347
- case "unknown":
348
- throw new errors.ChrtError({
349
- message: _response.error.errorMessage,
350
- rawResponse: _response.rawResponse,
351
- });
352
- }
353
- });
354
- }
355
- /**
356
- * 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)
357
- *
358
- * @param {string} caseId
359
- * @param {Chrt.CaseChecksDismissReq} request
360
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
361
- *
362
- * @throws {@link Chrt.UnprocessableEntityError}
363
- *
364
- * @example
365
- * await client.operations.cases.undismissCheckV1("case_id", {
366
- * check: "shipping.order.placed.order_details_reviewed",
367
- * entity_id: "entity_id"
368
- * })
369
- */
370
- undismissCheckV1(caseId, request, requestOptions) {
371
- return core.HttpResponsePromise.fromPromise(this.__undismissCheckV1(caseId, request, requestOptions));
372
- }
373
- __undismissCheckV1(caseId, request, requestOptions) {
374
- return __awaiter(this, void 0, void 0, function* () {
375
- var _a, _b, _c, _d;
376
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
377
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
378
- 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)}`),
379
- method: "POST",
380
- headers: _headers,
381
- contentType: "application/json",
382
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
383
- requestType: "json",
384
- body: request,
385
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
386
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
387
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
388
- });
389
- if (_response.ok) {
390
- return { data: _response.body, rawResponse: _response.rawResponse };
391
- }
392
- if (_response.error.reason === "status-code") {
393
- switch (_response.error.statusCode) {
394
- case 422:
395
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
396
- default:
397
- throw new errors.ChrtError({
398
- statusCode: _response.error.statusCode,
399
- body: _response.error.body,
400
- rawResponse: _response.rawResponse,
401
- });
402
- }
403
- }
404
- switch (_response.error.reason) {
405
- case "non-json":
406
- throw new errors.ChrtError({
407
- statusCode: _response.error.statusCode,
408
- body: _response.error.rawBody,
409
- rawResponse: _response.rawResponse,
410
- });
411
- case "timeout":
412
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/cases/checks/undismiss/v1/{case_id}.");
413
- case "unknown":
414
- throw new errors.ChrtError({
415
- message: _response.error.errorMessage,
416
- rawResponse: _response.rawResponse,
417
- });
418
- }
419
- });
420
- }
421
27
  /**
422
28
  * Lists cases for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (CaseListRes)
423
29
  *
@@ -432,8 +38,7 @@ export class Cases {
432
38
  * sort_order: "asc",
433
39
  * page: 1,
434
40
  * page_size: 1,
435
- * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
436
- * filter_needs_action: true,
41
+ * filter_assigned_user_id: "filter_assigned_user_id",
437
42
  * filter_unassigned: true
438
43
  * })
439
44
  */
@@ -442,8 +47,8 @@ export class Cases {
442
47
  }
443
48
  __listV1() {
444
49
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
445
- var _a, _b, _c, _d, _e, _f, _g, _h;
446
- 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;
50
+ var _a, _b, _c, _d, _e, _f, _g;
51
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_id: filterDepartmentId, filter_assigned_user_id: filterAssignedUserId, filter_unassigned: filterUnassigned, } = request;
447
52
  const _queryParams = {};
448
53
  if (sortBy !== undefined) {
449
54
  _queryParams["sort_by"] = sortBy;
@@ -457,14 +62,6 @@ export class Cases {
457
62
  if (pageSize !== undefined) {
458
63
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
459
64
  }
460
- if (filterStatus !== undefined) {
461
- if (Array.isArray(filterStatus)) {
462
- _queryParams["filter_status"] = filterStatus.map((item) => item);
463
- }
464
- else {
465
- _queryParams["filter_status"] = filterStatus;
466
- }
467
- }
468
65
  if (filterDepartmentId !== undefined) {
469
66
  if (Array.isArray(filterDepartmentId)) {
470
67
  _queryParams["filter_department_id"] = filterDepartmentId.map((item) => item);
@@ -473,18 +70,15 @@ export class Cases {
473
70
  _queryParams["filter_department_id"] = filterDepartmentId;
474
71
  }
475
72
  }
476
- if (filterAssignedOperatorUserId !== undefined) {
477
- _queryParams["filter_assigned_operator_user_id"] = filterAssignedOperatorUserId;
478
- }
479
- if (filterNeedsAction !== undefined) {
480
- _queryParams["filter_needs_action"] = (_c = filterNeedsAction === null || filterNeedsAction === void 0 ? void 0 : filterNeedsAction.toString()) !== null && _c !== void 0 ? _c : null;
73
+ if (filterAssignedUserId !== undefined) {
74
+ _queryParams["filter_assigned_user_id"] = filterAssignedUserId;
481
75
  }
482
76
  if (filterUnassigned !== undefined) {
483
- _queryParams["filter_unassigned"] = (_d = filterUnassigned === null || filterUnassigned === void 0 ? void 0 : filterUnassigned.toString()) !== null && _d !== void 0 ? _d : null;
77
+ _queryParams["filter_unassigned"] = (_c = filterUnassigned === null || filterUnassigned === void 0 ? void 0 : filterUnassigned.toString()) !== null && _c !== void 0 ? _c : null;
484
78
  }
485
- let _headers = mergeHeaders((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
486
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
487
- 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"),
79
+ let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
80
+ const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
81
+ 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"),
488
82
  method: "GET",
489
83
  headers: _headers,
490
84
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -824,99 +418,28 @@ export class Cases {
824
418
  });
825
419
  }
826
420
  /**
827
- * Updates whether a case needs action. | authz: min_org_role=operator | (CaseNeedsActionReq) -> (bool)
828
- *
829
- * @param {string} caseId
830
- * @param {Chrt.operations.CaseNeedsActionReq} request
831
- * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
832
- *
833
- * @throws {@link Chrt.UnprocessableEntityError}
834
- *
835
- * @example
836
- * await client.operations.cases.updateNeedsActionV1("case_id", {
837
- * needs_action: true
838
- * })
839
- */
840
- updateNeedsActionV1(caseId, request, requestOptions) {
841
- return core.HttpResponsePromise.fromPromise(this.__updateNeedsActionV1(caseId, request, requestOptions));
842
- }
843
- __updateNeedsActionV1(caseId, request, requestOptions) {
844
- return __awaiter(this, void 0, void 0, function* () {
845
- var _a, _b, _c, _d;
846
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
847
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
848
- 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)}`),
849
- method: "PATCH",
850
- headers: _headers,
851
- contentType: "application/json",
852
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
853
- requestType: "json",
854
- body: request,
855
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
856
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
857
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
858
- });
859
- if (_response.ok) {
860
- return { data: _response.body, rawResponse: _response.rawResponse };
861
- }
862
- if (_response.error.reason === "status-code") {
863
- switch (_response.error.statusCode) {
864
- case 422:
865
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
866
- default:
867
- throw new errors.ChrtError({
868
- statusCode: _response.error.statusCode,
869
- body: _response.error.body,
870
- rawResponse: _response.rawResponse,
871
- });
872
- }
873
- }
874
- switch (_response.error.reason) {
875
- case "non-json":
876
- throw new errors.ChrtError({
877
- statusCode: _response.error.statusCode,
878
- body: _response.error.rawBody,
879
- rawResponse: _response.rawResponse,
880
- });
881
- case "timeout":
882
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/needs_action/v1/{case_id}.");
883
- case "unknown":
884
- throw new errors.ChrtError({
885
- message: _response.error.errorMessage,
886
- rawResponse: _response.rawResponse,
887
- });
888
- }
889
- });
890
- }
891
- /**
892
- * Updates a case's status. Closing a case also clears needs_action. | authz: min_org_role=operator | (CaseStatusReq) -> (bool)
421
+ * 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)
893
422
  *
894
423
  * @param {string} caseId
895
- * @param {Chrt.operations.CaseStatusReq} request
896
424
  * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
897
425
  *
898
426
  * @throws {@link Chrt.UnprocessableEntityError}
899
427
  *
900
428
  * @example
901
- * await client.operations.cases.updateStatusV1("case_id", {
902
- * status: "open"
903
- * })
429
+ * await client.operations.cases.getSuggestedDepartmentV1("case_id")
904
430
  */
905
- updateStatusV1(caseId, request, requestOptions) {
906
- return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(caseId, request, requestOptions));
431
+ getSuggestedDepartmentV1(caseId, requestOptions) {
432
+ return core.HttpResponsePromise.fromPromise(this.__getSuggestedDepartmentV1(caseId, requestOptions));
907
433
  }
908
- __updateStatusV1(caseId, request, requestOptions) {
434
+ __getSuggestedDepartmentV1(caseId, requestOptions) {
909
435
  return __awaiter(this, void 0, void 0, function* () {
910
436
  var _a, _b, _c, _d;
911
437
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
912
438
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
913
- 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)}`),
914
- method: "PATCH",
439
+ 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)}`),
440
+ method: "GET",
915
441
  headers: _headers,
916
- contentType: "application/json",
917
442
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
918
- requestType: "json",
919
- body: request,
920
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
921
444
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
922
445
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -944,7 +467,7 @@ export class Cases {
944
467
  rawResponse: _response.rawResponse,
945
468
  });
946
469
  case "timeout":
947
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/status/v1/{case_id}.");
470
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/cases/suggested_department/v1/{case_id}.");
948
471
  case "unknown":
949
472
  throw new errors.ChrtError({
950
473
  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.mjs";
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.mjs";
2
- export { type CaseChecksApplyChecklistReq } from "./CaseChecksApplyChecklistReq.mjs";
3
1
  export { type CasesListV1Request } from "./CasesListV1Request.mjs";
4
2
  export { type CaseClientUpdate1 } from "./CaseClientUpdate1.mjs";
5
- export { type CaseNeedsActionReq } from "./CaseNeedsActionReq.mjs";
6
- export { type CaseStatusReq } from "./CaseStatusReq.mjs";
7
3
  export { type CaseAssignReq } from "./CaseAssignReq.mjs";
8
4
  export { type CaseUnassignReq } from "./CaseUnassignReq.mjs";
9
5
  export { type CaseAddMessageReq } from "./CaseAddMessageReq.mjs";