@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
@@ -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.
@@ -56,7 +56,7 @@ class TaskGroup {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller.
59
+ * Adds a task group to an existing order draft. Validates order is in DRAFT status and owned by caller. | (OrderDraftAddTaskGroupReq) -> (PydanticObjectId)
60
60
  *
61
61
  * @param {Chrt.orderDrafts.OrderDraftAddTaskGroupReq} request
62
62
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -121,7 +121,7 @@ class TaskGroup {
121
121
  });
122
122
  }
123
123
  /**
124
- * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order.
124
+ * Deletes a task group and all associated entities (tasks, task artifacts, S3 metadata). The task group must belong to a DRAFT order. | () -> (bool)
125
125
  *
126
126
  * @param {string} taskGroupId
127
127
  * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
@@ -5,7 +5,6 @@ import * as environments from "../../../../environments.js";
5
5
  import * as core from "../../../../core/index.js";
6
6
  import { Expanded } from "../resources/expanded/client/Client.js";
7
7
  import { ExpandedList } from "../resources/expandedList/client/Client.js";
8
- import { Draft } from "../resources/draft/client/Client.js";
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.
@@ -53,7 +53,6 @@ const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
54
  const Client_js_1 = require("../resources/expanded/client/Client.js");
55
55
  const Client_js_2 = require("../resources/expandedList/client/Client.js");
56
- const Client_js_3 = require("../resources/draft/client/Client.js");
57
56
  class Orders {
58
57
  constructor(_options = {}) {
59
58
  this._options = _options;
@@ -66,12 +65,8 @@ class Orders {
66
65
  var _a;
67
66
  return ((_a = this._expandedList) !== null && _a !== void 0 ? _a : (this._expandedList = new Client_js_2.ExpandedList(this._options)));
68
67
  }
69
- get draft() {
70
- var _a;
71
- return ((_a = this._draft) !== null && _a !== void 0 ? _a : (this._draft = new Client_js_3.Draft(this._options)));
72
- }
73
68
  /**
74
- * Validates a draft order and stages all related entities in a transaction.
69
+ * Validates a draft order and stages all related entities in a transaction. | () -> (bool)
75
70
  *
76
71
  * @param {string} orderId
77
72
  * @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
@@ -56,7 +56,7 @@ class Expanded {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Fetches a single order for the shipper organization with optional expanded related data.
59
+ * Fetches a single order for the shipper organization with optional expanded related data. | (OrderExpandedForShipperReq) -> (OrderExpandedForShipper)
60
60
  *
61
61
  * @param {string} orderIdOrShortId
62
62
  * @param {Chrt.OrderExpandedForShipperReq} request
@@ -119,7 +119,7 @@ class Expanded {
119
119
  });
120
120
  }
121
121
  /**
122
- * Fetches a single order for the organization that created it with optional expanded related data.
122
+ * Fetches a single order for the organization that created it with optional expanded related data. | (OrderExpandedForOrderCreatorReq) -> (OrderExpandedForOrderCreator)
123
123
  *
124
124
  * @param {string} orderIdOrShortId
125
125
  * @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.
@@ -56,7 +56,7 @@ class ExpandedList {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves orders expanded list for the shipper organization with optional filters and related data.
59
+ * Retrieves orders expanded list for the shipper organization with optional filters and related data. | (OrderExpandedForShipperReq) -> (OrdersExpandedForShipperRes)
60
60
  *
61
61
  * @param {Chrt.orders.ExpandedListPostShipperExpandedListV1Request} request
62
62
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -158,7 +158,7 @@ class ExpandedList {
158
158
  });
159
159
  }
160
160
  /**
161
- * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions.
161
+ * Retrieves orders expanded list for order creator org with optional filters, shipper includes, and exclusions. | (OrderExpandedForOrderCreatorReq) -> (OrdersExpandedForOrderCreatorRes)
162
162
  *
163
163
  * @param {Chrt.orders.ExpandedListPostOrderCreatorExpandedListV1Request} request
164
164
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,4 +1,3 @@
1
1
  export * as expanded from "./expanded/index.js";
2
2
  export * as expandedList from "./expandedList/index.js";
3
- export * as draft from "./draft/index.js";
4
3
  export * from "./expandedList/client/requests/index.js";
@@ -36,8 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.draft = exports.expandedList = exports.expanded = void 0;
39
+ exports.expandedList = exports.expanded = void 0;
40
40
  exports.expanded = __importStar(require("./expanded/index.js"));
41
41
  exports.expandedList = __importStar(require("./expandedList/index.js"));
42
- exports.draft = __importStar(require("./draft/index.js"));
43
42
  __exportStar(require("./expandedList/client/requests/index.js"), exports);
@@ -31,7 +31,7 @@ export declare class Courier {
31
31
  protected readonly _options: Courier.Options;
32
32
  constructor(_options?: Courier.Options);
33
33
  /**
34
- * Retrieves 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.
@@ -56,7 +56,7 @@ class Courier {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves courier organization connection information for the authenticated organization.
59
+ * Retrieves courier organization connection information for the authenticated organization. | () -> (CourierOrgInfoForConnections1)
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 courier organization connection information. Fails if already exists.
110
+ * Creates courier organization connection information. Fails if already exists. | (CourierOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
111
111
  *
112
112
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientCreate1} request
113
113
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
@@ -172,7 +172,7 @@ class Courier {
172
172
  });
173
173
  }
174
174
  /**
175
- * Updates existing courier organization connection information.
175
+ * Updates existing courier organization connection information. | (CourierOrgInfoForConnectionsClientUpdate1) -> (bool)
176
176
  *
177
177
  * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientUpdate1} request
178
178
  * @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.
@@ -56,7 +56,7 @@ class Shipper {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves shipper organization connection information for the authenticated organization.
59
+ * Retrieves shipper organization connection information for the authenticated organization. | () -> (ShipperOrgInfoForConnections1)
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 shipper organization connection information. Fails if already exists.
110
+ * Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
111
111
  *
112
112
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1} request
113
113
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -172,7 +172,7 @@ class Shipper {
172
172
  });
173
173
  }
174
174
  /**
175
- * Updates existing shipper organization connection information.
175
+ * Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
176
176
  *
177
177
  * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1} request
178
178
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class OrgProfiles {
31
31
  protected readonly _options: OrgProfiles.Options;
32
32
  constructor(_options?: OrgProfiles.Options);
33
33
  /**
34
- * Retrieves the courier or forwarder organization profile for the authenticated organization.
34
+ * Retrieves the courier or forwarder organization profile for the authenticated organization. | () -> (OrgProfileRes1)
35
35
  *
36
36
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class OrgProfiles {
41
41
  getV1(requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<Chrt.OrgProfileRes1>;
42
42
  private __getV1;
43
43
  /**
44
- * Creates a new courier organization profile. Fails if a profile already exists for the organization.
44
+ * Creates a new courier organization profile. Fails if a profile already exists for the organization. | (CourierOrgProfileClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.CourierOrgProfileClientCreate1} request
47
47
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,7 +59,7 @@ export declare class OrgProfiles {
59
59
  createCourierV1(request: Chrt.CourierOrgProfileClientCreate1, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<string>;
60
60
  private __createCourierV1;
61
61
  /**
62
- * Creates a new forwarder organization profile. Fails if a profile already exists for the organization.
62
+ * Creates a new forwarder organization profile. Fails if a profile already exists for the organization. | (ForwarderOrgProfileClientCreate1) -> (PydanticObjectId)
63
63
  *
64
64
  * @param {Chrt.ForwarderOrgProfileClientCreate1} request
65
65
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +77,7 @@ export declare class OrgProfiles {
77
77
  createForwarderV1(request: Chrt.ForwarderOrgProfileClientCreate1, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<string>;
78
78
  private __createForwarderV1;
79
79
  /**
80
- * Updates an existing courier organization profile. Can update one or more fields.
80
+ * Updates an existing courier organization profile. Can update one or more fields. | (CourierOrgProfileClientUpdate1) -> (bool)
81
81
  *
82
82
  * @param {Chrt.CourierOrgProfileClientUpdate1} request
83
83
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -90,7 +90,7 @@ export declare class OrgProfiles {
90
90
  updateCourierV1(request?: Chrt.CourierOrgProfileClientUpdate1, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<boolean>;
91
91
  private __updateCourierV1;
92
92
  /**
93
- * Updates an existing forwarder organization profile. Can update one or more fields.
93
+ * Updates an existing forwarder organization profile. Can update one or more fields. | (ForwarderOrgProfileClientUpdate1) -> (bool)
94
94
  *
95
95
  * @param {Chrt.ForwarderOrgProfileClientUpdate1} request
96
96
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,7 +103,7 @@ export declare class OrgProfiles {
103
103
  updateForwarderV1(request?: Chrt.ForwarderOrgProfileClientUpdate1, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<boolean>;
104
104
  private __updateForwarderV1;
105
105
  /**
106
- * Retrieves a courier or forwarder organization profile using the organization's handle for public profile viewing.
106
+ * Retrieves a courier or forwarder organization profile using the organization's handle for public profile viewing. | () -> (OrgProfileRes1)
107
107
  *
108
108
  * @param {string} handle
109
109
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -116,7 +116,7 @@ export declare class OrgProfiles {
116
116
  getByHandleV1(handle: string, requestOptions?: OrgProfiles.RequestOptions): core.HttpResponsePromise<Chrt.OrgProfileRes1>;
117
117
  private __getByHandleV1;
118
118
  /**
119
- * Returns the organization avatar image URL from Clerk or a placeholder if not found.
119
+ * Returns the organization avatar image URL from Clerk or a placeholder if not found. | () -> (str)
120
120
  *
121
121
  * @param {string} handle
122
122
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class OrgProfiles {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves the courier or forwarder organization profile for the authenticated organization.
59
+ * Retrieves the courier or forwarder organization profile for the authenticated organization. | () -> (OrgProfileRes1)
60
60
  *
61
61
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class OrgProfiles {
107
107
  });
108
108
  }
109
109
  /**
110
- * Creates a new courier organization profile. Fails if a profile already exists for the organization.
110
+ * Creates a new courier organization profile. Fails if a profile already exists for the organization. | (CourierOrgProfileClientCreate1) -> (PydanticObjectId)
111
111
  *
112
112
  * @param {Chrt.CourierOrgProfileClientCreate1} request
113
113
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -174,7 +174,7 @@ class OrgProfiles {
174
174
  });
175
175
  }
176
176
  /**
177
- * Creates a new forwarder organization profile. Fails if a profile already exists for the organization.
177
+ * Creates a new forwarder organization profile. Fails if a profile already exists for the organization. | (ForwarderOrgProfileClientCreate1) -> (PydanticObjectId)
178
178
  *
179
179
  * @param {Chrt.ForwarderOrgProfileClientCreate1} request
180
180
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -241,7 +241,7 @@ class OrgProfiles {
241
241
  });
242
242
  }
243
243
  /**
244
- * Updates an existing courier organization profile. Can update one or more fields.
244
+ * Updates an existing courier organization profile. Can update one or more fields. | (CourierOrgProfileClientUpdate1) -> (bool)
245
245
  *
246
246
  * @param {Chrt.CourierOrgProfileClientUpdate1} request
247
247
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -303,7 +303,7 @@ class OrgProfiles {
303
303
  });
304
304
  }
305
305
  /**
306
- * Updates an existing forwarder organization profile. Can update one or more fields.
306
+ * Updates an existing forwarder organization profile. Can update one or more fields. | (ForwarderOrgProfileClientUpdate1) -> (bool)
307
307
  *
308
308
  * @param {Chrt.ForwarderOrgProfileClientUpdate1} request
309
309
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -365,7 +365,7 @@ class OrgProfiles {
365
365
  });
366
366
  }
367
367
  /**
368
- * Retrieves a courier or forwarder organization profile using the organization's handle for public profile viewing.
368
+ * Retrieves a courier or forwarder organization profile using the organization's handle for public profile viewing. | () -> (OrgProfileRes1)
369
369
  *
370
370
  * @param {string} handle
371
371
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -424,7 +424,7 @@ class OrgProfiles {
424
424
  });
425
425
  }
426
426
  /**
427
- * Returns the organization avatar image URL from Clerk or a placeholder if not found.
427
+ * Returns the organization avatar image URL from Clerk or a placeholder if not found. | () -> (str)
428
428
  *
429
429
  * @param {string} handle
430
430
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,17 +31,17 @@ export declare class Orgs {
31
31
  protected readonly _options: Orgs.Options;
32
32
  constructor(_options?: Orgs.Options);
33
33
  /**
34
- * Retrieves basic organization information from the authentication service.
34
+ * Retrieves basic organization information from the authentication service. | () -> (dict)
35
35
  *
36
36
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @example
39
39
  * await client.orgs.getInfoV1()
40
40
  */
41
- getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<unknown>;
41
+ getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
42
42
  private __getInfoV1;
43
43
  /**
44
- * Lists all members of the authenticated organization with their roles and details.
44
+ * Lists all members of the authenticated organization with their roles and details. | () -> (list[OrgMemberDetails])
45
45
  *
46
46
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
47
47
  *
@@ -51,7 +51,7 @@ export declare class Orgs {
51
51
  listMembersV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberDetails[]>;
52
52
  private __listMembersV1;
53
53
  /**
54
- * Retrieves public organization data for the authenticated organization.
54
+ * Retrieves public organization data for the authenticated organization. | () -> (OrgPublicData1)
55
55
  *
56
56
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
@@ -61,7 +61,7 @@ export declare class Orgs {
61
61
  getOrgPublicDataV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicData1>;
62
62
  private __getOrgPublicDataV1;
63
63
  /**
64
- * Creates an org_public_data document for the authenticated organization.
64
+ * Creates an org_public_data document for the authenticated organization. | (CreateOrgPublicDataReq) -> (PydanticObjectId)
65
65
  *
66
66
  * @param {Chrt.CreateOrgPublicDataReq} request
67
67
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -76,7 +76,7 @@ export declare class Orgs {
76
76
  createOrgPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
77
77
  private __createOrgPublicDataV1;
78
78
  /**
79
- * Updates the handle and/or company_name for the authenticated organization.
79
+ * Updates the handle and/or company_name for the authenticated organization. | (UpdateOrgPublicDataReq) -> (bool)
80
80
  *
81
81
  * @param {Chrt.UpdateOrgPublicDataReq} request
82
82
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -89,7 +89,7 @@ export declare class Orgs {
89
89
  updateOrgPublicDataV1(request?: Chrt.UpdateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
90
90
  private __updateOrgPublicDataV1;
91
91
  /**
92
- * Retrieves public organization data for a specific organization by ID.
92
+ * Retrieves public organization data for a specific organization by ID. | () -> (OrgPublicData1)
93
93
  *
94
94
  * @param {string} orgId
95
95
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -102,7 +102,7 @@ export declare class Orgs {
102
102
  getOrgPublicDataByOrgIdV1(orgId: string, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicData1>;
103
103
  private __getOrgPublicDataByOrgIdV1;
104
104
  /**
105
- * Returns True when the provided handle is available, otherwise False.
105
+ * Returns True when the provided handle is available, otherwise False. | () -> (bool)
106
106
  *
107
107
  * @param {string} handle
108
108
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -114,5 +114,15 @@ export declare class Orgs {
114
114
  */
115
115
  getOrgPublicDataHandleAvailabilityV1(handle: string, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
116
116
  private __getOrgPublicDataHandleAvailabilityV1;
117
+ /**
118
+ * Retrieves the Stripe Connect account ID for the authenticated organization. Returns 404 if not set. | () -> (str)
119
+ *
120
+ * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @example
123
+ * await client.orgs.getStripeConnectAccountIdV1()
124
+ */
125
+ getStripeConnectAccountIdV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
126
+ private __getStripeConnectAccountIdV1;
117
127
  protected _getAuthorizationHeader(): Promise<string | undefined>;
118
128
  }
@@ -56,7 +56,7 @@ class Orgs {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves basic organization information from the authentication service.
59
+ * Retrieves basic organization information from the authentication service. | () -> (dict)
60
60
  *
61
61
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
@@ -107,7 +107,7 @@ class Orgs {
107
107
  });
108
108
  }
109
109
  /**
110
- * Lists all members of the authenticated organization with their roles and details.
110
+ * Lists all members of the authenticated organization with their roles and details. | () -> (list[OrgMemberDetails])
111
111
  *
112
112
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
113
113
  *
@@ -158,7 +158,7 @@ class Orgs {
158
158
  });
159
159
  }
160
160
  /**
161
- * Retrieves public organization data for the authenticated organization.
161
+ * Retrieves public organization data for the authenticated organization. | () -> (OrgPublicData1)
162
162
  *
163
163
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
164
164
  *
@@ -209,7 +209,7 @@ class Orgs {
209
209
  });
210
210
  }
211
211
  /**
212
- * Creates an org_public_data document for the authenticated organization.
212
+ * Creates an org_public_data document for the authenticated organization. | (CreateOrgPublicDataReq) -> (PydanticObjectId)
213
213
  *
214
214
  * @param {Chrt.CreateOrgPublicDataReq} request
215
215
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -273,7 +273,7 @@ class Orgs {
273
273
  });
274
274
  }
275
275
  /**
276
- * Updates the handle and/or company_name for the authenticated organization.
276
+ * Updates the handle and/or company_name for the authenticated organization. | (UpdateOrgPublicDataReq) -> (bool)
277
277
  *
278
278
  * @param {Chrt.UpdateOrgPublicDataReq} request
279
279
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -335,7 +335,7 @@ class Orgs {
335
335
  });
336
336
  }
337
337
  /**
338
- * Retrieves public organization data for a specific organization by ID.
338
+ * Retrieves public organization data for a specific organization by ID. | () -> (OrgPublicData1)
339
339
  *
340
340
  * @param {string} orgId
341
341
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -394,7 +394,7 @@ class Orgs {
394
394
  });
395
395
  }
396
396
  /**
397
- * Returns True when the provided handle is available, otherwise False.
397
+ * Returns True when the provided handle is available, otherwise False. | () -> (bool)
398
398
  *
399
399
  * @param {string} handle
400
400
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -412,7 +412,7 @@ class Orgs {
412
412
  var _a, _b, _c, _d;
413
413
  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);
414
414
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
415
- 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, `orgs/org_public_data/handle_available/v1/${encodeURIComponent(handle)}`),
415
+ 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, `orgs/org_public_data/handle_availability/v1/${encodeURIComponent(handle)}`),
416
416
  method: "GET",
417
417
  headers: _headers,
418
418
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -443,7 +443,58 @@ class Orgs {
443
443
  rawResponse: _response.rawResponse,
444
444
  });
445
445
  case "timeout":
446
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/org_public_data/handle_available/v1/{handle}.");
446
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/org_public_data/handle_availability/v1/{handle}.");
447
+ case "unknown":
448
+ throw new errors.ChrtError({
449
+ message: _response.error.errorMessage,
450
+ rawResponse: _response.rawResponse,
451
+ });
452
+ }
453
+ });
454
+ }
455
+ /**
456
+ * Retrieves the Stripe Connect account ID for the authenticated organization. Returns 404 if not set. | () -> (str)
457
+ *
458
+ * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
459
+ *
460
+ * @example
461
+ * await client.orgs.getStripeConnectAccountIdV1()
462
+ */
463
+ getStripeConnectAccountIdV1(requestOptions) {
464
+ return core.HttpResponsePromise.fromPromise(this.__getStripeConnectAccountIdV1(requestOptions));
465
+ }
466
+ __getStripeConnectAccountIdV1(requestOptions) {
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ var _a, _b, _c, _d;
469
+ 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);
470
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
471
+ 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, "orgs/stripe_connect_account_id/v1"),
472
+ method: "GET",
473
+ headers: _headers,
474
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
475
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
476
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
477
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
478
+ });
479
+ if (_response.ok) {
480
+ return { data: _response.body, rawResponse: _response.rawResponse };
481
+ }
482
+ if (_response.error.reason === "status-code") {
483
+ throw new errors.ChrtError({
484
+ statusCode: _response.error.statusCode,
485
+ body: _response.error.body,
486
+ rawResponse: _response.rawResponse,
487
+ });
488
+ }
489
+ switch (_response.error.reason) {
490
+ case "non-json":
491
+ throw new errors.ChrtError({
492
+ statusCode: _response.error.statusCode,
493
+ body: _response.error.rawBody,
494
+ rawResponse: _response.rawResponse,
495
+ });
496
+ case "timeout":
497
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/stripe_connect_account_id/v1.");
447
498
  case "unknown":
448
499
  throw new errors.ChrtError({
449
500
  message: _response.error.errorMessage,