@chrt-inc/typescript-sdk 1.318.0 → 1.320.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/cjs/Client.d.ts +6 -3
  2. package/dist/cjs/Client.js +12 -7
  3. package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
  4. package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
  5. package/dist/cjs/api/resources/cargos/index.d.ts +1 -0
  6. package/dist/cjs/{exports.js → api/resources/cargos/index.js} +1 -1
  7. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
  8. package/dist/cjs/api/resources/connections/client/Client.js +4 -4
  9. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
  11. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
  12. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
  13. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
  15. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
  16. package/dist/cjs/api/resources/dev/client/Client.js +4 -4
  17. package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/drivers/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/index.d.ts +3 -3
  20. package/dist/cjs/api/resources/index.js +4 -4
  21. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  22. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  23. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  24. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  25. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
  26. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
  27. package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +7 -17
  28. package/dist/cjs/api/resources/orderDrafts/client/Client.js +11 -68
  29. package/dist/cjs/api/resources/orderDrafts/client/requests/index.d.ts +0 -2
  30. package/dist/cjs/api/resources/orderDrafts/index.d.ts +1 -1
  31. package/dist/cjs/api/resources/orderDrafts/index.js +1 -1
  32. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.d.ts +55 -0
  33. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.js +158 -0
  34. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/index.d.ts +2 -0
  35. package/dist/cjs/{core/exports.js → api/resources/orderDrafts/resources/expanded/client/index.js} +1 -1
  36. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +25 -0
  37. package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/orderDrafts/resources/expanded/index.d.ts +2 -0
  39. package/dist/cjs/{core/form-data-utils → api/resources/orderDrafts/resources/expanded}/index.js +2 -4
  40. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +8 -0
  41. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +10 -0
  42. package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/index.d.ts +1 -0
  43. package/dist/cjs/{core/file → api/resources/orderDrafts/resources/expanded/types}/index.js +1 -2
  44. package/dist/cjs/api/resources/orderDrafts/resources/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/orderDrafts/resources/index.js +4 -1
  46. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
  47. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
  48. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
  49. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
  50. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
  51. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
  52. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
  53. package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
  54. package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
  55. package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
  56. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
  57. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
  58. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
  59. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
  60. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
  61. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
  62. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
  63. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
  64. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  65. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  66. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +0 -60
  67. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +0 -246
  68. package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +0 -1
  69. package/dist/cjs/api/resources/taskArtifacts/client/index.js +0 -15
  70. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -31
  71. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +0 -128
  72. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +0 -1
  73. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +0 -15
  74. package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +0 -1
  75. package/dist/cjs/api/resources/taskArtifacts/resources/index.js +0 -4
  76. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
  77. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
  78. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
  79. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
  80. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  81. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  82. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
  83. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
  84. package/dist/cjs/api/types/{OrderDraftExpandedRes.d.ts → OrderDraftExpanded.d.ts} +5 -6
  85. package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -4
  86. package/dist/{esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → cjs/api/types/OrderDraftSortByEnum.d.ts} +1 -1
  87. package/dist/cjs/api/types/index.d.ts +2 -3
  88. package/dist/cjs/api/types/index.js +2 -3
  89. package/dist/cjs/core/index.d.ts +0 -2
  90. package/dist/cjs/core/index.js +1 -3
  91. package/dist/cjs/index.d.ts +0 -1
  92. package/dist/cjs/index.js +0 -4
  93. package/dist/cjs/version.d.ts +1 -1
  94. package/dist/cjs/version.js +1 -1
  95. package/dist/esm/Client.d.mts +6 -3
  96. package/dist/esm/Client.mjs +10 -5
  97. package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
  98. package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
  99. package/dist/esm/api/resources/cargos/index.d.mts +1 -0
  100. package/dist/esm/api/resources/cargos/index.mjs +1 -0
  101. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
  102. package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
  103. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
  104. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
  105. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
  106. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
  107. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
  108. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
  109. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
  110. package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
  111. package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -2
  112. package/dist/esm/api/resources/drivers/client/Client.mjs +2 -2
  113. package/dist/esm/api/resources/index.d.mts +3 -3
  114. package/dist/esm/api/resources/index.mjs +3 -3
  115. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  116. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  117. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  118. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  119. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
  120. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
  121. package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +7 -17
  122. package/dist/esm/api/resources/orderDrafts/client/Client.mjs +11 -68
  123. package/dist/esm/api/resources/orderDrafts/client/requests/index.d.mts +0 -2
  124. package/dist/esm/api/resources/orderDrafts/index.d.mts +1 -1
  125. package/dist/esm/api/resources/orderDrafts/index.mjs +1 -1
  126. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.d.mts +55 -0
  127. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.mjs +121 -0
  128. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.d.mts +2 -0
  129. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.mjs +1 -0
  130. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +25 -0
  131. package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +1 -0
  132. package/dist/esm/api/resources/orderDrafts/resources/expanded/index.d.mts +2 -0
  133. package/dist/esm/api/resources/orderDrafts/resources/expanded/index.mjs +2 -0
  134. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +8 -0
  135. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +7 -0
  136. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.d.mts +1 -0
  137. package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.mjs +1 -0
  138. package/dist/esm/api/resources/orderDrafts/resources/index.d.mts +3 -0
  139. package/dist/esm/api/resources/orderDrafts/resources/index.mjs +3 -0
  140. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
  141. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
  142. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
  143. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
  144. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
  145. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
  146. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
  147. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
  148. package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
  149. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
  150. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
  151. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
  152. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
  153. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
  154. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
  155. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
  156. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
  157. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
  158. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  159. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  160. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +0 -60
  161. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +0 -213
  162. package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +0 -1
  163. package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
  164. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -31
  165. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +0 -128
  166. package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +0 -1
  167. package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -1
  168. package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +0 -1
  169. package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +0 -1
  170. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
  171. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
  172. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
  173. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
  174. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  175. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  176. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
  177. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
  178. package/dist/esm/api/types/{OrderDraftExpandedRes.d.mts → OrderDraftExpanded.d.mts} +5 -6
  179. package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -4
  180. package/dist/esm/api/types/OrderDraftSortByEnum.d.mts +4 -0
  181. package/dist/esm/api/types/index.d.mts +2 -3
  182. package/dist/esm/api/types/index.mjs +2 -3
  183. package/dist/esm/core/index.d.mts +0 -2
  184. package/dist/esm/core/index.mjs +0 -2
  185. package/dist/esm/index.d.mts +0 -1
  186. package/dist/esm/index.mjs +0 -1
  187. package/dist/esm/version.d.mts +1 -1
  188. package/dist/esm/version.mjs +1 -1
  189. package/package.json +1 -1
  190. package/reference.md +208 -396
  191. package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.ts +0 -21
  192. package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.ts +0 -21
  193. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
  194. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
  195. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js +0 -5
  196. package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +0 -2
  197. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +0 -13
  198. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js +0 -5
  199. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
  200. package/dist/cjs/api/types/OrderDraftExpandedRes.js +0 -5
  201. package/dist/cjs/api/types/TaskDraftExpanded.d.ts +0 -10
  202. package/dist/cjs/api/types/TaskDraftExpanded.js +0 -5
  203. package/dist/cjs/api/types/TaskGroupDraftExpanded.d.ts +0 -10
  204. package/dist/cjs/api/types/TaskGroupDraftExpanded.js +0 -5
  205. package/dist/cjs/core/exports.d.ts +0 -1
  206. package/dist/cjs/core/file/exports.d.ts +0 -1
  207. package/dist/cjs/core/file/exports.js +0 -2
  208. package/dist/cjs/core/file/file.d.ts +0 -5
  209. package/dist/cjs/core/file/file.js +0 -203
  210. package/dist/cjs/core/file/index.d.ts +0 -2
  211. package/dist/cjs/core/file/types.d.ts +0 -66
  212. package/dist/cjs/core/file/types.js +0 -2
  213. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +0 -16
  214. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +0 -208
  215. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
  216. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +0 -12
  217. package/dist/cjs/core/form-data-utils/index.d.ts +0 -2
  218. package/dist/cjs/exports.d.ts +0 -1
  219. package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.mts +0 -21
  220. package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.mts +0 -21
  221. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
  222. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
  223. package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +0 -2
  224. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +0 -13
  225. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs +0 -4
  226. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
  227. package/dist/esm/api/types/OrderDraftExpandedRes.mjs +0 -4
  228. package/dist/esm/api/types/TaskDraftExpanded.d.mts +0 -10
  229. package/dist/esm/api/types/TaskDraftExpanded.mjs +0 -4
  230. package/dist/esm/api/types/TaskGroupDraftExpanded.d.mts +0 -10
  231. package/dist/esm/api/types/TaskGroupDraftExpanded.mjs +0 -4
  232. package/dist/esm/core/exports.d.mts +0 -1
  233. package/dist/esm/core/exports.mjs +0 -1
  234. package/dist/esm/core/file/exports.d.mts +0 -1
  235. package/dist/esm/core/file/file.d.mts +0 -5
  236. package/dist/esm/core/file/file.mjs +0 -167
  237. package/dist/esm/core/file/index.d.mts +0 -2
  238. package/dist/esm/core/file/index.mjs +0 -2
  239. package/dist/esm/core/file/types.d.mts +0 -66
  240. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +0 -16
  241. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +0 -170
  242. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +0 -1
  243. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +0 -9
  244. package/dist/esm/core/form-data-utils/index.d.mts +0 -2
  245. package/dist/esm/core/form-data-utils/index.mjs +0 -2
  246. package/dist/esm/exports.d.mts +0 -1
  247. package/dist/esm/exports.mjs +0 -1
  248. /package/dist/{esm/api/resources/taskArtifacts/client/requests/index.mjs → cjs/api/resources/cargos/client/index.d.ts} +0 -0
  249. /package/dist/cjs/api/resources/{taskArtifacts/client/requests → cargos/client}/index.js +0 -0
  250. /package/dist/cjs/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.js → resources/expanded/client/requests/ExpandedListV1Request.js} +0 -0
  251. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → orderDrafts/resources/expanded}/client/requests/index.js +0 -0
  252. /package/dist/cjs/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.js → types/OrderDraftExpanded.js} +0 -0
  253. /package/dist/cjs/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → types/OrderDraftSortByEnum.js} +0 -0
  254. /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/index.mjs → cargos/client/index.d.mts} +0 -0
  255. /package/dist/esm/{core/file/exports.mjs → api/resources/cargos/client/index.mjs} +0 -0
  256. /package/dist/esm/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.mjs → resources/expanded/client/requests/ExpandedListV1Request.mjs} +0 -0
  257. /package/dist/esm/{core/file/types.mjs → api/resources/orderDrafts/resources/expanded/client/requests/index.mjs} +0 -0
  258. /package/dist/esm/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.mjs → types/OrderDraftExpanded.mjs} +0 -0
  259. /package/dist/esm/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → types/OrderDraftSortByEnum.mjs} +0 -0
@@ -8,6 +8,7 @@ import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
8
8
  import { Task } from "../resources/task/client/Client.mjs";
9
9
  import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
10
10
  import { Cargo } from "../resources/cargo/client/Client.mjs";
11
+ import { Expanded } from "../resources/expanded/client/Client.mjs";
11
12
  export declare namespace OrderDrafts {
12
13
  interface Options {
13
14
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -37,11 +38,13 @@ export declare class OrderDrafts {
37
38
  protected _task: Task | undefined;
38
39
  protected _taskArtifact: TaskArtifact | undefined;
39
40
  protected _cargo: Cargo | undefined;
41
+ protected _expanded: Expanded | undefined;
40
42
  constructor(_options?: OrderDrafts.Options);
41
43
  get taskGroup(): TaskGroup;
42
44
  get task(): Task;
43
45
  get taskArtifact(): TaskArtifact;
44
46
  get cargo(): Cargo;
47
+ get expanded(): Expanded;
45
48
  /**
46
49
  * Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
47
50
  *
@@ -84,32 +87,19 @@ export declare class OrderDrafts {
84
87
  deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
85
88
  private __deleteV1;
86
89
  /**
87
- * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
90
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
88
91
  *
89
92
  * @param {string} orderIdOrShortId
90
- * @param {Chrt.OrderDraftExpandedReq} request
93
+ * @param {Chrt.OrderAndTaskGroupExpandedReq} request
91
94
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
92
95
  *
93
96
  * @throws {@link Chrt.UnprocessableEntityError}
94
97
  *
95
98
  * @example
96
- * await client.orderDrafts.expandedV1("order_id_or_short_id")
99
+ * await client.orderDrafts.expandedV1("order_id_or_short_id", {})
97
100
  */
98
- expandedV1(orderIdOrShortId: string, request?: Chrt.OrderDraftExpandedReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedRes>;
101
+ expandedV1(orderIdOrShortId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpanded>;
99
102
  private __expandedV1;
100
- /**
101
- * Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
102
- *
103
- * @param {Chrt.OrderDraftExpandedListReq} request
104
- * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
105
- *
106
- * @throws {@link Chrt.UnprocessableEntityError}
107
- *
108
- * @example
109
- * await client.orderDrafts.expandedListV1()
110
- */
111
- expandedListV1(request?: Chrt.OrderDraftExpandedListReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
112
- private __expandedListV1;
113
103
  /**
114
104
  * Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
115
105
  *
@@ -19,6 +19,7 @@ import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
19
19
  import { Task } from "../resources/task/client/Client.mjs";
20
20
  import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
21
21
  import { Cargo } from "../resources/cargo/client/Client.mjs";
22
+ import { Expanded } from "../resources/expanded/client/Client.mjs";
22
23
  export class OrderDrafts {
23
24
  constructor(_options = {}) {
24
25
  this._options = _options;
@@ -39,6 +40,10 @@ export class OrderDrafts {
39
40
  var _a;
40
41
  return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Cargo(this._options)));
41
42
  }
43
+ get expanded() {
44
+ var _a;
45
+ return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Expanded(this._options)));
46
+ }
42
47
  /**
43
48
  * Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
44
49
  *
@@ -225,22 +230,22 @@ export class OrderDrafts {
225
230
  });
226
231
  }
227
232
  /**
228
- * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderDraftExpandedReq) -> (OrderDraftExpandedRes)
233
+ * Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
229
234
  *
230
235
  * @param {string} orderIdOrShortId
231
- * @param {Chrt.OrderDraftExpandedReq} request
236
+ * @param {Chrt.OrderAndTaskGroupExpandedReq} request
232
237
  * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
233
238
  *
234
239
  * @throws {@link Chrt.UnprocessableEntityError}
235
240
  *
236
241
  * @example
237
- * await client.orderDrafts.expandedV1("order_id_or_short_id")
242
+ * await client.orderDrafts.expandedV1("order_id_or_short_id", {})
238
243
  */
239
- expandedV1(orderIdOrShortId, request = {}, requestOptions) {
244
+ expandedV1(orderIdOrShortId, request, requestOptions) {
240
245
  return core.HttpResponsePromise.fromPromise(this.__expandedV1(orderIdOrShortId, request, requestOptions));
241
246
  }
242
- __expandedV1(orderIdOrShortId_1) {
243
- return __awaiter(this, arguments, void 0, function* (orderIdOrShortId, request = {}, requestOptions) {
247
+ __expandedV1(orderIdOrShortId, request, requestOptions) {
248
+ return __awaiter(this, void 0, void 0, function* () {
244
249
  var _a, _b, _c, _d;
245
250
  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
251
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -287,68 +292,6 @@ export class OrderDrafts {
287
292
  }
288
293
  });
289
294
  }
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
295
  /**
353
296
  * Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
354
297
  *
@@ -1,4 +1,2 @@
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";
@@ -1,2 +1,2 @@
1
- export * from "./client/index.mjs";
2
1
  export * from "./resources/index.mjs";
2
+ export * from "./client/index.mjs";
@@ -1,2 +1,2 @@
1
- export * from "./client/index.mjs";
2
1
  export * from "./resources/index.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,55 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace Expanded {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class Expanded {
31
+ protected readonly _options: Expanded.Options;
32
+ constructor(_options?: Expanded.Options);
33
+ /**
34
+ * Lists expanded draft orders for the creator with filtering, sorting, and pagination. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
35
+ *
36
+ * @param {Chrt.orderDrafts.ExpandedListV1Request} request
37
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orderDrafts.expanded.listV1({
43
+ * sort_by: "draft_started_at_timestamp",
44
+ * sort_order: "ascending",
45
+ * page: 1,
46
+ * page_size: 1,
47
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
48
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
49
+ * body: {}
50
+ * })
51
+ */
52
+ listV1(request: Chrt.orderDrafts.ExpandedListV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
53
+ private __listV1;
54
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
55
+ }
@@ -0,0 +1,121 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class Expanded {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Lists expanded draft orders for the creator with filtering, sorting, and pagination. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
24
+ *
25
+ * @param {Chrt.orderDrafts.ExpandedListV1Request} request
26
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.orderDrafts.expanded.listV1({
32
+ * sort_by: "draft_started_at_timestamp",
33
+ * sort_order: "ascending",
34
+ * page: 1,
35
+ * page_size: 1,
36
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
37
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
38
+ * body: {}
39
+ * })
40
+ */
41
+ listV1(request, requestOptions) {
42
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
43
+ }
44
+ __listV1(request, requestOptions) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ var _a, _b, _c, _d, _e, _f;
47
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, body: _body, } = request;
48
+ const _queryParams = {};
49
+ if (sortBy !== undefined) {
50
+ _queryParams["sort_by"] = sortBy;
51
+ }
52
+ if (sortOrder !== undefined) {
53
+ _queryParams["sort_order"] = sortOrder;
54
+ }
55
+ if (page !== undefined) {
56
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
57
+ }
58
+ if (pageSize !== undefined) {
59
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
60
+ }
61
+ if (filterDraftStartedAtTimestampLte !== undefined) {
62
+ _queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
63
+ }
64
+ if (filterDraftStartedAtTimestampGte !== undefined) {
65
+ _queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
66
+ }
67
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
68
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
69
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "oort/order_drafts/expanded/list/v1"),
70
+ method: "POST",
71
+ headers: _headers,
72
+ contentType: "application/json",
73
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
74
+ requestType: "json",
75
+ body: _body,
76
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
+ });
80
+ if (_response.ok) {
81
+ return { data: _response.body, rawResponse: _response.rawResponse };
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ switch (_response.error.statusCode) {
85
+ case 422:
86
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
87
+ default:
88
+ throw new errors.ChrtError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ rawResponse: _response.rawResponse,
92
+ });
93
+ }
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.ChrtError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/list/v1.");
104
+ case "unknown":
105
+ throw new errors.ChrtError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getAuthorizationHeader() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const bearer = yield core.Supplier.get(this._options.token);
115
+ if (bearer != null) {
116
+ return `Bearer ${bearer}`;
117
+ }
118
+ return undefined;
119
+ });
120
+ }
121
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "draft_started_at_timestamp",
9
+ * sort_order: "ascending",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
13
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
+ * body: {}
15
+ * }
16
+ */
17
+ export interface ExpandedListV1Request {
18
+ sort_by?: Chrt.OrderDraftSortByEnum | null;
19
+ sort_order?: Chrt.orderDrafts.ExpandedListV1RequestSortOrder | null;
20
+ page?: number | null;
21
+ page_size?: number | null;
22
+ filter_draft_started_at_timestamp_lte?: string | null;
23
+ filter_draft_started_at_timestamp_gte?: string | null;
24
+ body: Chrt.OrderAndTaskGroupExpandedReq;
25
+ }
@@ -0,0 +1 @@
1
+ export { type ExpandedListV1Request } from "./ExpandedListV1Request.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./types/index.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./types/index.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ExpandedListV1RequestSortOrder = "ascending" | "descending";
5
+ export declare const ExpandedListV1RequestSortOrder: {
6
+ readonly Ascending: "ascending";
7
+ readonly Descending: "descending";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ExpandedListV1RequestSortOrder = {
5
+ Ascending: "ascending",
6
+ Descending: "descending",
7
+ };
@@ -0,0 +1 @@
1
+ export * from "./ExpandedListV1RequestSortOrder.mjs";
@@ -0,0 +1 @@
1
+ export * from "./ExpandedListV1RequestSortOrder.mjs";
@@ -1,3 +1,5 @@
1
+ export * as expanded from "./expanded/index.mjs";
2
+ export * from "./expanded/types/index.mjs";
1
3
  export * as taskGroup from "./taskGroup/index.mjs";
2
4
  export * as task from "./task/index.mjs";
3
5
  export * as taskArtifact from "./taskArtifact/index.mjs";
@@ -6,3 +8,4 @@ export * from "./taskGroup/client/requests/index.mjs";
6
8
  export * from "./task/client/requests/index.mjs";
7
9
  export * from "./taskArtifact/client/requests/index.mjs";
8
10
  export * from "./cargo/client/requests/index.mjs";
11
+ export * from "./expanded/client/requests/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * as expanded from "./expanded/index.mjs";
2
+ export * from "./expanded/types/index.mjs";
1
3
  export * as taskGroup from "./taskGroup/index.mjs";
2
4
  export * as task from "./task/index.mjs";
3
5
  export * as taskArtifact from "./taskArtifact/index.mjs";
@@ -6,3 +8,4 @@ export * from "./taskGroup/client/requests/index.mjs";
6
8
  export * from "./task/client/requests/index.mjs";
7
9
  export * from "./taskArtifact/client/requests/index.mjs";
8
10
  export * from "./cargo/client/requests/index.mjs";
11
+ export * from "./expanded/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. | () -> (CourierOrgInfoForConnections1)
34
+ * Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
35
35
  *
36
36
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -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. | () -> (CourierOrgInfoForConnections1)
23
+ * Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
24
24
  *
25
25
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -31,7 +31,7 @@ export declare class Forwarder {
31
31
  protected readonly _options: Forwarder.Options;
32
32
  constructor(_options?: Forwarder.Options);
33
33
  /**
34
- * Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
34
+ * Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
35
35
  *
36
36
  * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -20,7 +20,7 @@ export class Forwarder {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
23
+ * Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
24
24
  *
25
25
  * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -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. | () -> (ShipperOrgInfoForConnections1)
34
+ * Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
35
35
  *
36
36
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -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. | () -> (ShipperOrgInfoForConnections1)
23
+ * Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
24
24
  *
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -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. | () -> (OrgProfileRes1)
34
+ * Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
35
35
  *
36
36
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -20,7 +20,7 @@ export class OrgProfiles {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves the courier or forwarder organization profile for the authenticated organization. | () -> (OrgProfileRes1)
23
+ * Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
24
24
  *
25
25
  * @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -41,7 +41,7 @@ export declare class Orgs {
41
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. | () -> (list[OrgMemberDetails])
44
+ * Lists all members of the caller's 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. | () -> (OrgPublicData1)
54
+ * Retrieves public organization data for the caller's 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 org_public_data and org_private_data documents for the authenticated organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
64
+ * Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
65
65
  *
66
66
  * @param {Chrt.CreateOrgPublicDataReq} request
67
67
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -74,7 +74,7 @@ export declare class Orgs {
74
74
  createOrgPublicDataV1(request?: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrgPublicDataRes>;
75
75
  private __createOrgPublicDataV1;
76
76
  /**
77
- * Updates the handle and/or company_name for the authenticated organization. | (UpdateOrgPublicDataReq) -> (bool)
77
+ * Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
78
78
  *
79
79
  * @param {Chrt.UpdateOrgPublicDataReq} request
80
80
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -128,7 +128,7 @@ export declare class Orgs {
128
128
  setOrgTypeV1(request: Chrt.SetOrgTypeReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
129
129
  private __setOrgTypeV1;
130
130
  /**
131
- * Retrieves the Stripe Connect account ID for the authenticated organization. Returns 404 if not set. | () -> (str)
131
+ * Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
132
132
  *
133
133
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
134
134
  *
@@ -71,7 +71,7 @@ export class Orgs {
71
71
  });
72
72
  }
73
73
  /**
74
- * Lists all members of the authenticated organization with their roles and details. | () -> (list[OrgMemberDetails])
74
+ * Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
75
75
  *
76
76
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
@@ -122,7 +122,7 @@ export class Orgs {
122
122
  });
123
123
  }
124
124
  /**
125
- * Retrieves public organization data for the authenticated organization. | () -> (OrgPublicData1)
125
+ * Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
126
126
  *
127
127
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
128
128
  *
@@ -173,7 +173,7 @@ export class Orgs {
173
173
  });
174
174
  }
175
175
  /**
176
- * Creates org_public_data and org_private_data documents for the authenticated organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
176
+ * Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
177
177
  *
178
178
  * @param {Chrt.CreateOrgPublicDataReq} request
179
179
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -235,7 +235,7 @@ export class Orgs {
235
235
  });
236
236
  }
237
237
  /**
238
- * Updates the handle and/or company_name for the authenticated organization. | (UpdateOrgPublicDataReq) -> (bool)
238
+ * Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
239
239
  *
240
240
  * @param {Chrt.UpdateOrgPublicDataReq} request
241
241
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
@@ -479,7 +479,7 @@ export class Orgs {
479
479
  });
480
480
  }
481
481
  /**
482
- * Retrieves the Stripe Connect account ID for the authenticated organization. Returns 404 if not set. | () -> (str)
482
+ * Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
483
483
  *
484
484
  * @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
485
485
  *