@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
@@ -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 * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -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.
@@ -20,7 +20,7 @@ export class CourierPayDriverPayouts {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves a specific courier driver payout by ID for the authenticated organization.
23
+ * Retrieves a specific courier driver payout by ID for the caller's organization.
24
24
  *
25
25
  * @param {string} id
26
26
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
@@ -79,7 +79,7 @@ export class CourierPayDriverPayouts {
79
79
  });
80
80
  }
81
81
  /**
82
- * Lists all payouts for a specific driver within the authenticated organization.
82
+ * Lists all payouts for a specific driver within the caller's organization.
83
83
  *
84
84
  * @param {string} driverId
85
85
  * @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class CourierPayDriverRateSheets {
31
31
  protected readonly _options: CourierPayDriverRateSheets.Options;
32
32
  constructor(_options?: CourierPayDriverRateSheets.Options);
33
33
  /**
34
- * Lists all driver rate sheets for the authenticated courier organization.
34
+ * Lists all driver rate sheets for the caller's courier organization.
35
35
  *
36
36
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -96,7 +96,7 @@ export declare class CourierPayDriverRateSheets {
96
96
  getV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
97
97
  private __getV1;
98
98
  /**
99
- * Deletes a driver rate sheet owned by the authenticated organization.
99
+ * Deletes a driver rate sheet owned by the caller's organization.
100
100
  *
101
101
  * @param {string} id
102
102
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
@@ -109,7 +109,7 @@ export declare class CourierPayDriverRateSheets {
109
109
  deleteByIdV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
110
110
  private __deleteByIdV1;
111
111
  /**
112
- * Updates an existing driver rate sheet owned by the authenticated organization.
112
+ * Updates an existing driver rate sheet owned by the caller's organization.
113
113
  *
114
114
  * @param {string} id
115
115
  * @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
@@ -20,7 +20,7 @@ export class CourierPayDriverRateSheets {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Lists all driver rate sheets for the authenticated courier organization.
23
+ * Lists all driver rate sheets for the caller's courier organization.
24
24
  *
25
25
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -267,7 +267,7 @@ export class CourierPayDriverRateSheets {
267
267
  });
268
268
  }
269
269
  /**
270
- * Deletes a driver rate sheet owned by the authenticated organization.
270
+ * Deletes a driver rate sheet owned by the caller's organization.
271
271
  *
272
272
  * @param {string} id
273
273
  * @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
@@ -326,7 +326,7 @@ export class CourierPayDriverRateSheets {
326
326
  });
327
327
  }
328
328
  /**
329
- * Updates an existing driver rate sheet owned by the authenticated organization.
329
+ * Updates an existing driver rate sheet owned by the caller's organization.
330
330
  *
331
331
  * @param {string} id
332
332
  * @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
@@ -31,7 +31,7 @@ export declare class CourierPayDriverStatements {
31
31
  protected readonly _options: CourierPayDriverStatements.Options;
32
32
  constructor(_options?: CourierPayDriverStatements.Options);
33
33
  /**
34
- * Retrieves a specific courier driver statement by ID for the authenticated organization.
34
+ * Retrieves a specific courier driver statement by ID for the caller's organization.
35
35
  *
36
36
  * @param {string} id
37
37
  * @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,7 +44,7 @@ export declare class CourierPayDriverStatements {
44
44
  getByIdV1(id: string, requestOptions?: CourierPayDriverStatements.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverStatement1>;
45
45
  private __getByIdV1;
46
46
  /**
47
- * Lists all statements for a specific driver within the authenticated organization.
47
+ * Lists all statements for a specific driver within the caller's organization.
48
48
  *
49
49
  * @param {string} driverId
50
50
  * @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class CourierPayDriverStatements {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves a specific courier driver statement by ID for the authenticated organization.
23
+ * Retrieves a specific courier driver statement by ID for the caller's organization.
24
24
  *
25
25
  * @param {string} id
26
26
  * @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
@@ -79,7 +79,7 @@ export class CourierPayDriverStatements {
79
79
  });
80
80
  }
81
81
  /**
82
- * Lists all statements for a specific driver within the authenticated organization.
82
+ * Lists all statements for a specific driver within the caller's organization.
83
83
  *
84
84
  * @param {string} driverId
85
85
  * @param {CourierPayDriverStatements.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Dev {
31
31
  protected readonly _options: Dev.Options;
32
32
  constructor(_options?: Dev.Options);
33
33
  /**
34
- * Experimental endpoint for running AI agentic workflows. Returns the authenticated user's ID for testing purposes. | () -> (str)
34
+ * Experimental endpoint for running AI agentic workflows. Returns the caller's ID for testing purposes. | () -> (str)
35
35
  *
36
36
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -71,7 +71,7 @@ export declare class Dev {
71
71
  getDecodedJwtV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.DecodedJwtWithOrgAndUserId>;
72
72
  private __getDecodedJwtV1;
73
73
  /**
74
- * Retrieves the primary email address for the authenticated user from the authentication service. | () -> (str)
74
+ * Retrieves the primary email address for the caller from the authentication service. | () -> (str)
75
75
  *
76
76
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
@@ -81,7 +81,7 @@ export declare class Dev {
81
81
  getEmailV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
82
82
  private __getEmailV1;
83
83
  /**
84
- * Experimental endpoint for running durable execution workflows. Returns the authenticated user's ID for testing purposes. | () -> (dict[str, Any])
84
+ * Experimental endpoint for running durable execution workflows. Returns the caller's ID for testing purposes. | () -> (dict[str, Any])
85
85
  *
86
86
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
87
87
  *
@@ -91,7 +91,7 @@ export declare class Dev {
91
91
  getDurableV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
92
92
  private __getDurableV1;
93
93
  /**
94
- * Development template endpoint that returns the authenticated user's ID for testing. | () -> (str)
94
+ * Development template endpoint that returns the caller's ID for testing. | () -> (str)
95
95
  *
96
96
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
97
97
  *
@@ -20,7 +20,7 @@ export class Dev {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Experimental endpoint for running AI agentic workflows. Returns the authenticated user's ID for testing purposes. | () -> (str)
23
+ * Experimental endpoint for running AI agentic workflows. Returns the caller's ID for testing purposes. | () -> (str)
24
24
  *
25
25
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -224,7 +224,7 @@ export class Dev {
224
224
  });
225
225
  }
226
226
  /**
227
- * Retrieves the primary email address for the authenticated user from the authentication service. | () -> (str)
227
+ * Retrieves the primary email address for the caller from the authentication service. | () -> (str)
228
228
  *
229
229
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
230
230
  *
@@ -275,7 +275,7 @@ export class Dev {
275
275
  });
276
276
  }
277
277
  /**
278
- * Experimental endpoint for running durable execution workflows. Returns the authenticated user's ID for testing purposes. | () -> (dict[str, Any])
278
+ * Experimental endpoint for running durable execution workflows. Returns the caller's ID for testing purposes. | () -> (dict[str, Any])
279
279
  *
280
280
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
281
281
  *
@@ -326,7 +326,7 @@ export class Dev {
326
326
  });
327
327
  }
328
328
  /**
329
- * Development template endpoint that returns the authenticated user's ID for testing. | () -> (str)
329
+ * Development template endpoint that returns the caller's ID for testing. | () -> (str)
330
330
  *
331
331
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
332
332
  *
@@ -41,7 +41,7 @@ export declare class Drivers {
41
41
  listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
42
42
  private __listOrgMembersAndDriversV1;
43
43
  /**
44
- * Lists all drivers belonging to the authenticated organization. | () -> (list[Driver1])
44
+ * Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
45
45
  *
46
46
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
47
47
  *
@@ -69,7 +69,7 @@ export declare class Drivers {
69
69
  createV1(request: Chrt.DriverCreateReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
70
70
  private __createV1;
71
71
  /**
72
- * Retrieves driver information for the authenticated user within their organization. | () -> (Driver1)
72
+ * Retrieves driver information for the caller within their organization. | () -> (Driver1)
73
73
  *
74
74
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
75
75
  *
@@ -71,7 +71,7 @@ export class Drivers {
71
71
  });
72
72
  }
73
73
  /**
74
- * Lists all drivers belonging to the authenticated organization. | () -> (list[Driver1])
74
+ * Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
75
75
  *
76
76
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
@@ -189,7 +189,7 @@ export class Drivers {
189
189
  });
190
190
  }
191
191
  /**
192
- * Retrieves driver information for the authenticated user within their organization. | () -> (Driver1)
192
+ * Retrieves driver information for the caller within their organization. | () -> (Driver1)
193
193
  *
194
194
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
195
195
  *
@@ -1,5 +1,6 @@
1
1
  export * as connections from "./connections/index.mjs";
2
2
  export * from "./connections/types/index.mjs";
3
+ export * as orderDrafts from "./orderDrafts/index.mjs";
3
4
  export * as orders from "./orders/index.mjs";
4
5
  export * as taskGroups from "./taskGroups/index.mjs";
5
6
  export * as payments from "./payments/index.mjs";
@@ -15,9 +16,8 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
15
16
  export * as dev from "./dev/index.mjs";
16
17
  export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
17
18
  export * as drivers from "./drivers/index.mjs";
18
- export * as taskArtifacts from "./taskArtifacts/index.mjs";
19
+ export * as cargos from "./cargos/index.mjs";
19
20
  export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
20
- export * as orderDrafts from "./orderDrafts/index.mjs";
21
21
  export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
22
22
  export * as orgs from "./orgs/index.mjs";
23
23
  export * as root from "./root/index.mjs";
@@ -25,6 +25,7 @@ export * as users from "./users/index.mjs";
25
25
  export * as utils from "./utils/index.mjs";
26
26
  export * as notifications from "./notifications/index.mjs";
27
27
  export * as orgInfoForConnections from "./orgInfoForConnections/index.mjs";
28
+ export * as taskArtifacts from "./taskArtifacts/index.mjs";
28
29
  export * as tracking from "./tracking/index.mjs";
29
30
  export * from "./payments/client/requests/index.mjs";
30
31
  export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
@@ -35,7 +36,6 @@ export * from "./orgProfiles/client/requests/index.mjs";
35
36
  export * from "./dev/client/requests/index.mjs";
36
37
  export * from "./taskArtifactNotifications/client/requests/index.mjs";
37
38
  export * from "./drivers/client/requests/index.mjs";
38
- export * from "./taskArtifacts/client/requests/index.mjs";
39
39
  export * from "./offChrtShipperOrg/client/requests/index.mjs";
40
40
  export * from "./orderDrafts/client/requests/index.mjs";
41
41
  export * from "./taskGroups/client/requests/index.mjs";
@@ -1,5 +1,6 @@
1
1
  export * as connections from "./connections/index.mjs";
2
2
  export * from "./connections/types/index.mjs";
3
+ export * as orderDrafts from "./orderDrafts/index.mjs";
3
4
  export * as orders from "./orders/index.mjs";
4
5
  export * as taskGroups from "./taskGroups/index.mjs";
5
6
  export * as payments from "./payments/index.mjs";
@@ -15,9 +16,8 @@ export * as orgProfiles from "./orgProfiles/index.mjs";
15
16
  export * as dev from "./dev/index.mjs";
16
17
  export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
17
18
  export * as drivers from "./drivers/index.mjs";
18
- export * as taskArtifacts from "./taskArtifacts/index.mjs";
19
+ export * as cargos from "./cargos/index.mjs";
19
20
  export * as offChrtShipperOrg from "./offChrtShipperOrg/index.mjs";
20
- export * as orderDrafts from "./orderDrafts/index.mjs";
21
21
  export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
22
22
  export * as orgs from "./orgs/index.mjs";
23
23
  export * as root from "./root/index.mjs";
@@ -25,6 +25,7 @@ export * as users from "./users/index.mjs";
25
25
  export * as utils from "./utils/index.mjs";
26
26
  export * as notifications from "./notifications/index.mjs";
27
27
  export * as orgInfoForConnections from "./orgInfoForConnections/index.mjs";
28
+ export * as taskArtifacts from "./taskArtifacts/index.mjs";
28
29
  export * as tracking from "./tracking/index.mjs";
29
30
  export * from "./payments/client/requests/index.mjs";
30
31
  export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
@@ -35,7 +36,6 @@ export * from "./orgProfiles/client/requests/index.mjs";
35
36
  export * from "./dev/client/requests/index.mjs";
36
37
  export * from "./taskArtifactNotifications/client/requests/index.mjs";
37
38
  export * from "./drivers/client/requests/index.mjs";
38
- export * from "./taskArtifacts/client/requests/index.mjs";
39
39
  export * from "./offChrtShipperOrg/client/requests/index.mjs";
40
40
  export * from "./orderDrafts/client/requests/index.mjs";
41
41
  export * from "./taskGroups/client/requests/index.mjs";
@@ -31,7 +31,7 @@ export declare class Courier {
31
31
  protected readonly _options: Courier.Options;
32
32
  constructor(_options?: Courier.Options);
33
33
  /**
34
- * Retrieves notification preferences for the authenticated courier organization. | () -> (CourierNotificationPreferences1)
34
+ * Retrieves notification preferences for the caller's courier organization. | () -> (CourierNotificationPreferences1)
35
35
  *
36
36
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Courier {
41
41
  getPreferencesV1(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.CourierNotificationPreferences1>;
42
42
  private __getPreferencesV1;
43
43
  /**
44
- * Creates or updates notification preferences for the authenticated courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
44
+ * Creates or updates notification preferences for the caller's courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
47
47
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Courier {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves notification preferences for the authenticated courier organization. | () -> (CourierNotificationPreferences1)
23
+ * Retrieves notification preferences for the caller's courier organization. | () -> (CourierNotificationPreferences1)
24
24
  *
25
25
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -71,7 +71,7 @@ export class Courier {
71
71
  });
72
72
  }
73
73
  /**
74
- * Creates or updates notification preferences for the authenticated courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
74
+ * Creates or updates notification preferences for the caller's courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
75
75
  *
76
76
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
77
77
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Shipper {
31
31
  protected readonly _options: Shipper.Options;
32
32
  constructor(_options?: Shipper.Options);
33
33
  /**
34
- * Retrieves notification preferences for the authenticated shipper organization. | () -> (ShipperNotificationPreferences1)
34
+ * Retrieves notification preferences for the caller's shipper organization. | () -> (ShipperNotificationPreferences1)
35
35
  *
36
36
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Shipper {
41
41
  getPreferencesV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
42
42
  private __getPreferencesV1;
43
43
  /**
44
- * Creates or updates notification preferences for the authenticated shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
44
+ * Creates or updates notification preferences for the caller's shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
47
47
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Shipper {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves notification preferences for the authenticated shipper organization. | () -> (ShipperNotificationPreferences1)
23
+ * Retrieves notification preferences for the caller's shipper organization. | () -> (ShipperNotificationPreferences1)
24
24
  *
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -71,7 +71,7 @@ export class Shipper {
71
71
  });
72
72
  }
73
73
  /**
74
- * Creates or updates notification preferences for the authenticated shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
74
+ * Creates or updates notification preferences for the caller's shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
75
75
  *
76
76
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
77
77
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,7 +47,7 @@ export declare class OffChrtShipperOrg {
47
47
  createV1(request: Chrt.OffChrtShipperOrgClientCreate1, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<string>;
48
48
  private __createV1;
49
49
  /**
50
- * Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
50
+ * Lists all off-platform shipper organizations created by the caller's organization. | () -> (list[OffChrtShipperOrg1])
51
51
  *
52
52
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
53
53
  *
@@ -70,7 +70,7 @@ export declare class OffChrtShipperOrg {
70
70
  getByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrg1>;
71
71
  private __getByIdV1;
72
72
  /**
73
- * Deletes off-platform shipper organization owned by the authenticated organization. | () -> (bool)
73
+ * Deletes off-platform shipper organization owned by the caller's organization. | () -> (bool)
74
74
  *
75
75
  * @param {string} id
76
76
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -83,7 +83,7 @@ export declare class OffChrtShipperOrg {
83
83
  deleteByIdV1(id: string, requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<boolean>;
84
84
  private __deleteByIdV1;
85
85
  /**
86
- * Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
86
+ * Updates existing off-platform shipper organization owned by the caller's organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
87
87
  *
88
88
  * @param {string} id
89
89
  * @param {Chrt.OffChrtShipperOrgClientUpdate1} request
@@ -85,7 +85,7 @@ export class OffChrtShipperOrg {
85
85
  });
86
86
  }
87
87
  /**
88
- * Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
88
+ * Lists all off-platform shipper organizations created by the caller's organization. | () -> (list[OffChrtShipperOrg1])
89
89
  *
90
90
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
91
91
  *
@@ -195,7 +195,7 @@ export class OffChrtShipperOrg {
195
195
  });
196
196
  }
197
197
  /**
198
- * Deletes off-platform shipper organization owned by the authenticated organization. | () -> (bool)
198
+ * Deletes off-platform shipper organization owned by the caller's organization. | () -> (bool)
199
199
  *
200
200
  * @param {string} id
201
201
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -254,7 +254,7 @@ export class OffChrtShipperOrg {
254
254
  });
255
255
  }
256
256
  /**
257
- * Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
257
+ * Updates existing off-platform shipper organization owned by the caller's organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
258
258
  *
259
259
  * @param {string} id
260
260
  * @param {Chrt.OffChrtShipperOrgClientUpdate1} request