@chrt-inc/typescript-sdk 1.762.0 → 1.787.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 (273) hide show
  1. package/README.md +13 -10
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +31 -26
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +35 -0
  5. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +133 -0
  6. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +23 -0
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +24 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/flights/client/Client.d.ts +52 -0
  10. package/dist/cjs/api/resources/flights/client/Client.js +135 -0
  11. package/dist/cjs/api/resources/flights/client/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/flights/client/index.js +17 -0
  13. package/dist/cjs/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.ts +45 -0
  14. package/dist/cjs/api/resources/flights/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/flights/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/flights/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/flights/index.js +17 -0
  18. package/dist/cjs/api/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
  24. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +47 -10
  25. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +149 -17
  26. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  27. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  28. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  29. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -1
  30. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +71 -1
  31. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.ts +16 -0
  32. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
  34. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
  35. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
  36. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +4 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  40. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +30 -25
  41. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +55 -52
  42. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -2
  43. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
  44. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.ts +24 -0
  45. package/dist/{esm/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.ts} +1 -1
  46. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +14 -0
  47. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +0 -3
  48. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +3 -3
  49. package/dist/cjs/api/types/AlertCallback.d.ts +7 -0
  50. package/dist/cjs/api/types/AlertCallback.js +5 -0
  51. package/dist/cjs/api/types/AlertEvent.d.ts +6 -0
  52. package/dist/cjs/api/types/AlertEvent.js +5 -0
  53. package/dist/cjs/api/types/AlertMessage.d.ts +10 -0
  54. package/dist/cjs/api/types/AlertMessage.js +5 -0
  55. package/dist/cjs/api/types/AlertNameValue.d.ts +7 -0
  56. package/dist/cjs/api/types/AlertNameValue.js +5 -0
  57. package/dist/cjs/api/types/AlertNameValues.d.ts +7 -0
  58. package/dist/cjs/api/types/AlertNameValues.js +5 -0
  59. package/dist/cjs/api/types/AlertRuleEnvelope.d.ts +7 -0
  60. package/dist/cjs/api/types/AlertRuleEnvelope.js +5 -0
  61. package/dist/cjs/api/types/CiriumAirportResources.d.ts +9 -0
  62. package/dist/cjs/api/types/CiriumAirportResources.js +5 -0
  63. package/dist/cjs/api/types/CiriumDate.d.ts +6 -0
  64. package/dist/cjs/api/types/CiriumDate.js +5 -0
  65. package/dist/cjs/api/types/{FlightAwareWebhookResponse.d.ts → CiriumFlightAlertsWebhookResponse.d.ts} +1 -1
  66. package/dist/cjs/api/types/CiriumFlightAlertsWebhookResponse.js +5 -0
  67. package/dist/cjs/api/types/CiriumFlightStatus.d.ts +15 -0
  68. package/dist/cjs/api/types/CiriumFlightStatus.js +5 -0
  69. package/dist/cjs/api/types/CiriumOperationalTimes.d.ts +17 -0
  70. package/dist/cjs/api/types/CiriumOperationalTimes.js +5 -0
  71. package/dist/cjs/api/types/ConnectionSearchByEnum.d.ts +8 -0
  72. package/dist/cjs/api/types/ConnectionSearchByEnum.js +10 -0
  73. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.d.ts +8 -0
  74. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.js +10 -0
  75. package/dist/cjs/api/types/Driver1.d.ts +0 -1
  76. package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
  77. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
  78. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
  79. package/dist/cjs/api/types/FlightConnection.d.ts +10 -0
  80. package/dist/cjs/api/types/FlightConnection.js +5 -0
  81. package/dist/cjs/api/types/FlightConnectionLeg.d.ts +22 -0
  82. package/dist/cjs/api/types/FlightConnectionLeg.js +5 -0
  83. package/dist/cjs/api/types/FlightConnectionsSearchRes.d.ts +7 -0
  84. package/dist/cjs/api/types/FlightConnectionsSearchRes.js +5 -0
  85. package/dist/cjs/api/types/FlightLeg1.d.ts +3 -2
  86. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  87. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
  88. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
  89. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
  90. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
  91. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
  92. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
  93. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
  94. package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
  95. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
  96. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
  97. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
  98. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts +7 -0
  99. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.js +5 -0
  100. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  101. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  102. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  103. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +1 -1
  104. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
  105. package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
  106. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +7 -0
  107. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.js +5 -0
  108. package/dist/cjs/api/types/OrderBuilderReq.d.ts +2 -0
  109. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  110. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  111. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  112. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  113. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  114. package/dist/cjs/api/types/Session1.d.ts +6 -6
  115. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  116. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
  117. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
  118. package/dist/cjs/api/types/index.d.ts +22 -4
  119. package/dist/cjs/api/types/index.js +22 -4
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/Client.d.mts +3 -0
  123. package/dist/esm/Client.mjs +7 -2
  124. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
  125. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
  126. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
  127. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
  128. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
  129. package/dist/esm/api/resources/flights/client/Client.d.mts +52 -0
  130. package/dist/esm/api/resources/flights/client/Client.mjs +98 -0
  131. package/dist/esm/api/resources/flights/client/index.d.mts +2 -0
  132. package/dist/esm/api/resources/flights/client/index.mjs +1 -0
  133. package/dist/esm/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.mts +45 -0
  134. package/dist/esm/api/resources/flights/client/requests/index.d.mts +1 -0
  135. package/dist/esm/api/resources/flights/client/requests/index.mjs +1 -0
  136. package/dist/esm/api/resources/flights/index.d.mts +1 -0
  137. package/dist/esm/api/resources/flights/index.mjs +1 -0
  138. package/dist/esm/api/resources/index.d.mts +2 -0
  139. package/dist/esm/api/resources/index.mjs +2 -0
  140. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
  141. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
  142. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
  143. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
  144. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +47 -10
  145. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +149 -17
  146. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  147. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  148. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  149. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -1
  150. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +71 -1
  151. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.mts +16 -0
  152. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  153. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
  154. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
  155. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
  156. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +4 -0
  157. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
  158. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  159. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  160. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +30 -25
  161. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +55 -52
  162. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -2
  163. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
  164. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.mts +24 -0
  165. package/dist/{cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.mts} +1 -1
  166. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +14 -0
  167. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +0 -3
  168. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +3 -3
  169. package/dist/esm/api/types/AlertCallback.d.mts +7 -0
  170. package/dist/esm/api/types/AlertCallback.mjs +4 -0
  171. package/dist/esm/api/types/AlertEvent.d.mts +6 -0
  172. package/dist/esm/api/types/AlertEvent.mjs +4 -0
  173. package/dist/esm/api/types/AlertMessage.d.mts +10 -0
  174. package/dist/esm/api/types/AlertMessage.mjs +4 -0
  175. package/dist/esm/api/types/AlertNameValue.d.mts +7 -0
  176. package/dist/esm/api/types/AlertNameValue.mjs +4 -0
  177. package/dist/esm/api/types/AlertNameValues.d.mts +7 -0
  178. package/dist/esm/api/types/AlertNameValues.mjs +4 -0
  179. package/dist/esm/api/types/AlertRuleEnvelope.d.mts +7 -0
  180. package/dist/esm/api/types/AlertRuleEnvelope.mjs +4 -0
  181. package/dist/esm/api/types/CiriumAirportResources.d.mts +9 -0
  182. package/dist/esm/api/types/CiriumAirportResources.mjs +4 -0
  183. package/dist/esm/api/types/CiriumDate.d.mts +6 -0
  184. package/dist/esm/api/types/CiriumDate.mjs +4 -0
  185. package/dist/esm/api/types/{FlightAwareWebhookResponse.d.mts → CiriumFlightAlertsWebhookResponse.d.mts} +1 -1
  186. package/dist/esm/api/types/CiriumFlightAlertsWebhookResponse.mjs +4 -0
  187. package/dist/esm/api/types/CiriumFlightStatus.d.mts +15 -0
  188. package/dist/esm/api/types/CiriumFlightStatus.mjs +4 -0
  189. package/dist/esm/api/types/CiriumOperationalTimes.d.mts +17 -0
  190. package/dist/esm/api/types/CiriumOperationalTimes.mjs +4 -0
  191. package/dist/esm/api/types/ConnectionSearchByEnum.d.mts +8 -0
  192. package/dist/esm/api/types/ConnectionSearchByEnum.mjs +7 -0
  193. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.d.mts +8 -0
  194. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.mjs +7 -0
  195. package/dist/esm/api/types/Driver1.d.mts +0 -1
  196. package/dist/esm/api/types/DriverListRes.d.mts +1 -1
  197. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
  198. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
  199. package/dist/esm/api/types/FlightConnection.d.mts +10 -0
  200. package/dist/esm/api/types/FlightConnection.mjs +4 -0
  201. package/dist/esm/api/types/FlightConnectionLeg.d.mts +22 -0
  202. package/dist/esm/api/types/FlightConnectionLeg.mjs +4 -0
  203. package/dist/esm/api/types/FlightConnectionsSearchRes.d.mts +7 -0
  204. package/dist/esm/api/types/FlightConnectionsSearchRes.mjs +4 -0
  205. package/dist/esm/api/types/FlightLeg1.d.mts +3 -2
  206. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  207. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
  208. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
  209. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
  210. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
  211. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
  212. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
  213. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
  214. package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
  215. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
  216. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
  217. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
  218. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.d.mts +7 -0
  219. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.mjs +4 -0
  220. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  221. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  222. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  223. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +1 -1
  224. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
  225. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
  226. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +7 -0
  227. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.mjs +4 -0
  228. package/dist/esm/api/types/OrderBuilderReq.d.mts +2 -0
  229. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  230. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  231. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  232. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  233. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  234. package/dist/esm/api/types/Session1.d.mts +6 -6
  235. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  236. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
  237. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
  238. package/dist/esm/api/types/index.d.mts +22 -4
  239. package/dist/esm/api/types/index.mjs +22 -4
  240. package/dist/esm/version.d.mts +1 -1
  241. package/dist/esm/version.mjs +1 -1
  242. package/package.json +1 -1
  243. package/reference.md +639 -51
  244. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  245. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +0 -16
  246. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +0 -16
  247. package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +0 -16
  248. package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +0 -17
  249. package/dist/cjs/api/types/FlightStatusEnum.d.ts +0 -14
  250. package/dist/cjs/api/types/FlightStatusEnum.js +0 -16
  251. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  252. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +0 -16
  253. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +0 -16
  254. package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +0 -16
  255. package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +0 -17
  256. package/dist/esm/api/types/FlightStatusEnum.d.mts +0 -14
  257. package/dist/esm/api/types/FlightStatusEnum.mjs +0 -13
  258. /package/dist/cjs/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
  259. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js} +0 -0
  260. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.js → flights/client/requests/FlightConnectionsSearchReq.js} +0 -0
  261. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.js → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.js} +0 -0
  262. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.js} +0 -0
  263. /package/dist/cjs/api/{types/FlightAwareAlertFlight.js → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.js} +0 -0
  264. /package/dist/cjs/api/{types/FlightAwareAlertPayload.js → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.js} +0 -0
  265. /package/dist/cjs/api/{types/FlightAwareWebhookResponse.js → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.js} +0 -0
  266. /package/dist/esm/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
  267. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs} +0 -0
  268. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.mjs → flights/client/requests/FlightConnectionsSearchReq.mjs} +0 -0
  269. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.mjs → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.mjs} +0 -0
  270. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.mjs} +0 -0
  271. /package/dist/esm/api/{types/FlightAwareAlertFlight.mjs → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.mjs} +0 -0
  272. /package/dist/esm/api/{types/FlightAwareAlertPayload.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.mjs} +0 -0
  273. /package/dist/esm/api/{types/FlightAwareWebhookResponse.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.mjs} +0 -0
@@ -47,11 +47,28 @@ export declare class AdHoc {
47
47
  */
48
48
  listByOrderIdV1(orderId: string, request?: Chrt.notifications.AdHocListByOrderIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
49
49
  private __listByOrderIdV1;
50
+ /**
51
+ * Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
52
+ *
53
+ * @param {string} sessionId
54
+ * @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
55
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Chrt.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.notifications.adHoc.listBySessionIdV1("session_id", {
61
+ * page: 1,
62
+ * page_size: 1
63
+ * })
64
+ */
65
+ listBySessionIdV1(sessionId: string, request?: Chrt.notifications.AdHocListBySessionIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
66
+ private __listBySessionIdV1;
50
67
  /**
51
68
  * Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
52
69
  *
53
70
  * @param {string} orderId
54
- * @param {Chrt.notifications.NotificationIntentAdHocClientCreate1} request
71
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
55
72
  * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
56
73
  *
57
74
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -62,8 +79,25 @@ export declare class AdHoc {
62
79
  * directory_entry_id: "directory_entry_id"
63
80
  * })
64
81
  */
65
- createV1(orderId: string, request: Chrt.notifications.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
82
+ createV1(orderId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
66
83
  private __createV1;
84
+ /**
85
+ * Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
86
+ *
87
+ * @param {string} sessionId
88
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
89
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Chrt.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.notifications.adHoc.createForSessionV1("session_id", {
95
+ * schema_version: 1,
96
+ * directory_entry_id: "directory_entry_id"
97
+ * })
98
+ */
99
+ createForSessionV1(sessionId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
100
+ private __createForSessionV1;
67
101
  /**
68
102
  * Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
69
103
  *
@@ -90,11 +90,82 @@ export class AdHoc {
90
90
  }
91
91
  });
92
92
  }
93
+ /**
94
+ * Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
95
+ *
96
+ * @param {string} sessionId
97
+ * @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
98
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link Chrt.UnprocessableEntityError}
101
+ *
102
+ * @example
103
+ * await client.notifications.adHoc.listBySessionIdV1("session_id", {
104
+ * page: 1,
105
+ * page_size: 1
106
+ * })
107
+ */
108
+ listBySessionIdV1(sessionId, request = {}, requestOptions) {
109
+ return core.HttpResponsePromise.fromPromise(this.__listBySessionIdV1(sessionId, request, requestOptions));
110
+ }
111
+ __listBySessionIdV1(sessionId_1) {
112
+ return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
113
+ var _a, _b, _c, _d, _e, _f;
114
+ const { page, page_size: pageSize } = request;
115
+ const _queryParams = {};
116
+ if (page !== undefined) {
117
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
118
+ }
119
+ if (pageSize !== undefined) {
120
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
121
+ }
122
+ 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);
123
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
124
+ 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, `notifications/ad_hoc/list_by_session_id/v1/${encodeURIComponent(sessionId)}`),
125
+ method: "GET",
126
+ headers: _headers,
127
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
128
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
129
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
130
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
131
+ });
132
+ if (_response.ok) {
133
+ return { data: _response.body, rawResponse: _response.rawResponse };
134
+ }
135
+ if (_response.error.reason === "status-code") {
136
+ switch (_response.error.statusCode) {
137
+ case 422:
138
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
139
+ default:
140
+ throw new errors.ChrtError({
141
+ statusCode: _response.error.statusCode,
142
+ body: _response.error.body,
143
+ rawResponse: _response.rawResponse,
144
+ });
145
+ }
146
+ }
147
+ switch (_response.error.reason) {
148
+ case "non-json":
149
+ throw new errors.ChrtError({
150
+ statusCode: _response.error.statusCode,
151
+ body: _response.error.rawBody,
152
+ rawResponse: _response.rawResponse,
153
+ });
154
+ case "timeout":
155
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/ad_hoc/list_by_session_id/v1/{session_id}.");
156
+ case "unknown":
157
+ throw new errors.ChrtError({
158
+ message: _response.error.errorMessage,
159
+ rawResponse: _response.rawResponse,
160
+ });
161
+ }
162
+ });
163
+ }
93
164
  /**
94
165
  * Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
95
166
  *
96
167
  * @param {string} orderId
97
- * @param {Chrt.notifications.NotificationIntentAdHocClientCreate1} request
168
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
98
169
  * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
99
170
  *
100
171
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -156,6 +227,72 @@ export class AdHoc {
156
227
  }
157
228
  });
158
229
  }
230
+ /**
231
+ * Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
232
+ *
233
+ * @param {string} sessionId
234
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
235
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
236
+ *
237
+ * @throws {@link Chrt.UnprocessableEntityError}
238
+ *
239
+ * @example
240
+ * await client.notifications.adHoc.createForSessionV1("session_id", {
241
+ * schema_version: 1,
242
+ * directory_entry_id: "directory_entry_id"
243
+ * })
244
+ */
245
+ createForSessionV1(sessionId, request, requestOptions) {
246
+ return core.HttpResponsePromise.fromPromise(this.__createForSessionV1(sessionId, request, requestOptions));
247
+ }
248
+ __createForSessionV1(sessionId, request, requestOptions) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ var _a, _b, _c, _d;
251
+ 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);
252
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
253
+ 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, `notifications/ad_hoc/create_for_session/v1/${encodeURIComponent(sessionId)}`),
254
+ method: "POST",
255
+ headers: _headers,
256
+ contentType: "application/json",
257
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
258
+ requestType: "json",
259
+ body: request,
260
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
261
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
262
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
263
+ });
264
+ if (_response.ok) {
265
+ return { data: _response.body, rawResponse: _response.rawResponse };
266
+ }
267
+ if (_response.error.reason === "status-code") {
268
+ switch (_response.error.statusCode) {
269
+ case 422:
270
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
271
+ default:
272
+ throw new errors.ChrtError({
273
+ statusCode: _response.error.statusCode,
274
+ body: _response.error.body,
275
+ rawResponse: _response.rawResponse,
276
+ });
277
+ }
278
+ }
279
+ switch (_response.error.reason) {
280
+ case "non-json":
281
+ throw new errors.ChrtError({
282
+ statusCode: _response.error.statusCode,
283
+ body: _response.error.rawBody,
284
+ rawResponse: _response.rawResponse,
285
+ });
286
+ case "timeout":
287
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/ad_hoc/create_for_session/v1/{session_id}.");
288
+ case "unknown":
289
+ throw new errors.ChrtError({
290
+ message: _response.error.errorMessage,
291
+ rawResponse: _response.rawResponse,
292
+ });
293
+ }
294
+ });
295
+ }
159
296
  /**
160
297
  * Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
161
298
  *
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1
9
+ * }
10
+ */
11
+ export interface AdHocListBySessionIdV1Request {
12
+ page?: number | null;
13
+ page_size?: number | null;
14
+ }
@@ -1,2 +1,2 @@
1
1
  export { type AdHocListByOrderIdV1Request } from "./AdHocListByOrderIdV1Request.mjs";
2
- export { type NotificationIntentAdHocClientCreate1 } from "./NotificationIntentAdHocClientCreate1.mjs";
2
+ export { type AdHocListBySessionIdV1Request } from "./AdHocListBySessionIdV1Request.mjs";
@@ -93,21 +93,58 @@ export declare class OperationsTaskLists {
93
93
  createV1(request: Chrt.operations.OperationsTaskListClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
94
94
  private __createV1;
95
95
  /**
96
- * Replaces an OperationsTaskList's `entries` array wholesale covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
96
+ * Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)
97
97
  *
98
98
  * @param {string} taskListId
99
- * @param {Chrt.operations.OperationsTaskListSetEntries1} request
99
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
100
100
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
101
101
  *
102
102
  * @throws {@link Chrt.UnprocessableEntityError}
103
103
  *
104
104
  * @example
105
- * await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
105
+ * await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
106
+ * task_type: "review_order_details",
107
+ * title: "title",
108
+ * description: "description"
109
+ * })
110
+ */
111
+ addEntryV1(taskListId: string, request: Chrt.OperationsTaskListEntryClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
112
+ private __addEntryV1;
113
+ /**
114
+ * Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)
115
+ *
116
+ * @param {string} taskListId
117
+ * @param {string} entryUuid
118
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
119
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @throws {@link Chrt.UnprocessableEntityError}
122
+ *
123
+ * @example
124
+ * await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
125
+ * task_type: "review_order_details",
126
+ * title: "title",
127
+ * description: "description"
128
+ * })
129
+ */
130
+ editEntryV1(taskListId: string, entryUuid: string, request: Chrt.OperationsTaskListEntryClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
131
+ private __editEntryV1;
132
+ /**
133
+ * Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)
134
+ *
135
+ * @param {string} taskListId
136
+ * @param {string} entryUuid
137
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
138
+ *
139
+ * @throws {@link Chrt.UnprocessableEntityError}
140
+ *
141
+ * @example
142
+ * await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
106
143
  */
107
- setEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListSetEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
108
- private __setEntriesV1;
144
+ removeEntryV1(taskListId: string, entryUuid: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
145
+ private __removeEntryV1;
109
146
  /**
110
- * Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
147
+ * Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
111
148
  *
112
149
  * @param {string} taskListId
113
150
  * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
@@ -164,7 +201,7 @@ export declare class OperationsTaskLists {
164
201
  applyToCaseV1(taskListId: string, caseId: string, request?: Chrt.operations.OperationsTaskListsApplyToCaseV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string[]>;
165
202
  private __applyToCaseV1;
166
203
  /**
167
- * 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)
204
+ * 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/cancelled tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
168
205
  *
169
206
  * @param {string} taskListId
170
207
  * @param {string} caseId
@@ -173,9 +210,9 @@ export declare class OperationsTaskLists {
173
210
  * @throws {@link Chrt.UnprocessableEntityError}
174
211
  *
175
212
  * @example
176
- * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
213
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
177
214
  */
178
- removeFromCaseV1(taskListId: string, caseId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRemoveFromCaseRes1>;
179
- private __removeFromCaseV1;
215
+ removeNotStartedTasksFromCaseV1(taskListId: string, caseId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRemoveFromCaseRes1>;
216
+ private __removeNotStartedTasksFromCaseV1;
180
217
  protected _getAuthorizationHeader(): Promise<string | undefined>;
181
218
  }
@@ -289,26 +289,30 @@ export class OperationsTaskLists {
289
289
  });
290
290
  }
291
291
  /**
292
- * Replaces an OperationsTaskList's `entries` array wholesale covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
292
+ * Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)
293
293
  *
294
294
  * @param {string} taskListId
295
- * @param {Chrt.operations.OperationsTaskListSetEntries1} request
295
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
296
296
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
297
297
  *
298
298
  * @throws {@link Chrt.UnprocessableEntityError}
299
299
  *
300
300
  * @example
301
- * await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
301
+ * await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
302
+ * task_type: "review_order_details",
303
+ * title: "title",
304
+ * description: "description"
305
+ * })
302
306
  */
303
- setEntriesV1(taskListId, request = {}, requestOptions) {
304
- return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
307
+ addEntryV1(taskListId, request, requestOptions) {
308
+ return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
305
309
  }
306
- __setEntriesV1(taskListId_1) {
307
- return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
310
+ __addEntryV1(taskListId, request, requestOptions) {
311
+ return __awaiter(this, void 0, void 0, function* () {
308
312
  var _a, _b, _c, _d;
309
313
  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);
310
314
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
311
- 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/set/v1/${encodeURIComponent(taskListId)}`),
315
+ 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)}`),
312
316
  method: "POST",
313
317
  headers: _headers,
314
318
  contentType: "application/json",
@@ -342,7 +346,135 @@ export class OperationsTaskLists {
342
346
  rawResponse: _response.rawResponse,
343
347
  });
344
348
  case "timeout":
345
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
349
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
350
+ case "unknown":
351
+ throw new errors.ChrtError({
352
+ message: _response.error.errorMessage,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ });
357
+ }
358
+ /**
359
+ * Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)
360
+ *
361
+ * @param {string} taskListId
362
+ * @param {string} entryUuid
363
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
364
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
365
+ *
366
+ * @throws {@link Chrt.UnprocessableEntityError}
367
+ *
368
+ * @example
369
+ * await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
370
+ * task_type: "review_order_details",
371
+ * title: "title",
372
+ * description: "description"
373
+ * })
374
+ */
375
+ editEntryV1(taskListId, entryUuid, request, requestOptions) {
376
+ return core.HttpResponsePromise.fromPromise(this.__editEntryV1(taskListId, entryUuid, request, requestOptions));
377
+ }
378
+ __editEntryV1(taskListId, entryUuid, request, requestOptions) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ var _a, _b, _c, _d;
381
+ 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);
382
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
383
+ 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/edit/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(entryUuid)}`),
384
+ method: "PATCH",
385
+ headers: _headers,
386
+ contentType: "application/json",
387
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
388
+ requestType: "json",
389
+ body: request,
390
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
391
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
392
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
393
+ });
394
+ if (_response.ok) {
395
+ return { data: _response.body, rawResponse: _response.rawResponse };
396
+ }
397
+ if (_response.error.reason === "status-code") {
398
+ switch (_response.error.statusCode) {
399
+ case 422:
400
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
401
+ default:
402
+ throw new errors.ChrtError({
403
+ statusCode: _response.error.statusCode,
404
+ body: _response.error.body,
405
+ rawResponse: _response.rawResponse,
406
+ });
407
+ }
408
+ }
409
+ switch (_response.error.reason) {
410
+ case "non-json":
411
+ throw new errors.ChrtError({
412
+ statusCode: _response.error.statusCode,
413
+ body: _response.error.rawBody,
414
+ rawResponse: _response.rawResponse,
415
+ });
416
+ case "timeout":
417
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}.");
418
+ case "unknown":
419
+ throw new errors.ChrtError({
420
+ message: _response.error.errorMessage,
421
+ rawResponse: _response.rawResponse,
422
+ });
423
+ }
424
+ });
425
+ }
426
+ /**
427
+ * Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)
428
+ *
429
+ * @param {string} taskListId
430
+ * @param {string} entryUuid
431
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
432
+ *
433
+ * @throws {@link Chrt.UnprocessableEntityError}
434
+ *
435
+ * @example
436
+ * await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
437
+ */
438
+ removeEntryV1(taskListId, entryUuid, requestOptions) {
439
+ return core.HttpResponsePromise.fromPromise(this.__removeEntryV1(taskListId, entryUuid, requestOptions));
440
+ }
441
+ __removeEntryV1(taskListId, entryUuid, requestOptions) {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ var _a, _b, _c, _d;
444
+ 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);
445
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
446
+ 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)}/${encodeURIComponent(entryUuid)}`),
447
+ method: "DELETE",
448
+ headers: _headers,
449
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
450
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
451
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
452
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
453
+ });
454
+ if (_response.ok) {
455
+ return { data: _response.body, rawResponse: _response.rawResponse };
456
+ }
457
+ if (_response.error.reason === "status-code") {
458
+ switch (_response.error.statusCode) {
459
+ case 422:
460
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
461
+ default:
462
+ throw new errors.ChrtError({
463
+ statusCode: _response.error.statusCode,
464
+ body: _response.error.body,
465
+ rawResponse: _response.rawResponse,
466
+ });
467
+ }
468
+ }
469
+ switch (_response.error.reason) {
470
+ case "non-json":
471
+ throw new errors.ChrtError({
472
+ statusCode: _response.error.statusCode,
473
+ body: _response.error.rawBody,
474
+ rawResponse: _response.rawResponse,
475
+ });
476
+ case "timeout":
477
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}.");
346
478
  case "unknown":
347
479
  throw new errors.ChrtError({
348
480
  message: _response.error.errorMessage,
@@ -352,7 +484,7 @@ export class OperationsTaskLists {
352
484
  });
353
485
  }
354
486
  /**
355
- * Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
487
+ * Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
356
488
  *
357
489
  * @param {string} taskListId
358
490
  * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
@@ -601,7 +733,7 @@ export class OperationsTaskLists {
601
733
  });
602
734
  }
603
735
  /**
604
- * 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)
736
+ * 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/cancelled tasks are kept. Returns deleted and kept counts. | authz: min_org_role=operator | () -> (OperationsTaskListRemoveFromCaseRes1)
605
737
  *
606
738
  * @param {string} taskListId
607
739
  * @param {string} caseId
@@ -610,17 +742,17 @@ export class OperationsTaskLists {
610
742
  * @throws {@link Chrt.UnprocessableEntityError}
611
743
  *
612
744
  * @example
613
- * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
745
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
614
746
  */
615
- removeFromCaseV1(taskListId, caseId, requestOptions) {
616
- return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
747
+ removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
748
+ return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
617
749
  }
618
- __removeFromCaseV1(taskListId, caseId, requestOptions) {
750
+ __removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
619
751
  return __awaiter(this, void 0, void 0, function* () {
620
752
  var _a, _b, _c, _d;
621
753
  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);
622
754
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
623
- 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)}`),
755
+ 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_not_started_tasks_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
624
756
  method: "POST",
625
757
  headers: _headers,
626
758
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -654,7 +786,7 @@ export class OperationsTaskLists {
654
786
  rawResponse: _response.rawResponse,
655
787
  });
656
788
  case "timeout":
657
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_from_case/v1/{task_list_id}/{case_id}.");
789
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_not_started_tasks_from_case/v1/{task_list_id}/{case_id}.");
658
790
  case "unknown":
659
791
  throw new errors.ChrtError({
660
792
  message: _response.error.errorMessage,
@@ -14,5 +14,5 @@ export interface OperationsTaskListClientCreate1 {
14
14
  name: string;
15
15
  description?: string | null;
16
16
  tags?: string[];
17
- entries?: Chrt.OperationsTaskListEntry1[];
17
+ entries?: Chrt.OperationsTaskListEntryClientCreate1[];
18
18
  }
@@ -6,5 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface OperationsTaskListReorderEntries1 {
9
- entry_ids?: string[];
9
+ entry_uuids?: string[];
10
10
  }
@@ -1,6 +1,5 @@
1
1
  export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.mjs";
2
2
  export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.mjs";
3
3
  export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.mjs";
4
- export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.mjs";
5
4
  export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.mjs";
6
5
  export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.mjs";
@@ -112,7 +112,25 @@ export declare class OperationsTasks {
112
112
  createV1(request: Chrt.operations.OperationsTaskClientCreate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
113
113
  private __createV1;
114
114
  /**
115
- * 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)
115
+ * Sets deadline_timestamp on multiple OperationsTasks in one call, each scoped to the caller's organization. Task ids that don't exist or belong to another org are silently skipped; the response reports how many were updated. | authz: min_org_role=operator | (OperationsTasksBulkUpdateDeadlinesReq1) -> (OperationsTasksBulkUpdateDeadlinesRes1)
116
+ *
117
+ * @param {Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1} request
118
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Chrt.UnprocessableEntityError}
121
+ *
122
+ * @example
123
+ * await client.operations.operationsTasks.bulkUpdateDeadlinesV1({
124
+ * operations_task_deadline_updates: [{
125
+ * task_id: "task_id",
126
+ * deadline_timestamp: "2024-01-15T09:30:00Z"
127
+ * }]
128
+ * })
129
+ */
130
+ bulkUpdateDeadlinesV1(request: Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksBulkUpdateDeadlinesRes1>;
131
+ private __bulkUpdateDeadlinesV1;
132
+ /**
133
+ * Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
116
134
  *
117
135
  * @param {string} taskId
118
136
  * @param {Chrt.operations.OperationsTaskStatusReq} request