@chrt-inc/typescript-sdk 1.318.0 → 1.320.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 (259) hide show
  1. package/dist/cjs/Client.d.ts +6 -3
  2. package/dist/cjs/Client.js +12 -7
  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/cargos/index.d.ts +1 -0
  6. package/dist/cjs/{exports.js → api/resources/cargos/index.js} +1 -1
  7. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
  8. package/dist/cjs/api/resources/connections/client/Client.js +4 -4
  9. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
  11. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
  12. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
  13. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
  15. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
  16. package/dist/cjs/api/resources/dev/client/Client.js +4 -4
  17. package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/drivers/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/index.d.ts +3 -3
  20. package/dist/cjs/api/resources/index.js +4 -4
  21. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  22. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  23. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  24. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  25. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
  26. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
  27. package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +7 -17
  28. package/dist/cjs/api/resources/orderDrafts/client/Client.js +11 -68
  29. package/dist/cjs/api/resources/orderDrafts/client/requests/index.d.ts +0 -2
  30. package/dist/cjs/api/resources/orderDrafts/index.d.ts +1 -1
  31. package/dist/cjs/api/resources/orderDrafts/index.js +1 -1
  32. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.d.ts +55 -0
  33. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.js +158 -0
  34. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/index.d.ts +2 -0
  35. package/dist/cjs/{core/exports.js → api/resources/orderDrafts/resources/expanded/client/index.js} +1 -1
  36. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +25 -0
  37. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/orderDrafts/resources/expanded/index.d.ts +2 -0
  39. package/dist/cjs/{core/form-data-utils → api/resources/orderDrafts/resources/expanded}/index.js +2 -4
  40. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +8 -0
  41. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +10 -0
  42. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/index.d.ts +1 -0
  43. package/dist/cjs/{core/file → api/resources/orderDrafts/resources/expanded/types}/index.js +1 -2
  44. package/dist/cjs/api/resources/orderDrafts/resources/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/orderDrafts/resources/index.js +4 -1
  46. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
  47. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
  48. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
  49. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
  50. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
  51. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
  52. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
  53. package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
  54. package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
  55. package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
  56. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
  57. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
  64. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  65. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  66. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +0 -60
  67. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +0 -246
  68. package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +0 -1
  69. package/dist/cjs/api/resources/taskArtifacts/client/index.js +0 -15
  70. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -31
  71. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +0 -128
  72. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +0 -1
  73. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +0 -15
  74. package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +0 -1
  75. package/dist/cjs/api/resources/taskArtifacts/resources/index.js +0 -4
  76. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
  77. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
  78. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
  79. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
  80. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  81. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  82. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
  83. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
  84. package/dist/cjs/api/types/{OrderDraftExpandedRes.d.ts → OrderDraftExpanded.d.ts} +5 -6
  85. package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -4
  86. package/dist/{esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → cjs/api/types/OrderDraftSortByEnum.d.ts} +1 -1
  87. package/dist/cjs/api/types/index.d.ts +2 -3
  88. package/dist/cjs/api/types/index.js +2 -3
  89. package/dist/cjs/core/index.d.ts +0 -2
  90. package/dist/cjs/core/index.js +1 -3
  91. package/dist/cjs/index.d.ts +0 -1
  92. package/dist/cjs/index.js +0 -4
  93. package/dist/cjs/version.d.ts +1 -1
  94. package/dist/cjs/version.js +1 -1
  95. package/dist/esm/Client.d.mts +6 -3
  96. package/dist/esm/Client.mjs +10 -5
  97. package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
  98. package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
  99. package/dist/esm/api/resources/cargos/index.d.mts +1 -0
  100. package/dist/esm/api/resources/cargos/index.mjs +1 -0
  101. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
  102. package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
  103. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
  104. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
  105. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
  106. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
  107. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
  108. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
  109. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
  110. package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
  111. package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -2
  112. package/dist/esm/api/resources/drivers/client/Client.mjs +2 -2
  113. package/dist/esm/api/resources/index.d.mts +3 -3
  114. package/dist/esm/api/resources/index.mjs +3 -3
  115. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  116. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  117. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  118. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  119. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
  120. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
  121. package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +7 -17
  122. package/dist/esm/api/resources/orderDrafts/client/Client.mjs +11 -68
  123. package/dist/esm/api/resources/orderDrafts/client/requests/index.d.mts +0 -2
  124. package/dist/esm/api/resources/orderDrafts/index.d.mts +1 -1
  125. package/dist/esm/api/resources/orderDrafts/index.mjs +1 -1
  126. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.d.mts +55 -0
  127. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.mjs +121 -0
  128. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.d.mts +2 -0
  129. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.mjs +1 -0
  130. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +25 -0
  131. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +1 -0
  132. package/dist/esm/api/resources/orderDrafts/resources/expanded/index.d.mts +2 -0
  133. package/dist/esm/api/resources/orderDrafts/resources/expanded/index.mjs +2 -0
  134. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +8 -0
  135. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +7 -0
  136. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.d.mts +1 -0
  137. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.mjs +1 -0
  138. package/dist/esm/api/resources/orderDrafts/resources/index.d.mts +3 -0
  139. package/dist/esm/api/resources/orderDrafts/resources/index.mjs +3 -0
  140. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
  141. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
  142. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
  143. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
  144. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
  146. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
  149. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
  150. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
  151. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
  152. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
  153. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
  154. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
  155. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
  156. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
  157. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
  158. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  159. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  160. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +0 -60
  161. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +0 -213
  162. package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +0 -1
  163. package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
  164. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -31
  165. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +0 -128
  166. package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +0 -1
  167. package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -1
  168. package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +0 -1
  169. package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +0 -1
  170. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
  171. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
  172. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
  173. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
  174. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  175. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  176. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
  177. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
  178. package/dist/esm/api/types/{OrderDraftExpandedRes.d.mts → OrderDraftExpanded.d.mts} +5 -6
  179. package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -4
  180. package/dist/esm/api/types/OrderDraftSortByEnum.d.mts +4 -0
  181. package/dist/esm/api/types/index.d.mts +2 -3
  182. package/dist/esm/api/types/index.mjs +2 -3
  183. package/dist/esm/core/index.d.mts +0 -2
  184. package/dist/esm/core/index.mjs +0 -2
  185. package/dist/esm/index.d.mts +0 -1
  186. package/dist/esm/index.mjs +0 -1
  187. package/dist/esm/version.d.mts +1 -1
  188. package/dist/esm/version.mjs +1 -1
  189. package/package.json +1 -1
  190. package/reference.md +208 -396
  191. package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.ts +0 -21
  192. package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.ts +0 -21
  193. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
  194. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
  195. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js +0 -5
  196. package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +0 -2
  197. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +0 -13
  198. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js +0 -5
  199. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
  200. package/dist/cjs/api/types/OrderDraftExpandedRes.js +0 -5
  201. package/dist/cjs/api/types/TaskDraftExpanded.d.ts +0 -10
  202. package/dist/cjs/api/types/TaskDraftExpanded.js +0 -5
  203. package/dist/cjs/api/types/TaskGroupDraftExpanded.d.ts +0 -10
  204. package/dist/cjs/api/types/TaskGroupDraftExpanded.js +0 -5
  205. package/dist/cjs/core/exports.d.ts +0 -1
  206. package/dist/cjs/core/file/exports.d.ts +0 -1
  207. package/dist/cjs/core/file/exports.js +0 -2
  208. package/dist/cjs/core/file/file.d.ts +0 -5
  209. package/dist/cjs/core/file/file.js +0 -203
  210. package/dist/cjs/core/file/index.d.ts +0 -2
  211. package/dist/cjs/core/file/types.d.ts +0 -66
  212. package/dist/cjs/core/file/types.js +0 -2
  213. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +0 -16
  214. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +0 -208
  215. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
  216. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +0 -12
  217. package/dist/cjs/core/form-data-utils/index.d.ts +0 -2
  218. package/dist/cjs/exports.d.ts +0 -1
  219. package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.mts +0 -21
  220. package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.mts +0 -21
  221. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
  222. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
  223. package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +0 -2
  224. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +0 -13
  225. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs +0 -4
  226. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
  227. package/dist/esm/api/types/OrderDraftExpandedRes.mjs +0 -4
  228. package/dist/esm/api/types/TaskDraftExpanded.d.mts +0 -10
  229. package/dist/esm/api/types/TaskDraftExpanded.mjs +0 -4
  230. package/dist/esm/api/types/TaskGroupDraftExpanded.d.mts +0 -10
  231. package/dist/esm/api/types/TaskGroupDraftExpanded.mjs +0 -4
  232. package/dist/esm/core/exports.d.mts +0 -1
  233. package/dist/esm/core/exports.mjs +0 -1
  234. package/dist/esm/core/file/exports.d.mts +0 -1
  235. package/dist/esm/core/file/file.d.mts +0 -5
  236. package/dist/esm/core/file/file.mjs +0 -167
  237. package/dist/esm/core/file/index.d.mts +0 -2
  238. package/dist/esm/core/file/index.mjs +0 -2
  239. package/dist/esm/core/file/types.d.mts +0 -66
  240. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +0 -16
  241. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +0 -170
  242. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +0 -1
  243. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +0 -9
  244. package/dist/esm/core/form-data-utils/index.d.mts +0 -2
  245. package/dist/esm/core/form-data-utils/index.mjs +0 -2
  246. package/dist/esm/exports.d.mts +0 -1
  247. package/dist/esm/exports.mjs +0 -1
  248. /package/dist/{esm/api/resources/taskArtifacts/client/requests/index.mjs → cjs/api/resources/cargos/client/index.d.ts} +0 -0
  249. /package/dist/cjs/api/resources/{taskArtifacts/client/requests → cargos/client}/index.js +0 -0
  250. /package/dist/cjs/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.js → resources/expanded/client/requests/ExpandedListV1Request.js} +0 -0
  251. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → orderDrafts/resources/expanded}/client/requests/index.js +0 -0
  252. /package/dist/cjs/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.js → types/OrderDraftExpanded.js} +0 -0
  253. /package/dist/cjs/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → types/OrderDraftSortByEnum.js} +0 -0
  254. /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/index.mjs → cargos/client/index.d.mts} +0 -0
  255. /package/dist/esm/{core/file/exports.mjs → api/resources/cargos/client/index.mjs} +0 -0
  256. /package/dist/esm/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.mjs → resources/expanded/client/requests/ExpandedListV1Request.mjs} +0 -0
  257. /package/dist/esm/{core/file/types.mjs → api/resources/orderDrafts/resources/expanded/client/requests/index.mjs} +0 -0
  258. /package/dist/esm/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.mjs → types/OrderDraftExpanded.mjs} +0 -0
  259. /package/dist/esm/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → types/OrderDraftSortByEnum.mjs} +0 -0
@@ -108,134 +108,6 @@ class Images {
108
108
  }
109
109
  });
110
110
  }
111
- /**
112
- * Uploads an image file to a task_artifact with automatic blurhash generation. | (UploadFile) -> (bool)
113
- *
114
- * @param {string} taskArtifactId
115
- * @param {Chrt.taskArtifacts.BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost} request
116
- * @param {Images.RequestOptions} requestOptions - Request-specific configuration.
117
- *
118
- * @throws {@link Chrt.UnprocessableEntityError}
119
- *
120
- * @example
121
- * import { createReadStream } from "fs";
122
- * await client.taskArtifacts.images.uploadByTaskArtifactIdV1("task_artifact_id", {
123
- * image: fs.createReadStream("/path/to/your/file")
124
- * })
125
- */
126
- uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions) {
127
- return core.HttpResponsePromise.fromPromise(this.__uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions));
128
- }
129
- __uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions) {
130
- return __awaiter(this, void 0, void 0, function* () {
131
- var _a, _b, _c, _d;
132
- const _request = yield core.newFormData();
133
- yield _request.appendFile("image", request.image);
134
- const _maybeEncodedRequest = yield _request.getRequest();
135
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
136
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
137
- 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/task_artifacts/images/upload/v1/${encodeURIComponent(taskArtifactId)}`),
138
- method: "POST",
139
- headers: _headers,
140
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
141
- requestType: "file",
142
- duplex: _maybeEncodedRequest.duplex,
143
- body: _maybeEncodedRequest.body,
144
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
145
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
146
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
147
- });
148
- if (_response.ok) {
149
- return { data: _response.body, rawResponse: _response.rawResponse };
150
- }
151
- if (_response.error.reason === "status-code") {
152
- switch (_response.error.statusCode) {
153
- case 422:
154
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
155
- default:
156
- throw new errors.ChrtError({
157
- statusCode: _response.error.statusCode,
158
- body: _response.error.body,
159
- rawResponse: _response.rawResponse,
160
- });
161
- }
162
- }
163
- switch (_response.error.reason) {
164
- case "non-json":
165
- throw new errors.ChrtError({
166
- statusCode: _response.error.statusCode,
167
- body: _response.error.rawBody,
168
- rawResponse: _response.rawResponse,
169
- });
170
- case "timeout":
171
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_artifacts/images/upload/v1/{task_artifact_id}.");
172
- case "unknown":
173
- throw new errors.ChrtError({
174
- message: _response.error.errorMessage,
175
- rawResponse: _response.rawResponse,
176
- });
177
- }
178
- });
179
- }
180
- /**
181
- * Deletes a task_artifact image from both S3 storage and database metadata. | () -> (bool)
182
- *
183
- * @param {string} taskArtifactS3ObjectMetadataId
184
- * @param {Images.RequestOptions} requestOptions - Request-specific configuration.
185
- *
186
- * @throws {@link Chrt.UnprocessableEntityError}
187
- *
188
- * @example
189
- * await client.taskArtifacts.images.deleteByMetadataIdV1("task_artifact_s3_object_metadata_id")
190
- */
191
- deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions) {
192
- return core.HttpResponsePromise.fromPromise(this.__deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions));
193
- }
194
- __deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions) {
195
- return __awaiter(this, void 0, void 0, function* () {
196
- var _a, _b, _c, _d;
197
- 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);
198
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
199
- 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/task_artifacts/images/delete/v1/${encodeURIComponent(taskArtifactS3ObjectMetadataId)}`),
200
- method: "DELETE",
201
- headers: _headers,
202
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
203
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
204
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
205
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
206
- });
207
- if (_response.ok) {
208
- return { data: _response.body, rawResponse: _response.rawResponse };
209
- }
210
- if (_response.error.reason === "status-code") {
211
- switch (_response.error.statusCode) {
212
- case 422:
213
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
214
- default:
215
- throw new errors.ChrtError({
216
- statusCode: _response.error.statusCode,
217
- body: _response.error.body,
218
- rawResponse: _response.rawResponse,
219
- });
220
- }
221
- }
222
- switch (_response.error.reason) {
223
- case "non-json":
224
- throw new errors.ChrtError({
225
- statusCode: _response.error.statusCode,
226
- body: _response.error.rawBody,
227
- rawResponse: _response.rawResponse,
228
- });
229
- case "timeout":
230
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/task_artifacts/images/delete/v1/{task_artifact_s3_object_metadata_id}.");
231
- case "unknown":
232
- throw new errors.ChrtError({
233
- message: _response.error.errorMessage,
234
- rawResponse: _response.rawResponse,
235
- });
236
- }
237
- });
238
- }
239
111
  _getAuthorizationHeader() {
240
112
  return __awaiter(this, void 0, void 0, function* () {
241
113
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,2 +1 @@
1
1
  export {};
2
- export * from "./requests/index.js";
@@ -1,17 +1,2 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests/index.js"), exports);
@@ -1,3 +1,2 @@
1
1
  export * as images from "./images/index.js";
2
2
  export * as blurhash from "./blurhash/index.js";
3
- export * from "./images/client/requests/index.js";
@@ -32,11 +32,7 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.blurhash = exports.images = void 0;
40
37
  exports.images = __importStar(require("./images/index.js"));
41
38
  exports.blurhash = __importStar(require("./blurhash/index.js"));
42
- __exportStar(require("./images/client/requests/index.js"), exports);
@@ -31,7 +31,7 @@ export declare class Devices {
31
31
  protected readonly _options: Devices.Options;
32
32
  constructor(_options?: Devices.Options);
33
33
  /**
34
- * Registers a tracking device to the authenticated user's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
34
+ * Registers a tracking device to the caller's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.tracking.DevicesRegisterToOrgReq1} request
37
37
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -75,7 +75,7 @@ export declare class Devices {
75
75
  deleteV1(request?: Chrt.tracking.DevicesDeleteV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
76
76
  private __deleteV1;
77
77
  /**
78
- * Retrieves a single device by its MAC address or ID. Access restricted to the device's organization. | () -> (Device1)
78
+ * Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | () -> (Device1)
79
79
  *
80
80
  * @param {Chrt.tracking.DevicesGetV1Request} request
81
81
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -91,7 +91,7 @@ export declare class Devices {
91
91
  getV1(request?: Chrt.tracking.DevicesGetV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.Device1>;
92
92
  private __getV1;
93
93
  /**
94
- * Returns all tracking devices registered to the authenticated user's organization. | () -> (list[Device1])
94
+ * Returns all tracking devices registered to the caller's organization. | () -> (list[Device1])
95
95
  *
96
96
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
97
97
  *
@@ -56,7 +56,7 @@ class Devices {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Registers a tracking device to the authenticated user's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
59
+ * Registers a tracking device to the caller's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.tracking.DevicesRegisterToOrgReq1} request
62
62
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -252,7 +252,7 @@ class Devices {
252
252
  });
253
253
  }
254
254
  /**
255
- * Retrieves a single device by its MAC address or ID. Access restricted to the device's organization. | () -> (Device1)
255
+ * Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | () -> (Device1)
256
256
  *
257
257
  * @param {Chrt.tracking.DevicesGetV1Request} request
258
258
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -322,7 +322,7 @@ class Devices {
322
322
  });
323
323
  }
324
324
  /**
325
- * Returns all tracking devices registered to the authenticated user's organization. | () -> (list[Device1])
325
+ * Returns all tracking devices registered to the caller's organization. | () -> (list[Device1])
326
326
  *
327
327
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
328
328
  *
@@ -31,7 +31,7 @@ export declare class SessionByDevice {
31
31
  protected readonly _options: SessionByDevice.Options;
32
32
  constructor(_options?: SessionByDevice.Options);
33
33
  /**
34
- * Returns all tracking sessions for the authenticated user's organization. | () -> (list[Session1])
34
+ * Returns all tracking sessions for the caller's organization. | () -> (list[Session1])
35
35
  *
36
36
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class SessionByDevice {
41
41
  listV1(requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.Session1[]>;
42
42
  private __listV1;
43
43
  /**
44
- * Retrieves a single session by its ID. Access restricted to the session's organization. | () -> (Session1)
44
+ * Retrieves a single session by its ID. Access restricted to the caller's organization. | () -> (Session1)
45
45
  *
46
46
  * @param {Chrt.tracking.SessionByDeviceGetV1Request} request
47
47
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ export declare class SessionByDevice {
56
56
  getV1(request: Chrt.tracking.SessionByDeviceGetV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.Session1>;
57
57
  private __getV1;
58
58
  /**
59
- * Returns the most recent data point for a session, excluding outliers. Access restricted to the session's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
59
+ * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
60
60
  *
61
61
  * @param {Chrt.tracking.SessionByDeviceLastSeenV1Request} request
62
62
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class SessionByDevice {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Returns all tracking sessions for the authenticated user's organization. | () -> (list[Session1])
59
+ * Returns all tracking sessions for the caller's organization. | () -> (list[Session1])
60
60
  *
61
61
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class SessionByDevice {
107
107
  });
108
108
  }
109
109
  /**
110
- * Retrieves a single session by its ID. Access restricted to the session's organization. | () -> (Session1)
110
+ * Retrieves a single session by its ID. Access restricted to the caller's organization. | () -> (Session1)
111
111
  *
112
112
  * @param {Chrt.tracking.SessionByDeviceGetV1Request} request
113
113
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -171,7 +171,7 @@ class SessionByDevice {
171
171
  });
172
172
  }
173
173
  /**
174
- * Returns the most recent data point for a session, excluding outliers. Access restricted to the session's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
174
+ * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
175
175
  *
176
176
  * @param {Chrt.tracking.SessionByDeviceLastSeenV1Request} request
177
177
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Users {
31
31
  protected readonly _options: Users.Options;
32
32
  constructor(_options?: Users.Options);
33
33
  /**
34
- * Retrieves public user data for the authenticated user. | () -> (UserPublicData1)
34
+ * Retrieves public user data for the caller. | () -> (UserPublicData1)
35
35
  *
36
36
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -55,7 +55,7 @@ class Users {
55
55
  this._options = _options;
56
56
  }
57
57
  /**
58
- * Retrieves public user data for the authenticated user. | () -> (UserPublicData1)
58
+ * Retrieves public user data for the caller. | () -> (UserPublicData1)
59
59
  *
60
60
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
61
61
  *
@@ -18,12 +18,12 @@
18
18
  * - OTHER then PICKUP then no more tasks (because the cargo is not released after PICKUP)
19
19
  * - DELIVER then OTHER (because the cargo is not obtained before DELIVER)
20
20
  */
21
- export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__deliver" | "chrt_ground_courier__tender_to_arline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
21
+ export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__deliver" | "chrt_ground_courier__tender_to_airline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
22
22
  export declare const ChrtGroundCourierTaskActionEnum1: {
23
23
  readonly ChrtGroundCourierPickup: "chrt_ground_courier__pickup";
24
24
  readonly ChrtGroundCourierRecoverFromAirline: "chrt_ground_courier__recover_from_airline";
25
25
  readonly ChrtGroundCourierDeliver: "chrt_ground_courier__deliver";
26
- readonly ChrtGroundCourierTenderToArline: "chrt_ground_courier__tender_to_arline";
26
+ readonly ChrtGroundCourierTenderToAirline: "chrt_ground_courier__tender_to_airline";
27
27
  readonly ChrtGroundCourierConsolidate: "chrt_ground_courier__consolidate";
28
28
  readonly ChrtGroundCourierHold: "chrt_ground_courier__hold";
29
29
  readonly ChrtGroundCourierOther: "chrt_ground_courier__other";
@@ -8,7 +8,7 @@ exports.ChrtGroundCourierTaskActionEnum1 = {
8
8
  ChrtGroundCourierPickup: "chrt_ground_courier__pickup",
9
9
  ChrtGroundCourierRecoverFromAirline: "chrt_ground_courier__recover_from_airline",
10
10
  ChrtGroundCourierDeliver: "chrt_ground_courier__deliver",
11
- ChrtGroundCourierTenderToArline: "chrt_ground_courier__tender_to_arline",
11
+ ChrtGroundCourierTenderToAirline: "chrt_ground_courier__tender_to_airline",
12
12
  ChrtGroundCourierConsolidate: "chrt_ground_courier__consolidate",
13
13
  ChrtGroundCourierHold: "chrt_ground_courier__hold",
14
14
  ChrtGroundCourierOther: "chrt_ground_courier__other",
@@ -2,13 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface OrderDraftExpandedRes {
5
+ export interface OrderDraftExpanded {
6
6
  order: Chrt.Order1;
7
- task_groups_expanded?: Chrt.TaskGroupDraftExpanded[] | null;
8
- cargos?: Chrt.Cargo1[] | null;
9
- shipper_org_company_name?: string | null;
10
- shipper_org_handle?: string | null;
11
- off_chrt_shipper_org_company_name?: string | null;
12
7
  forwarder_org_company_name?: string | null;
13
8
  forwarder_org_handle?: string | null;
9
+ shipper_org_company_name?: string | null;
10
+ off_chrt_shipper_org_company_name?: string | null;
11
+ task_groups_expanded?: Chrt.TaskGroupExpanded[] | null;
12
+ cargos?: Chrt.Cargo1[] | null;
14
13
  }
@@ -2,10 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- /**
6
- * Response model for listing draft orders.
7
- */
8
5
  export interface OrderDraftExpandedListRes {
9
- orders_expanded: Chrt.OrderDraftExpandedRes[];
6
+ order_drafts_expanded: Chrt.OrderDraftExpanded[];
10
7
  total_count: number;
11
8
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export {};
4
+ export type OrderDraftSortByEnum = "draft_started_at_timestamp";
@@ -56,8 +56,9 @@ export * from "./OffChrtShipperOrg1.js";
56
56
  export * from "./OnboardCourierTaskActionEnum1.js";
57
57
  export * from "./Order1.js";
58
58
  export * from "./OrderAndTaskGroupExpandedReq.js";
59
+ export * from "./OrderDraftExpanded.js";
59
60
  export * from "./OrderDraftExpandedListRes.js";
60
- export * from "./OrderDraftExpandedRes.js";
61
+ export * from "./OrderDraftSortByEnum.js";
61
62
  export * from "./OrderExpanded.js";
62
63
  export * from "./OrderSortByEnum.js";
63
64
  export * from "./OrderStatusEnum1.js";
@@ -104,10 +105,8 @@ export * from "./TaskArtifactStatusEnum1.js";
104
105
  export * from "./TaskArtifactTypeEnum1.js";
105
106
  export * from "./TaskClientCreate1.js";
106
107
  export * from "./TaskClientUpdate1.js";
107
- export * from "./TaskDraftExpanded.js";
108
108
  export * from "./TaskExpanded.js";
109
109
  export * from "./TaskGroup1.js";
110
- export * from "./TaskGroupDraftExpanded.js";
111
110
  export * from "./TaskGroupExpanded.js";
112
111
  export * from "./TaskGroupExpandedListRes.js";
113
112
  export * from "./TaskGroupMessage1.js";
@@ -72,8 +72,9 @@ __exportStar(require("./OffChrtShipperOrg1.js"), exports);
72
72
  __exportStar(require("./OnboardCourierTaskActionEnum1.js"), exports);
73
73
  __exportStar(require("./Order1.js"), exports);
74
74
  __exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
75
+ __exportStar(require("./OrderDraftExpanded.js"), exports);
75
76
  __exportStar(require("./OrderDraftExpandedListRes.js"), exports);
76
- __exportStar(require("./OrderDraftExpandedRes.js"), exports);
77
+ __exportStar(require("./OrderDraftSortByEnum.js"), exports);
77
78
  __exportStar(require("./OrderExpanded.js"), exports);
78
79
  __exportStar(require("./OrderSortByEnum.js"), exports);
79
80
  __exportStar(require("./OrderStatusEnum1.js"), exports);
@@ -120,10 +121,8 @@ __exportStar(require("./TaskArtifactStatusEnum1.js"), exports);
120
121
  __exportStar(require("./TaskArtifactTypeEnum1.js"), exports);
121
122
  __exportStar(require("./TaskClientCreate1.js"), exports);
122
123
  __exportStar(require("./TaskClientUpdate1.js"), exports);
123
- __exportStar(require("./TaskDraftExpanded.js"), exports);
124
124
  __exportStar(require("./TaskExpanded.js"), exports);
125
125
  __exportStar(require("./TaskGroup1.js"), exports);
126
- __exportStar(require("./TaskGroupDraftExpanded.js"), exports);
127
126
  __exportStar(require("./TaskGroupExpanded.js"), exports);
128
127
  __exportStar(require("./TaskGroupExpandedListRes.js"), exports);
129
128
  __exportStar(require("./TaskGroupMessage1.js"), exports);
@@ -3,5 +3,3 @@ export * from "./runtime/index.js";
3
3
  export * as url from "./url/index.js";
4
4
  export * from "./auth/index.js";
5
5
  export * from "./base64.js";
6
- export * from "./form-data-utils/index.js";
7
- export * as file from "./file/index.js";
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.file = exports.url = void 0;
39
+ exports.url = void 0;
40
40
  __exportStar(require("./fetcher/index.js"), exports);
41
41
  __exportStar(require("./runtime/index.js"), exports);
42
42
  exports.url = __importStar(require("./url/index.js"));
43
43
  __exportStar(require("./auth/index.js"), exports);
44
44
  __exportStar(require("./base64.js"), exports);
45
- __exportStar(require("./form-data-utils/index.js"), exports);
46
- exports.file = __importStar(require("./file/index.js"));
@@ -2,4 +2,3 @@ export * as Chrt from "./api/index.js";
2
2
  export { ChrtError, ChrtTimeoutError } from "./errors/index.js";
3
3
  export { ChrtClient } from "./Client.js";
4
4
  export { ChrtEnvironment } from "./environments.js";
5
- export * from "./exports.js";
package/dist/cjs/index.js CHANGED
@@ -32,9 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.ChrtEnvironment = exports.ChrtClient = exports.ChrtTimeoutError = exports.ChrtError = exports.Chrt = void 0;
40
37
  exports.Chrt = __importStar(require("./api/index.js"));
@@ -45,4 +42,3 @@ var Client_js_1 = require("./Client.js");
45
42
  Object.defineProperty(exports, "ChrtClient", { enumerable: true, get: function () { return Client_js_1.ChrtClient; } });
46
43
  var environments_js_1 = require("./environments.js");
47
44
  Object.defineProperty(exports, "ChrtEnvironment", { enumerable: true, get: function () { return environments_js_1.ChrtEnvironment; } });
48
- __exportStar(require("./exports.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.318.0";
1
+ export declare const SDK_VERSION = "1.320.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.318.0";
4
+ exports.SDK_VERSION = "1.320.0";
@@ -17,7 +17,7 @@ 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 { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
20
+ import { Cargos } from "./api/resources/cargos/client/Client.mjs";
21
21
  import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
22
22
  import { Orders } from "./api/resources/orders/client/Client.mjs";
23
23
  import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
@@ -29,6 +29,7 @@ import { Users } from "./api/resources/users/client/Client.mjs";
29
29
  import { Utils } from "./api/resources/utils/client/Client.mjs";
30
30
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
31
31
  import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
32
+ import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
32
33
  import { Tracking } from "./api/resources/tracking/client/Client.mjs";
33
34
  export declare namespace ChrtClient {
34
35
  interface Options {
@@ -69,7 +70,7 @@ export declare class ChrtClient {
69
70
  protected _dev: Dev | undefined;
70
71
  protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
71
72
  protected _drivers: Drivers | undefined;
72
- protected _taskArtifacts: TaskArtifacts | undefined;
73
+ protected _cargos: Cargos | undefined;
73
74
  protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
74
75
  protected _orders: Orders | undefined;
75
76
  protected _orderDrafts: OrderDrafts | undefined;
@@ -81,6 +82,7 @@ export declare class ChrtClient {
81
82
  protected _utils: Utils | undefined;
82
83
  protected _notifications: Notifications | undefined;
83
84
  protected _orgInfoForConnections: OrgInfoForConnections | undefined;
85
+ protected _taskArtifacts: TaskArtifacts | undefined;
84
86
  protected _tracking: Tracking | undefined;
85
87
  constructor(_options?: ChrtClient.Options);
86
88
  get payments(): Payments;
@@ -97,7 +99,7 @@ export declare class ChrtClient {
97
99
  get dev(): Dev;
98
100
  get taskArtifactNotifications(): TaskArtifactNotifications;
99
101
  get drivers(): Drivers;
100
- get taskArtifacts(): TaskArtifacts;
102
+ get cargos(): Cargos;
101
103
  get offChrtShipperOrg(): OffChrtShipperOrg;
102
104
  get orders(): Orders;
103
105
  get orderDrafts(): OrderDrafts;
@@ -109,5 +111,6 @@ export declare class ChrtClient {
109
111
  get utils(): Utils;
110
112
  get notifications(): Notifications;
111
113
  get orgInfoForConnections(): OrgInfoForConnections;
114
+ get taskArtifacts(): TaskArtifacts;
112
115
  get tracking(): Tracking;
113
116
  }
@@ -17,7 +17,7 @@ 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 { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
20
+ import { Cargos } from "./api/resources/cargos/client/Client.mjs";
21
21
  import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
22
22
  import { Orders } from "./api/resources/orders/client/Client.mjs";
23
23
  import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
@@ -29,14 +29,15 @@ import { Users } from "./api/resources/users/client/Client.mjs";
29
29
  import { Utils } from "./api/resources/utils/client/Client.mjs";
30
30
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
31
31
  import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
32
+ import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
32
33
  import { Tracking } from "./api/resources/tracking/client/Client.mjs";
33
34
  export class ChrtClient {
34
35
  constructor(_options = {}) {
35
36
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
36
37
  "X-Fern-Language": "JavaScript",
37
38
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
38
- "X-Fern-SDK-Version": "1.318.0",
39
- "User-Agent": "@chrt-inc/typescript-sdk/1.318.0",
39
+ "X-Fern-SDK-Version": "1.320.0",
40
+ "User-Agent": "@chrt-inc/typescript-sdk/1.320.0",
40
41
  "X-Fern-Runtime": core.RUNTIME.type,
41
42
  "X-Fern-Runtime-Version": core.RUNTIME.version,
42
43
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -97,9 +98,9 @@ export class ChrtClient {
97
98
  var _a;
98
99
  return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
99
100
  }
100
- get taskArtifacts() {
101
+ get cargos() {
101
102
  var _a;
102
- return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
103
+ return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Cargos(this._options)));
103
104
  }
104
105
  get offChrtShipperOrg() {
105
106
  var _a;
@@ -145,6 +146,10 @@ export class ChrtClient {
145
146
  var _a;
146
147
  return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new OrgInfoForConnections(this._options)));
147
148
  }
149
+ get taskArtifacts() {
150
+ var _a;
151
+ return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
152
+ }
148
153
  get tracking() {
149
154
  var _a;
150
155
  return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Tracking(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
+ }