@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
@@ -31,7 +31,7 @@ export declare class OperationsTasks {
31
31
  protected readonly _options: OperationsTasks.Options;
32
32
  constructor(_options?: OperationsTasks.Options);
33
33
  /**
34
- * Lists incomplete OperationsTasks for the caller's organization by default, with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
34
+ * Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
35
35
  *
36
36
  * @param {Chrt.operations.OperationsTasksListV1Request} request
37
37
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,8 +44,9 @@ export declare class OperationsTasks {
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
46
  * page_size: 1,
47
- * filter_case_id: "filter_case_id",
48
- * filter_completed: true,
47
+ * filter_order_id: "filter_order_id",
48
+ * filter_department_id: "filter_department_id",
49
+ * filter_assigned_user_id: "filter_assigned_user_id",
49
50
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
50
51
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
51
52
  * })
@@ -93,7 +94,7 @@ export declare class OperationsTasks {
93
94
  updateV1(taskId: string, request?: Chrt.operations.OperationsTaskClientUpdate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
94
95
  private __updateV1;
95
96
  /**
96
- * Creates a new OperationsTask on a Case owned by the caller's organization. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
97
+ * Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
97
98
  *
98
99
  * @param {Chrt.operations.OperationsTaskClientCreate1} request
99
100
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,7 +104,8 @@ export declare class OperationsTasks {
103
104
  * @example
104
105
  * await client.operations.operationsTasks.createV1({
105
106
  * schema_version: 1,
106
- * case_id: "case_id",
107
+ * order_id: "order_id",
108
+ * task_type: "review_order_details",
107
109
  * title: "title",
108
110
  * description: "description"
109
111
  * })
@@ -136,6 +138,22 @@ export declare class OperationsTasks {
136
138
  */
137
139
  uncompleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
138
140
  private __uncompleteV1;
141
+ /**
142
+ * Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
143
+ *
144
+ * @param {string} taskId
145
+ * @param {Chrt.operations.OperationsTaskStatusReq} request
146
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @throws {@link Chrt.UnprocessableEntityError}
149
+ *
150
+ * @example
151
+ * await client.operations.operationsTasks.updateStatusV1("task_id", {
152
+ * status: "not_started"
153
+ * })
154
+ */
155
+ updateStatusV1(taskId: string, request: Chrt.operations.OperationsTaskStatusReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
156
+ private __updateStatusV1;
139
157
  /**
140
158
  * Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
141
159
  *
@@ -20,7 +20,7 @@ export class OperationsTasks {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Lists incomplete OperationsTasks for the caller's organization by default, with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
23
+ * Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
24
24
  *
25
25
  * @param {Chrt.operations.OperationsTasksListV1Request} request
26
26
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -33,8 +33,9 @@ export class OperationsTasks {
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
35
  * page_size: 1,
36
- * filter_case_id: "filter_case_id",
37
- * filter_completed: true,
36
+ * filter_order_id: "filter_order_id",
37
+ * filter_department_id: "filter_department_id",
38
+ * filter_assigned_user_id: "filter_assigned_user_id",
38
39
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
39
40
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
40
41
  * })
@@ -44,8 +45,8 @@ export class OperationsTasks {
44
45
  }
45
46
  __listV1() {
46
47
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
47
- var _a, _b, _c, _d, _e, _f, _g;
48
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_case_id: filterCaseId, filter_completed: filterCompleted, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
48
+ var _a, _b, _c, _d, _e, _f;
49
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_id: filterOrderId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
49
50
  const _queryParams = {};
50
51
  if (sortBy !== undefined) {
51
52
  _queryParams["sort_by"] = sortBy;
@@ -59,11 +60,38 @@ export class OperationsTasks {
59
60
  if (pageSize !== undefined) {
60
61
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
61
62
  }
62
- if (filterCaseId !== undefined) {
63
- _queryParams["filter_case_id"] = filterCaseId;
63
+ if (filterOrderId !== undefined) {
64
+ _queryParams["filter_order_id"] = filterOrderId;
64
65
  }
65
- if (filterCompleted !== undefined) {
66
- _queryParams["filter_completed"] = (_c = filterCompleted === null || filterCompleted === void 0 ? void 0 : filterCompleted.toString()) !== null && _c !== void 0 ? _c : null;
66
+ if (filterDepartmentId !== undefined) {
67
+ _queryParams["filter_department_id"] = filterDepartmentId;
68
+ }
69
+ if (filterTaskType !== undefined) {
70
+ if (Array.isArray(filterTaskType)) {
71
+ _queryParams["filter_task_type"] = filterTaskType.map((item) => item);
72
+ }
73
+ else {
74
+ _queryParams["filter_task_type"] = filterTaskType;
75
+ }
76
+ }
77
+ if (filterStatus !== undefined) {
78
+ if (Array.isArray(filterStatus)) {
79
+ _queryParams["filter_status"] = filterStatus.map((item) => item);
80
+ }
81
+ else {
82
+ _queryParams["filter_status"] = filterStatus;
83
+ }
84
+ }
85
+ if (filterTag !== undefined) {
86
+ if (Array.isArray(filterTag)) {
87
+ _queryParams["filter_tag"] = filterTag.map((item) => item);
88
+ }
89
+ else {
90
+ _queryParams["filter_tag"] = filterTag;
91
+ }
92
+ }
93
+ if (filterAssignedUserId !== undefined) {
94
+ _queryParams["filter_assigned_user_id"] = filterAssignedUserId;
67
95
  }
68
96
  if (filterDeadlineGte !== undefined) {
69
97
  _queryParams["filter_deadline_gte"] = filterDeadlineGte;
@@ -71,9 +99,9 @@ export class OperationsTasks {
71
99
  if (filterDeadlineLte !== undefined) {
72
100
  _queryParams["filter_deadline_lte"] = filterDeadlineLte;
73
101
  }
74
- 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);
75
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
76
- 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/operations_tasks/list/v1"),
102
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
104
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "operations/operations_tasks/list/v1"),
77
105
  method: "GET",
78
106
  headers: _headers,
79
107
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -295,7 +323,7 @@ export class OperationsTasks {
295
323
  });
296
324
  }
297
325
  /**
298
- * Creates a new OperationsTask on a Case owned by the caller's organization. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
326
+ * Creates a new OperationsTask on an Order the caller's organization has a Case for. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
299
327
  *
300
328
  * @param {Chrt.operations.OperationsTaskClientCreate1} request
301
329
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -305,7 +333,8 @@ export class OperationsTasks {
305
333
  * @example
306
334
  * await client.operations.operationsTasks.createV1({
307
335
  * schema_version: 1,
308
- * case_id: "case_id",
336
+ * order_id: "order_id",
337
+ * task_type: "review_order_details",
309
338
  * title: "title",
310
339
  * description: "description"
311
340
  * })
@@ -479,6 +508,71 @@ export class OperationsTasks {
479
508
  }
480
509
  });
481
510
  }
511
+ /**
512
+ * Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
513
+ *
514
+ * @param {string} taskId
515
+ * @param {Chrt.operations.OperationsTaskStatusReq} request
516
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
517
+ *
518
+ * @throws {@link Chrt.UnprocessableEntityError}
519
+ *
520
+ * @example
521
+ * await client.operations.operationsTasks.updateStatusV1("task_id", {
522
+ * status: "not_started"
523
+ * })
524
+ */
525
+ updateStatusV1(taskId, request, requestOptions) {
526
+ return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
527
+ }
528
+ __updateStatusV1(taskId, request, requestOptions) {
529
+ return __awaiter(this, void 0, void 0, function* () {
530
+ var _a, _b, _c, _d;
531
+ 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);
532
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
533
+ 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/operations_tasks/status/v1/${encodeURIComponent(taskId)}`),
534
+ method: "PATCH",
535
+ headers: _headers,
536
+ contentType: "application/json",
537
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
538
+ requestType: "json",
539
+ body: request,
540
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
541
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
542
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
543
+ });
544
+ if (_response.ok) {
545
+ return { data: _response.body, rawResponse: _response.rawResponse };
546
+ }
547
+ if (_response.error.reason === "status-code") {
548
+ switch (_response.error.statusCode) {
549
+ case 422:
550
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
551
+ default:
552
+ throw new errors.ChrtError({
553
+ statusCode: _response.error.statusCode,
554
+ body: _response.error.body,
555
+ rawResponse: _response.rawResponse,
556
+ });
557
+ }
558
+ }
559
+ switch (_response.error.reason) {
560
+ case "non-json":
561
+ throw new errors.ChrtError({
562
+ statusCode: _response.error.statusCode,
563
+ body: _response.error.rawBody,
564
+ rawResponse: _response.rawResponse,
565
+ });
566
+ case "timeout":
567
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
568
+ case "unknown":
569
+ throw new errors.ChrtError({
570
+ message: _response.error.errorMessage,
571
+ rawResponse: _response.rawResponse,
572
+ });
573
+ }
574
+ });
575
+ }
482
576
  /**
483
577
  * Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
484
578
  *
@@ -1,19 +1,24 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.mjs";
4
5
  /**
5
6
  * @example
6
7
  * {
7
8
  * schema_version: 1,
8
- * case_id: "case_id",
9
+ * order_id: "order_id",
10
+ * task_type: "review_order_details",
9
11
  * title: "title",
10
12
  * description: "description"
11
13
  * }
12
14
  */
13
15
  export interface OperationsTaskClientCreate1 {
14
16
  schema_version: number;
15
- case_id: string;
17
+ order_id: string;
18
+ task_type: Chrt.OperationsTaskTypeEnum;
16
19
  title: string;
17
20
  description: string;
18
21
  deadline_timestamp?: string;
22
+ tags?: string[];
23
+ assigned_user_ids?: string[];
19
24
  }
@@ -1,12 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.mjs";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface OperationsTaskClientUpdate1 {
10
+ task_type?: Chrt.OperationsTaskTypeEnum | null;
9
11
  title?: string | null;
10
12
  description?: string | null;
11
13
  deadline_timestamp?: string | null;
14
+ tags?: string[];
15
+ assigned_user_ids?: string[];
12
16
  }
@@ -5,9 +5,9 @@ import * as Chrt from "../../../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * status: "open"
8
+ * status: "not_started"
9
9
  * }
10
10
  */
11
- export interface CaseStatusReq {
12
- status: Chrt.CaseStatusEnum;
11
+ export interface OperationsTaskStatusReq {
12
+ status: Chrt.OperationsTaskStatusEnum;
13
13
  }
@@ -9,8 +9,9 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
- * filter_case_id: "filter_case_id",
13
- * filter_completed: true,
12
+ * filter_order_id: "filter_order_id",
13
+ * filter_department_id: "filter_department_id",
14
+ * filter_assigned_user_id: "filter_assigned_user_id",
14
15
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
16
17
  * }
@@ -22,10 +23,18 @@ export interface OperationsTasksListV1Request {
22
23
  sort_order?: Chrt.SortOrderEnum | null;
23
24
  page?: number | null;
24
25
  page_size?: number | null;
25
- /** Filter by case id */
26
- filter_case_id?: string | null;
27
- /** Filter by completed flag. Defaults to False for incomplete tasks. */
28
- filter_completed?: boolean | null;
26
+ /** Filter by order id */
27
+ filter_order_id?: string | null;
28
+ /** Filter to tasks routed to this department (desk queue) */
29
+ filter_department_id?: string | null;
30
+ /** Filter by task type(s). Defaults to all types. */
31
+ filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
32
+ /** Filter by status(es). Defaults to all statuses. */
33
+ filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
34
+ /** Filter to tasks carrying ANY of these tags */
35
+ filter_tag?: (string | null) | (string | null)[];
36
+ /** Filter to tasks this user is directly assigned to */
37
+ filter_assigned_user_id?: string | null;
29
38
  /** Filter to tasks with deadline >= this timestamp */
30
39
  filter_deadline_gte?: string | null;
31
40
  /** Filter to tasks with deadline <= this timestamp */
@@ -1,4 +1,5 @@
1
1
  export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
2
2
  export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
3
3
  export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
4
+ export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.mjs";
4
5
  export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.mjs";
@@ -107,20 +107,6 @@ export declare class Connections {
107
107
  */
108
108
  createConnectionToShipperV1(request: Chrt.CreateConnectionReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<string>;
109
109
  private __createConnectionToShipperV1;
110
- /**
111
- * Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
112
- *
113
- * @param {string} connectionId
114
- * @param {Chrt.orgs.SetDepartmentReq} request
115
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
116
- *
117
- * @throws {@link Chrt.UnprocessableEntityError}
118
- *
119
- * @example
120
- * await client.orgs.connections.setDepartmentV1("connection_id")
121
- */
122
- setDepartmentV1(connectionId: string, request?: Chrt.orgs.SetDepartmentReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
123
- private __setDepartmentV1;
124
110
  /**
125
111
  * Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
126
112
  *
@@ -357,69 +357,6 @@ export class Connections {
357
357
  }
358
358
  });
359
359
  }
360
- /**
361
- * Sets or clears the department on a connection. Send null to clear. | authz: min_org_role=administrator | (SetDepartmentReq) -> (bool)
362
- *
363
- * @param {string} connectionId
364
- * @param {Chrt.orgs.SetDepartmentReq} request
365
- * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
366
- *
367
- * @throws {@link Chrt.UnprocessableEntityError}
368
- *
369
- * @example
370
- * await client.orgs.connections.setDepartmentV1("connection_id")
371
- */
372
- setDepartmentV1(connectionId, request = {}, requestOptions) {
373
- return core.HttpResponsePromise.fromPromise(this.__setDepartmentV1(connectionId, request, requestOptions));
374
- }
375
- __setDepartmentV1(connectionId_1) {
376
- return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
377
- var _a, _b, _c, _d;
378
- 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);
379
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
380
- 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, `orgs/connections/set_department/v1/${encodeURIComponent(connectionId)}`),
381
- method: "PATCH",
382
- headers: _headers,
383
- contentType: "application/json",
384
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
385
- requestType: "json",
386
- body: request,
387
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
388
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
389
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
390
- });
391
- if (_response.ok) {
392
- return { data: _response.body, rawResponse: _response.rawResponse };
393
- }
394
- if (_response.error.reason === "status-code") {
395
- switch (_response.error.statusCode) {
396
- case 422:
397
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
398
- default:
399
- throw new errors.ChrtError({
400
- statusCode: _response.error.statusCode,
401
- body: _response.error.body,
402
- rawResponse: _response.rawResponse,
403
- });
404
- }
405
- }
406
- switch (_response.error.reason) {
407
- case "non-json":
408
- throw new errors.ChrtError({
409
- statusCode: _response.error.statusCode,
410
- body: _response.error.rawBody,
411
- rawResponse: _response.rawResponse,
412
- });
413
- case "timeout":
414
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_department/v1/{connection_id}.");
415
- case "unknown":
416
- throw new errors.ChrtError({
417
- message: _response.error.errorMessage,
418
- rawResponse: _response.rawResponse,
419
- });
420
- }
421
- });
422
- }
423
360
  /**
424
361
  * Toggles `auto_assign_enabled` on a provider-provider connection — the executor org's opt-in for receiving direct (non-bidding) task-group assignments. Executor org only, min role: administrator. | (ProviderProviderUpdateAutoAssignReq) -> (bool)
425
362
  *
@@ -1,4 +1,3 @@
1
1
  export { type ConnectionsListShippersV1Request } from "./ConnectionsListShippersV1Request.mjs";
2
2
  export { type ConnectionsListProvidersV1Request } from "./ConnectionsListProvidersV1Request.mjs";
3
- export { type SetDepartmentReq } from "./SetDepartmentReq.mjs";
4
3
  export { type ProviderProviderUpdateAutoAssignReq } from "./ProviderProviderUpdateAutoAssignReq.mjs";
@@ -13,7 +13,6 @@ export interface OffChrtProviderOrgClientCreate1 {
13
13
  schema_version: number;
14
14
  company_name?: string | null;
15
15
  industry?: string | null;
16
- department_id?: string | null;
17
16
  street_address?: Chrt.LocationFeature | null;
18
17
  contact_first_name?: string | null;
19
18
  contact_last_name?: string | null;
@@ -17,8 +17,6 @@ export interface OffChrtProviderOrgClientUpdate1 {
17
17
  email_address_secondary?: string | null;
18
18
  job_title?: string | null;
19
19
  notes?: string | null;
20
- department_id?: string | null;
21
- department_id__set_to_None?: boolean;
22
20
  industry__set_to_None?: boolean;
23
21
  street_address__set_to_None?: boolean;
24
22
  contact_first_name__set_to_None?: boolean;
@@ -13,7 +13,6 @@ export interface OffChrtShipperOrgClientCreate1 {
13
13
  schema_version: number;
14
14
  company_name?: string | null;
15
15
  industry?: string | null;
16
- department_id?: string | null;
17
16
  street_address?: Chrt.LocationFeature | null;
18
17
  contact_first_name?: string | null;
19
18
  contact_last_name?: string | null;
@@ -17,8 +17,6 @@ export interface OffChrtShipperOrgClientUpdate1 {
17
17
  email_address_secondary?: string | null;
18
18
  job_title?: string | null;
19
19
  notes?: string | null;
20
- department_id?: string | null;
21
- department_id__set_to_None?: boolean;
22
20
  industry__set_to_None?: boolean;
23
21
  street_address__set_to_None?: boolean;
24
22
  contact_first_name__set_to_None?: boolean;
@@ -13,4 +13,5 @@ export interface OrdersNewDraftReq {
13
13
  off_chrt_shipper_org_id?: string | null;
14
14
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
15
15
  off_chrt_reference_id?: string | null;
16
+ department_id?: string | null;
16
17
  }
@@ -6,7 +6,7 @@ import * as Chrt from "../index.mjs";
6
6
  * Structured, factual description of a task-artifact image produced by an LLM.
7
7
  *
8
8
  * Stored on `TaskArtifactS3ObjectMetadata1.ai_image_description` so downstream
9
- * consumers (Q&A, search, audit, case checks) can answer questions about the
9
+ * consumers (Q&A, search, audit) can answer questions about the
10
10
  * artifact without re-sending the image. `model` records which LLM produced
11
11
  * the description; `provider` is derived from `model` so the two can never
12
12
  * disagree.
@@ -5,23 +5,12 @@ import * as Chrt from "../index.mjs";
5
5
  export interface Case1 {
6
6
  schema_version: number;
7
7
  order_id: string;
8
- /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
9
- order_ref?: string | null;
10
- order_short_id?: string | null;
11
8
  department_id?: string | null;
12
- assigned_operator_user_ids?: string[];
9
+ assigned_user_ids?: string[];
13
10
  case_s3_object_metadata_ids?: string[];
14
11
  _id: string;
15
12
  /** Must be a string starting with `org_` */
16
13
  org_id: string;
17
- status?: Chrt.CaseStatusEnum;
18
- needs_action?: boolean;
19
14
  messages?: Chrt.CaseMessage1[];
20
- enabled_check_keys?: Chrt.CheckEnum[];
21
- disabled_check_keys?: Chrt.CheckEnum[];
22
- checks?: Chrt.Check1[];
23
- checks_summary?: Chrt.CaseChecksSummary1;
24
- /** Must be a string starting with `user_` */
25
- created_by_user_id: string;
26
15
  created_at: string;
27
16
  }
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CaseSortByEnum = "created_at" | "status" | "department_id";
4
+ export type CaseSortByEnum = "created_at" | "department_id";
5
5
  export declare const CaseSortByEnum: {
6
6
  readonly CreatedAt: "created_at";
7
- readonly Status: "status";
8
7
  readonly DepartmentId: "department_id";
9
8
  };
@@ -3,6 +3,5 @@
3
3
  */
4
4
  export const CaseSortByEnum = {
5
5
  CreatedAt: "created_at",
6
- Status: "status",
7
6
  DepartmentId: "department_id",
8
7
  };
@@ -11,6 +11,7 @@ export interface Department1 {
11
11
  _id: string;
12
12
  /** Must be a string starting with `org_` */
13
13
  org_id: string;
14
+ short_id: string;
14
15
  /** Must be a string starting with `user_` */
15
16
  created_by_user_id: string;
16
17
  created_at: string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface DepartmentRoutingRule1 {
6
+ schema_version: number;
7
+ counterparty_type: Chrt.RoutingCounterpartyTypeEnum;
8
+ counterparty_id: string;
9
+ department_id: string;
10
+ _id: string;
11
+ /** Must be a string starting with `org_` */
12
+ owner_org_id: string;
13
+ /** Must be a string starting with `user_` */
14
+ created_by_user_id: string;
15
+ created_at: string;
16
+ }
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DepartmentTypeEnum = "automotive" | "semiconductor" | "pharmaceutical" | "aerospace" | "agriculture" | "retail" | "manufacturing" | "energy" | "food_and_beverage" | "chemicals" | "electronics" | "healthcare" | "industrials" | "live_animals" | "life_sciences" | "radiopharma" | "general";
4
+ export type DepartmentTypeEnum = "aerospace" | "agriculture" | "automotive" | "chemicals" | "electronics" | "energy" | "food_and_beverage" | "general" | "healthcare" | "industrials" | "life_sciences" | "live_animals" | "manufacturing" | "pharmaceutical" | "radiopharma" | "retail" | "semiconductor";
5
5
  export declare const DepartmentTypeEnum: {
6
- readonly Automotive: "automotive";
7
- readonly Semiconductor: "semiconductor";
8
- readonly Pharmaceutical: "pharmaceutical";
9
6
  readonly Aerospace: "aerospace";
10
7
  readonly Agriculture: "agriculture";
11
- readonly Retail: "retail";
12
- readonly Manufacturing: "manufacturing";
13
- readonly Energy: "energy";
14
- readonly FoodAndBeverage: "food_and_beverage";
8
+ readonly Automotive: "automotive";
15
9
  readonly Chemicals: "chemicals";
16
10
  readonly Electronics: "electronics";
11
+ readonly Energy: "energy";
12
+ readonly FoodAndBeverage: "food_and_beverage";
13
+ readonly General: "general";
17
14
  readonly Healthcare: "healthcare";
18
15
  readonly Industrials: "industrials";
19
- readonly LiveAnimals: "live_animals";
20
16
  readonly LifeSciences: "life_sciences";
17
+ readonly LiveAnimals: "live_animals";
18
+ readonly Manufacturing: "manufacturing";
19
+ readonly Pharmaceutical: "pharmaceutical";
21
20
  readonly Radiopharma: "radiopharma";
22
- readonly General: "general";
21
+ readonly Retail: "retail";
22
+ readonly Semiconductor: "semiconductor";
23
23
  };
@@ -2,21 +2,21 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const DepartmentTypeEnum = {
5
- Automotive: "automotive",
6
- Semiconductor: "semiconductor",
7
- Pharmaceutical: "pharmaceutical",
8
5
  Aerospace: "aerospace",
9
6
  Agriculture: "agriculture",
10
- Retail: "retail",
11
- Manufacturing: "manufacturing",
12
- Energy: "energy",
13
- FoodAndBeverage: "food_and_beverage",
7
+ Automotive: "automotive",
14
8
  Chemicals: "chemicals",
15
9
  Electronics: "electronics",
10
+ Energy: "energy",
11
+ FoodAndBeverage: "food_and_beverage",
12
+ General: "general",
16
13
  Healthcare: "healthcare",
17
14
  Industrials: "industrials",
18
- LiveAnimals: "live_animals",
19
15
  LifeSciences: "life_sciences",
16
+ LiveAnimals: "live_animals",
17
+ Manufacturing: "manufacturing",
18
+ Pharmaceutical: "pharmaceutical",
20
19
  Radiopharma: "radiopharma",
21
- General: "general",
20
+ Retail: "retail",
21
+ Semiconductor: "semiconductor",
22
22
  };