@chrt-inc/typescript-sdk 1.863.0 → 1.869.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 (240) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -3
  3. package/dist/cjs/api/resources/shipping/client/Client.js +16 -21
  4. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -3
  5. package/dist/cjs/api/resources/shipping/resources/index.js +2 -4
  6. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +3 -0
  7. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +7 -2
  8. package/dist/cjs/api/resources/shipping/resources/orders/index.d.ts +1 -1
  9. package/dist/cjs/api/resources/shipping/resources/orders/index.js +1 -1
  10. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +212 -0
  11. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/Client.js +254 -69
  12. package/dist/cjs/api/resources/shipping/resources/{orderDrafts/client/requests/BodyPostShippingOrderDraftsImageToTextV1.d.ts → orders/resources/drafts/client/requests/BodyPostShippingOrdersDraftsImageToTextV1.d.ts} +2 -2
  13. package/dist/{esm/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
  14. package/dist/cjs/api/resources/shipping/resources/{orderDrafts/client/requests/OrdersNewDraftReq.d.ts → orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts} +2 -2
  15. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +6 -0
  16. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/index.d.ts +2 -1
  17. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/index.js +2 -1
  18. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/Client.d.ts +16 -16
  19. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/Client.js +24 -24
  20. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +1 -1
  21. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUpdateCargoReq.d.ts +1 -1
  22. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/client/Client.d.ts +5 -5
  23. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/client/Client.js +11 -11
  24. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/index.d.ts +0 -2
  25. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/index.js +1 -3
  26. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/Client.d.ts +10 -10
  27. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/Client.js +16 -16
  28. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +1 -1
  29. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftUpdateTaskReq.d.ts +1 -1
  30. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/Client.d.ts +7 -7
  31. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/Client.js +12 -12
  32. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +1 -1
  33. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/Client.d.ts +25 -25
  34. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/Client.js +41 -41
  35. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
  36. package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetVehicleTypeReq.d.ts +1 -1
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  38. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +34 -2
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +5 -0
  40. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +5 -0
  41. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +3 -0
  42. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +4 -1
  43. package/dist/cjs/api/types/{OrdersNewDraftRes.d.ts → OrdersOpenDraftRes.d.ts} +1 -1
  44. package/dist/cjs/api/types/index.d.ts +1 -1
  45. package/dist/cjs/api/types/index.js +1 -1
  46. package/dist/cjs/version.d.ts +1 -1
  47. package/dist/cjs/version.js +1 -1
  48. package/dist/esm/Client.mjs +2 -2
  49. package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -3
  50. package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
  51. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -3
  52. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -3
  53. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +3 -0
  54. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +5 -0
  55. package/dist/esm/api/resources/shipping/resources/orders/index.d.mts +1 -1
  56. package/dist/esm/api/resources/shipping/resources/orders/index.mjs +1 -1
  57. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +212 -0
  58. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/Client.mjs +242 -57
  59. package/dist/esm/api/resources/shipping/resources/{orderDrafts/client/requests/BodyPostShippingOrderDraftsImageToTextV1.d.mts → orders/resources/drafts/client/requests/BodyPostShippingOrdersDraftsImageToTextV1.d.mts} +2 -2
  60. package/dist/{cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
  61. package/dist/esm/api/resources/shipping/resources/{orderDrafts/client/requests/OrdersNewDraftReq.d.mts → orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts} +2 -2
  62. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +6 -0
  63. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/index.d.mts +2 -1
  64. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/index.mjs +2 -1
  65. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/Client.d.mts +16 -16
  66. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/Client.mjs +24 -24
  67. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +1 -1
  68. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUpdateCargoReq.d.mts +1 -1
  69. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/client/Client.d.mts +5 -5
  70. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/client/Client.mjs +11 -11
  71. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/index.d.mts +0 -2
  72. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/index.mjs +0 -2
  73. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/Client.d.mts +10 -10
  74. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/Client.mjs +16 -16
  75. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +1 -1
  76. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftUpdateTaskReq.d.mts +1 -1
  77. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/Client.d.mts +7 -7
  78. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/Client.mjs +12 -12
  79. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +1 -1
  80. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/Client.d.mts +25 -25
  81. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/Client.mjs +41 -41
  82. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
  83. package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetVehicleTypeReq.d.mts +1 -1
  84. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  85. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +34 -2
  86. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +5 -0
  87. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +5 -0
  88. package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +3 -0
  89. package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +3 -0
  90. package/dist/esm/api/types/{OrdersNewDraftRes.d.mts → OrdersOpenDraftRes.d.mts} +1 -1
  91. package/dist/esm/api/types/index.d.mts +1 -1
  92. package/dist/esm/api/types/index.mjs +1 -1
  93. package/dist/esm/version.d.mts +1 -1
  94. package/dist/esm/version.mjs +1 -1
  95. package/package.json +1 -1
  96. package/reference.md +1160 -1158
  97. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +0 -184
  98. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +0 -6
  99. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.ts +0 -65
  100. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.js +0 -258
  101. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/index.d.ts +0 -2
  102. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/index.js +0 -18
  103. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/index.d.ts +0 -1
  104. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.js +0 -2
  105. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +0 -184
  106. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +0 -6
  107. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.mts +0 -65
  108. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.mjs +0 -221
  109. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/index.d.mts +0 -2
  110. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/index.mjs +0 -2
  111. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/index.d.mts +0 -1
  112. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.mjs +0 -1
  113. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/index.d.ts +0 -0
  114. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/index.js +0 -0
  115. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/client/requests/BodyPostShippingOrderDraftsImageToTextV1.js → orders/resources/drafts/client/requests/BodyPostShippingOrdersDraftsImageToTextV1.js} +0 -0
  116. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/client/requests/OrderDraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
  117. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftDeleteManyReq.d.ts +0 -0
  118. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftDeleteManyReq.js +0 -0
  119. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftUpdateReq.d.ts +0 -0
  120. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftUpdateReq.js +0 -0
  121. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/client/requests/OrdersNewDraftReq.js → orders/resources/drafts/client/requests/OrdersOpenDraftReq.js} +0 -0
  122. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/SetTaskGroupOrderingDraftReq.d.ts +0 -0
  123. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/SetTaskGroupOrderingDraftReq.js +0 -0
  124. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/index.js +0 -0
  125. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/index.d.ts +0 -0
  126. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/index.js +0 -0
  127. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAddCargoReq.js +0 -0
  128. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +0 -0
  129. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.js +0 -0
  130. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +0 -0
  131. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +0 -0
  132. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUpdateCargoReq.js +0 -0
  133. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/index.d.ts +0 -0
  134. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic/client → orders/resources/drafts/resources/cargo/client/requests}/index.js +0 -0
  135. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/index.d.ts +0 -0
  136. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/index.js +0 -0
  137. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts/resources/expanded}/client/index.d.ts +0 -0
  138. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/cargo/client/requests → orders/resources/drafts/resources/expanded/client}/index.js +0 -0
  139. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/index.d.ts +0 -0
  140. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/index.js +0 -0
  141. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/index.d.ts +0 -0
  142. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/index.js +0 -0
  143. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftAddTaskReqV1.js +0 -0
  144. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftUpdateTaskReq.js +0 -0
  145. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/index.d.ts +0 -0
  146. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/expanded/client → orders/resources/drafts/resources/task/client/requests}/index.js +0 -0
  147. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/index.d.ts +0 -0
  148. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/index.js +0 -0
  149. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/index.d.ts +0 -0
  150. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/index.js +0 -0
  151. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.js +0 -0
  152. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/index.d.ts +0 -0
  153. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/task → orders/resources/drafts/resources/taskArtifact}/client/requests/index.js +0 -0
  154. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/index.d.ts +0 -0
  155. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/index.js +0 -0
  156. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/index.d.ts +0 -0
  157. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/index.js +0 -0
  158. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +0 -0
  159. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js +0 -0
  160. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.js +0 -0
  161. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +0 -0
  162. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js +0 -0
  163. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +0 -0
  164. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetRateSheetsReq.js +0 -0
  165. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetTaskOrderingDraftReq.d.ts +0 -0
  166. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetTaskOrderingDraftReq.js +0 -0
  167. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetVehicleTypeReq.js +0 -0
  168. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/index.d.ts +0 -0
  169. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/taskArtifact → orders/resources/drafts/resources/taskGroup}/client/requests/index.js +0 -0
  170. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/index.d.ts +0 -0
  171. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/index.js +0 -0
  172. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/OrderBuilderStreamEvent.d.ts +0 -0
  173. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/OrderBuilderStreamEvent.js +0 -0
  174. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/index.d.ts +0 -0
  175. /package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/index.js +0 -0
  176. /package/dist/cjs/api/types/{OrdersNewDraftRes.js → OrdersOpenDraftRes.js} +0 -0
  177. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/index.d.mts +0 -0
  178. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/index.mjs +0 -0
  179. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/client/requests/BodyPostShippingOrderDraftsImageToTextV1.mjs → orders/resources/drafts/client/requests/BodyPostShippingOrdersDraftsImageToTextV1.mjs} +0 -0
  180. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/client/requests/OrderDraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
  181. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftDeleteManyReq.d.mts +0 -0
  182. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftDeleteManyReq.mjs +0 -0
  183. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftUpdateReq.d.mts +0 -0
  184. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/OrdersDraftUpdateReq.mjs +0 -0
  185. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/client/requests/OrdersNewDraftReq.mjs → orders/resources/drafts/client/requests/OrdersOpenDraftReq.mjs} +0 -0
  186. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/SetTaskGroupOrderingDraftReq.d.mts +0 -0
  187. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/SetTaskGroupOrderingDraftReq.mjs +0 -0
  188. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/client/requests/index.mjs +0 -0
  189. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/index.d.mts +0 -0
  190. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/index.mjs +0 -0
  191. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAddCargoReq.mjs +0 -0
  192. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +0 -0
  193. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.mjs +0 -0
  194. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +0 -0
  195. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +0 -0
  196. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/OrderDraftUpdateCargoReq.mjs +0 -0
  197. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/client/requests/index.d.mts +0 -0
  198. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic/client → orders/resources/drafts/resources/cargo/client/requests}/index.mjs +0 -0
  199. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/index.d.mts +0 -0
  200. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/cargo/index.mjs +0 -0
  201. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts/resources/expanded}/client/index.d.mts +0 -0
  202. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/cargo/client/requests → orders/resources/drafts/resources/expanded/client}/index.mjs +0 -0
  203. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/index.d.mts +0 -0
  204. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/expanded/index.mjs +0 -0
  205. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/index.d.mts +0 -0
  206. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/index.mjs +0 -0
  207. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftAddTaskReqV1.mjs +0 -0
  208. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/OrderDraftUpdateTaskReq.mjs +0 -0
  209. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/client/requests/index.d.mts +0 -0
  210. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/expanded/client → orders/resources/drafts/resources/task/client/requests}/index.mjs +0 -0
  211. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/index.d.mts +0 -0
  212. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/task/index.mjs +0 -0
  213. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/index.d.mts +0 -0
  214. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/index.mjs +0 -0
  215. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.mjs +0 -0
  216. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/client/requests/index.d.mts +0 -0
  217. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/task → orders/resources/drafts/resources/taskArtifact}/client/requests/index.mjs +0 -0
  218. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/index.d.mts +0 -0
  219. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskArtifact/index.mjs +0 -0
  220. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/index.d.mts +0 -0
  221. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/index.mjs +0 -0
  222. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +0 -0
  223. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +0 -0
  224. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.mjs +0 -0
  225. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +0 -0
  226. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +0 -0
  227. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +0 -0
  228. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetRateSheetsReq.mjs +0 -0
  229. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetTaskOrderingDraftReq.d.mts +0 -0
  230. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetTaskOrderingDraftReq.mjs +0 -0
  231. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/SetVehicleTypeReq.mjs +0 -0
  232. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/client/requests/index.d.mts +0 -0
  233. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/taskArtifact → orders/resources/drafts/resources/taskGroup}/client/requests/index.mjs +0 -0
  234. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/index.d.mts +0 -0
  235. /package/dist/esm/api/resources/shipping/resources/{orderDrafts → orders/resources/drafts}/resources/taskGroup/index.mjs +0 -0
  236. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/OrderBuilderStreamEvent.d.mts +0 -0
  237. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/OrderBuilderStreamEvent.mjs +0 -0
  238. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/index.d.mts +0 -0
  239. /package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/agentic → orders/resources/drafts}/types/index.mjs +0 -0
  240. /package/dist/esm/api/types/{OrdersNewDraftRes.mjs → OrdersOpenDraftRes.mjs} +0 -0
@@ -57,8 +57,8 @@ class ChrtClient {
57
57
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
58
58
  "X-Fern-Language": "JavaScript",
59
59
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
60
- "X-Fern-SDK-Version": "1.863.0",
61
- "User-Agent": "@chrt-inc/typescript-sdk/1.863.0",
60
+ "X-Fern-SDK-Version": "1.869.0",
61
+ "User-Agent": "@chrt-inc/typescript-sdk/1.869.0",
62
62
  "X-Fern-Runtime": core.RUNTIME.type,
63
63
  "X-Fern-Runtime-Version": core.RUNTIME.version,
64
64
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -6,7 +6,6 @@ import * as core from "../../../../core/index.js";
6
6
  import { Cargos } from "../resources/cargos/client/Client.js";
7
7
  import { Drivers } from "../resources/drivers/client/Client.js";
8
8
  import { Flights } from "../resources/flights/client/Client.js";
9
- import { OrderDrafts } from "../resources/orderDrafts/client/Client.js";
10
9
  import { OrderGroups } from "../resources/orderGroups/client/Client.js";
11
10
  import { OrderSchedules } from "../resources/orderSchedules/client/Client.js";
12
11
  import { OrderTemplates } from "../resources/orderTemplates/client/Client.js";
@@ -31,7 +30,6 @@ export declare class Shipping {
31
30
  protected _cargos: Cargos | undefined;
32
31
  protected _drivers: Drivers | undefined;
33
32
  protected _flights: Flights | undefined;
34
- protected _orderDrafts: OrderDrafts | undefined;
35
33
  protected _orderGroups: OrderGroups | undefined;
36
34
  protected _orderSchedules: OrderSchedules | undefined;
37
35
  protected _orderTemplates: OrderTemplates | undefined;
@@ -44,7 +42,6 @@ export declare class Shipping {
44
42
  get cargos(): Cargos;
45
43
  get drivers(): Drivers;
46
44
  get flights(): Flights;
47
- get orderDrafts(): OrderDrafts;
48
45
  get orderGroups(): OrderGroups;
49
46
  get orderSchedules(): OrderSchedules;
50
47
  get orderTemplates(): OrderTemplates;
@@ -7,15 +7,14 @@ exports.Shipping = void 0;
7
7
  const Client_js_1 = require("../resources/cargos/client/Client.js");
8
8
  const Client_js_2 = require("../resources/drivers/client/Client.js");
9
9
  const Client_js_3 = require("../resources/flights/client/Client.js");
10
- const Client_js_4 = require("../resources/orderDrafts/client/Client.js");
11
- const Client_js_5 = require("../resources/orderGroups/client/Client.js");
12
- const Client_js_6 = require("../resources/orderSchedules/client/Client.js");
13
- const Client_js_7 = require("../resources/orderTemplates/client/Client.js");
14
- const Client_js_8 = require("../resources/orders/client/Client.js");
15
- const Client_js_9 = require("../resources/ordersAndOrderGroups/client/Client.js");
16
- const Client_js_10 = require("../resources/taskArtifacts/client/Client.js");
17
- const Client_js_11 = require("../resources/taskGroups/client/Client.js");
18
- const Client_js_12 = require("../resources/tasks/client/Client.js");
10
+ const Client_js_4 = require("../resources/orderGroups/client/Client.js");
11
+ const Client_js_5 = require("../resources/orderSchedules/client/Client.js");
12
+ const Client_js_6 = require("../resources/orderTemplates/client/Client.js");
13
+ const Client_js_7 = require("../resources/orders/client/Client.js");
14
+ const Client_js_8 = require("../resources/ordersAndOrderGroups/client/Client.js");
15
+ const Client_js_9 = require("../resources/taskArtifacts/client/Client.js");
16
+ const Client_js_10 = require("../resources/taskGroups/client/Client.js");
17
+ const Client_js_11 = require("../resources/tasks/client/Client.js");
19
18
  class Shipping {
20
19
  constructor(_options = {}) {
21
20
  this._options = _options;
@@ -32,41 +31,37 @@ class Shipping {
32
31
  var _a;
33
32
  return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Client_js_3.Flights(this._options)));
34
33
  }
35
- get orderDrafts() {
36
- var _a;
37
- return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new Client_js_4.OrderDrafts(this._options)));
38
- }
39
34
  get orderGroups() {
40
35
  var _a;
41
- return ((_a = this._orderGroups) !== null && _a !== void 0 ? _a : (this._orderGroups = new Client_js_5.OrderGroups(this._options)));
36
+ return ((_a = this._orderGroups) !== null && _a !== void 0 ? _a : (this._orderGroups = new Client_js_4.OrderGroups(this._options)));
42
37
  }
43
38
  get orderSchedules() {
44
39
  var _a;
45
- return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new Client_js_6.OrderSchedules(this._options)));
40
+ return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new Client_js_5.OrderSchedules(this._options)));
46
41
  }
47
42
  get orderTemplates() {
48
43
  var _a;
49
- return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new Client_js_7.OrderTemplates(this._options)));
44
+ return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new Client_js_6.OrderTemplates(this._options)));
50
45
  }
51
46
  get orders() {
52
47
  var _a;
53
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_8.Orders(this._options)));
48
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_7.Orders(this._options)));
54
49
  }
55
50
  get ordersAndOrderGroups() {
56
51
  var _a;
57
- return ((_a = this._ordersAndOrderGroups) !== null && _a !== void 0 ? _a : (this._ordersAndOrderGroups = new Client_js_9.OrdersAndOrderGroups(this._options)));
52
+ return ((_a = this._ordersAndOrderGroups) !== null && _a !== void 0 ? _a : (this._ordersAndOrderGroups = new Client_js_8.OrdersAndOrderGroups(this._options)));
58
53
  }
59
54
  get taskArtifacts() {
60
55
  var _a;
61
- return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_10.TaskArtifacts(this._options)));
56
+ return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_9.TaskArtifacts(this._options)));
62
57
  }
63
58
  get taskGroups() {
64
59
  var _a;
65
- return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_11.TaskGroups(this._options)));
60
+ return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_10.TaskGroups(this._options)));
66
61
  }
67
62
  get tasks() {
68
63
  var _a;
69
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_12.Tasks(this._options)));
64
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_11.Tasks(this._options)));
70
65
  }
71
66
  }
72
67
  exports.Shipping = Shipping;
@@ -1,18 +1,16 @@
1
1
  export * as drivers from "./drivers/index.js";
2
2
  export * from "./drivers/types/index.js";
3
- export * as orderDrafts from "./orderDrafts/index.js";
3
+ export * as orders from "./orders/index.js";
4
4
  export * as cargos from "./cargos/index.js";
5
5
  export * as flights from "./flights/index.js";
6
6
  export * as orderGroups from "./orderGroups/index.js";
7
7
  export * as orderSchedules from "./orderSchedules/index.js";
8
8
  export * as orderTemplates from "./orderTemplates/index.js";
9
- export * as orders from "./orders/index.js";
10
9
  export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.js";
11
10
  export * as taskArtifacts from "./taskArtifacts/index.js";
12
11
  export * as taskGroups from "./taskGroups/index.js";
13
12
  export * as tasks from "./tasks/index.js";
14
13
  export * from "./drivers/client/requests/index.js";
15
- export * from "./orderDrafts/client/requests/index.js";
16
14
  export * from "./orderGroups/client/requests/index.js";
17
15
  export * from "./orderSchedules/client/requests/index.js";
18
16
  export * from "./orderTemplates/client/requests/index.js";
@@ -36,22 +36,20 @@ 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.tasks = exports.taskGroups = exports.taskArtifacts = exports.ordersAndOrderGroups = exports.orders = exports.orderTemplates = exports.orderSchedules = exports.orderGroups = exports.flights = exports.cargos = exports.orderDrafts = exports.drivers = void 0;
39
+ exports.tasks = exports.taskGroups = exports.taskArtifacts = exports.ordersAndOrderGroups = exports.orderTemplates = exports.orderSchedules = exports.orderGroups = exports.flights = exports.cargos = exports.orders = exports.drivers = void 0;
40
40
  exports.drivers = __importStar(require("./drivers/index.js"));
41
41
  __exportStar(require("./drivers/types/index.js"), exports);
42
- exports.orderDrafts = __importStar(require("./orderDrafts/index.js"));
42
+ exports.orders = __importStar(require("./orders/index.js"));
43
43
  exports.cargos = __importStar(require("./cargos/index.js"));
44
44
  exports.flights = __importStar(require("./flights/index.js"));
45
45
  exports.orderGroups = __importStar(require("./orderGroups/index.js"));
46
46
  exports.orderSchedules = __importStar(require("./orderSchedules/index.js"));
47
47
  exports.orderTemplates = __importStar(require("./orderTemplates/index.js"));
48
- exports.orders = __importStar(require("./orders/index.js"));
49
48
  exports.ordersAndOrderGroups = __importStar(require("./ordersAndOrderGroups/index.js"));
50
49
  exports.taskArtifacts = __importStar(require("./taskArtifacts/index.js"));
51
50
  exports.taskGroups = __importStar(require("./taskGroups/index.js"));
52
51
  exports.tasks = __importStar(require("./tasks/index.js"));
53
52
  __exportStar(require("./drivers/client/requests/index.js"), exports);
54
- __exportStar(require("./orderDrafts/client/requests/index.js"), exports);
55
53
  __exportStar(require("./orderGroups/client/requests/index.js"), exports);
56
54
  __exportStar(require("./orderSchedules/client/requests/index.js"), exports);
57
55
  __exportStar(require("./orderTemplates/client/requests/index.js"), exports);
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../../../environments.js";
5
5
  import * as core from "../../../../../../core/index.js";
6
6
  import * as Chrt from "../../../../../index.js";
7
+ import { Drafts } from "../resources/drafts/client/Client.js";
7
8
  import { Expanded } from "../resources/expanded/client/Client.js";
8
9
  export declare namespace Orders {
9
10
  interface Options {
@@ -30,8 +31,10 @@ export declare namespace Orders {
30
31
  }
31
32
  export declare class Orders {
32
33
  protected readonly _options: Orders.Options;
34
+ protected _drafts: Drafts | undefined;
33
35
  protected _expanded: Expanded | undefined;
34
36
  constructor(_options?: Orders.Options);
37
+ get drafts(): Drafts;
35
38
  get expanded(): Expanded;
36
39
  /**
37
40
  * Adds operator(s) to the caller's assignees on the order. Coordinator writes coordinator_assigned_user_ids; executor writes executor_assigned_user_ids on matching task_group_details. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersAssignReq) -> (bool)
@@ -51,14 +51,19 @@ const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
- const Client_js_1 = require("../resources/expanded/client/Client.js");
54
+ const Client_js_1 = require("../resources/drafts/client/Client.js");
55
+ const Client_js_2 = require("../resources/expanded/client/Client.js");
55
56
  class Orders {
56
57
  constructor(_options = {}) {
57
58
  this._options = _options;
58
59
  }
60
+ get drafts() {
61
+ var _a;
62
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_1.Drafts(this._options)));
63
+ }
59
64
  get expanded() {
60
65
  var _a;
61
- return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Client_js_1.Expanded(this._options)));
66
+ return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Client_js_2.Expanded(this._options)));
62
67
  }
63
68
  /**
64
69
  * Adds operator(s) to the caller's assignees on the order. Coordinator writes coordinator_assigned_user_ids; executor writes executor_assigned_user_ids on matching task_group_details. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersAssignReq) -> (bool)
@@ -1,2 +1,2 @@
1
- export * from "./client/index.js";
2
1
  export * from "./resources/index.js";
2
+ export * from "./client/index.js";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client/index.js"), exports);
18
17
  __exportStar(require("./resources/index.js"), exports);
18
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,212 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.js";
5
+ import * as core from "../../../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../../../index.js";
7
+ import { Cargo } from "../resources/cargo/client/Client.js";
8
+ import { Expanded } from "../resources/expanded/client/Client.js";
9
+ import { Task } from "../resources/task/client/Client.js";
10
+ import { TaskArtifact } from "../resources/taskArtifact/client/Client.js";
11
+ import { TaskGroup } from "../resources/taskGroup/client/Client.js";
12
+ export declare namespace Drafts {
13
+ interface Options {
14
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
15
+ /** Specify a custom URL to connect the client to. */
16
+ baseUrl?: core.Supplier<string>;
17
+ token?: core.Supplier<core.BearerToken | undefined>;
18
+ /** Additional headers to include in requests. */
19
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
20
+ fetcher?: core.FetchFunction;
21
+ }
22
+ interface RequestOptions {
23
+ /** The maximum time to wait for a response in seconds. */
24
+ timeoutInSeconds?: number;
25
+ /** The number of times to retry the request. Defaults to 2. */
26
+ maxRetries?: number;
27
+ /** A hook to abort the request. */
28
+ abortSignal?: AbortSignal;
29
+ /** Additional query string parameters to include in the request. */
30
+ queryParams?: Record<string, unknown>;
31
+ /** Additional headers to include in the request. */
32
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
33
+ }
34
+ }
35
+ export declare class Drafts {
36
+ protected readonly _options: Drafts.Options;
37
+ protected _cargo: Cargo | undefined;
38
+ protected _expanded: Expanded | undefined;
39
+ protected _task: Task | undefined;
40
+ protected _taskArtifact: TaskArtifact | undefined;
41
+ protected _taskGroup: TaskGroup | undefined;
42
+ constructor(_options?: Drafts.Options);
43
+ get cargo(): Cargo;
44
+ get expanded(): Expanded;
45
+ get task(): Task;
46
+ get taskArtifact(): TaskArtifact;
47
+ get taskGroup(): TaskGroup;
48
+ /**
49
+ * Creates a draft order, populating cargo, task groups, and tasks parsed from natural language or a template. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderRes)
50
+ *
51
+ * @param {Chrt.OrderBuilderReq} request
52
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link Chrt.UnprocessableEntityError}
55
+ *
56
+ * @example
57
+ * await client.shipping.orders.drafts.buildV1({})
58
+ */
59
+ buildV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderBuilderRes>;
60
+ private __buildV1;
61
+ /**
62
+ * Reports whether an order builder request's references resolve. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderTemplateResolvabilityRes)
63
+ *
64
+ * @param {Chrt.OrderBuilderReq} request
65
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Chrt.UnprocessableEntityError}
68
+ *
69
+ * @example
70
+ * await client.shipping.orders.drafts.buildPrecheckV1({})
71
+ */
72
+ buildPrecheckV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateResolvabilityRes>;
73
+ private __buildPrecheckV1;
74
+ /**
75
+ * Creates a draft order from natural language or a template and streams progress events via SSE. | authz: min_org_role=operator | (OrderBuilderReq) -> (OrderBuilderStreamEvent)
76
+ */
77
+ buildWithStreamingV1(request: Chrt.OrderBuilderReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<core.Stream<Chrt.shipping.orders.OrderBuilderStreamEvent>>;
78
+ private __buildWithStreamingV1;
79
+ /**
80
+ * Adds a coordinator task list with an optional department override to apply when the draft order is staged. | authz_personas=[coordinator_org_operators] | (UTCDatetime | None) -> (bool)
81
+ *
82
+ * @param {string} orderId
83
+ * @param {string} taskListId
84
+ * @param {Chrt.shipping.orders.DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request} request
85
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Chrt.UnprocessableEntityError}
88
+ *
89
+ * @example
90
+ * await client.shipping.orders.drafts.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
91
+ * department_id: "department_id",
92
+ * body: "2024-01-15T09:30:00Z"
93
+ * })
94
+ */
95
+ addCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, request?: Chrt.shipping.orders.DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
96
+ private __addCoordinatorTaskListToApplyAtOrderStagingV1;
97
+ /**
98
+ * Removes a pending coordinator staging task list from a draft order. | authz_personas=[coordinator_org_operators] | () -> (bool)
99
+ *
100
+ * @param {string} orderId
101
+ * @param {string} taskListId
102
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Chrt.UnprocessableEntityError}
105
+ *
106
+ * @example
107
+ * await client.shipping.orders.drafts.removeCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id")
108
+ */
109
+ removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
110
+ private __removeCoordinatorTaskListToApplyAtOrderStagingV1;
111
+ /**
112
+ * Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
113
+ *
114
+ * @param {string} orderId
115
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link Chrt.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await client.shipping.orders.drafts.deleteV1("order_id")
121
+ */
122
+ deleteV1(orderId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
123
+ private __deleteV1;
124
+ /**
125
+ * Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
126
+ *
127
+ * @param {Chrt.shipping.orders.OrdersDraftDeleteManyReq} request
128
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
129
+ *
130
+ * @throws {@link Chrt.UnprocessableEntityError}
131
+ *
132
+ * @example
133
+ * await client.shipping.orders.drafts.deleteManyV1({
134
+ * order_ids: ["order_ids"]
135
+ * })
136
+ */
137
+ deleteManyV1(request: Chrt.shipping.orders.OrdersDraftDeleteManyReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftDeleteManyRes>;
138
+ private __deleteManyV1;
139
+ /**
140
+ * Converts an order screenshot into lightly structured text for the AI order builder. | authz: min_org_role=operator | (UploadFile) -> (str)
141
+ *
142
+ * @param {Chrt.shipping.orders.BodyPostShippingOrdersDraftsImageToTextV1} request
143
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
144
+ *
145
+ * @throws {@link Chrt.UnprocessableEntityError}
146
+ *
147
+ * @example
148
+ * import { createReadStream } from "fs";
149
+ * await client.shipping.orders.drafts.imageToTextV1({
150
+ * file: fs.createReadStream("/path/to/your/file")
151
+ * })
152
+ */
153
+ imageToTextV1(request: Chrt.shipping.orders.BodyPostShippingOrdersDraftsImageToTextV1, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<string>;
154
+ private __imageToTextV1;
155
+ /**
156
+ * Opens a new draft order shell with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersOpenDraftReq) -> (OrdersOpenDraftRes)
157
+ *
158
+ * @param {Chrt.shipping.orders.OrdersOpenDraftReq} request
159
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link Chrt.UnprocessableEntityError}
162
+ *
163
+ * @example
164
+ * await client.shipping.orders.drafts.openV1()
165
+ */
166
+ openV1(request?: Chrt.shipping.orders.OrdersOpenDraftReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersOpenDraftRes>;
167
+ private __openV1;
168
+ /**
169
+ * Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
170
+ *
171
+ * @param {string} orderId
172
+ * @param {Chrt.shipping.orders.SetTaskGroupOrderingDraftReq} request
173
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
174
+ *
175
+ * @throws {@link Chrt.UnprocessableEntityError}
176
+ *
177
+ * @example
178
+ * await client.shipping.orders.drafts.setTaskGroupOrderingV1("order_id", {
179
+ * task_group_ids: ["task_group_ids"]
180
+ * })
181
+ */
182
+ setTaskGroupOrderingV1(orderId: string, request: Chrt.shipping.orders.SetTaskGroupOrderingDraftReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
183
+ private __setTaskGroupOrderingV1;
184
+ /**
185
+ * Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
186
+ *
187
+ * @param {string} orderId
188
+ * @param {Chrt.shipping.orders.OrdersDraftUpdateReq} request
189
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
190
+ *
191
+ * @throws {@link Chrt.UnprocessableEntityError}
192
+ *
193
+ * @example
194
+ * await client.shipping.orders.drafts.updateV1("order_id")
195
+ */
196
+ updateV1(orderId: string, request?: Chrt.shipping.orders.OrdersDraftUpdateReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
197
+ private __updateV1;
198
+ /**
199
+ * Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
200
+ *
201
+ * @param {string} orderId
202
+ * @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
203
+ *
204
+ * @throws {@link Chrt.UnprocessableEntityError}
205
+ *
206
+ * @example
207
+ * await client.shipping.orders.drafts.validateV1("order_id")
208
+ */
209
+ validateV1(orderId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftValidationResult>;
210
+ private __validateV1;
211
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
212
+ }