@chrt-inc/typescript-sdk 1.772.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 (231) 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/operations/resources/operationsTaskLists/client/Client.d.ts +47 -10
  21. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +149 -17
  22. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  23. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  24. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  25. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -1
  26. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +71 -1
  27. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.ts +16 -0
  28. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
  30. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
  31. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
  32. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +4 -0
  33. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  35. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +29 -24
  36. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +54 -51
  37. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +0 -2
  38. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.ts +24 -0
  39. 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
  40. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +14 -0
  41. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +0 -3
  42. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +3 -3
  43. package/dist/cjs/api/types/AlertCallback.d.ts +7 -0
  44. package/dist/cjs/api/types/AlertCallback.js +5 -0
  45. package/dist/cjs/api/types/AlertEvent.d.ts +6 -0
  46. package/dist/cjs/api/types/AlertEvent.js +5 -0
  47. package/dist/cjs/api/types/AlertMessage.d.ts +10 -0
  48. package/dist/cjs/api/types/AlertMessage.js +5 -0
  49. package/dist/cjs/api/types/AlertNameValue.d.ts +7 -0
  50. package/dist/cjs/api/types/AlertNameValue.js +5 -0
  51. package/dist/cjs/api/types/AlertNameValues.d.ts +7 -0
  52. package/dist/cjs/api/types/AlertNameValues.js +5 -0
  53. package/dist/cjs/api/types/AlertRuleEnvelope.d.ts +7 -0
  54. package/dist/cjs/api/types/AlertRuleEnvelope.js +5 -0
  55. package/dist/cjs/api/types/CiriumAirportResources.d.ts +9 -0
  56. package/dist/cjs/api/types/CiriumAirportResources.js +5 -0
  57. package/dist/cjs/api/types/CiriumDate.d.ts +6 -0
  58. package/dist/cjs/api/types/CiriumDate.js +5 -0
  59. package/dist/cjs/api/types/{FlightAwareWebhookResponse.d.ts → CiriumFlightAlertsWebhookResponse.d.ts} +1 -1
  60. package/dist/cjs/api/types/CiriumFlightAlertsWebhookResponse.js +5 -0
  61. package/dist/cjs/api/types/CiriumFlightStatus.d.ts +15 -0
  62. package/dist/cjs/api/types/CiriumFlightStatus.js +5 -0
  63. package/dist/cjs/api/types/CiriumOperationalTimes.d.ts +17 -0
  64. package/dist/cjs/api/types/CiriumOperationalTimes.js +5 -0
  65. package/dist/cjs/api/types/ConnectionSearchByEnum.d.ts +8 -0
  66. package/dist/cjs/api/types/ConnectionSearchByEnum.js +10 -0
  67. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.d.ts +8 -0
  68. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.js +10 -0
  69. package/dist/cjs/api/types/Driver1.d.ts +0 -1
  70. package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
  71. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
  72. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
  73. package/dist/cjs/api/types/FlightConnection.d.ts +10 -0
  74. package/dist/cjs/api/types/FlightConnection.js +5 -0
  75. package/dist/cjs/api/types/FlightConnectionLeg.d.ts +22 -0
  76. package/dist/cjs/api/types/FlightConnectionLeg.js +5 -0
  77. package/dist/cjs/api/types/FlightConnectionsSearchRes.d.ts +7 -0
  78. package/dist/cjs/api/types/FlightConnectionsSearchRes.js +5 -0
  79. package/dist/cjs/api/types/FlightLeg1.d.ts +3 -2
  80. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  81. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts +7 -0
  82. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.js +5 -0
  83. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  84. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  85. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  86. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +1 -1
  87. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
  88. package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
  89. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +7 -0
  90. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.js +5 -0
  91. package/dist/cjs/api/types/OrderBuilderReq.d.ts +2 -0
  92. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  93. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  94. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  95. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  96. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  97. package/dist/cjs/api/types/Session1.d.ts +3 -6
  98. package/dist/cjs/api/types/index.d.ts +20 -4
  99. package/dist/cjs/api/types/index.js +20 -4
  100. package/dist/cjs/version.d.ts +1 -1
  101. package/dist/cjs/version.js +1 -1
  102. package/dist/esm/Client.d.mts +3 -0
  103. package/dist/esm/Client.mjs +7 -2
  104. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
  105. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
  106. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
  107. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
  108. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
  109. package/dist/esm/api/resources/flights/client/Client.d.mts +52 -0
  110. package/dist/esm/api/resources/flights/client/Client.mjs +98 -0
  111. package/dist/esm/api/resources/flights/client/index.d.mts +2 -0
  112. package/dist/esm/api/resources/flights/client/index.mjs +1 -0
  113. package/dist/esm/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.mts +45 -0
  114. package/dist/esm/api/resources/flights/client/requests/index.d.mts +1 -0
  115. package/dist/esm/api/resources/flights/client/requests/index.mjs +1 -0
  116. package/dist/esm/api/resources/flights/index.d.mts +1 -0
  117. package/dist/esm/api/resources/flights/index.mjs +1 -0
  118. package/dist/esm/api/resources/index.d.mts +2 -0
  119. package/dist/esm/api/resources/index.mjs +2 -0
  120. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +47 -10
  121. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +149 -17
  122. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  123. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  124. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  125. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -1
  126. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +71 -1
  127. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.mts +16 -0
  128. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  129. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
  130. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
  131. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
  132. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +4 -0
  133. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  134. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  135. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +29 -24
  136. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +54 -51
  137. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +0 -2
  138. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.mts +24 -0
  139. 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
  140. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +14 -0
  141. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +0 -3
  142. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +3 -3
  143. package/dist/esm/api/types/AlertCallback.d.mts +7 -0
  144. package/dist/esm/api/types/AlertCallback.mjs +4 -0
  145. package/dist/esm/api/types/AlertEvent.d.mts +6 -0
  146. package/dist/esm/api/types/AlertEvent.mjs +4 -0
  147. package/dist/esm/api/types/AlertMessage.d.mts +10 -0
  148. package/dist/esm/api/types/AlertMessage.mjs +4 -0
  149. package/dist/esm/api/types/AlertNameValue.d.mts +7 -0
  150. package/dist/esm/api/types/AlertNameValue.mjs +4 -0
  151. package/dist/esm/api/types/AlertNameValues.d.mts +7 -0
  152. package/dist/esm/api/types/AlertNameValues.mjs +4 -0
  153. package/dist/esm/api/types/AlertRuleEnvelope.d.mts +7 -0
  154. package/dist/esm/api/types/AlertRuleEnvelope.mjs +4 -0
  155. package/dist/esm/api/types/CiriumAirportResources.d.mts +9 -0
  156. package/dist/esm/api/types/CiriumAirportResources.mjs +4 -0
  157. package/dist/esm/api/types/CiriumDate.d.mts +6 -0
  158. package/dist/esm/api/types/CiriumDate.mjs +4 -0
  159. package/dist/esm/api/types/{FlightAwareWebhookResponse.d.mts → CiriumFlightAlertsWebhookResponse.d.mts} +1 -1
  160. package/dist/esm/api/types/CiriumFlightAlertsWebhookResponse.mjs +4 -0
  161. package/dist/esm/api/types/CiriumFlightStatus.d.mts +15 -0
  162. package/dist/esm/api/types/CiriumFlightStatus.mjs +4 -0
  163. package/dist/esm/api/types/CiriumOperationalTimes.d.mts +17 -0
  164. package/dist/esm/api/types/CiriumOperationalTimes.mjs +4 -0
  165. package/dist/esm/api/types/ConnectionSearchByEnum.d.mts +8 -0
  166. package/dist/esm/api/types/ConnectionSearchByEnum.mjs +7 -0
  167. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.d.mts +8 -0
  168. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.mjs +7 -0
  169. package/dist/esm/api/types/Driver1.d.mts +0 -1
  170. package/dist/esm/api/types/DriverListRes.d.mts +1 -1
  171. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
  172. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
  173. package/dist/esm/api/types/FlightConnection.d.mts +10 -0
  174. package/dist/esm/api/types/FlightConnection.mjs +4 -0
  175. package/dist/esm/api/types/FlightConnectionLeg.d.mts +22 -0
  176. package/dist/esm/api/types/FlightConnectionLeg.mjs +4 -0
  177. package/dist/esm/api/types/FlightConnectionsSearchRes.d.mts +7 -0
  178. package/dist/esm/api/types/FlightConnectionsSearchRes.mjs +4 -0
  179. package/dist/esm/api/types/FlightLeg1.d.mts +3 -2
  180. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  181. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.d.mts +7 -0
  182. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.mjs +4 -0
  183. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  184. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  185. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  186. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +1 -1
  187. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
  188. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
  189. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +7 -0
  190. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.mjs +4 -0
  191. package/dist/esm/api/types/OrderBuilderReq.d.mts +2 -0
  192. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  193. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  194. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  195. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  196. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  197. package/dist/esm/api/types/Session1.d.mts +3 -6
  198. package/dist/esm/api/types/index.d.mts +20 -4
  199. package/dist/esm/api/types/index.mjs +20 -4
  200. package/dist/esm/version.d.mts +1 -1
  201. package/dist/esm/version.mjs +1 -1
  202. package/package.json +1 -1
  203. package/reference.md +472 -32
  204. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  205. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +0 -16
  206. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +0 -16
  207. package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +0 -16
  208. package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +0 -17
  209. package/dist/cjs/api/types/FlightStatusEnum.d.ts +0 -14
  210. package/dist/cjs/api/types/FlightStatusEnum.js +0 -16
  211. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  212. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +0 -16
  213. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +0 -16
  214. package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +0 -16
  215. package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +0 -17
  216. package/dist/esm/api/types/FlightStatusEnum.d.mts +0 -14
  217. package/dist/esm/api/types/FlightStatusEnum.mjs +0 -13
  218. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
  219. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js} +0 -0
  220. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.js → flights/client/requests/FlightConnectionsSearchReq.js} +0 -0
  221. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.js} +0 -0
  222. /package/dist/cjs/api/{types/FlightAwareAlertFlight.js → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.js} +0 -0
  223. /package/dist/cjs/api/{types/FlightAwareAlertPayload.js → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.js} +0 -0
  224. /package/dist/cjs/api/{types/FlightAwareWebhookResponse.js → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.js} +0 -0
  225. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
  226. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs} +0 -0
  227. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.mjs → flights/client/requests/FlightConnectionsSearchReq.mjs} +0 -0
  228. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.mjs} +0 -0
  229. /package/dist/esm/api/{types/FlightAwareAlertFlight.mjs → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.mjs} +0 -0
  230. /package/dist/esm/api/{types/FlightAwareAlertPayload.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.mjs} +0 -0
  231. /package/dist/esm/api/{types/FlightAwareWebhookResponse.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.mjs} +0 -0
@@ -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);
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * origin: "origin",
9
+ * destination: "destination",
10
+ * search_by: "departure_time",
11
+ * local_date_time: "2024-01-15T09:30:00Z"
12
+ * }
13
+ */
14
+ export interface FlightConnectionsSearchReq {
15
+ /** Departure airport code (IATA preferred), e.g. 'EWR'. */
16
+ origin: string;
17
+ /** Arrival airport code (IATA preferred), e.g. 'LAX'. */
18
+ destination: string;
19
+ /** Whether local_date_time is a departure constraint (leaving after) or an arrival constraint (arriving before). */
20
+ search_by: Chrt.ConnectionSearchByEnum;
21
+ /** Return the earliest or latest flights within the search window. */
22
+ prefer?: Chrt.ConnectionSearchPreferenceEnum;
23
+ /** Airport-local date+time (naive, no offset). Origin-local for DEPARTURE_TIME, destination-local for ARRIVAL_TIME. */
24
+ local_date_time: string;
25
+ /** Search window size in hours relative to local_date_time. Default 6; Cirium max 24. */
26
+ num_hours?: number;
27
+ /** Max stops per itinerary. 0 returns nonstop only. */
28
+ max_connections?: number;
29
+ /** Max number of connections to return. */
30
+ max_results?: number;
31
+ /** Include airports sharing the origin's city code. */
32
+ allow_nearby_departures?: boolean;
33
+ /** Include airports sharing the destination's city code. */
34
+ allow_nearby_arrivals?: boolean;
35
+ /** Minimum layover in minutes; useful for cargo since published connect times are not auto-applied for cargo payloads. */
36
+ minimum_connect_time_minutes?: number | null;
37
+ /** Restrict to these airline codes. */
38
+ include_airlines?: string[] | null;
39
+ /** Exclude these airline codes. */
40
+ exclude_airlines?: string[] | null;
41
+ /** Restrict connections to pass through these airports. */
42
+ include_airports?: string[] | null;
43
+ /** Exclude these airports from connections. */
44
+ exclude_airports?: string[] | null;
45
+ }
@@ -0,0 +1 @@
1
+ export { type FlightConnectionsSearchReq } from "./FlightConnectionsSearchReq.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);
@@ -1,5 +1,6 @@
1
1
  export * as orgs from "./orgs/index.js";
2
2
  export * as shipping from "./shipping/index.js";
3
+ export * as flights from "./flights/index.js";
3
4
  export * as utils from "./utils/index.js";
4
5
  export * as analytics from "./analytics/index.js";
5
6
  export * as billing from "./billing/index.js";
@@ -10,5 +11,6 @@ export * as operations from "./operations/index.js";
10
11
  export * as tracking from "./tracking/index.js";
11
12
  export * as trackingIntegrations from "./trackingIntegrations/index.js";
12
13
  export * as users from "./users/index.js";
14
+ export * from "./flights/client/requests/index.js";
13
15
  export * from "./orgs/client/requests/index.js";
14
16
  export * from "./utils/client/requests/index.js";
@@ -36,9 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.shipping = exports.orgs = void 0;
39
+ exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
40
40
  exports.orgs = __importStar(require("./orgs/index.js"));
41
41
  exports.shipping = __importStar(require("./shipping/index.js"));
42
+ exports.flights = __importStar(require("./flights/index.js"));
42
43
  exports.utils = __importStar(require("./utils/index.js"));
43
44
  exports.analytics = __importStar(require("./analytics/index.js"));
44
45
  exports.billing = __importStar(require("./billing/index.js"));
@@ -49,5 +50,6 @@ exports.operations = __importStar(require("./operations/index.js"));
49
50
  exports.tracking = __importStar(require("./tracking/index.js"));
50
51
  exports.trackingIntegrations = __importStar(require("./trackingIntegrations/index.js"));
51
52
  exports.users = __importStar(require("./users/index.js"));
53
+ __exportStar(require("./flights/client/requests/index.js"), exports);
52
54
  __exportStar(require("./orgs/client/requests/index.js"), exports);
53
55
  __exportStar(require("./utils/client/requests/index.js"), exports);
@@ -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
  }
@@ -325,26 +325,30 @@ class OperationsTaskLists {
325
325
  });
326
326
  }
327
327
  /**
328
- * 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)
328
+ * 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)
329
329
  *
330
330
  * @param {string} taskListId
331
- * @param {Chrt.operations.OperationsTaskListSetEntries1} request
331
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
332
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.operationsTaskLists.setEntriesV1("task_list_id")
337
+ * await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
338
+ * task_type: "review_order_details",
339
+ * title: "title",
340
+ * description: "description"
341
+ * })
338
342
  */
339
- setEntriesV1(taskListId, request = {}, requestOptions) {
340
- return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
343
+ addEntryV1(taskListId, request, requestOptions) {
344
+ return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
341
345
  }
342
- __setEntriesV1(taskListId_1) {
343
- return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
346
+ __addEntryV1(taskListId, request, requestOptions) {
347
+ return __awaiter(this, void 0, void 0, function* () {
344
348
  var _a, _b, _c, _d;
345
349
  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
350
  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/operations_task_lists/entries/set/v1/${encodeURIComponent(taskListId)}`),
351
+ 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
352
  method: "POST",
349
353
  headers: _headers,
350
354
  contentType: "application/json",
@@ -378,7 +382,135 @@ class OperationsTaskLists {
378
382
  rawResponse: _response.rawResponse,
379
383
  });
380
384
  case "timeout":
381
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
385
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
386
+ case "unknown":
387
+ throw new errors.ChrtError({
388
+ message: _response.error.errorMessage,
389
+ rawResponse: _response.rawResponse,
390
+ });
391
+ }
392
+ });
393
+ }
394
+ /**
395
+ * 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)
396
+ *
397
+ * @param {string} taskListId
398
+ * @param {string} entryUuid
399
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
400
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link Chrt.UnprocessableEntityError}
403
+ *
404
+ * @example
405
+ * await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
406
+ * task_type: "review_order_details",
407
+ * title: "title",
408
+ * description: "description"
409
+ * })
410
+ */
411
+ editEntryV1(taskListId, entryUuid, request, requestOptions) {
412
+ return core.HttpResponsePromise.fromPromise(this.__editEntryV1(taskListId, entryUuid, request, requestOptions));
413
+ }
414
+ __editEntryV1(taskListId, entryUuid, request, requestOptions) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ var _a, _b, _c, _d;
417
+ 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);
418
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
419
+ 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)}`),
420
+ method: "PATCH",
421
+ headers: _headers,
422
+ contentType: "application/json",
423
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
424
+ requestType: "json",
425
+ body: request,
426
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
427
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
428
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
429
+ });
430
+ if (_response.ok) {
431
+ return { data: _response.body, rawResponse: _response.rawResponse };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 422:
436
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
437
+ default:
438
+ throw new errors.ChrtError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ rawResponse: _response.rawResponse,
442
+ });
443
+ }
444
+ }
445
+ switch (_response.error.reason) {
446
+ case "non-json":
447
+ throw new errors.ChrtError({
448
+ statusCode: _response.error.statusCode,
449
+ body: _response.error.rawBody,
450
+ rawResponse: _response.rawResponse,
451
+ });
452
+ case "timeout":
453
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}.");
454
+ case "unknown":
455
+ throw new errors.ChrtError({
456
+ message: _response.error.errorMessage,
457
+ rawResponse: _response.rawResponse,
458
+ });
459
+ }
460
+ });
461
+ }
462
+ /**
463
+ * 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)
464
+ *
465
+ * @param {string} taskListId
466
+ * @param {string} entryUuid
467
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
468
+ *
469
+ * @throws {@link Chrt.UnprocessableEntityError}
470
+ *
471
+ * @example
472
+ * await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
473
+ */
474
+ removeEntryV1(taskListId, entryUuid, requestOptions) {
475
+ return core.HttpResponsePromise.fromPromise(this.__removeEntryV1(taskListId, entryUuid, requestOptions));
476
+ }
477
+ __removeEntryV1(taskListId, entryUuid, requestOptions) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ var _a, _b, _c, _d;
480
+ 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);
481
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
482
+ 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)}`),
483
+ method: "DELETE",
484
+ headers: _headers,
485
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
486
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
487
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
488
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
489
+ });
490
+ if (_response.ok) {
491
+ return { data: _response.body, rawResponse: _response.rawResponse };
492
+ }
493
+ if (_response.error.reason === "status-code") {
494
+ switch (_response.error.statusCode) {
495
+ case 422:
496
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
497
+ default:
498
+ throw new errors.ChrtError({
499
+ statusCode: _response.error.statusCode,
500
+ body: _response.error.body,
501
+ rawResponse: _response.rawResponse,
502
+ });
503
+ }
504
+ }
505
+ switch (_response.error.reason) {
506
+ case "non-json":
507
+ throw new errors.ChrtError({
508
+ statusCode: _response.error.statusCode,
509
+ body: _response.error.rawBody,
510
+ rawResponse: _response.rawResponse,
511
+ });
512
+ case "timeout":
513
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}.");
382
514
  case "unknown":
383
515
  throw new errors.ChrtError({
384
516
  message: _response.error.errorMessage,
@@ -388,7 +520,7 @@ class OperationsTaskLists {
388
520
  });
389
521
  }
390
522
  /**
391
- * 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)
523
+ * 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)
392
524
  *
393
525
  * @param {string} taskListId
394
526
  * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
@@ -637,7 +769,7 @@ class OperationsTaskLists {
637
769
  });
638
770
  }
639
771
  /**
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)
772
+ * 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)
641
773
  *
642
774
  * @param {string} taskListId
643
775
  * @param {string} caseId
@@ -646,17 +778,17 @@ class OperationsTaskLists {
646
778
  * @throws {@link Chrt.UnprocessableEntityError}
647
779
  *
648
780
  * @example
649
- * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
781
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
650
782
  */
651
- removeFromCaseV1(taskListId, caseId, requestOptions) {
652
- return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
783
+ removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
784
+ return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
653
785
  }
654
- __removeFromCaseV1(taskListId, caseId, requestOptions) {
786
+ __removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
655
787
  return __awaiter(this, void 0, void 0, function* () {
656
788
  var _a, _b, _c, _d;
657
789
  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
790
  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)}`),
791
+ 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)}`),
660
792
  method: "POST",
661
793
  headers: _headers,
662
794
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -690,7 +822,7 @@ class OperationsTaskLists {
690
822
  rawResponse: _response.rawResponse,
691
823
  });
692
824
  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}.");
825
+ 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}.");
694
826
  case "unknown":
695
827
  throw new errors.ChrtError({
696
828
  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.js";
2
2
  export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
3
3
  export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
4
- export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.js";
5
4
  export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.js";
6
5
  export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
@@ -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
@@ -431,7 +431,77 @@ class OperationsTasks {
431
431
  });
432
432
  }
433
433
  /**
434
- * 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)
434
+ * 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)
435
+ *
436
+ * @param {Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1} request
437
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
438
+ *
439
+ * @throws {@link Chrt.UnprocessableEntityError}
440
+ *
441
+ * @example
442
+ * await client.operations.operationsTasks.bulkUpdateDeadlinesV1({
443
+ * operations_task_deadline_updates: [{
444
+ * task_id: "task_id",
445
+ * deadline_timestamp: "2024-01-15T09:30:00Z"
446
+ * }]
447
+ * })
448
+ */
449
+ bulkUpdateDeadlinesV1(request, requestOptions) {
450
+ return core.HttpResponsePromise.fromPromise(this.__bulkUpdateDeadlinesV1(request, requestOptions));
451
+ }
452
+ __bulkUpdateDeadlinesV1(request, requestOptions) {
453
+ return __awaiter(this, void 0, void 0, function* () {
454
+ var _a, _b, _c, _d;
455
+ 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);
456
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
457
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "operations/operations_tasks/bulk_update_deadlines/v1"),
458
+ method: "PATCH",
459
+ headers: _headers,
460
+ contentType: "application/json",
461
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
462
+ requestType: "json",
463
+ body: request,
464
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
465
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
466
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
467
+ });
468
+ if (_response.ok) {
469
+ return {
470
+ data: _response.body,
471
+ rawResponse: _response.rawResponse,
472
+ };
473
+ }
474
+ if (_response.error.reason === "status-code") {
475
+ switch (_response.error.statusCode) {
476
+ case 422:
477
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
478
+ default:
479
+ throw new errors.ChrtError({
480
+ statusCode: _response.error.statusCode,
481
+ body: _response.error.body,
482
+ rawResponse: _response.rawResponse,
483
+ });
484
+ }
485
+ }
486
+ switch (_response.error.reason) {
487
+ case "non-json":
488
+ throw new errors.ChrtError({
489
+ statusCode: _response.error.statusCode,
490
+ body: _response.error.rawBody,
491
+ rawResponse: _response.rawResponse,
492
+ });
493
+ case "timeout":
494
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/bulk_update_deadlines/v1.");
495
+ case "unknown":
496
+ throw new errors.ChrtError({
497
+ message: _response.error.errorMessage,
498
+ rawResponse: _response.rawResponse,
499
+ });
500
+ }
501
+ });
502
+ }
503
+ /**
504
+ * 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)
435
505
  *
436
506
  * @param {string} taskId
437
507
  * @param {Chrt.operations.OperationsTaskStatusReq} request
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * operations_task_deadline_updates: [{
9
+ * task_id: "task_id",
10
+ * deadline_timestamp: "2024-01-15T09:30:00Z"
11
+ * }]
12
+ * }
13
+ */
14
+ export interface OperationsTasksBulkUpdateDeadlinesReq1 {
15
+ operations_task_deadline_updates: Chrt.OperationsTaskDeadlineUpdate1[];
16
+ }
@@ -1,5 +1,6 @@
1
1
  export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
2
2
  export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
3
3
  export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
4
+ export { type OperationsTasksBulkUpdateDeadlinesReq1 } from "./OperationsTasksBulkUpdateDeadlinesReq1.js";
4
5
  export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
5
6
  export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";