@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
@@ -40,7 +40,7 @@ export class OrderDrafts {
40
40
  return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Cargo(this._options)));
41
41
  }
42
42
  /**
43
- * Creates a new draft order with org assignments based on caller's organization type.
43
+ * Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
44
44
  *
45
45
  * @param {Chrt.OrdersNewDraftReq} request
46
46
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -102,7 +102,7 @@ export class OrderDrafts {
102
102
  });
103
103
  }
104
104
  /**
105
- * Updates forwarder and/or shipper org assignments for a draft order
105
+ * Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
106
106
  *
107
107
  * @param {Chrt.OrdersDraftUpdateReq} request
108
108
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -166,7 +166,7 @@ export class OrderDrafts {
166
166
  });
167
167
  }
168
168
  /**
169
- * Deletes a draft order and all associated entities
169
+ * Deletes a draft order and all associated entities. | () -> (bool)
170
170
  *
171
171
  * @param {string} orderId
172
172
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -225,7 +225,132 @@ export class OrderDrafts {
225
225
  });
226
226
  }
227
227
  /**
228
- * Checks whether the draft order satisfies all requirements to move into staging.
228
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
229
+ *
230
+ * @param {string} orderIdOrShortId
231
+ * @param {Chrt.OrderDraftExpandedReq} request
232
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @throws {@link Chrt.UnprocessableEntityError}
235
+ *
236
+ * @example
237
+ * await client.orderDrafts.expandedV1("order_id_or_short_id")
238
+ */
239
+ expandedV1(orderIdOrShortId, request = {}, requestOptions) {
240
+ return core.HttpResponsePromise.fromPromise(this.__expandedV1(orderIdOrShortId, request, requestOptions));
241
+ }
242
+ __expandedV1(orderIdOrShortId_1) {
243
+ return __awaiter(this, arguments, void 0, function* (orderIdOrShortId, request = {}, requestOptions) {
244
+ var _a, _b, _c, _d;
245
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
246
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
247
+ 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)}`),
248
+ method: "POST",
249
+ headers: _headers,
250
+ contentType: "application/json",
251
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
252
+ requestType: "json",
253
+ body: request,
254
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
255
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
256
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
257
+ });
258
+ if (_response.ok) {
259
+ return { data: _response.body, rawResponse: _response.rawResponse };
260
+ }
261
+ if (_response.error.reason === "status-code") {
262
+ switch (_response.error.statusCode) {
263
+ case 422:
264
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
265
+ default:
266
+ throw new errors.ChrtError({
267
+ statusCode: _response.error.statusCode,
268
+ body: _response.error.body,
269
+ rawResponse: _response.rawResponse,
270
+ });
271
+ }
272
+ }
273
+ switch (_response.error.reason) {
274
+ case "non-json":
275
+ throw new errors.ChrtError({
276
+ statusCode: _response.error.statusCode,
277
+ body: _response.error.rawBody,
278
+ rawResponse: _response.rawResponse,
279
+ });
280
+ case "timeout":
281
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/v1/{order_id_or_short_id}.");
282
+ case "unknown":
283
+ throw new errors.ChrtError({
284
+ message: _response.error.errorMessage,
285
+ rawResponse: _response.rawResponse,
286
+ });
287
+ }
288
+ });
289
+ }
290
+ /**
291
+ * Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
292
+ *
293
+ * @param {Chrt.OrderDraftExpandedListReq} request
294
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
295
+ *
296
+ * @throws {@link Chrt.UnprocessableEntityError}
297
+ *
298
+ * @example
299
+ * await client.orderDrafts.expandedListV1()
300
+ */
301
+ expandedListV1(request = {}, requestOptions) {
302
+ return core.HttpResponsePromise.fromPromise(this.__expandedListV1(request, requestOptions));
303
+ }
304
+ __expandedListV1() {
305
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
306
+ var _a, _b, _c, _d;
307
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
308
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
309
+ 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"),
310
+ method: "POST",
311
+ headers: _headers,
312
+ contentType: "application/json",
313
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
314
+ requestType: "json",
315
+ body: request,
316
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
317
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
318
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
319
+ });
320
+ if (_response.ok) {
321
+ return { data: _response.body, rawResponse: _response.rawResponse };
322
+ }
323
+ if (_response.error.reason === "status-code") {
324
+ switch (_response.error.statusCode) {
325
+ case 422:
326
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
327
+ default:
328
+ throw new errors.ChrtError({
329
+ statusCode: _response.error.statusCode,
330
+ body: _response.error.body,
331
+ rawResponse: _response.rawResponse,
332
+ });
333
+ }
334
+ }
335
+ switch (_response.error.reason) {
336
+ case "non-json":
337
+ throw new errors.ChrtError({
338
+ statusCode: _response.error.statusCode,
339
+ body: _response.error.rawBody,
340
+ rawResponse: _response.rawResponse,
341
+ });
342
+ case "timeout":
343
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/list/v1.");
344
+ case "unknown":
345
+ throw new errors.ChrtError({
346
+ message: _response.error.errorMessage,
347
+ rawResponse: _response.rawResponse,
348
+ });
349
+ }
350
+ });
351
+ }
352
+ /**
353
+ * Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
229
354
  *
230
355
  * @param {string} orderId
231
356
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,2 +1,4 @@
1
1
  export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.mjs";
2
2
  export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.mjs";
3
+ export { type OrderDraftExpandedReq } from "./OrderDraftExpandedReq.mjs";
4
+ export { type OrderDraftExpandedListReq } from "./OrderDraftExpandedListReq.mjs";
@@ -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.
@@ -20,7 +20,7 @@ export class Cargo {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller.
23
+ * Adds a cargo item to an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddCargoReq) -> (PydanticObjectId)
24
24
  *
25
25
  * @param {Chrt.orderDrafts.OrderDraftAddCargoReq} request
26
26
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,7 +88,7 @@ export class Cargo {
88
88
  });
89
89
  }
90
90
  /**
91
- * Associates existing cargo with a task in a draft order.
91
+ * Associates existing cargo with a task in a draft order. | (OrderDraftAssociateCargoWithTaskReq) -> (bool)
92
92
  *
93
93
  * @param {Chrt.orderDrafts.OrderDraftAssociateCargoWithTaskReq} request
94
94
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -154,7 +154,7 @@ export class Cargo {
154
154
  });
155
155
  }
156
156
  /**
157
- * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller.
157
+ * Updates a cargo item in an existing draft order. Validates order is in DRAFT status and owned by caller. | (OrderDraftUpdateCargoReq) -> (PydanticObjectId)
158
158
  *
159
159
  * @param {Chrt.orderDrafts.OrderDraftUpdateCargoReq} request
160
160
  * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
@@ -219,7 +219,7 @@ export class Cargo {
219
219
  });
220
220
  }
221
221
  /**
222
- * Deletes a cargo item from a draft order and removes references from associated tasks
222
+ * Deletes a cargo item from a draft order and removes references from associated tasks. | () -> (bool)
223
223
  *
224
224
  * @param {string} cargoId
225
225
  * @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.
@@ -20,7 +20,7 @@ export class Task {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * 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.
23
+ * 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)
24
24
  *
25
25
  * @param {Chrt.orderDrafts.OrderDraftAddTaskReqV1} request
26
26
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -87,7 +87,7 @@ export class Task {
87
87
  });
88
88
  }
89
89
  /**
90
- * Updates a task in an existing draft order
90
+ * Updates a task in an existing draft order. | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
91
91
  *
92
92
  * @param {Chrt.orderDrafts.OrderDraftUpdateTaskReq} request
93
93
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -152,7 +152,7 @@ export class Task {
152
152
  });
153
153
  }
154
154
  /**
155
- * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group.
155
+ * Deletes a task from a draft order, including all task artifacts. Cargo is preserved. Task is removed from task group. | () -> (bool)
156
156
  *
157
157
  * @param {string} taskId
158
158
  * @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.
@@ -20,7 +20,7 @@ export class TaskArtifact {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Adds a task artifact to an existing task in a draft order.
23
+ * Adds a task artifact to an existing task in a draft order. | (OrderDraftAddTaskArtifactReq) -> (PydanticObjectId)
24
24
  *
25
25
  * @param {Chrt.orderDrafts.OrderDraftAddTaskArtifactReq} request
26
26
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.
@@ -85,7 +85,7 @@ export class TaskArtifact {
85
85
  });
86
86
  }
87
87
  /**
88
- * Deletes a task artifact from a draft order and removes it from the associated task.
88
+ * Deletes a task artifact from a draft order and removes it from the associated task. | () -> (bool)
89
89
  *
90
90
  * @param {string} taskArtifactId
91
91
  * @param {TaskArtifact.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class TaskGroup {
31
31
  protected readonly _options: TaskGroup.Options;
32
32
  constructor(_options?: TaskGroup.Options);
33
33
  /**
34
- * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller.
34
+ * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
35
35
  *
36
36
  * @param {Chrt.orderDrafts.OrderDraftAddTaskGroupReq} request
37
37
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,7 +47,7 @@ export declare class TaskGroup {
47
47
  addV1(request: Chrt.orderDrafts.OrderDraftAddTaskGroupReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<string>;
48
48
  private __addV1;
49
49
  /**
50
- * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order.
50
+ * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
51
51
  *
52
52
  * @param {string} taskGroupId
53
53
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class TaskGroup {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller.
23
+ * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
24
24
  *
25
25
  * @param {Chrt.orderDrafts.OrderDraftAddTaskGroupReq} request
26
26
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -85,7 +85,7 @@ export class TaskGroup {
85
85
  });
86
86
  }
87
87
  /**
88
- * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order.
88
+ * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
89
89
  *
90
90
  * @param {string} taskGroupId
91
91
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -5,7 +5,6 @@ import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import { Expanded } from "../resources/expanded/client/Client.mjs";
7
7
  import { ExpandedList } from "../resources/expandedList/client/Client.mjs";
8
- import { Draft } from "../resources/draft/client/Client.mjs";
9
8
  export declare namespace Orders {
10
9
  interface Options {
11
10
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -33,13 +32,11 @@ export declare class Orders {
33
32
  protected readonly _options: Orders.Options;
34
33
  protected _expanded: Expanded | undefined;
35
34
  protected _expandedList: ExpandedList | undefined;
36
- protected _draft: Draft | undefined;
37
35
  constructor(_options?: Orders.Options);
38
36
  get expanded(): Expanded;
39
37
  get expandedList(): ExpandedList;
40
- get draft(): Draft;
41
38
  /**
42
- * Validates a draft order and stages all related entities in a transaction.
39
+ * Validates a draft order and stages all related entities in a transaction. | () -> (bool)
43
40
  *
44
41
  * @param {string} orderId
45
42
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -17,7 +17,6 @@ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.
17
17
  import * as errors from "../../../../errors/index.mjs";
18
18
  import { Expanded } from "../resources/expanded/client/Client.mjs";
19
19
  import { ExpandedList } from "../resources/expandedList/client/Client.mjs";
20
- import { Draft } from "../resources/draft/client/Client.mjs";
21
20
  export class Orders {
22
21
  constructor(_options = {}) {
23
22
  this._options = _options;
@@ -30,12 +29,8 @@ export class Orders {
30
29
  var _a;
31
30
  return ((_a = this._expandedList) !== null && _a !== void 0 ? _a : (this._expandedList = new ExpandedList(this._options)));
32
31
  }
33
- get draft() {
34
- var _a;
35
- return ((_a = this._draft) !== null && _a !== void 0 ? _a : (this._draft = new Draft(this._options)));
36
- }
37
32
  /**
38
- * Validates a draft order and stages all related entities in a transaction.
33
+ * Validates a draft order and stages all related entities in a transaction. | () -> (bool)
39
34
  *
40
35
  * @param {string} orderId
41
36
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Expanded {
31
31
  protected readonly _options: Expanded.Options;
32
32
  constructor(_options?: Expanded.Options);
33
33
  /**
34
- * Fetches a single order for the shipper organization with optional expanded related data.
34
+ * Fetches a single order for the shipper organization with optional expanded related data. | (OrderExpandedForShipperReq) -> (OrderExpandedForShipper)
35
35
  *
36
36
  * @param {string} orderIdOrShortId
37
37
  * @param {Chrt.OrderExpandedForShipperReq} request
@@ -45,7 +45,7 @@ export declare class Expanded {
45
45
  postForShipperByOrderIdV1(orderIdOrShortId: string, request: Chrt.OrderExpandedForShipperReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForShipper>;
46
46
  private __postForShipperByOrderIdV1;
47
47
  /**
48
- * Fetches a single order for the organization that created it with optional expanded related data.
48
+ * Fetches a single order for the organization that created it with optional expanded related data. | (OrderExpandedForOrderCreatorReq) -> (OrderExpandedForOrderCreator)
49
49
  *
50
50
  * @param {string} orderIdOrShortId
51
51
  * @param {Chrt.OrderExpandedForOrderCreatorReq} request
@@ -20,7 +20,7 @@ export class Expanded {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Fetches a single order for the shipper organization with optional expanded related data.
23
+ * Fetches a single order for the shipper organization with optional expanded related data. | (OrderExpandedForShipperReq) -> (OrderExpandedForShipper)
24
24
  *
25
25
  * @param {string} orderIdOrShortId
26
26
  * @param {Chrt.OrderExpandedForShipperReq} request
@@ -83,7 +83,7 @@ export class Expanded {
83
83
  });
84
84
  }
85
85
  /**
86
- * Fetches a single order for the organization that created it with optional expanded related data.
86
+ * Fetches a single order for the organization that created it with optional expanded related data. | (OrderExpandedForOrderCreatorReq) -> (OrderExpandedForOrderCreator)
87
87
  *
88
88
  * @param {string} orderIdOrShortId
89
89
  * @param {Chrt.OrderExpandedForOrderCreatorReq} request
@@ -31,7 +31,7 @@ export declare class ExpandedList {
31
31
  protected readonly _options: ExpandedList.Options;
32
32
  constructor(_options?: ExpandedList.Options);
33
33
  /**
34
- * Retrieves orders expanded list for the shipper organization with optional filters and related data.
34
+ * Retrieves orders expanded list for the shipper organization with optional filters and related data. | (OrderExpandedForShipperReq) -> (OrdersExpandedForShipperRes)
35
35
  *
36
36
  * @param {Chrt.orders.ExpandedListPostShipperExpandedListV1Request} request
37
37
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -53,7 +53,7 @@ export declare class ExpandedList {
53
53
  postShipperExpandedListV1(request: Chrt.orders.ExpandedListPostShipperExpandedListV1Request, requestOptions?: ExpandedList.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedForShipperRes>;
54
54
  private __postShipperExpandedListV1;
55
55
  /**
56
- * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions.
56
+ * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions. | (OrderExpandedForOrderCreatorReq) -> (OrdersExpandedForOrderCreatorRes)
57
57
  *
58
58
  * @param {Chrt.orders.ExpandedListPostOrderCreatorExpandedListV1Request} request
59
59
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class ExpandedList {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves orders expanded list for the shipper organization with optional filters and related data.
23
+ * Retrieves orders expanded list for the shipper organization with optional filters and related data. | (OrderExpandedForShipperReq) -> (OrdersExpandedForShipperRes)
24
24
  *
25
25
  * @param {Chrt.orders.ExpandedListPostShipperExpandedListV1Request} request
26
26
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -122,7 +122,7 @@ export class ExpandedList {
122
122
  });
123
123
  }
124
124
  /**
125
- * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions.
125
+ * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions. | (OrderExpandedForOrderCreatorReq) -> (OrdersExpandedForOrderCreatorRes)
126
126
  *
127
127
  * @param {Chrt.orders.ExpandedListPostOrderCreatorExpandedListV1Request} request
128
128
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,4 +1,3 @@
1
1
  export * as expanded from "./expanded/index.mjs";
2
2
  export * as expandedList from "./expandedList/index.mjs";
3
- export * as draft from "./draft/index.mjs";
4
3
  export * from "./expandedList/client/requests/index.mjs";
@@ -1,4 +1,3 @@
1
1
  export * as expanded from "./expanded/index.mjs";
2
2
  export * as expandedList from "./expandedList/index.mjs";
3
- export * as draft from "./draft/index.mjs";
4
3
  export * from "./expandedList/client/requests/index.mjs";
@@ -31,7 +31,7 @@ export declare class Courier {
31
31
  protected readonly _options: Courier.Options;
32
32
  constructor(_options?: Courier.Options);
33
33
  /**
34
- * Retrieves courier organization connection information for the authenticated organization.
34
+ * Retrieves courier organization connection information for the authenticated organization. | () -> (CourierOrgInfoForConnections1)
35
35
  *
36
36
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Courier {
41
41
  getV1(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgInfoForConnections1>;
42
42
  private __getV1;
43
43
  /**
44
- * Creates courier organization connection information. Fails if already exists.
44
+ * Creates courier organization connection information. Fails if already exists. | (CourierOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientCreate1} request
47
47
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -57,7 +57,7 @@ export declare class Courier {
57
57
  createV1(request: Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientCreate1, requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<string>;
58
58
  private __createV1;
59
59
  /**
60
- * Updates existing courier organization connection information.
60
+ * Updates existing courier organization connection information. | (CourierOrgInfoForConnectionsClientUpdate1) -> (bool)
61
61
  *
62
62
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientUpdate1} request
63
63
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Courier {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves courier organization connection information for the authenticated organization.
23
+ * Retrieves courier organization connection information for the authenticated organization. | () -> (CourierOrgInfoForConnections1)
24
24
  *
25
25
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -71,7 +71,7 @@ export class Courier {
71
71
  });
72
72
  }
73
73
  /**
74
- * Creates courier organization connection information. Fails if already exists.
74
+ * Creates courier organization connection information. Fails if already exists. | (CourierOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
75
75
  *
76
76
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientCreate1} request
77
77
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -136,7 +136,7 @@ export class Courier {
136
136
  });
137
137
  }
138
138
  /**
139
- * Updates existing courier organization connection information.
139
+ * Updates existing courier organization connection information. | (CourierOrgInfoForConnectionsClientUpdate1) -> (bool)
140
140
  *
141
141
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientUpdate1} request
142
142
  * @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 shipper organization connection information for the authenticated organization.
34
+ * Retrieves shipper organization connection information for the authenticated organization. | () -> (ShipperOrgInfoForConnections1)
35
35
  *
36
36
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Shipper {
41
41
  getV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgInfoForConnections1>;
42
42
  private __getV1;
43
43
  /**
44
- * Creates shipper organization connection information. Fails if already exists.
44
+ * Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1} request
47
47
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -57,7 +57,7 @@ export declare class Shipper {
57
57
  createV1(request: Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
58
58
  private __createV1;
59
59
  /**
60
- * Updates existing shipper organization connection information.
60
+ * Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
61
61
  *
62
62
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1} request
63
63
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Shipper {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves shipper organization connection information for the authenticated organization.
23
+ * Retrieves shipper organization connection information for the authenticated organization. | () -> (ShipperOrgInfoForConnections1)
24
24
  *
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -71,7 +71,7 @@ export class Shipper {
71
71
  });
72
72
  }
73
73
  /**
74
- * Creates shipper organization connection information. Fails if already exists.
74
+ * Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
75
75
  *
76
76
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1} request
77
77
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -136,7 +136,7 @@ export class Shipper {
136
136
  });
137
137
  }
138
138
  /**
139
- * Updates existing shipper organization connection information.
139
+ * Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
140
140
  *
141
141
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1} request
142
142
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.