@chrt-inc/typescript-sdk 1.303.0 → 1.305.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 (227) hide show
  1. package/README.md +115 -134
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/connections/client/Client.d.ts +3 -3
  4. package/dist/cjs/api/resources/connections/client/Client.js +3 -3
  5. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.d.ts +1 -1
  8. package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.js +1 -1
  9. package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/dev/client/Client.d.ts +9 -9
  12. package/dist/cjs/api/resources/dev/client/Client.js +9 -9
  13. package/dist/cjs/api/resources/drivers/client/Client.d.ts +10 -10
  14. package/dist/cjs/api/resources/drivers/client/Client.js +10 -10
  15. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  16. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  17. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +5 -5
  20. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +5 -5
  21. package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +31 -4
  22. package/dist/cjs/api/resources/orderDrafts/client/Client.js +129 -4
  23. package/dist/cjs/api/resources/orderDrafts/client/requests/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.d.ts +4 -4
  25. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.js +4 -4
  26. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.d.ts +3 -3
  27. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.js +3 -3
  28. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
  29. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
  30. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +2 -2
  31. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +2 -2
  32. package/dist/cjs/api/resources/orders/client/Client.d.ts +1 -4
  33. package/dist/cjs/api/resources/orders/client/Client.js +1 -6
  34. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +2 -2
  35. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +2 -2
  36. package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.d.ts +2 -2
  37. package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.js +2 -2
  38. package/dist/cjs/api/resources/orders/resources/index.d.ts +0 -1
  39. package/dist/cjs/api/resources/orders/resources/index.js +1 -2
  40. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +3 -3
  41. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +3 -3
  42. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +3 -3
  43. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +3 -3
  44. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +7 -7
  45. package/dist/cjs/api/resources/orgProfiles/client/Client.js +7 -7
  46. package/dist/cjs/api/resources/orgs/client/Client.d.ts +18 -8
  47. package/dist/cjs/api/resources/orgs/client/Client.js +60 -9
  48. package/dist/cjs/api/resources/root/client/Client.d.ts +8 -8
  49. package/dist/cjs/api/resources/root/client/Client.js +5 -5
  50. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +9 -9
  51. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +9 -9
  52. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  53. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  54. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +3 -3
  55. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +3 -3
  56. package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.d.ts +1 -1
  57. package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.js +1 -1
  58. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +3 -3
  59. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +3 -3
  60. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +3 -3
  61. package/dist/cjs/api/resources/taskGroups/client/Client.js +3 -3
  62. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +3 -3
  63. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +3 -3
  64. package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.d.ts +2 -2
  65. package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.js +2 -2
  66. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +1 -1
  67. package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +1 -1
  68. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +1 -1
  69. package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +1 -1
  70. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +7 -7
  71. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +7 -7
  72. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
  73. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -1
  74. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +14 -14
  75. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +14 -14
  76. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +1 -1
  77. package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +1 -1
  78. package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
  79. package/dist/cjs/api/resources/users/client/Client.js +5 -5
  80. package/dist/cjs/api/resources/utils/client/Client.d.ts +1 -1
  81. package/dist/cjs/api/resources/utils/client/Client.js +1 -1
  82. package/dist/cjs/api/types/Cargo1.d.ts +1 -1
  83. package/dist/cjs/api/types/CargoClientCreate1.d.ts +1 -1
  84. package/dist/cjs/api/types/CargoClientUpdate1.d.ts +1 -1
  85. package/dist/{esm/api/types/DriverUpdateResp.d.mts → cjs/api/types/DriverUpdateRes.d.ts} +1 -1
  86. package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -1
  87. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
  88. package/dist/cjs/api/types/UserPublicData1.d.ts +1 -2
  89. package/dist/cjs/api/types/index.d.ts +1 -1
  90. package/dist/cjs/api/types/index.js +1 -1
  91. package/dist/cjs/version.d.ts +1 -1
  92. package/dist/cjs/version.js +1 -1
  93. package/dist/esm/Client.mjs +2 -2
  94. package/dist/esm/api/resources/connections/client/Client.d.mts +3 -3
  95. package/dist/esm/api/resources/connections/client/Client.mjs +3 -3
  96. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
  97. package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
  98. package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.d.mts +1 -1
  99. package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.mjs +1 -1
  100. package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.d.mts +1 -1
  101. package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.mjs +1 -1
  102. package/dist/esm/api/resources/dev/client/Client.d.mts +9 -9
  103. package/dist/esm/api/resources/dev/client/Client.mjs +9 -9
  104. package/dist/esm/api/resources/drivers/client/Client.d.mts +10 -10
  105. package/dist/esm/api/resources/drivers/client/Client.mjs +10 -10
  106. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  107. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  108. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  109. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  110. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +5 -5
  111. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +5 -5
  112. package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +31 -4
  113. package/dist/esm/api/resources/orderDrafts/client/Client.mjs +129 -4
  114. package/dist/esm/api/resources/orderDrafts/client/requests/index.d.mts +2 -0
  115. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.d.mts +4 -4
  116. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.mjs +4 -4
  117. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.d.mts +3 -3
  118. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.mjs +3 -3
  119. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
  120. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
  121. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +2 -2
  122. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +2 -2
  123. package/dist/esm/api/resources/orders/client/Client.d.mts +1 -4
  124. package/dist/esm/api/resources/orders/client/Client.mjs +1 -6
  125. package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +2 -2
  126. package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +2 -2
  127. package/dist/esm/api/resources/orders/resources/expandedList/client/Client.d.mts +2 -2
  128. package/dist/esm/api/resources/orders/resources/expandedList/client/Client.mjs +2 -2
  129. package/dist/esm/api/resources/orders/resources/index.d.mts +0 -1
  130. package/dist/esm/api/resources/orders/resources/index.mjs +0 -1
  131. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +3 -3
  132. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +3 -3
  133. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +3 -3
  134. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +3 -3
  135. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +7 -7
  136. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +7 -7
  137. package/dist/esm/api/resources/orgs/client/Client.d.mts +18 -8
  138. package/dist/esm/api/resources/orgs/client/Client.mjs +60 -9
  139. package/dist/esm/api/resources/root/client/Client.d.mts +8 -8
  140. package/dist/esm/api/resources/root/client/Client.mjs +5 -5
  141. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +9 -9
  142. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +9 -9
  143. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  144. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  145. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +3 -3
  146. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +3 -3
  147. package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.d.mts +1 -1
  148. package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.mjs +1 -1
  149. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +3 -3
  150. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +3 -3
  151. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +3 -3
  152. package/dist/esm/api/resources/taskGroups/client/Client.mjs +3 -3
  153. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +3 -3
  154. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +3 -3
  155. package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.d.mts +2 -2
  156. package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.mjs +2 -2
  157. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +1 -1
  158. package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +1 -1
  159. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +1 -1
  160. package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +1 -1
  161. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +7 -7
  162. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +7 -7
  163. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
  164. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -1
  165. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +14 -14
  166. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +14 -14
  167. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +1 -1
  168. package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +1 -1
  169. package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
  170. package/dist/esm/api/resources/users/client/Client.mjs +5 -5
  171. package/dist/esm/api/resources/utils/client/Client.d.mts +1 -1
  172. package/dist/esm/api/resources/utils/client/Client.mjs +1 -1
  173. package/dist/esm/api/types/Cargo1.d.mts +1 -1
  174. package/dist/esm/api/types/CargoClientCreate1.d.mts +1 -1
  175. package/dist/esm/api/types/CargoClientUpdate1.d.mts +1 -1
  176. package/dist/{cjs/api/types/DriverUpdateResp.d.ts → esm/api/types/DriverUpdateRes.d.mts} +1 -1
  177. package/dist/esm/api/types/OrgPublicData1.d.mts +1 -1
  178. package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
  179. package/dist/esm/api/types/UserPublicData1.d.mts +1 -2
  180. package/dist/esm/api/types/index.d.mts +1 -1
  181. package/dist/esm/api/types/index.mjs +1 -1
  182. package/dist/esm/version.d.mts +1 -1
  183. package/dist/esm/version.mjs +1 -1
  184. package/package.json +1 -1
  185. package/reference.md +328 -275
  186. package/dist/cjs/api/resources/orders/resources/draft/client/Client.d.ts +0 -23
  187. package/dist/cjs/api/resources/orders/resources/draft/client/Client.js +0 -17
  188. package/dist/cjs/api/resources/orders/resources/draft/client/index.d.ts +0 -1
  189. package/dist/cjs/api/resources/orders/resources/draft/client/index.js +0 -2
  190. package/dist/cjs/api/resources/orders/resources/draft/index.d.ts +0 -2
  191. package/dist/cjs/api/resources/orders/resources/draft/index.js +0 -18
  192. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.d.ts +0 -61
  193. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.js +0 -193
  194. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/index.d.ts +0 -2
  195. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/index.js +0 -17
  196. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.ts +0 -2
  197. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/index.js +0 -2
  198. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/index.d.ts +0 -1
  199. package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/index.js +0 -17
  200. package/dist/cjs/api/resources/orders/resources/draft/resources/index.d.ts +0 -2
  201. package/dist/cjs/api/resources/orders/resources/draft/resources/index.js +0 -41
  202. package/dist/esm/api/resources/orders/resources/draft/client/Client.d.mts +0 -23
  203. package/dist/esm/api/resources/orders/resources/draft/client/Client.mjs +0 -13
  204. package/dist/esm/api/resources/orders/resources/draft/client/index.d.mts +0 -1
  205. package/dist/esm/api/resources/orders/resources/draft/client/index.mjs +0 -1
  206. package/dist/esm/api/resources/orders/resources/draft/index.d.mts +0 -2
  207. package/dist/esm/api/resources/orders/resources/draft/index.mjs +0 -2
  208. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.d.mts +0 -61
  209. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.mjs +0 -156
  210. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/index.d.mts +0 -2
  211. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/index.mjs +0 -1
  212. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.mts +0 -2
  213. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/index.mjs +0 -1
  214. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/index.d.mts +0 -1
  215. package/dist/esm/api/resources/orders/resources/draft/resources/expanded/index.mjs +0 -1
  216. package/dist/esm/api/resources/orders/resources/draft/resources/index.d.mts +0 -2
  217. package/dist/esm/api/resources/orders/resources/draft/resources/index.mjs +0 -2
  218. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.d.ts +0 -0
  219. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.js +0 -0
  220. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.d.ts +0 -0
  221. /package/dist/cjs/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.js +0 -0
  222. /package/dist/cjs/api/types/{DriverUpdateResp.js → DriverUpdateRes.js} +0 -0
  223. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.d.mts +0 -0
  224. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedListReq.mjs +0 -0
  225. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.d.mts +0 -0
  226. /package/dist/esm/api/resources/{orders/resources/draft/resources/expanded → orderDrafts}/client/requests/OrderDraftExpandedReq.mjs +0 -0
  227. /package/dist/esm/api/types/{DriverUpdateResp.mjs → DriverUpdateRes.mjs} +0 -0
@@ -56,7 +56,7 @@ class Drivers {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Lists all organization members paired with their driver information if they are drivers.
59
+ * Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
60
60
  *
61
61
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class Drivers {
107
107
  });
108
108
  }
109
109
  /**
110
- * Lists all drivers belonging to the authenticated organization.
110
+ * Lists all drivers belonging to the authenticated organization. | () -> (list[Driver1])
111
111
  *
112
112
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
113
113
  *
@@ -158,7 +158,7 @@ class Drivers {
158
158
  });
159
159
  }
160
160
  /**
161
- * Creates a new driver profile for an organization member with optional vehicle type assignments.
161
+ * Creates a new driver profile for an organization member with optional vehicle type assignments. | (DriverCreateReq) -> (PydanticObjectId)
162
162
  *
163
163
  * @param {Chrt.DriverCreateReq} request
164
164
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -225,7 +225,7 @@ class Drivers {
225
225
  });
226
226
  }
227
227
  /**
228
- * Retrieves driver information for the authenticated user within their organization.
228
+ * Retrieves driver information for the authenticated user within their organization. | () -> (Driver1)
229
229
  *
230
230
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
231
231
  *
@@ -276,7 +276,7 @@ class Drivers {
276
276
  });
277
277
  }
278
278
  /**
279
- * Retrieves detailed driver information by driver ID within the organization.
279
+ * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
280
280
  *
281
281
  * @param {string} driverId
282
282
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -335,7 +335,7 @@ class Drivers {
335
335
  });
336
336
  }
337
337
  /**
338
- * Deletes a driver from the organization and removes them from associated rate sheets.
338
+ * Deletes a driver from the organization and removes them from associated rate sheets. | () -> (bool)
339
339
  *
340
340
  * @param {string} driverId
341
341
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -394,7 +394,7 @@ class Drivers {
394
394
  });
395
395
  }
396
396
  /**
397
- * Sets the activation status of a driver (active/inactive) within the organization.
397
+ * Sets the activation status of a driver (active/inactive) within the organization. | (SetDriverActivationReq) -> (bool)
398
398
  *
399
399
  * @param {Chrt.SetDriverActivationReq} request
400
400
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -459,7 +459,7 @@ class Drivers {
459
459
  });
460
460
  }
461
461
  /**
462
- * Updates the driver's last known location and timestamp for tracking purposes.
462
+ * Updates the driver's last known location and timestamp for tracking purposes. | (DriverLastSeenReq) -> (bool)
463
463
  *
464
464
  * @param {Chrt.DriverLastSeenReq} request
465
465
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -532,7 +532,7 @@ class Drivers {
532
532
  });
533
533
  }
534
534
  /**
535
- * Clears the driver's last known location and timestamp.
535
+ * Clears the driver's last known location and timestamp. | () -> (bool)
536
536
  *
537
537
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
538
538
  *
@@ -583,7 +583,7 @@ class Drivers {
583
583
  });
584
584
  }
585
585
  /**
586
- * Updates driver contact details and vehicle type assignments within the organization.
586
+ * Updates driver contact details and vehicle type assignments within the organization. | (UpdateDriverDetailsReq) -> (bool)
587
587
  *
588
588
  * @param {Chrt.UpdateDriverDetailsReq} request
589
589
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -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.
@@ -31,7 +31,7 @@ export declare class OffChrtShipperOrg {
31
31
  protected readonly _options: OffChrtShipperOrg.Options;
32
32
  constructor(_options?: OffChrtShipperOrg.Options);
33
33
  /**
34
- * Creates an off-platform shipper organization record.
34
+ * Creates an off-platform shipper organization record. | (OffChrtShipperOrgClientCreate1) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.OffChrtShipperOrgClientCreate1} request
37
37
  * @param {OffChrtShipperOrg.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.
50
+ * Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
51
51
  *
52
52
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
53
53
  *
@@ -57,7 +57,7 @@ export declare class OffChrtShipperOrg {
57
57
  listV1(requestOptions?: OffChrtShipperOrg.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrg1[]>;
58
58
  private __listV1;
59
59
  /**
60
- * Retrieves specific off-platform shipper organization by ID.
60
+ * Retrieves specific off-platform shipper organization by ID. | () -> (OffChrtShipperOrg1)
61
61
  *
62
62
  * @param {string} id
63
63
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -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.
73
+ * Deletes off-platform shipper organization owned by the authenticated 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.
86
+ * Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
87
87
  *
88
88
  * @param {string} id
89
89
  * @param {Chrt.OffChrtShipperOrgClientUpdate1} request
@@ -56,7 +56,7 @@ class OffChrtShipperOrg {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Creates an off-platform shipper organization record.
59
+ * Creates an off-platform shipper organization record. | (OffChrtShipperOrgClientCreate1) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.OffChrtShipperOrgClientCreate1} request
62
62
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -121,7 +121,7 @@ class OffChrtShipperOrg {
121
121
  });
122
122
  }
123
123
  /**
124
- * Lists all off-platform shipper organizations created by the authenticated organization.
124
+ * Lists all off-platform shipper organizations created by the authenticated organization. | () -> (list[OffChrtShipperOrg1])
125
125
  *
126
126
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
127
127
  *
@@ -172,7 +172,7 @@ class OffChrtShipperOrg {
172
172
  });
173
173
  }
174
174
  /**
175
- * Retrieves specific off-platform shipper organization by ID.
175
+ * Retrieves specific off-platform shipper organization by ID. | () -> (OffChrtShipperOrg1)
176
176
  *
177
177
  * @param {string} id
178
178
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -231,7 +231,7 @@ class OffChrtShipperOrg {
231
231
  });
232
232
  }
233
233
  /**
234
- * Deletes off-platform shipper organization owned by the authenticated organization.
234
+ * Deletes off-platform shipper organization owned by the authenticated organization. | () -> (bool)
235
235
  *
236
236
  * @param {string} id
237
237
  * @param {OffChrtShipperOrg.RequestOptions} requestOptions - Request-specific configuration.
@@ -290,7 +290,7 @@ class OffChrtShipperOrg {
290
290
  });
291
291
  }
292
292
  /**
293
- * Updates existing off-platform shipper organization owned by the authenticated organization.
293
+ * Updates existing off-platform shipper organization owned by the authenticated organization. | (OffChrtShipperOrgClientUpdate1) -> (bool)
294
294
  *
295
295
  * @param {string} id
296
296
  * @param {Chrt.OffChrtShipperOrgClientUpdate1} request
@@ -43,7 +43,7 @@ export declare class OrderDrafts {
43
43
  get taskArtifact(): TaskArtifact;
44
44
  get cargo(): Cargo;
45
45
  /**
46
- * Creates a new draft order with org assignments based on caller's organization type.
46
+ * Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
47
47
  *
48
48
  * @param {Chrt.OrdersNewDraftReq} request
49
49
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ export declare class OrderDrafts {
56
56
  newV1(request?: Chrt.OrdersNewDraftReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersNewDraftRes>;
57
57
  private __newV1;
58
58
  /**
59
- * Updates forwarder and/or shipper org assignments for a draft order
59
+ * Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
60
60
  *
61
61
  * @param {Chrt.OrdersDraftUpdateReq} request
62
62
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -71,7 +71,7 @@ export declare class OrderDrafts {
71
71
  updateV1(request: Chrt.OrdersDraftUpdateReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
72
72
  private __updateV1;
73
73
  /**
74
- * Deletes a draft order and all associated entities
74
+ * Deletes a draft order and all associated entities. | () -> (bool)
75
75
  *
76
76
  * @param {string} orderId
77
77
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -84,7 +84,34 @@ export declare class OrderDrafts {
84
84
  deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
85
85
  private __deleteV1;
86
86
  /**
87
- * Checks whether the draft order satisfies all requirements to move into staging.
87
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
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. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
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. | () -> (bool)
88
115
  *
89
116
  * @param {string} orderId
90
117
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -76,7 +76,7 @@ class OrderDrafts {
76
76
  return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Client_js_4.Cargo(this._options)));
77
77
  }
78
78
  /**
79
- * Creates a new draft order with org assignments based on caller's organization type.
79
+ * Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
80
80
  *
81
81
  * @param {Chrt.OrdersNewDraftReq} request
82
82
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -138,7 +138,7 @@ class OrderDrafts {
138
138
  });
139
139
  }
140
140
  /**
141
- * Updates forwarder and/or shipper org assignments for a draft order
141
+ * Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
142
142
  *
143
143
  * @param {Chrt.OrdersDraftUpdateReq} request
144
144
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -202,7 +202,7 @@ class OrderDrafts {
202
202
  });
203
203
  }
204
204
  /**
205
- * Deletes a draft order and all associated entities
205
+ * Deletes a draft order and all associated entities. | () -> (bool)
206
206
  *
207
207
  * @param {string} orderId
208
208
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -261,7 +261,132 @@ class OrderDrafts {
261
261
  });
262
262
  }
263
263
  /**
264
- * Checks whether the draft order satisfies all requirements to move into staging.
264
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
265
+ *
266
+ * @param {string} orderIdOrShortId
267
+ * @param {Chrt.OrderDraftExpandedReq} request
268
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
269
+ *
270
+ * @throws {@link Chrt.UnprocessableEntityError}
271
+ *
272
+ * @example
273
+ * await client.orderDrafts.expandedV1("order_id_or_short_id")
274
+ */
275
+ expandedV1(orderIdOrShortId, request = {}, requestOptions) {
276
+ return core.HttpResponsePromise.fromPromise(this.__expandedV1(orderIdOrShortId, request, requestOptions));
277
+ }
278
+ __expandedV1(orderIdOrShortId_1) {
279
+ return __awaiter(this, arguments, void 0, function* (orderIdOrShortId, request = {}, requestOptions) {
280
+ var _a, _b, _c, _d;
281
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
282
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
283
+ 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/order_drafts/expanded/v1/${encodeURIComponent(orderIdOrShortId)}`),
284
+ method: "POST",
285
+ headers: _headers,
286
+ contentType: "application/json",
287
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
288
+ requestType: "json",
289
+ body: request,
290
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
291
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
292
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
293
+ });
294
+ if (_response.ok) {
295
+ return { data: _response.body, rawResponse: _response.rawResponse };
296
+ }
297
+ if (_response.error.reason === "status-code") {
298
+ switch (_response.error.statusCode) {
299
+ case 422:
300
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
301
+ default:
302
+ throw new errors.ChrtError({
303
+ statusCode: _response.error.statusCode,
304
+ body: _response.error.body,
305
+ rawResponse: _response.rawResponse,
306
+ });
307
+ }
308
+ }
309
+ switch (_response.error.reason) {
310
+ case "non-json":
311
+ throw new errors.ChrtError({
312
+ statusCode: _response.error.statusCode,
313
+ body: _response.error.rawBody,
314
+ rawResponse: _response.rawResponse,
315
+ });
316
+ case "timeout":
317
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/v1/{order_id_or_short_id}.");
318
+ case "unknown":
319
+ throw new errors.ChrtError({
320
+ message: _response.error.errorMessage,
321
+ rawResponse: _response.rawResponse,
322
+ });
323
+ }
324
+ });
325
+ }
326
+ /**
327
+ * Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
328
+ *
329
+ * @param {Chrt.OrderDraftExpandedListReq} request
330
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
331
+ *
332
+ * @throws {@link Chrt.UnprocessableEntityError}
333
+ *
334
+ * @example
335
+ * await client.orderDrafts.expandedListV1()
336
+ */
337
+ expandedListV1(request = {}, requestOptions) {
338
+ return core.HttpResponsePromise.fromPromise(this.__expandedListV1(request, requestOptions));
339
+ }
340
+ __expandedListV1() {
341
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
342
+ var _a, _b, _c, _d;
343
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
344
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
345
+ 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/order_drafts/expanded/list/v1"),
346
+ method: "POST",
347
+ headers: _headers,
348
+ contentType: "application/json",
349
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
350
+ requestType: "json",
351
+ body: request,
352
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
353
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
354
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
355
+ });
356
+ if (_response.ok) {
357
+ return { data: _response.body, rawResponse: _response.rawResponse };
358
+ }
359
+ if (_response.error.reason === "status-code") {
360
+ switch (_response.error.statusCode) {
361
+ case 422:
362
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
363
+ default:
364
+ throw new errors.ChrtError({
365
+ statusCode: _response.error.statusCode,
366
+ body: _response.error.body,
367
+ rawResponse: _response.rawResponse,
368
+ });
369
+ }
370
+ }
371
+ switch (_response.error.reason) {
372
+ case "non-json":
373
+ throw new errors.ChrtError({
374
+ statusCode: _response.error.statusCode,
375
+ body: _response.error.rawBody,
376
+ rawResponse: _response.rawResponse,
377
+ });
378
+ case "timeout":
379
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/list/v1.");
380
+ case "unknown":
381
+ throw new errors.ChrtError({
382
+ message: _response.error.errorMessage,
383
+ rawResponse: _response.rawResponse,
384
+ });
385
+ }
386
+ });
387
+ }
388
+ /**
389
+ * Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
265
390
  *
266
391
  * @param {string} orderId
267
392
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,2 +1,4 @@
1
1
  export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.js";
2
2
  export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.js";
3
+ export { type OrderDraftExpandedReq } from "./OrderDraftExpandedReq.js";
4
+ export { type OrderDraftExpandedListReq } from "./OrderDraftExpandedListReq.js";
@@ -31,7 +31,7 @@ export declare class Cargo {
31
31
  protected readonly _options: Cargo.Options;
32
32
  constructor(_options?: Cargo.Options);
33
33
  /**
34
- * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller.
34
+ * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddCargoReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.orderDrafts.OrderDraftAddCargoReq} request
37
37
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,7 +50,7 @@ export declare class Cargo {
50
50
  addV1(request: Chrt.orderDrafts.OrderDraftAddCargoReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
51
51
  private __addV1;
52
52
  /**
53
- * Associates existing cargo with a task in a draft order.
53
+ * Associates existing cargo with a task in a draft order. | (OrderDraftAssociateCargoWithTaskReq) -> (bool)
54
54
  *
55
55
  * @param {Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq} request
56
56
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -67,7 +67,7 @@ export declare class Cargo {
67
67
  associateWithTaskV1(request: Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
68
68
  private __associateWithTaskV1;
69
69
  /**
70
- * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller.
70
+ * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
71
71
  *
72
72
  * @param {Chrt.orderDrafts.OrderDraftUpdateCargoReq} request
73
73
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -83,7 +83,7 @@ export declare class Cargo {
83
83
  updateV1(request: Chrt.orderDrafts.OrderDraftUpdateCargoReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
84
84
  private __updateV1;
85
85
  /**
86
- * Deletes a cargo item from a draft order and removes references from associated tasks
86
+ * Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
87
87
  *
88
88
  * @param {string} cargoId
89
89
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class Cargo {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller.
59
+ * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddCargoReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.orderDrafts.OrderDraftAddCargoReq} request
62
62
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -124,7 +124,7 @@ class Cargo {
124
124
  });
125
125
  }
126
126
  /**
127
- * Associates existing cargo with a task in a draft order.
127
+ * Associates existing cargo with a task in a draft order. | (OrderDraftAssociateCargoWithTaskReq) -> (bool)
128
128
  *
129
129
  * @param {Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq} request
130
130
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -190,7 +190,7 @@ class Cargo {
190
190
  });
191
191
  }
192
192
  /**
193
- * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller.
193
+ * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
194
194
  *
195
195
  * @param {Chrt.orderDrafts.OrderDraftUpdateCargoReq} request
196
196
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -255,7 +255,7 @@ class Cargo {
255
255
  });
256
256
  }
257
257
  /**
258
- * Deletes a cargo item from a draft order and removes references from associated tasks
258
+ * Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
259
259
  *
260
260
  * @param {string} cargoId
261
261
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Task {
31
31
  protected readonly _options: Task.Options;
32
32
  constructor(_options?: Task.Options);
33
33
  /**
34
- * Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type.
34
+ * Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type. | (OrderDraftAddTaskReqV1) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.orderDrafts.OrderDraftAddTaskReqV1} request
37
37
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -49,7 +49,7 @@ export declare class Task {
49
49
  addV1(request: Chrt.orderDrafts.OrderDraftAddTaskReqV1, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
50
50
  private __addV1;
51
51
  /**
52
- * Updates a task in an existing draft order
52
+ * Updates a task in an existing draft order. | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
53
53
  *
54
54
  * @param {Chrt.orderDrafts.OrderDraftUpdateTaskReq} request
55
55
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -65,7 +65,7 @@ export declare class Task {
65
65
  updateV1(request: Chrt.orderDrafts.OrderDraftUpdateTaskReq, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
66
66
  private __updateV1;
67
67
  /**
68
- * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group.
68
+ * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group. | () -> (bool)
69
69
  *
70
70
  * @param {string} taskId
71
71
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class Task {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type.
59
+ * Adds a task to an existing task group in a draft order. Validates order is in DRAFT status and task action type matches task group type. | (OrderDraftAddTaskReqV1) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.orderDrafts.OrderDraftAddTaskReqV1} request
62
62
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -123,7 +123,7 @@ class Task {
123
123
  });
124
124
  }
125
125
  /**
126
- * Updates a task in an existing draft order
126
+ * Updates a task in an existing draft order. | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
127
127
  *
128
128
  * @param {Chrt.orderDrafts.OrderDraftUpdateTaskReq} request
129
129
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -188,7 +188,7 @@ class Task {
188
188
  });
189
189
  }
190
190
  /**
191
- * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group.
191
+ * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group. | () -> (bool)
192
192
  *
193
193
  * @param {string} taskId
194
194
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class TaskArtifact {
31
31
  protected readonly _options: TaskArtifact.Options;
32
32
  constructor(_options?: TaskArtifact.Options);
33
33
  /**
34
- * Adds a task artifact to an existing task in a draft order.
34
+ * Adds a task artifact to an existing task in a draft order. | (OrderDraftAddTaskArtifactReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.orderDrafts.OrderDraftAddTaskArtifactReq} request
37
37
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,7 +47,7 @@ export declare class TaskArtifact {
47
47
  addV1(request: Chrt.orderDrafts.OrderDraftAddTaskArtifactReq, requestOptions?: TaskArtifact.RequestOptions): core.HttpResponsePromise<string>;
48
48
  private __addV1;
49
49
  /**
50
- * Deletes a task artifact from a draft order and removes it from the associated task.
50
+ * Deletes a task artifact from a draft order and removes it from the associated task. | () -> (bool)
51
51
  *
52
52
  * @param {string} taskArtifactId
53
53
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class TaskArtifact {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Adds a task artifact to an existing task in a draft order.
59
+ * Adds a task artifact to an existing task in a draft order. | (OrderDraftAddTaskArtifactReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.orderDrafts.OrderDraftAddTaskArtifactReq} request
62
62
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.
@@ -121,7 +121,7 @@ class TaskArtifact {
121
121
  });
122
122
  }
123
123
  /**
124
- * Deletes a task artifact from a draft order and removes it from the associated task.
124
+ * Deletes a task artifact from a draft order and removes it from the associated task. | () -> (bool)
125
125
  *
126
126
  * @param {string} taskArtifactId
127
127
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.