@chrt-inc/typescript-sdk 1.319.0 → 1.321.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 (338) hide show
  1. package/dist/cjs/Client.d.ts +6 -0
  2. package/dist/cjs/Client.js +38 -28
  3. package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
  4. package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
  6. package/dist/cjs/api/resources/connections/client/Client.js +4 -4
  7. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
  8. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
  9. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
  10. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
  11. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
  12. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
  13. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
  14. package/dist/cjs/api/resources/dev/client/Client.js +4 -4
  15. package/dist/cjs/api/resources/drivers/client/Client.d.ts +59 -61
  16. package/dist/cjs/api/resources/drivers/client/Client.js +140 -139
  17. package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +20 -0
  18. package/dist/cjs/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.ts → DriverClientUpdate1.d.ts} +4 -5
  19. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -0
  20. package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +2 -3
  21. package/dist/cjs/api/resources/index.d.ts +3 -0
  22. package/dist/cjs/api/resources/index.js +4 -1
  23. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  24. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  25. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  26. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  27. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
  28. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
  29. package/dist/cjs/api/resources/orders/client/Client.d.ts +13 -0
  30. package/dist/cjs/api/resources/orders/client/Client.js +59 -0
  31. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
  33. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
  36. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
  37. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
  40. package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
  41. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
  42. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
  43. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
  44. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
  45. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
  48. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
  49. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  50. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  51. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +37 -24
  52. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +96 -40
  53. package/dist/cjs/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +19 -0
  54. package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +1 -2
  55. package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +2 -3
  56. package/dist/cjs/api/resources/taskArtifacts/resources/index.js +3 -7
  57. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.ts +9 -9
  58. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.js +11 -11
  59. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  60. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.js +127 -0
  61. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.js +2 -0
  62. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.js +17 -0
  64. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +79 -33
  65. package/dist/cjs/api/resources/taskGroups/client/Client.js +220 -67
  66. package/dist/cjs/api/resources/taskGroups/client/requests/AddMessageReq.d.ts +13 -0
  67. package/dist/cjs/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.ts} +2 -2
  68. package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +1 -0
  69. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +3 -2
  70. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.ts +13 -0
  71. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.d.ts +13 -0
  72. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +4 -2
  73. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -0
  74. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +18 -2
  75. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +4 -0
  76. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +4 -0
  77. package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
  78. package/dist/cjs/api/resources/taskGroups/resources/index.js +4 -1
  79. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.d.ts +46 -0
  80. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.js +127 -0
  81. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.js +2 -0
  82. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.js +17 -0
  84. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  85. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.js +127 -0
  86. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.js +2 -0
  88. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.ts +1 -0
  89. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.js +17 -0
  90. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +59 -0
  91. package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.js +24 -87
  92. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.js +2 -0
  94. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.d.ts +1 -0
  95. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.js +17 -0
  96. package/dist/cjs/api/resources/tasks/client/Client.d.ts +107 -0
  97. package/dist/cjs/api/resources/tasks/client/Client.js +377 -0
  98. package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +21 -0
  99. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
  101. package/dist/cjs/api/resources/tasks/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/tasks/index.js +17 -0
  103. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
  104. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
  105. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
  106. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
  107. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  108. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  109. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  110. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  111. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  112. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +3 -3
  113. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +2 -2
  114. package/dist/cjs/api/types/Driver1.d.ts +6 -4
  115. package/dist/cjs/api/types/DriverStatusEnum.d.ts +3 -3
  116. package/dist/cjs/api/types/DriverStatusEnum.js +2 -2
  117. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.d.ts +6 -0
  118. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.js +5 -0
  119. package/dist/cjs/api/types/Task1.d.ts +1 -0
  120. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  121. package/dist/cjs/api/types/TaskArtifactClientCreate1.d.ts +8 -0
  122. package/dist/cjs/api/types/TaskArtifactClientCreate1.js +5 -0
  123. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +15 -0
  124. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.js +5 -0
  125. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  126. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  127. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
  128. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  129. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +15 -0
  130. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.js +5 -0
  131. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  132. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  133. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  134. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  135. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  136. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  137. package/dist/cjs/api/types/index.d.ts +4 -0
  138. package/dist/cjs/api/types/index.js +4 -0
  139. package/dist/cjs/version.d.ts +1 -1
  140. package/dist/cjs/version.js +1 -1
  141. package/dist/esm/Client.d.mts +6 -0
  142. package/dist/esm/Client.mjs +12 -2
  143. package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
  144. package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
  145. package/dist/esm/api/resources/cargos/client/index.d.mts +1 -0
  146. package/dist/esm/api/resources/cargos/client/index.mjs +1 -0
  147. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
  148. package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
  149. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
  150. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
  151. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
  152. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
  153. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
  154. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
  155. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
  156. package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
  157. package/dist/esm/api/resources/drivers/client/Client.d.mts +59 -61
  158. package/dist/esm/api/resources/drivers/client/Client.mjs +140 -139
  159. package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +20 -0
  160. package/dist/esm/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.mts → DriverClientUpdate1.d.mts} +4 -5
  161. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -0
  162. package/dist/esm/api/resources/drivers/client/requests/index.d.mts +2 -3
  163. package/dist/esm/api/resources/index.d.mts +3 -0
  164. package/dist/esm/api/resources/index.mjs +3 -0
  165. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  166. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  167. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  168. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  169. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
  170. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
  171. package/dist/esm/api/resources/orders/client/Client.d.mts +13 -0
  172. package/dist/esm/api/resources/orders/client/Client.mjs +59 -0
  173. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
  174. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
  175. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
  176. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
  177. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
  178. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
  179. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
  180. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
  181. package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
  182. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
  183. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
  184. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
  185. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
  186. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
  187. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
  188. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
  189. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
  190. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
  191. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  192. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  193. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +37 -24
  194. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +96 -40
  195. package/dist/esm/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +19 -0
  196. package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +1 -2
  197. package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +2 -3
  198. package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +2 -3
  199. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.mts +9 -9
  200. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.mjs +9 -9
  201. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.d.mts +1 -0
  202. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.mjs +1 -0
  203. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  204. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  205. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  206. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.mjs +1 -0
  207. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.d.mts +1 -0
  208. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.mjs +1 -0
  209. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +79 -33
  210. package/dist/esm/api/resources/taskGroups/client/Client.mjs +218 -65
  211. package/dist/esm/api/resources/taskGroups/client/requests/AddMessageReq.d.mts +13 -0
  212. package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.mts} +2 -2
  213. package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +1 -0
  214. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +3 -2
  215. package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.mts +13 -0
  216. package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.d.mts +13 -0
  217. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +4 -2
  218. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -0
  219. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +18 -2
  220. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +4 -0
  221. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +4 -0
  222. package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
  223. package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
  224. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.d.mts +46 -0
  225. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.mjs +90 -0
  226. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.d.mts +1 -0
  227. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.mjs +1 -0
  228. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.d.mts +1 -0
  229. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.mjs +1 -0
  230. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  231. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  232. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  233. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.mjs +1 -0
  234. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.mts +1 -0
  235. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.mjs +1 -0
  236. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +59 -0
  237. package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.mjs +22 -85
  238. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  239. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -0
  240. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.d.mts +1 -0
  241. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.mjs +1 -0
  242. package/dist/esm/api/resources/tasks/client/Client.d.mts +107 -0
  243. package/dist/esm/api/resources/tasks/client/Client.mjs +340 -0
  244. package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +21 -0
  245. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +1 -0
  246. package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
  247. package/dist/esm/api/resources/tasks/index.d.mts +1 -0
  248. package/dist/esm/api/resources/tasks/index.mjs +1 -0
  249. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
  250. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
  251. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
  252. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
  253. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  254. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  255. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  256. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  257. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  258. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +3 -3
  259. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +2 -2
  260. package/dist/esm/api/types/Driver1.d.mts +6 -4
  261. package/dist/esm/api/types/DriverStatusEnum.d.mts +3 -3
  262. package/dist/esm/api/types/DriverStatusEnum.mjs +2 -2
  263. package/dist/esm/api/types/DriverUpdateAvailabilityReq.d.mts +6 -0
  264. package/dist/esm/api/types/DriverUpdateAvailabilityReq.mjs +4 -0
  265. package/dist/esm/api/types/Task1.d.mts +1 -0
  266. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  267. package/dist/esm/api/types/TaskArtifactClientCreate1.d.mts +8 -0
  268. package/dist/esm/api/types/TaskArtifactClientCreate1.mjs +4 -0
  269. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +15 -0
  270. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.mjs +4 -0
  271. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  272. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  273. package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
  274. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  275. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +15 -0
  276. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.mjs +4 -0
  277. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  278. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  279. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  280. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  281. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  282. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  283. package/dist/esm/api/types/index.d.mts +4 -0
  284. package/dist/esm/api/types/index.mjs +4 -0
  285. package/dist/esm/version.d.mts +1 -1
  286. package/dist/esm/version.mjs +1 -1
  287. package/package.json +1 -1
  288. package/reference.md +1163 -267
  289. package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +0 -17
  290. package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +0 -14
  291. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
  292. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
  293. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -70
  294. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
  295. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +0 -12
  296. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +0 -11
  297. package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +0 -17
  298. package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +0 -14
  299. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
  300. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
  301. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -70
  302. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
  303. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +0 -12
  304. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +0 -11
  305. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/client/index.d.ts +0 -0
  306. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/client/index.js +0 -0
  307. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.ts +0 -0
  308. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.js +0 -0
  309. /package/dist/cjs/api/resources/drivers/client/requests/{DriverCreateReq.js → DriverClientCreate1.js} +0 -0
  310. /package/dist/cjs/api/resources/drivers/client/requests/{SetDriverActivationReq.js → DriverClientUpdate1.js} +0 -0
  311. /package/dist/cjs/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.js → taskArtifacts/client/requests/AddTaskArtifactReq.js} +0 -0
  312. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts → cjs/api/resources/taskArtifacts/resources/s3Object/client/index.d.ts} +0 -0
  313. /package/dist/cjs/api/resources/taskArtifacts/resources/{images/client/requests → s3Object/client}/index.js +0 -0
  314. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.d.ts +0 -0
  315. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.js +0 -0
  316. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs → cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.ts} +0 -0
  317. /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → taskGroups/client/requests/AddMessageReq.js} +0 -0
  318. /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.js} +0 -0
  319. /package/dist/cjs/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js → taskGroups/client/requests/UpdateCourierOrgReq.js} +0 -0
  320. /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.js → UpdateDriverReq.js} +0 -0
  321. /package/dist/{esm/api/resources/taskArtifacts/resources/images/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts} +0 -0
  322. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.ts +0 -0
  323. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.js +0 -0
  324. /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.js → tasks/client/requests/AddTaskToGroupReq.js} +0 -0
  325. /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.mts +0 -0
  326. /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.mjs +0 -0
  327. /package/dist/esm/api/resources/drivers/client/requests/{DriverCreateReq.mjs → DriverClientCreate1.mjs} +0 -0
  328. /package/dist/esm/api/resources/drivers/client/requests/{SetDriverActivationReq.mjs → DriverClientUpdate1.mjs} +0 -0
  329. /package/dist/esm/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.mjs → taskArtifacts/client/requests/AddTaskArtifactReq.mjs} +0 -0
  330. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3Object}/index.d.mts +0 -0
  331. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3Object}/index.mjs +0 -0
  332. /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → taskGroups/client/requests/AddMessageReq.mjs} +0 -0
  333. /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs} +0 -0
  334. /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs → taskGroups/client/requests/UpdateCourierOrgReq.mjs} +0 -0
  335. /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.mjs → UpdateDriverReq.mjs} +0 -0
  336. /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.mts +0 -0
  337. /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.mjs +0 -0
  338. /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.mjs → tasks/client/requests/AddTaskToGroupReq.mjs} +0 -0
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DriverStatusEnum = "not_assigned" | "assigned" | "route_in_progress";
4
+ export type DriverStatusEnum = "unassigned" | "assigned" | "in_progress";
5
5
  export declare const DriverStatusEnum: {
6
- readonly NotAssigned: "not_assigned";
6
+ readonly Unassigned: "unassigned";
7
7
  readonly Assigned: "assigned";
8
- readonly RouteInProgress: "route_in_progress";
8
+ readonly InProgress: "in_progress";
9
9
  };
@@ -5,7 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DriverStatusEnum = void 0;
7
7
  exports.DriverStatusEnum = {
8
- NotAssigned: "not_assigned",
8
+ Unassigned: "unassigned",
9
9
  Assigned: "assigned",
10
- RouteInProgress: "route_in_progress",
10
+ InProgress: "in_progress",
11
11
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DriverUpdateAvailabilityReq {
5
+ available: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,7 @@ export interface Task1 {
28
28
  draft_started_at_timestamp: string;
29
29
  staged_at_timestamp?: string | null;
30
30
  completed_at_timestamp?: string | null;
31
+ skipped_at_timestamp?: string | null;
31
32
  exception_at_timestamp?: string | null;
32
33
  order_cancelled?: boolean;
33
34
  task_notification_email_ids?: string[];
@@ -27,5 +27,6 @@ export interface TaskArtifact1 {
27
27
  draft_started_at_timestamp: string;
28
28
  staged_at_timestamp?: string | null;
29
29
  completed_at_timestamp?: string | null;
30
+ skipped_at_timestamp?: string | null;
30
31
  exception_at_timestamp?: string | null;
31
32
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface TaskArtifactClientCreate1 {
6
+ schema_version: number;
7
+ type: Chrt.TaskArtifactTypeEnum1;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TaskArtifactS3ObjectMetadata1 {
5
+ schema_version: number;
6
+ _id: string;
7
+ task_artifact_id: string;
8
+ uploaded_at_timestamp: string;
9
+ /** Must be a string starting with `user_` */
10
+ uploaded_by_user_id: string;
11
+ /** Must be a string starting with `org_` */
12
+ uploaded_by_org_id: string;
13
+ s3_key_prefix?: "oort/task_artifact_s3_object_metadata";
14
+ blurhash?: string | null;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskArtifactStatusEnum1 = "draft" | "staged" | "completed" | "exception";
4
+ export type TaskArtifactStatusEnum1 = "draft" | "staged" | "completed" | "skipped" | "exception";
5
5
  export declare const TaskArtifactStatusEnum1: {
6
6
  readonly Draft: "draft";
7
7
  readonly Staged: "staged";
8
8
  readonly Completed: "completed";
9
+ readonly Skipped: "skipped";
9
10
  readonly Exception: "exception";
10
11
  };
@@ -8,5 +8,6 @@ exports.TaskArtifactStatusEnum1 = {
8
8
  Draft: "draft",
9
9
  Staged: "staged",
10
10
  Completed: "completed",
11
+ Skipped: "skipped",
11
12
  Exception: "exception",
12
13
  };
@@ -6,7 +6,6 @@ export interface TaskClientUpdate1 {
6
6
  location?: Chrt.LocationFeature | null;
7
7
  action?: TaskClientUpdate1.Action | null;
8
8
  time_windows?: Chrt.TimeWindow1[];
9
- order_placer_comments?: string | null;
10
9
  shipper_contact_ids?: string[];
11
10
  flight_number?: string | null;
12
11
  }
@@ -21,6 +21,7 @@ export interface TaskGroup1 {
21
21
  staged_at_timestamp?: string | null;
22
22
  in_progress_at_timestamp?: string | null;
23
23
  completed_at_timestamp?: string | null;
24
+ skipped_at_timestamp?: string | null;
24
25
  exception_at_timestamp?: string | null;
25
26
  order_cancelled?: boolean;
26
27
  task_group_type: Chrt.TaskGroupTypeEnum1;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TaskGroupS3ObjectMetadata1 {
5
+ schema_version: number;
6
+ _id: string;
7
+ task_group_id: string;
8
+ uploaded_at_timestamp: string;
9
+ /** Must be a string starting with `user_` */
10
+ uploaded_by_user_id: string;
11
+ /** Must be a string starting with `org_` */
12
+ uploaded_by_org_id: string;
13
+ s3_key_prefix?: "oort/task_group_s3_object_metadata";
14
+ blurhash?: string | null;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskGroupSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "exception_at_timestamp";
4
+ export type TaskGroupSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "skipped_at_timestamp" | "exception_at_timestamp";
5
5
  export declare const TaskGroupSortByEnum: {
6
6
  readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
7
7
  readonly StagedAtTimestamp: "staged_at_timestamp";
8
8
  readonly InProgressAtTimestamp: "in_progress_at_timestamp";
9
9
  readonly CompletedAtTimestamp: "completed_at_timestamp";
10
+ readonly SkippedAtTimestamp: "skipped_at_timestamp";
10
11
  readonly ExceptionAtTimestamp: "exception_at_timestamp";
11
12
  };
@@ -9,5 +9,6 @@ exports.TaskGroupSortByEnum = {
9
9
  StagedAtTimestamp: "staged_at_timestamp",
10
10
  InProgressAtTimestamp: "in_progress_at_timestamp",
11
11
  CompletedAtTimestamp: "completed_at_timestamp",
12
+ SkippedAtTimestamp: "skipped_at_timestamp",
12
13
  ExceptionAtTimestamp: "exception_at_timestamp",
13
14
  };
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskGroupStatusEnum1 = "draft" | "staged" | "in_progress" | "completed" | "exception";
4
+ export type TaskGroupStatusEnum1 = "draft" | "staged" | "in_progress" | "completed" | "skipped" | "exception";
5
5
  export declare const TaskGroupStatusEnum1: {
6
6
  readonly Draft: "draft";
7
7
  readonly Staged: "staged";
8
8
  readonly InProgress: "in_progress";
9
9
  readonly Completed: "completed";
10
+ readonly Skipped: "skipped";
10
11
  readonly Exception: "exception";
11
12
  };
@@ -9,5 +9,6 @@ exports.TaskGroupStatusEnum1 = {
9
9
  Staged: "staged",
10
10
  InProgress: "in_progress",
11
11
  Completed: "completed",
12
+ Skipped: "skipped",
12
13
  Exception: "exception",
13
14
  };
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskStatusEnum1 = "draft" | "staged" | "completed" | "exception";
4
+ export type TaskStatusEnum1 = "draft" | "staged" | "completed" | "skipped" | "exception";
5
5
  export declare const TaskStatusEnum1: {
6
6
  readonly Draft: "draft";
7
7
  readonly Staged: "staged";
8
8
  readonly Completed: "completed";
9
+ readonly Skipped: "skipped";
9
10
  readonly Exception: "exception";
10
11
  };
@@ -8,5 +8,6 @@ exports.TaskStatusEnum1 = {
8
8
  Draft: "draft",
9
9
  Staged: "staged",
10
10
  Completed: "completed",
11
+ Skipped: "skipped",
11
12
  Exception: "exception",
12
13
  };
@@ -28,6 +28,7 @@ export * from "./DecodedJwtWithOrgAndUserId.js";
28
28
  export * from "./Device1.js";
29
29
  export * from "./Driver1.js";
30
30
  export * from "./DriverStatusEnum.js";
31
+ export * from "./DriverUpdateAvailabilityReq.js";
31
32
  export * from "./DriverUpdateRes.js";
32
33
  export * from "./FlightTaskActionEnum1.js";
33
34
  export * from "./ForwarderConnectionRes.js";
@@ -100,7 +101,9 @@ export * from "./StatementStatusEnum.js";
100
101
  export * from "./StripeConnectInvoiceStatusEnum.js";
101
102
  export * from "./Task1.js";
102
103
  export * from "./TaskArtifact1.js";
104
+ export * from "./TaskArtifactClientCreate1.js";
103
105
  export * from "./TaskArtifactNotificationPreferences1.js";
106
+ export * from "./TaskArtifactS3ObjectMetadata1.js";
104
107
  export * from "./TaskArtifactStatusEnum1.js";
105
108
  export * from "./TaskArtifactTypeEnum1.js";
106
109
  export * from "./TaskClientCreate1.js";
@@ -111,6 +114,7 @@ export * from "./TaskGroupExpanded.js";
111
114
  export * from "./TaskGroupExpandedListRes.js";
112
115
  export * from "./TaskGroupMessage1.js";
113
116
  export * from "./TaskGroupMileage1.js";
117
+ export * from "./TaskGroupS3ObjectMetadata1.js";
114
118
  export * from "./TaskGroupSortByEnum.js";
115
119
  export * from "./TaskGroupStatusEnum1.js";
116
120
  export * from "./TaskGroupTypeEnum1.js";
@@ -44,6 +44,7 @@ __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
44
44
  __exportStar(require("./Device1.js"), exports);
45
45
  __exportStar(require("./Driver1.js"), exports);
46
46
  __exportStar(require("./DriverStatusEnum.js"), exports);
47
+ __exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
47
48
  __exportStar(require("./DriverUpdateRes.js"), exports);
48
49
  __exportStar(require("./FlightTaskActionEnum1.js"), exports);
49
50
  __exportStar(require("./ForwarderConnectionRes.js"), exports);
@@ -116,7 +117,9 @@ __exportStar(require("./StatementStatusEnum.js"), exports);
116
117
  __exportStar(require("./StripeConnectInvoiceStatusEnum.js"), exports);
117
118
  __exportStar(require("./Task1.js"), exports);
118
119
  __exportStar(require("./TaskArtifact1.js"), exports);
120
+ __exportStar(require("./TaskArtifactClientCreate1.js"), exports);
119
121
  __exportStar(require("./TaskArtifactNotificationPreferences1.js"), exports);
122
+ __exportStar(require("./TaskArtifactS3ObjectMetadata1.js"), exports);
120
123
  __exportStar(require("./TaskArtifactStatusEnum1.js"), exports);
121
124
  __exportStar(require("./TaskArtifactTypeEnum1.js"), exports);
122
125
  __exportStar(require("./TaskClientCreate1.js"), exports);
@@ -127,6 +130,7 @@ __exportStar(require("./TaskGroupExpanded.js"), exports);
127
130
  __exportStar(require("./TaskGroupExpandedListRes.js"), exports);
128
131
  __exportStar(require("./TaskGroupMessage1.js"), exports);
129
132
  __exportStar(require("./TaskGroupMileage1.js"), exports);
133
+ __exportStar(require("./TaskGroupS3ObjectMetadata1.js"), exports);
130
134
  __exportStar(require("./TaskGroupSortByEnum.js"), exports);
131
135
  __exportStar(require("./TaskGroupStatusEnum1.js"), exports);
132
136
  __exportStar(require("./TaskGroupTypeEnum1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.319.0";
1
+ export declare const SDK_VERSION = "1.321.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.319.0";
4
+ exports.SDK_VERSION = "1.321.0";
@@ -17,11 +17,13 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
17
17
  import { Dev } from "./api/resources/dev/client/Client.mjs";
18
18
  import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
19
19
  import { Drivers } from "./api/resources/drivers/client/Client.mjs";
20
+ import { Cargos } from "./api/resources/cargos/client/Client.mjs";
20
21
  import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
21
22
  import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
22
23
  import { Orders } from "./api/resources/orders/client/Client.mjs";
23
24
  import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
24
25
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
26
+ import { Tasks } from "./api/resources/tasks/client/Client.mjs";
25
27
  import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
26
28
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
27
29
  import { Root } from "./api/resources/root/client/Client.mjs";
@@ -69,11 +71,13 @@ export declare class ChrtClient {
69
71
  protected _dev: Dev | undefined;
70
72
  protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
71
73
  protected _drivers: Drivers | undefined;
74
+ protected _cargos: Cargos | undefined;
72
75
  protected _taskArtifacts: TaskArtifacts | undefined;
73
76
  protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
74
77
  protected _orders: Orders | undefined;
75
78
  protected _orderDrafts: OrderDrafts | undefined;
76
79
  protected _taskGroups: TaskGroups | undefined;
80
+ protected _tasks: Tasks | undefined;
77
81
  protected _shipperContactInfo: ShipperContactInfo | undefined;
78
82
  protected _orgs: Orgs | undefined;
79
83
  protected _root: Root | undefined;
@@ -97,11 +101,13 @@ export declare class ChrtClient {
97
101
  get dev(): Dev;
98
102
  get taskArtifactNotifications(): TaskArtifactNotifications;
99
103
  get drivers(): Drivers;
104
+ get cargos(): Cargos;
100
105
  get taskArtifacts(): TaskArtifacts;
101
106
  get offChrtShipperOrg(): OffChrtShipperOrg;
102
107
  get orders(): Orders;
103
108
  get orderDrafts(): OrderDrafts;
104
109
  get taskGroups(): TaskGroups;
110
+ get tasks(): Tasks;
105
111
  get shipperContactInfo(): ShipperContactInfo;
106
112
  get orgs(): Orgs;
107
113
  get root(): Root;
@@ -17,11 +17,13 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
17
17
  import { Dev } from "./api/resources/dev/client/Client.mjs";
18
18
  import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
19
19
  import { Drivers } from "./api/resources/drivers/client/Client.mjs";
20
+ import { Cargos } from "./api/resources/cargos/client/Client.mjs";
20
21
  import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
21
22
  import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
22
23
  import { Orders } from "./api/resources/orders/client/Client.mjs";
23
24
  import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
24
25
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
26
+ import { Tasks } from "./api/resources/tasks/client/Client.mjs";
25
27
  import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.mjs";
26
28
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
27
29
  import { Root } from "./api/resources/root/client/Client.mjs";
@@ -35,8 +37,8 @@ export class ChrtClient {
35
37
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
36
38
  "X-Fern-Language": "JavaScript",
37
39
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
38
- "X-Fern-SDK-Version": "1.319.0",
39
- "User-Agent": "@chrt-inc/typescript-sdk/1.319.0",
40
+ "X-Fern-SDK-Version": "1.321.0",
41
+ "User-Agent": "@chrt-inc/typescript-sdk/1.321.0",
40
42
  "X-Fern-Runtime": core.RUNTIME.type,
41
43
  "X-Fern-Runtime-Version": core.RUNTIME.version,
42
44
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -97,6 +99,10 @@ export class ChrtClient {
97
99
  var _a;
98
100
  return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
99
101
  }
102
+ get cargos() {
103
+ var _a;
104
+ return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Cargos(this._options)));
105
+ }
100
106
  get taskArtifacts() {
101
107
  var _a;
102
108
  return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
@@ -117,6 +123,10 @@ export class ChrtClient {
117
123
  var _a;
118
124
  return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
119
125
  }
126
+ get tasks() {
127
+ var _a;
128
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Tasks(this._options)));
129
+ }
120
130
  get shipperContactInfo() {
121
131
  var _a;
122
132
  return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new ShipperContactInfo(this._options)));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.mjs";
5
+ import * as core from "../../../../core/index.mjs";
6
+ import * as Chrt from "../../../index.mjs";
7
+ export declare namespace Cargos {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class Cargos {
31
+ protected readonly _options: Cargos.Options;
32
+ constructor(_options?: Cargos.Options);
33
+ /**
34
+ * Updates a cargo's details. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, or EXCEPTION status. | authz_personas=[lig_org_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
35
+ *
36
+ * @param {string} cargoId
37
+ * @param {Chrt.CargoClientUpdate1} request
38
+ * @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.cargos.updateV1("cargo_id", {})
44
+ */
45
+ updateV1(cargoId: string, request: Chrt.CargoClientUpdate1, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<string>;
46
+ private __updateV1;
47
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
48
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../environments.mjs";
14
+ import * as core from "../../../../core/index.mjs";
15
+ import * as Chrt from "../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
+ import * as errors from "../../../../errors/index.mjs";
18
+ export class Cargos {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Updates a cargo's details. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, or EXCEPTION status. | authz_personas=[lig_org_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
24
+ *
25
+ * @param {string} cargoId
26
+ * @param {Chrt.CargoClientUpdate1} request
27
+ * @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.cargos.updateV1("cargo_id", {})
33
+ */
34
+ updateV1(cargoId, request, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(cargoId, request, requestOptions));
36
+ }
37
+ __updateV1(cargoId, request, requestOptions) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ var _a, _b, _c, _d;
40
+ 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);
41
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
42
+ 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, `oort/cargos/update/v1/${encodeURIComponent(cargoId)}`),
43
+ method: "PATCH",
44
+ headers: _headers,
45
+ contentType: "application/json",
46
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
47
+ requestType: "json",
48
+ body: request,
49
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
50
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
51
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
52
+ });
53
+ if (_response.ok) {
54
+ return { data: _response.body, rawResponse: _response.rawResponse };
55
+ }
56
+ if (_response.error.reason === "status-code") {
57
+ switch (_response.error.statusCode) {
58
+ case 422:
59
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
60
+ default:
61
+ throw new errors.ChrtError({
62
+ statusCode: _response.error.statusCode,
63
+ body: _response.error.body,
64
+ rawResponse: _response.rawResponse,
65
+ });
66
+ }
67
+ }
68
+ switch (_response.error.reason) {
69
+ case "non-json":
70
+ throw new errors.ChrtError({
71
+ statusCode: _response.error.statusCode,
72
+ body: _response.error.rawBody,
73
+ rawResponse: _response.rawResponse,
74
+ });
75
+ case "timeout":
76
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/cargos/update/v1/{cargo_id}.");
77
+ case "unknown":
78
+ throw new errors.ChrtError({
79
+ message: _response.error.errorMessage,
80
+ rawResponse: _response.rawResponse,
81
+ });
82
+ }
83
+ });
84
+ }
85
+ _getAuthorizationHeader() {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const bearer = yield core.Supplier.get(this._options.token);
88
+ if (bearer != null) {
89
+ return `Bearer ${bearer}`;
90
+ }
91
+ return undefined;
92
+ });
93
+ }
94
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -40,7 +40,7 @@ export declare class Connections {
40
40
  get connectionToShipper(): ConnectionToShipper;
41
41
  get connectionToForwarder(): ConnectionToForwarder;
42
42
  /**
43
- * Lists shipper organizations based on the authenticated organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
43
+ * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
44
44
  *
45
45
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
46
46
  *
@@ -50,7 +50,7 @@ export declare class Connections {
50
50
  listShippersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperConnectionRes[]>;
51
51
  private __listShippersV1;
52
52
  /**
53
- * Lists courier organizations based on the authenticated organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
53
+ * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
54
54
  *
55
55
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
@@ -60,7 +60,7 @@ export declare class Connections {
60
60
  listCouriersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierConnectionRes[]>;
61
61
  private __listCouriersV1;
62
62
  /**
63
- * Lists forwarder organizations based on the authenticated organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
63
+ * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
64
64
  *
65
65
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
@@ -70,7 +70,7 @@ export declare class Connections {
70
70
  listForwardersV1(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderConnectionRes[]>;
71
71
  private __listForwardersV1;
72
72
  /**
73
- * Gets connection between authenticated org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
73
+ * Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
74
74
  *
75
75
  * @param {string} handle
76
76
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -35,7 +35,7 @@ export class Connections {
35
35
  return ((_a = this._connectionToForwarder) !== null && _a !== void 0 ? _a : (this._connectionToForwarder = new ConnectionToForwarder(this._options)));
36
36
  }
37
37
  /**
38
- * Lists shipper organizations based on the authenticated organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
38
+ * Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
39
39
  *
40
40
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
41
41
  *
@@ -86,7 +86,7 @@ export class Connections {
86
86
  });
87
87
  }
88
88
  /**
89
- * Lists courier organizations based on the authenticated organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
89
+ * Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
90
90
  *
91
91
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
92
92
  *
@@ -137,7 +137,7 @@ export class Connections {
137
137
  });
138
138
  }
139
139
  /**
140
- * Lists forwarder organizations based on the authenticated organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
140
+ * Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
141
141
  *
142
142
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
143
143
  *
@@ -188,7 +188,7 @@ export class Connections {
188
188
  });
189
189
  }
190
190
  /**
191
- * Gets connection between authenticated org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
191
+ * Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
192
192
  *
193
193
  * @param {string} handle
194
194
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class CourierPayDriverPayouts {
31
31
  protected readonly _options: CourierPayDriverPayouts.Options;
32
32
  constructor(_options?: CourierPayDriverPayouts.Options);
33
33
  /**
34
- * Retrieves a specific courier driver payout by ID for the authenticated organization.
34
+ * Retrieves a specific courier driver payout by ID for the caller's organization.
35
35
  *
36
36
  * @param {string} id
37
37
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,7 +44,7 @@ export declare class CourierPayDriverPayouts {
44
44
  getByIdV1(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverStatement1>;
45
45
  private __getByIdV1;
46
46
  /**
47
- * Lists all payouts for a specific driver within the authenticated organization.
47
+ * Lists all payouts for a specific driver within the caller's organization.
48
48
  *
49
49
  * @param {string} driverId
50
50
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.