@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
@@ -45,26 +45,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
45
45
  });
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Checklists = void 0;
48
+ exports.OperationsTaskLists = void 0;
49
49
  const environments = __importStar(require("../../../../../../environments.js"));
50
50
  const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
- class Checklists {
54
+ class OperationsTaskLists {
55
55
  constructor(_options = {}) {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Lists Checklists for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (ChecklistListRes)
59
+ * Lists OperationsTaskLists for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
60
60
  *
61
- * @param {Chrt.operations.ChecklistsListV1Request} request
62
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {Chrt.operations.OperationsTaskListsListV1Request} request
62
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link Chrt.UnprocessableEntityError}
65
65
  *
66
66
  * @example
67
- * await client.operations.checklists.listV1({
67
+ * await client.operations.operationsTaskLists.listV1({
68
68
  * sort_by: "created_at_timestamp",
69
69
  * sort_order: "asc",
70
70
  * page: 1,
@@ -97,7 +97,7 @@ class Checklists {
97
97
  }
98
98
  let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
99
  const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
100
- 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/checklists/list/v1"),
100
+ 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_task_lists/list/v1"),
101
101
  method: "GET",
102
102
  headers: _headers,
103
103
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -128,7 +128,7 @@ class Checklists {
128
128
  rawResponse: _response.rawResponse,
129
129
  });
130
130
  case "timeout":
131
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/checklists/list/v1.");
131
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_task_lists/list/v1.");
132
132
  case "unknown":
133
133
  throw new errors.ChrtError({
134
134
  message: _response.error.errorMessage,
@@ -138,25 +138,25 @@ class Checklists {
138
138
  });
139
139
  }
140
140
  /**
141
- * Retrieves a single Checklist by id. | authz: min_org_role=operator | () -> (Checklist1)
141
+ * Retrieves a single OperationsTaskList by id. | authz: min_org_role=operator | () -> (OperationsTaskList1)
142
142
  *
143
- * @param {string} checklistId
144
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
143
+ * @param {string} taskListId
144
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
145
145
  *
146
146
  * @throws {@link Chrt.UnprocessableEntityError}
147
147
  *
148
148
  * @example
149
- * await client.operations.checklists.getV1("checklist_id")
149
+ * await client.operations.operationsTaskLists.getV1("task_list_id")
150
150
  */
151
- getV1(checklistId, requestOptions) {
152
- return core.HttpResponsePromise.fromPromise(this.__getV1(checklistId, requestOptions));
151
+ getV1(taskListId, requestOptions) {
152
+ return core.HttpResponsePromise.fromPromise(this.__getV1(taskListId, requestOptions));
153
153
  }
154
- __getV1(checklistId, requestOptions) {
154
+ __getV1(taskListId, requestOptions) {
155
155
  return __awaiter(this, void 0, void 0, function* () {
156
156
  var _a, _b, _c, _d;
157
157
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
158
158
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
159
- 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/checklists/v1/${encodeURIComponent(checklistId)}`),
159
+ 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_task_lists/v1/${encodeURIComponent(taskListId)}`),
160
160
  method: "GET",
161
161
  headers: _headers,
162
162
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -187,7 +187,7 @@ class Checklists {
187
187
  rawResponse: _response.rawResponse,
188
188
  });
189
189
  case "timeout":
190
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/checklists/v1/{checklist_id}.");
190
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_task_lists/v1/{task_list_id}.");
191
191
  case "unknown":
192
192
  throw new errors.ChrtError({
193
193
  message: _response.error.errorMessage,
@@ -197,26 +197,26 @@ class Checklists {
197
197
  });
198
198
  }
199
199
  /**
200
- * Updates scalar fields (name, description) on a Checklist. | authz: min_org_role=operator | (ChecklistClientUpdate1) -> (bool)
200
+ * Updates scalar fields (name, description, tags) on an OperationsTaskList. | authz: min_org_role=operator | (OperationsTaskListClientUpdate1) -> (bool)
201
201
  *
202
- * @param {string} checklistId
203
- * @param {Chrt.operations.ChecklistClientUpdate1} request
204
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
202
+ * @param {string} taskListId
203
+ * @param {Chrt.operations.OperationsTaskListClientUpdate1} request
204
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
205
205
  *
206
206
  * @throws {@link Chrt.UnprocessableEntityError}
207
207
  *
208
208
  * @example
209
- * await client.operations.checklists.updateV1("checklist_id")
209
+ * await client.operations.operationsTaskLists.updateV1("task_list_id")
210
210
  */
211
- updateV1(checklistId, request = {}, requestOptions) {
212
- return core.HttpResponsePromise.fromPromise(this.__updateV1(checklistId, request, requestOptions));
211
+ updateV1(taskListId, request = {}, requestOptions) {
212
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(taskListId, request, requestOptions));
213
213
  }
214
- __updateV1(checklistId_1) {
215
- return __awaiter(this, arguments, void 0, function* (checklistId, request = {}, requestOptions) {
214
+ __updateV1(taskListId_1) {
215
+ return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
216
216
  var _a, _b, _c, _d;
217
217
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
218
218
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
219
- 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/checklists/v1/${encodeURIComponent(checklistId)}`),
219
+ 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_task_lists/v1/${encodeURIComponent(taskListId)}`),
220
220
  method: "PATCH",
221
221
  headers: _headers,
222
222
  contentType: "application/json",
@@ -250,7 +250,7 @@ class Checklists {
250
250
  rawResponse: _response.rawResponse,
251
251
  });
252
252
  case "timeout":
253
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/checklists/v1/{checklist_id}.");
253
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/v1/{task_list_id}.");
254
254
  case "unknown":
255
255
  throw new errors.ChrtError({
256
256
  message: _response.error.errorMessage,
@@ -260,15 +260,15 @@ class Checklists {
260
260
  });
261
261
  }
262
262
  /**
263
- * Creates a new Checklist for the caller's organization. | authz: min_org_role=operator | (ChecklistClientCreate1) -> (PydanticObjectId)
263
+ * Creates a new OperationsTaskList for the caller's organization. | authz: min_org_role=operator | (OperationsTaskListClientCreate1) -> (PydanticObjectId)
264
264
  *
265
- * @param {Chrt.operations.ChecklistClientCreate1} request
266
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
265
+ * @param {Chrt.operations.OperationsTaskListClientCreate1} request
266
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
267
267
  *
268
268
  * @throws {@link Chrt.UnprocessableEntityError}
269
269
  *
270
270
  * @example
271
- * await client.operations.checklists.createV1({
271
+ * await client.operations.operationsTaskLists.createV1({
272
272
  * schema_version: 1,
273
273
  * name: "name"
274
274
  * })
@@ -281,7 +281,7 @@ class Checklists {
281
281
  var _a, _b, _c, _d;
282
282
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
283
283
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
284
- 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/checklists/v1"),
284
+ 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_task_lists/v1"),
285
285
  method: "POST",
286
286
  headers: _headers,
287
287
  contentType: "application/json",
@@ -315,7 +315,7 @@ class Checklists {
315
315
  rawResponse: _response.rawResponse,
316
316
  });
317
317
  case "timeout":
318
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/checklists/v1.");
318
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/v1.");
319
319
  case "unknown":
320
320
  throw new errors.ChrtError({
321
321
  message: _response.error.errorMessage,
@@ -325,26 +325,26 @@ class Checklists {
325
325
  });
326
326
  }
327
327
  /**
328
- * Adds checks to a Checklist. Idempotent for identical checks. | authz: min_org_role=operator | (ChecklistChecksAdd1) -> (bool)
328
+ * Appends entries to an OperationsTaskList's `entries` array. | authz: min_org_role=operator | (OperationsTaskListEntriesAdd1) -> (bool)
329
329
  *
330
- * @param {string} checklistId
331
- * @param {Chrt.operations.ChecklistChecksAdd1} request
332
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
330
+ * @param {string} taskListId
331
+ * @param {Chrt.operations.OperationsTaskListEntriesAdd1} request
332
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
333
333
  *
334
334
  * @throws {@link Chrt.UnprocessableEntityError}
335
335
  *
336
336
  * @example
337
- * await client.operations.checklists.addChecksV1("checklist_id")
337
+ * await client.operations.operationsTaskLists.addEntriesV1("task_list_id")
338
338
  */
339
- addChecksV1(checklistId, request = {}, requestOptions) {
340
- return core.HttpResponsePromise.fromPromise(this.__addChecksV1(checklistId, request, requestOptions));
339
+ addEntriesV1(taskListId, request = {}, requestOptions) {
340
+ return core.HttpResponsePromise.fromPromise(this.__addEntriesV1(taskListId, request, requestOptions));
341
341
  }
342
- __addChecksV1(checklistId_1) {
343
- return __awaiter(this, arguments, void 0, function* (checklistId, request = {}, requestOptions) {
342
+ __addEntriesV1(taskListId_1) {
343
+ return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
344
344
  var _a, _b, _c, _d;
345
345
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
346
346
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
347
- 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/checklists/checks/add/v1/${encodeURIComponent(checklistId)}`),
347
+ 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_task_lists/entries/add/v1/${encodeURIComponent(taskListId)}`),
348
348
  method: "POST",
349
349
  headers: _headers,
350
350
  contentType: "application/json",
@@ -378,7 +378,7 @@ class Checklists {
378
378
  rawResponse: _response.rawResponse,
379
379
  });
380
380
  case "timeout":
381
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/checklists/checks/add/v1/{checklist_id}.");
381
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
382
382
  case "unknown":
383
383
  throw new errors.ChrtError({
384
384
  message: _response.error.errorMessage,
@@ -388,26 +388,26 @@ class Checklists {
388
388
  });
389
389
  }
390
390
  /**
391
- * Removes entries from a Checklist's `checks` list by CheckEnum. | authz: min_org_role=operator | (ChecklistChecksRemove1) -> (bool)
391
+ * Removes entries from an OperationsTaskList by entry id. | authz: min_org_role=operator | (OperationsTaskListEntriesRemove1) -> (bool)
392
392
  *
393
- * @param {string} checklistId
394
- * @param {Chrt.operations.ChecklistChecksRemove1} request
395
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
393
+ * @param {string} taskListId
394
+ * @param {Chrt.operations.OperationsTaskListEntriesRemove1} request
395
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
396
396
  *
397
397
  * @throws {@link Chrt.UnprocessableEntityError}
398
398
  *
399
399
  * @example
400
- * await client.operations.checklists.removeChecksV1("checklist_id")
400
+ * await client.operations.operationsTaskLists.removeEntriesV1("task_list_id")
401
401
  */
402
- removeChecksV1(checklistId, request = {}, requestOptions) {
403
- return core.HttpResponsePromise.fromPromise(this.__removeChecksV1(checklistId, request, requestOptions));
402
+ removeEntriesV1(taskListId, request = {}, requestOptions) {
403
+ return core.HttpResponsePromise.fromPromise(this.__removeEntriesV1(taskListId, request, requestOptions));
404
404
  }
405
- __removeChecksV1(checklistId_1) {
406
- return __awaiter(this, arguments, void 0, function* (checklistId, request = {}, requestOptions) {
405
+ __removeEntriesV1(taskListId_1) {
406
+ return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
407
407
  var _a, _b, _c, _d;
408
408
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
409
409
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
410
- 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/checklists/checks/remove/v1/${encodeURIComponent(checklistId)}`),
410
+ 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_task_lists/entries/remove/v1/${encodeURIComponent(taskListId)}`),
411
411
  method: "POST",
412
412
  headers: _headers,
413
413
  contentType: "application/json",
@@ -441,7 +441,7 @@ class Checklists {
441
441
  rawResponse: _response.rawResponse,
442
442
  });
443
443
  case "timeout":
444
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/checklists/checks/remove/v1/{checklist_id}.");
444
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/remove/v1/{task_list_id}.");
445
445
  case "unknown":
446
446
  throw new errors.ChrtError({
447
447
  message: _response.error.errorMessage,
@@ -451,25 +451,25 @@ class Checklists {
451
451
  });
452
452
  }
453
453
  /**
454
- * Soft-deletes a Checklist by setting `archived=True`. Existing Cases that applied this Checklist are unaffected (copy-on-write). | authz: min_org_role=operator | () -> (bool)
454
+ * Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Cases are unaffected. | authz: min_org_role=operator | () -> (bool)
455
455
  *
456
- * @param {string} checklistId
457
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
456
+ * @param {string} taskListId
457
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
458
458
  *
459
459
  * @throws {@link Chrt.UnprocessableEntityError}
460
460
  *
461
461
  * @example
462
- * await client.operations.checklists.archiveV1("checklist_id")
462
+ * await client.operations.operationsTaskLists.archiveV1("task_list_id")
463
463
  */
464
- archiveV1(checklistId, requestOptions) {
465
- return core.HttpResponsePromise.fromPromise(this.__archiveV1(checklistId, requestOptions));
464
+ archiveV1(taskListId, requestOptions) {
465
+ return core.HttpResponsePromise.fromPromise(this.__archiveV1(taskListId, requestOptions));
466
466
  }
467
- __archiveV1(checklistId, requestOptions) {
467
+ __archiveV1(taskListId, requestOptions) {
468
468
  return __awaiter(this, void 0, void 0, function* () {
469
469
  var _a, _b, _c, _d;
470
470
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
471
471
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
472
- 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/checklists/archive/v1/${encodeURIComponent(checklistId)}`),
472
+ 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_task_lists/archive/v1/${encodeURIComponent(taskListId)}`),
473
473
  method: "POST",
474
474
  headers: _headers,
475
475
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -500,7 +500,7 @@ class Checklists {
500
500
  rawResponse: _response.rawResponse,
501
501
  });
502
502
  case "timeout":
503
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/checklists/archive/v1/{checklist_id}.");
503
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/archive/v1/{task_list_id}.");
504
504
  case "unknown":
505
505
  throw new errors.ChrtError({
506
506
  message: _response.error.errorMessage,
@@ -510,25 +510,25 @@ class Checklists {
510
510
  });
511
511
  }
512
512
  /**
513
- * Restores an archived Checklist by setting `archived=False`. | authz: min_org_role=operator | () -> (bool)
513
+ * Restores an archived OperationsTaskList by setting `archived=False`. | authz: min_org_role=operator | () -> (bool)
514
514
  *
515
- * @param {string} checklistId
516
- * @param {Checklists.RequestOptions} requestOptions - Request-specific configuration.
515
+ * @param {string} taskListId
516
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
517
517
  *
518
518
  * @throws {@link Chrt.UnprocessableEntityError}
519
519
  *
520
520
  * @example
521
- * await client.operations.checklists.unarchiveV1("checklist_id")
521
+ * await client.operations.operationsTaskLists.unarchiveV1("task_list_id")
522
522
  */
523
- unarchiveV1(checklistId, requestOptions) {
524
- return core.HttpResponsePromise.fromPromise(this.__unarchiveV1(checklistId, requestOptions));
523
+ unarchiveV1(taskListId, requestOptions) {
524
+ return core.HttpResponsePromise.fromPromise(this.__unarchiveV1(taskListId, requestOptions));
525
525
  }
526
- __unarchiveV1(checklistId, requestOptions) {
526
+ __unarchiveV1(taskListId, requestOptions) {
527
527
  return __awaiter(this, void 0, void 0, function* () {
528
528
  var _a, _b, _c, _d;
529
529
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
530
530
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
531
- 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/checklists/unarchive/v1/${encodeURIComponent(checklistId)}`),
531
+ 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_task_lists/unarchive/v1/${encodeURIComponent(taskListId)}`),
532
532
  method: "POST",
533
533
  headers: _headers,
534
534
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -559,7 +559,138 @@ class Checklists {
559
559
  rawResponse: _response.rawResponse,
560
560
  });
561
561
  case "timeout":
562
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/checklists/unarchive/v1/{checklist_id}.");
562
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/unarchive/v1/{task_list_id}.");
563
+ case "unknown":
564
+ throw new errors.ChrtError({
565
+ message: _response.error.errorMessage,
566
+ rawResponse: _response.rawResponse,
567
+ });
568
+ }
569
+ });
570
+ }
571
+ /**
572
+ * Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines: overall_deadline_timestamp wins, else the entry's deadline_offset_seconds, else a positional 20-min stagger. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
573
+ *
574
+ * @param {string} taskListId
575
+ * @param {string} caseId
576
+ * @param {Chrt.operations.OperationsTaskListsApplyToCaseV1Request} request
577
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
578
+ *
579
+ * @throws {@link Chrt.UnprocessableEntityError}
580
+ *
581
+ * @example
582
+ * await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
583
+ * overall_deadline_timestamp: "2024-01-15T09:30:00Z"
584
+ * })
585
+ */
586
+ applyToCaseV1(taskListId, caseId, request = {}, requestOptions) {
587
+ return core.HttpResponsePromise.fromPromise(this.__applyToCaseV1(taskListId, caseId, request, requestOptions));
588
+ }
589
+ __applyToCaseV1(taskListId_1, caseId_1) {
590
+ return __awaiter(this, arguments, void 0, function* (taskListId, caseId, request = {}, requestOptions) {
591
+ var _a, _b, _c, _d;
592
+ const { overall_deadline_timestamp: overallDeadlineTimestamp } = request;
593
+ const _queryParams = {};
594
+ if (overallDeadlineTimestamp !== undefined) {
595
+ _queryParams["overall_deadline_timestamp"] = overallDeadlineTimestamp;
596
+ }
597
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
598
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
599
+ 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_task_lists/apply_to_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
600
+ method: "POST",
601
+ headers: _headers,
602
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
603
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
604
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
605
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
606
+ });
607
+ if (_response.ok) {
608
+ return { data: _response.body, rawResponse: _response.rawResponse };
609
+ }
610
+ if (_response.error.reason === "status-code") {
611
+ switch (_response.error.statusCode) {
612
+ case 422:
613
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
614
+ default:
615
+ throw new errors.ChrtError({
616
+ statusCode: _response.error.statusCode,
617
+ body: _response.error.body,
618
+ rawResponse: _response.rawResponse,
619
+ });
620
+ }
621
+ }
622
+ switch (_response.error.reason) {
623
+ case "non-json":
624
+ throw new errors.ChrtError({
625
+ statusCode: _response.error.statusCode,
626
+ body: _response.error.rawBody,
627
+ rawResponse: _response.rawResponse,
628
+ });
629
+ case "timeout":
630
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/apply_to_case/v1/{task_list_id}/{case_id}.");
631
+ case "unknown":
632
+ throw new errors.ChrtError({
633
+ message: _response.error.errorMessage,
634
+ rawResponse: _response.rawResponse,
635
+ });
636
+ }
637
+ });
638
+ }
639
+ /**
640
+ * Removes the OperationsTasks this OperationsTaskList added to the Case (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
641
+ *
642
+ * @param {string} taskListId
643
+ * @param {string} caseId
644
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
645
+ *
646
+ * @throws {@link Chrt.UnprocessableEntityError}
647
+ *
648
+ * @example
649
+ * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
650
+ */
651
+ removeFromCaseV1(taskListId, caseId, requestOptions) {
652
+ return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
653
+ }
654
+ __removeFromCaseV1(taskListId, caseId, requestOptions) {
655
+ return __awaiter(this, void 0, void 0, function* () {
656
+ var _a, _b, _c, _d;
657
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
658
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
659
+ 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_task_lists/remove_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
660
+ method: "POST",
661
+ headers: _headers,
662
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
663
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
664
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
665
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
666
+ });
667
+ if (_response.ok) {
668
+ return {
669
+ data: _response.body,
670
+ rawResponse: _response.rawResponse,
671
+ };
672
+ }
673
+ if (_response.error.reason === "status-code") {
674
+ switch (_response.error.statusCode) {
675
+ case 422:
676
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
677
+ default:
678
+ throw new errors.ChrtError({
679
+ statusCode: _response.error.statusCode,
680
+ body: _response.error.body,
681
+ rawResponse: _response.rawResponse,
682
+ });
683
+ }
684
+ }
685
+ switch (_response.error.reason) {
686
+ case "non-json":
687
+ throw new errors.ChrtError({
688
+ statusCode: _response.error.statusCode,
689
+ body: _response.error.rawBody,
690
+ rawResponse: _response.rawResponse,
691
+ });
692
+ case "timeout":
693
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_from_case/v1/{task_list_id}/{case_id}.");
563
694
  case "unknown":
564
695
  throw new errors.ChrtError({
565
696
  message: _response.error.errorMessage,
@@ -578,4 +709,4 @@ class Checklists {
578
709
  });
579
710
  }
580
711
  }
581
- exports.Checklists = Checklists;
712
+ exports.OperationsTaskLists = OperationsTaskLists;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -9,9 +9,10 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * name: "name"
10
10
  * }
11
11
  */
12
- export interface ChecklistClientCreate1 {
12
+ export interface OperationsTaskListClientCreate1 {
13
13
  schema_version: number;
14
14
  name: string;
15
15
  description?: string | null;
16
- checks?: Chrt.ChecklistCheck1[];
16
+ tags?: string[];
17
+ entries?: Chrt.OperationsTaskListEntry1[];
17
18
  }
@@ -5,8 +5,9 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ChecklistClientUpdate1 {
8
+ export interface OperationsTaskListClientUpdate1 {
9
9
  name?: string | null;
10
10
  description?: string | null;
11
+ tags?: string[];
11
12
  description__set_to_None?: boolean;
12
13
  }
@@ -6,6 +6,6 @@ import * as Chrt from "../../../../../../index.js";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface ChecklistChecksAdd1 {
10
- checks?: Chrt.ChecklistCheck1[];
9
+ export interface OperationsTaskListEntriesAdd1 {
10
+ entries?: Chrt.OperationsTaskListEntry1[];
11
11
  }
@@ -5,6 +5,6 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface SetDepartmentReq {
9
- department_id?: string | null;
8
+ export interface OperationsTaskListEntriesRemove1 {
9
+ entry_ids?: string[];
10
10
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * overall_deadline_timestamp: "2024-01-15T09:30:00Z"
8
+ * }
9
+ */
10
+ export interface OperationsTaskListsApplyToCaseV1Request {
11
+ /** If set, overrides every materialized task's deadline with this timestamp. */
12
+ overall_deadline_timestamp?: string | null;
13
+ }
@@ -12,9 +12,9 @@ import * as Chrt from "../../../../../../index.js";
12
12
  * filter_archived: true
13
13
  * }
14
14
  */
15
- export interface ChecklistsListV1Request {
15
+ export interface OperationsTaskListsListV1Request {
16
16
  /** Field to sort by */
17
- sort_by?: Chrt.ChecklistSortByEnum | null;
17
+ sort_by?: Chrt.OperationsTaskListSortByEnum | null;
18
18
  /** Sort order (asc or desc) */
19
19
  sort_order?: Chrt.SortOrderEnum | null;
20
20
  page?: number | null;
@@ -0,0 +1,6 @@
1
+ export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.js";
2
+ export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
3
+ export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
4
+ export { type OperationsTaskListEntriesAdd1 } from "./OperationsTaskListEntriesAdd1.js";
5
+ export { type OperationsTaskListEntriesRemove1 } from "./OperationsTaskListEntriesRemove1.js";
6
+ export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);