@chrt-inc/typescript-sdk 1.302.0 → 1.304.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 (266) hide show
  1. package/README.md +0 -583
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +25 -20
  4. package/dist/cjs/api/resources/connections/client/Client.d.ts +3 -3
  5. package/dist/cjs/api/resources/connections/client/Client.js +3 -3
  6. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.js +1 -1
  12. package/dist/cjs/api/resources/dev/client/Client.d.ts +9 -9
  13. package/dist/cjs/api/resources/dev/client/Client.js +9 -9
  14. package/dist/cjs/api/resources/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/index.js +3 -1
  16. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  17. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  18. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  19. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  20. package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +127 -0
  21. package/dist/cjs/api/resources/orderDrafts/client/Client.js +457 -0
  22. package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.d.ts +99 -0
  24. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.js +326 -0
  25. package/dist/cjs/api/resources/{orders/resources/draft/client/requests/OrderDraftCreateCargoReq.d.ts → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts} +1 -1
  26. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +3 -0
  27. package/dist/cjs/api/resources/orderDrafts/resources/index.d.ts +8 -0
  28. package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/resources/index.js +9 -3
  29. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.d.ts +81 -0
  30. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.js +259 -0
  31. package/dist/cjs/api/resources/orderDrafts/resources/task/client/index.d.ts +2 -0
  32. package/dist/cjs/api/resources/orderDrafts/resources/task/client/index.js +17 -0
  33. package/dist/cjs/api/resources/orderDrafts/resources/task/client/requests/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/orderDrafts/resources/task/client/requests/index.js +2 -0
  35. package/dist/cjs/api/resources/orderDrafts/resources/task/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/orderDrafts/resources/task/index.js +17 -0
  37. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +63 -0
  38. package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/taskArtifact}/client/Client.js +32 -33
  39. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/index.d.ts +2 -0
  40. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/index.js +17 -0
  41. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.js +2 -0
  43. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/index.js +17 -0
  45. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +63 -0
  46. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +192 -0
  47. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/index.d.ts +2 -0
  48. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/index.js +17 -0
  49. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.js +2 -0
  51. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/index.js +17 -0
  53. package/dist/cjs/api/resources/orders/client/Client.d.ts +0 -3
  54. package/dist/cjs/api/resources/orders/client/Client.js +0 -5
  55. package/dist/cjs/api/resources/orders/resources/index.d.ts +0 -2
  56. package/dist/cjs/api/resources/orders/resources/index.js +1 -3
  57. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +3 -3
  58. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +3 -3
  59. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +3 -3
  60. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +3 -3
  61. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +7 -7
  62. package/dist/cjs/api/resources/orgProfiles/client/Client.js +7 -7
  63. package/dist/cjs/api/resources/orgs/client/Client.d.ts +8 -8
  64. package/dist/cjs/api/resources/orgs/client/Client.js +7 -7
  65. package/dist/cjs/api/resources/payments/client/Client.d.ts +20 -20
  66. package/dist/cjs/api/resources/payments/client/Client.js +83 -83
  67. package/dist/cjs/api/resources/root/client/Client.d.ts +8 -8
  68. package/dist/cjs/api/resources/root/client/Client.js +5 -5
  69. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  70. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  71. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +1 -1
  72. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +1 -1
  73. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +1 -1
  74. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +1 -1
  75. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +7 -7
  76. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +7 -7
  77. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
  78. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -1
  79. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +14 -14
  80. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +14 -14
  81. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +1 -1
  82. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +1 -1
  83. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  84. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  85. package/dist/cjs/api/resources/utils/client/Client.d.ts +1 -1
  86. package/dist/cjs/api/resources/utils/client/Client.js +1 -1
  87. package/dist/cjs/api/types/Cargo1.d.ts +1 -1
  88. package/dist/cjs/api/types/CargoClientCreate1.d.ts +1 -1
  89. package/dist/cjs/api/types/CargoClientUpdate1.d.ts +1 -1
  90. package/dist/cjs/api/types/{DriverUpdateResp.d.ts → DriverUpdateRes.d.ts} +1 -1
  91. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
  92. package/dist/cjs/api/types/index.d.ts +1 -1
  93. package/dist/cjs/api/types/index.js +1 -1
  94. package/dist/cjs/version.d.ts +1 -1
  95. package/dist/cjs/version.js +1 -1
  96. package/dist/esm/Client.d.mts +3 -0
  97. package/dist/esm/Client.mjs +7 -2
  98. package/dist/esm/api/resources/connections/client/Client.d.mts +3 -3
  99. package/dist/esm/api/resources/connections/client/Client.mjs +3 -3
  100. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
  101. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
  102. package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.d.mts +1 -1
  103. package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.mjs +1 -1
  104. package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.d.mts +1 -1
  105. package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.mjs +1 -1
  106. package/dist/esm/api/resources/dev/client/Client.d.mts +9 -9
  107. package/dist/esm/api/resources/dev/client/Client.mjs +9 -9
  108. package/dist/esm/api/resources/index.d.mts +2 -0
  109. package/dist/esm/api/resources/index.mjs +2 -0
  110. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  111. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  112. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  113. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  114. package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +127 -0
  115. package/dist/esm/api/resources/orderDrafts/client/Client.mjs +420 -0
  116. package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/index.d.mts +2 -0
  117. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.d.mts +99 -0
  118. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.mjs +289 -0
  119. package/dist/esm/api/resources/{orders/resources/draft/client/requests/OrderDraftCreateCargoReq.d.mts → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts} +1 -1
  120. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +3 -0
  121. package/dist/esm/api/resources/orderDrafts/resources/index.d.mts +8 -0
  122. package/dist/esm/api/resources/orderDrafts/resources/index.mjs +8 -0
  123. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.d.mts +81 -0
  124. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.mjs +222 -0
  125. package/dist/esm/api/resources/orderDrafts/resources/task/client/index.d.mts +2 -0
  126. package/dist/esm/api/resources/orderDrafts/resources/task/client/index.mjs +1 -0
  127. package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/index.d.mts +2 -0
  128. package/dist/esm/api/resources/orderDrafts/resources/task/client/requests/index.mjs +1 -0
  129. package/dist/esm/api/resources/orderDrafts/resources/task/index.d.mts +1 -0
  130. package/dist/esm/api/resources/orderDrafts/resources/task/index.mjs +1 -0
  131. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +63 -0
  132. package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/taskArtifact}/client/Client.mjs +30 -31
  133. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/index.d.mts +2 -0
  134. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/index.mjs +1 -0
  135. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.d.mts +1 -0
  136. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/index.d.mts +1 -0
  138. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/index.mjs +1 -0
  139. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +63 -0
  140. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +155 -0
  141. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/index.d.mts +2 -0
  142. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/index.mjs +1 -0
  143. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +1 -0
  144. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.mjs +1 -0
  145. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/index.d.mts +1 -0
  146. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/index.mjs +1 -0
  147. package/dist/esm/api/resources/orders/client/Client.d.mts +0 -3
  148. package/dist/esm/api/resources/orders/client/Client.mjs +0 -5
  149. package/dist/esm/api/resources/orders/resources/index.d.mts +0 -2
  150. package/dist/esm/api/resources/orders/resources/index.mjs +0 -2
  151. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +3 -3
  152. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +3 -3
  153. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +3 -3
  154. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +3 -3
  155. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +7 -7
  156. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +7 -7
  157. package/dist/esm/api/resources/orgs/client/Client.d.mts +8 -8
  158. package/dist/esm/api/resources/orgs/client/Client.mjs +7 -7
  159. package/dist/esm/api/resources/payments/client/Client.d.mts +20 -20
  160. package/dist/esm/api/resources/payments/client/Client.mjs +83 -83
  161. package/dist/esm/api/resources/root/client/Client.d.mts +8 -8
  162. package/dist/esm/api/resources/root/client/Client.mjs +5 -5
  163. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  164. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  165. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +1 -1
  166. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +1 -1
  167. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +1 -1
  168. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +1 -1
  169. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +7 -7
  170. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +7 -7
  171. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
  172. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -1
  173. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +14 -14
  174. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +14 -14
  175. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +1 -1
  176. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +1 -1
  177. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  178. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  179. package/dist/esm/api/resources/utils/client/Client.d.mts +1 -1
  180. package/dist/esm/api/resources/utils/client/Client.mjs +1 -1
  181. package/dist/esm/api/types/Cargo1.d.mts +1 -1
  182. package/dist/esm/api/types/CargoClientCreate1.d.mts +1 -1
  183. package/dist/esm/api/types/CargoClientUpdate1.d.mts +1 -1
  184. package/dist/esm/api/types/{DriverUpdateResp.d.mts → DriverUpdateRes.d.mts} +1 -1
  185. package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
  186. package/dist/esm/api/types/index.d.mts +1 -1
  187. package/dist/esm/api/types/index.mjs +1 -1
  188. package/dist/esm/version.d.mts +1 -1
  189. package/dist/esm/version.mjs +1 -1
  190. package/package.json +1 -1
  191. package/reference.md +569 -563
  192. package/dist/cjs/api/resources/orders/resources/draft/client/Client.d.ts +0 -261
  193. package/dist/cjs/api/resources/orders/resources/draft/client/Client.js +0 -1014
  194. package/dist/cjs/api/resources/orders/resources/draft/client/requests/index.d.ts +0 -9
  195. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.d.ts +0 -61
  196. package/dist/cjs/api/resources/orders/resources/draft/resources/index.d.ts +0 -2
  197. package/dist/esm/api/resources/orders/resources/draft/client/Client.d.mts +0 -261
  198. package/dist/esm/api/resources/orders/resources/draft/client/Client.mjs +0 -977
  199. package/dist/esm/api/resources/orders/resources/draft/client/requests/index.d.mts +0 -9
  200. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.d.mts +0 -61
  201. package/dist/esm/api/resources/orders/resources/draft/resources/index.d.mts +0 -2
  202. package/dist/esm/api/resources/orders/resources/draft/resources/index.mjs +0 -2
  203. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/index.d.ts +0 -0
  204. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/index.js +0 -0
  205. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.d.ts +0 -0
  206. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.js +0 -0
  207. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.d.ts +0 -0
  208. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.js +0 -0
  209. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersDraftUpdateReq.d.ts +0 -0
  210. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersDraftUpdateReq.js +0 -0
  211. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersNewDraftReq.d.ts +0 -0
  212. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersNewDraftReq.js +0 -0
  213. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/client/requests/index.js +0 -0
  214. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/index.d.ts +0 -0
  215. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts}/index.js +0 -0
  216. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/index.d.ts +0 -0
  217. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/index.js +0 -0
  218. /package/dist/cjs/api/resources/{orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.js → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.js} +0 -0
  219. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +0 -0
  220. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftAssociateCargoWithTaskReq.js +0 -0
  221. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftUpdateCargoReq.d.ts +0 -0
  222. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftUpdateCargoReq.js +0 -0
  223. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/requests/index.js +0 -0
  224. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/index.d.ts +0 -0
  225. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/index.js +0 -0
  226. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftAddTaskReqV1.d.ts +0 -0
  227. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftAddTaskReqV1.js +0 -0
  228. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftUpdateTaskReq.d.ts +0 -0
  229. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftUpdateTaskReq.js +0 -0
  230. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/taskArtifact}/client/requests/OrderDraftAddTaskArtifactReq.d.ts +0 -0
  231. /package/dist/cjs/api/resources/{orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.js → orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.js} +0 -0
  232. /package/dist/cjs/api/resources/{orders/resources/draft → orderDrafts/resources/taskGroup}/client/requests/OrderDraftAddTaskGroupReq.d.ts +0 -0
  233. /package/dist/cjs/api/resources/{orders/resources/draft/client/requests/OrderDraftCreateCargoReq.js → orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.js} +0 -0
  234. /package/dist/cjs/api/types/{DriverUpdateResp.js → DriverUpdateRes.js} +0 -0
  235. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/index.d.mts +0 -0
  236. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/index.mjs +0 -0
  237. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.d.mts +0 -0
  238. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.mjs +0 -0
  239. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.d.mts +0 -0
  240. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.mjs +0 -0
  241. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersDraftUpdateReq.d.mts +0 -0
  242. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersDraftUpdateReq.mjs +0 -0
  243. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersNewDraftReq.d.mts +0 -0
  244. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/requests/OrdersNewDraftReq.mjs +0 -0
  245. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/client/requests/index.mjs +0 -0
  246. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/index.d.mts +0 -0
  247. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts}/index.mjs +0 -0
  248. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/index.d.mts +0 -0
  249. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/index.mjs +0 -0
  250. /package/dist/esm/api/resources/{orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.mjs → orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.mjs} +0 -0
  251. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +0 -0
  252. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftAssociateCargoWithTaskReq.mjs +0 -0
  253. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftUpdateCargoReq.d.mts +0 -0
  254. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/cargo}/client/requests/OrderDraftUpdateCargoReq.mjs +0 -0
  255. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/client/requests/index.mjs +0 -0
  256. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/index.d.mts +0 -0
  257. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts/resources/cargo}/index.mjs +0 -0
  258. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftAddTaskReqV1.d.mts +0 -0
  259. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftAddTaskReqV1.mjs +0 -0
  260. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftUpdateTaskReq.d.mts +0 -0
  261. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/task}/client/requests/OrderDraftUpdateTaskReq.mjs +0 -0
  262. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/taskArtifact}/client/requests/OrderDraftAddTaskArtifactReq.d.mts +0 -0
  263. /package/dist/esm/api/resources/{orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.mjs → orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.mjs} +0 -0
  264. /package/dist/esm/api/resources/{orders/resources/draft → orderDrafts/resources/taskGroup}/client/requests/OrderDraftAddTaskGroupReq.d.mts +0 -0
  265. /package/dist/esm/api/resources/{orders/resources/draft/client/requests/OrderDraftCreateCargoReq.mjs → orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.mjs} +0 -0
  266. /package/dist/esm/api/types/{DriverUpdateResp.mjs → DriverUpdateRes.mjs} +0 -0
@@ -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.
43
+ * Lists shipper organizations based on the authenticated 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.
53
+ * Lists courier organizations based on the authenticated 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.
63
+ * Lists forwarder organizations based on the authenticated 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 @@ class Connections {
70
70
  return ((_a = this._connectionToForwarder) !== null && _a !== void 0 ? _a : (this._connectionToForwarder = new Client_js_3.ConnectionToForwarder(this._options)));
71
71
  }
72
72
  /**
73
- * Lists shipper organizations based on the authenticated organization type. Couriers see connected shippers, forwarders see connected shippers.
73
+ * Lists shipper organizations based on the authenticated organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
74
74
  *
75
75
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
@@ -121,7 +121,7 @@ class Connections {
121
121
  });
122
122
  }
123
123
  /**
124
- * Lists courier organizations based on the authenticated organization type. Shippers see connected couriers, forwarders see connected couriers.
124
+ * Lists courier organizations based on the authenticated organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
125
125
  *
126
126
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
127
127
  *
@@ -172,7 +172,7 @@ class Connections {
172
172
  });
173
173
  }
174
174
  /**
175
- * Lists forwarder organizations based on the authenticated organization type. Shippers see connected forwarders, couriers see connected forwarders.
175
+ * Lists forwarder organizations based on the authenticated organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
176
176
  *
177
177
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
178
178
  *
@@ -31,7 +31,7 @@ export declare class ConnectionToCourier {
31
31
  protected readonly _options: ConnectionToCourier.Options;
32
32
  constructor(_options?: ConnectionToCourier.Options);
33
33
  /**
34
- * Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers.
34
+ * Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers. | (CreateConnectionReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.CreateConnectionReq} request
37
37
  * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class ConnectionToCourier {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers.
59
+ * Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers. | (CreateConnectionReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.CreateConnectionReq} request
62
62
  * @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class ConnectionToForwarder {
31
31
  protected readonly _options: ConnectionToForwarder.Options;
32
32
  constructor(_options?: ConnectionToForwarder.Options);
33
33
  /**
34
- * Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders.
34
+ * Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders. | (CreateConnectionReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.CreateConnectionReq} request
37
37
  * @param {ConnectionToForwarder.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class ConnectionToForwarder {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders.
59
+ * Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders. | (CreateConnectionReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.CreateConnectionReq} request
62
62
  * @param {ConnectionToForwarder.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class ConnectionToShipper {
31
31
  protected readonly _options: ConnectionToShipper.Options;
32
32
  constructor(_options?: ConnectionToShipper.Options);
33
33
  /**
34
- * Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers.
34
+ * Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers. | (CreateConnectionReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.CreateConnectionReq} request
37
37
  * @param {ConnectionToShipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class ConnectionToShipper {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers.
59
+ * Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers. | (CreateConnectionReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.CreateConnectionReq} request
62
62
  * @param {ConnectionToShipper.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.
34
+ * Experimental endpoint for running AI agentic workflows. Returns the authenticated user's ID for testing purposes. | () -> (str)
35
35
  *
36
36
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Dev {
41
41
  getAgentV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
42
42
  private __getAgentV1;
43
43
  /**
44
- * (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.
44
+ * (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
45
45
  *
46
46
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
47
47
  *
@@ -51,7 +51,7 @@ export declare class Dev {
51
51
  getUserIdV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
52
52
  private __getUserIdV1;
53
53
  /**
54
- * Extracts and returns the user ID from the authenticated request's JWT token.
54
+ * Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
55
55
  *
56
56
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
@@ -61,7 +61,7 @@ export declare class Dev {
61
61
  getUserIdV2(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
62
62
  private __getUserIdV2;
63
63
  /**
64
- * Returns the complete decoded JWT token information for development purposes.
64
+ * Returns the complete decoded JWT token information for development purposes. | () -> (DecodedJWTWithOrgAndUserId)
65
65
  *
66
66
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
@@ -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.
74
+ * Retrieves the primary email address for the authenticated user 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.
84
+ * Experimental endpoint for running durable execution workflows. Returns the authenticated user'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.
94
+ * Development template endpoint that returns the authenticated user's ID for testing. | () -> (str)
95
95
  *
96
96
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
97
97
  *
@@ -101,7 +101,7 @@ export declare class Dev {
101
101
  getTemplateV1(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
102
102
  private __getTemplateV1;
103
103
  /**
104
- * Development template endpoint that demonstrates transaction handling and request mirroring.
104
+ * Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
105
105
  *
106
106
  * @param {Chrt.TemplateReq} request
107
107
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
@@ -118,7 +118,7 @@ export declare class Dev {
118
118
  createTemplateV1(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.TemplateRes>;
119
119
  private __createTemplateV1;
120
120
  /**
121
- * Returns the current GitHub PR number and commit hash for the deployment.
121
+ * Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
122
122
  *
123
123
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
124
124
  *
@@ -56,7 +56,7 @@ class Dev {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Experimental endpoint for running AI agentic workflows. Returns the authenticated user's ID for testing purposes.
59
+ * Experimental endpoint for running AI agentic workflows. Returns the authenticated user's ID for testing purposes. | () -> (str)
60
60
  *
61
61
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class Dev {
107
107
  });
108
108
  }
109
109
  /**
110
- * (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.
110
+ * (DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
111
111
  *
112
112
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
113
113
  *
@@ -158,7 +158,7 @@ class Dev {
158
158
  });
159
159
  }
160
160
  /**
161
- * Extracts and returns the user ID from the authenticated request's JWT token.
161
+ * Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
162
162
  *
163
163
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
164
164
  *
@@ -209,7 +209,7 @@ class Dev {
209
209
  });
210
210
  }
211
211
  /**
212
- * Returns the complete decoded JWT token information for development purposes.
212
+ * Returns the complete decoded JWT token information for development purposes. | () -> (DecodedJWTWithOrgAndUserId)
213
213
  *
214
214
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
215
215
  *
@@ -260,7 +260,7 @@ class Dev {
260
260
  });
261
261
  }
262
262
  /**
263
- * Retrieves the primary email address for the authenticated user from the authentication service.
263
+ * Retrieves the primary email address for the authenticated user from the authentication service. | () -> (str)
264
264
  *
265
265
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
266
266
  *
@@ -311,7 +311,7 @@ class Dev {
311
311
  });
312
312
  }
313
313
  /**
314
- * Experimental endpoint for running durable execution workflows. Returns the authenticated user's ID for testing purposes.
314
+ * Experimental endpoint for running durable execution workflows. Returns the authenticated user's ID for testing purposes. | () -> (dict[str, Any])
315
315
  *
316
316
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
317
317
  *
@@ -362,7 +362,7 @@ class Dev {
362
362
  });
363
363
  }
364
364
  /**
365
- * Development template endpoint that returns the authenticated user's ID for testing.
365
+ * Development template endpoint that returns the authenticated user's ID for testing. | () -> (str)
366
366
  *
367
367
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
368
368
  *
@@ -413,7 +413,7 @@ class Dev {
413
413
  });
414
414
  }
415
415
  /**
416
- * Development template endpoint that demonstrates transaction handling and request mirroring.
416
+ * Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
417
417
  *
418
418
  * @param {Chrt.TemplateReq} request
419
419
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
@@ -479,7 +479,7 @@ class Dev {
479
479
  });
480
480
  }
481
481
  /**
482
- * Returns the current GitHub PR number and commit hash for the deployment.
482
+ * Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
483
483
  *
484
484
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
485
485
  *
@@ -15,6 +15,7 @@ export * as drivers from "./drivers/index.js";
15
15
  export * as taskArtifacts from "./taskArtifacts/index.js";
16
16
  export * as offChrtShipperOrg from "./offChrtShipperOrg/index.js";
17
17
  export * as orders from "./orders/index.js";
18
+ export * as orderDrafts from "./orderDrafts/index.js";
18
19
  export * as taskGroups from "./taskGroups/index.js";
19
20
  export * as shipperContactInfo from "./shipperContactInfo/index.js";
20
21
  export * as orgs from "./orgs/index.js";
@@ -35,6 +36,7 @@ export * from "./taskArtifactNotifications/client/requests/index.js";
35
36
  export * from "./drivers/client/requests/index.js";
36
37
  export * from "./taskArtifacts/client/requests/index.js";
37
38
  export * from "./offChrtShipperOrg/client/requests/index.js";
39
+ export * from "./orderDrafts/client/requests/index.js";
38
40
  export * from "./taskGroups/client/requests/index.js";
39
41
  export * from "./shipperContactInfo/client/requests/index.js";
40
42
  export * from "./orgs/client/requests/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tracking = exports.orgConnectionInfos = exports.notifications = exports.utils = exports.users = exports.root = exports.orgs = exports.shipperContactInfo = exports.taskGroups = exports.orders = exports.offChrtShipperOrg = exports.taskArtifacts = exports.drivers = exports.taskArtifactNotifications = exports.dev = exports.orgProfiles = exports.connections = exports.shipperPayCourierStatements = exports.shipperPayCourierRateSheets = exports.shipperPayCourierPayments = exports.shipperPayCourierLineItemGroups = exports.courierPayDriverStatements = exports.courierPayDriverRateSheets = exports.courierPayDriverPayouts = exports.courierPayDriverLineItemGroups = exports.payments = void 0;
39
+ exports.tracking = exports.orgConnectionInfos = exports.notifications = exports.utils = exports.users = exports.root = exports.orgs = exports.shipperContactInfo = exports.taskGroups = exports.orderDrafts = exports.orders = exports.offChrtShipperOrg = exports.taskArtifacts = exports.drivers = exports.taskArtifactNotifications = exports.dev = exports.orgProfiles = exports.connections = exports.shipperPayCourierStatements = exports.shipperPayCourierRateSheets = exports.shipperPayCourierPayments = exports.shipperPayCourierLineItemGroups = exports.courierPayDriverStatements = exports.courierPayDriverRateSheets = exports.courierPayDriverPayouts = exports.courierPayDriverLineItemGroups = exports.payments = void 0;
40
40
  exports.payments = __importStar(require("./payments/index.js"));
41
41
  exports.courierPayDriverLineItemGroups = __importStar(require("./courierPayDriverLineItemGroups/index.js"));
42
42
  exports.courierPayDriverPayouts = __importStar(require("./courierPayDriverPayouts/index.js"));
@@ -54,6 +54,7 @@ exports.drivers = __importStar(require("./drivers/index.js"));
54
54
  exports.taskArtifacts = __importStar(require("./taskArtifacts/index.js"));
55
55
  exports.offChrtShipperOrg = __importStar(require("./offChrtShipperOrg/index.js"));
56
56
  exports.orders = __importStar(require("./orders/index.js"));
57
+ exports.orderDrafts = __importStar(require("./orderDrafts/index.js"));
57
58
  exports.taskGroups = __importStar(require("./taskGroups/index.js"));
58
59
  exports.shipperContactInfo = __importStar(require("./shipperContactInfo/index.js"));
59
60
  exports.orgs = __importStar(require("./orgs/index.js"));
@@ -74,6 +75,7 @@ __exportStar(require("./taskArtifactNotifications/client/requests/index.js"), ex
74
75
  __exportStar(require("./drivers/client/requests/index.js"), exports);
75
76
  __exportStar(require("./taskArtifacts/client/requests/index.js"), exports);
76
77
  __exportStar(require("./offChrtShipperOrg/client/requests/index.js"), exports);
78
+ __exportStar(require("./orderDrafts/client/requests/index.js"), exports);
77
79
  __exportStar(require("./taskGroups/client/requests/index.js"), exports);
78
80
  __exportStar(require("./shipperContactInfo/client/requests/index.js"), exports);
79
81
  __exportStar(require("./orgs/client/requests/index.js"), exports);
@@ -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.
34
+ * Retrieves notification preferences for the authenticated 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.
44
+ * Creates or updates notification preferences for the authenticated courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
47
47
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class Courier {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves notification preferences for the authenticated courier organization.
59
+ * Retrieves notification preferences for the authenticated courier organization. | () -> (CourierNotificationPreferences1)
60
60
  *
61
61
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class Courier {
107
107
  });
108
108
  }
109
109
  /**
110
- * Creates or updates notification preferences for the authenticated courier organization.
110
+ * Creates or updates notification preferences for the authenticated courier organization. | (CourierNotificationPreferencesClientCreate1) -> (PydanticObjectId)
111
111
  *
112
112
  * @param {Chrt.notifications.CourierNotificationPreferencesClientCreate1} request
113
113
  * @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.
34
+ * Retrieves notification preferences for the authenticated 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.
44
+ * Creates or updates notification preferences for the authenticated shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
47
47
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class Shipper {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves notification preferences for the authenticated shipper organization.
59
+ * Retrieves notification preferences for the authenticated shipper organization. | () -> (ShipperNotificationPreferences1)
60
60
  *
61
61
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class Shipper {
107
107
  });
108
108
  }
109
109
  /**
110
- * Creates or updates notification preferences for the authenticated shipper organization.
110
+ * Creates or updates notification preferences for the authenticated shipper organization. | (ShipperNotificationPreferencesClientCreate1) -> (PydanticObjectId)
111
111
  *
112
112
  * @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
113
113
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,127 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.js";
5
+ import * as core from "../../../../core/index.js";
6
+ import * as Chrt from "../../../index.js";
7
+ import { TaskGroup } from "../resources/taskGroup/client/Client.js";
8
+ import { Task } from "../resources/task/client/Client.js";
9
+ import { TaskArtifact } from "../resources/taskArtifact/client/Client.js";
10
+ import { Cargo } from "../resources/cargo/client/Client.js";
11
+ export declare namespace OrderDrafts {
12
+ interface Options {
13
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
14
+ /** Specify a custom URL to connect the client to. */
15
+ baseUrl?: core.Supplier<string>;
16
+ token?: core.Supplier<core.BearerToken | undefined>;
17
+ /** Additional headers to include in requests. */
18
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
19
+ fetcher?: core.FetchFunction;
20
+ }
21
+ interface RequestOptions {
22
+ /** The maximum time to wait for a response in seconds. */
23
+ timeoutInSeconds?: number;
24
+ /** The number of times to retry the request. Defaults to 2. */
25
+ maxRetries?: number;
26
+ /** A hook to abort the request. */
27
+ abortSignal?: AbortSignal;
28
+ /** Additional query string parameters to include in the request. */
29
+ queryParams?: Record<string, unknown>;
30
+ /** Additional headers to include in the request. */
31
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
32
+ }
33
+ }
34
+ export declare class OrderDrafts {
35
+ protected readonly _options: OrderDrafts.Options;
36
+ protected _taskGroup: TaskGroup | undefined;
37
+ protected _task: Task | undefined;
38
+ protected _taskArtifact: TaskArtifact | undefined;
39
+ protected _cargo: Cargo | undefined;
40
+ constructor(_options?: OrderDrafts.Options);
41
+ get taskGroup(): TaskGroup;
42
+ get task(): Task;
43
+ get taskArtifact(): TaskArtifact;
44
+ get cargo(): Cargo;
45
+ /**
46
+ * Creates a new draft order with org assignments based on caller's organization type.
47
+ *
48
+ * @param {Chrt.OrdersNewDraftReq} request
49
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link Chrt.UnprocessableEntityError}
52
+ *
53
+ * @example
54
+ * await client.orderDrafts.newV1()
55
+ */
56
+ newV1(request?: Chrt.OrdersNewDraftReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersNewDraftRes>;
57
+ private __newV1;
58
+ /**
59
+ * Updates forwarder and/or shipper org assignments for a draft order
60
+ *
61
+ * @param {Chrt.OrdersDraftUpdateReq} request
62
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.orderDrafts.updateV1({
68
+ * order_id: "order_id"
69
+ * })
70
+ */
71
+ updateV1(request: Chrt.OrdersDraftUpdateReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
72
+ private __updateV1;
73
+ /**
74
+ * Deletes a draft order and all associated entities
75
+ *
76
+ * @param {string} orderId
77
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @throws {@link Chrt.UnprocessableEntityError}
80
+ *
81
+ * @example
82
+ * await client.orderDrafts.deleteV1("order_id")
83
+ */
84
+ deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
85
+ private __deleteV1;
86
+ /**
87
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it.
88
+ *
89
+ * @param {string} orderIdOrShortId
90
+ * @param {Chrt.OrderDraftExpandedReq} request
91
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Chrt.UnprocessableEntityError}
94
+ *
95
+ * @example
96
+ * await client.orderDrafts.expandedV1("order_id_or_short_id")
97
+ */
98
+ expandedV1(orderIdOrShortId: string, request?: Chrt.OrderDraftExpandedReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedRes>;
99
+ private __expandedV1;
100
+ /**
101
+ * Lists all draft orders created by the authenticated user with optional expanded related data.
102
+ *
103
+ * @param {Chrt.OrderDraftExpandedListReq} request
104
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @throws {@link Chrt.UnprocessableEntityError}
107
+ *
108
+ * @example
109
+ * await client.orderDrafts.expandedListV1()
110
+ */
111
+ expandedListV1(request?: Chrt.OrderDraftExpandedListReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
112
+ private __expandedListV1;
113
+ /**
114
+ * Checks whether the draft order satisfies all requirements to move into staging.
115
+ *
116
+ * @param {string} orderId
117
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
118
+ *
119
+ * @throws {@link Chrt.UnprocessableEntityError}
120
+ *
121
+ * @example
122
+ * await client.orderDrafts.validateV1("order_id")
123
+ */
124
+ validateV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
125
+ private __validateV1;
126
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
127
+ }