@chrt-inc/typescript-sdk 1.924.0 → 1.925.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 (282) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +29 -24
  3. package/dist/cjs/api/resources/agent/client/Client.d.ts +23 -0
  4. package/dist/cjs/api/resources/agent/client/Client.js +17 -0
  5. package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/agent/client/index.js +2 -0
  7. package/dist/cjs/api/resources/agent/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/agent/index.js +18 -0
  9. package/dist/cjs/api/resources/agent/resources/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/agent/resources/index.js +41 -0
  11. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +79 -0
  12. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +260 -0
  13. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.js +17 -0
  15. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +11 -0
  16. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts +13 -0
  18. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/agent/resources/orderInformation/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/agent/resources/orderInformation/index.js +17 -0
  22. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +0 -1
  23. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -5
  24. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -1
  25. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +0 -3
  26. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -1
  28. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +19 -2
  29. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +68 -2
  30. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +2 -0
  31. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.ts +14 -0
  32. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +3 -0
  34. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -0
  35. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +1 -0
  37. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +41 -0
  39. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +49 -0
  40. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +135 -0
  41. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +17 -0
  43. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +17 -0
  48. package/dist/cjs/api/resources/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/index.js +2 -1
  50. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +7 -7
  51. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -10
  52. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.ts → OperationsTasksSetStatusReq1.d.ts} +3 -1
  53. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +1 -1
  55. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +1 -1
  56. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.ts +14 -0
  57. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.js +60 -0
  58. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  59. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  60. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -105
  61. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +6 -518
  62. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  63. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -2
  64. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +18 -31
  67. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +34 -93
  68. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.ts → ExpandedListForDriverV1Request.d.ts} +1 -1
  69. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.ts → ExpandedListForProviderOperatorsV1Request.d.ts} +3 -1
  70. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +2 -2
  71. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +1 -0
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +11 -7
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +23 -15
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
  76. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.js +15 -0
  77. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.ts +13 -0
  78. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.ts +1 -0
  79. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.js +2 -0
  80. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +4 -4
  81. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
  82. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  83. package/dist/cjs/api/types/{LlmModelEnum.d.ts → ArchivedModel.d.ts} +5 -2
  84. package/dist/cjs/api/types/{LlmModelEnum.js → ArchivedModel.js} +2 -2
  85. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -1
  86. package/dist/cjs/api/types/ContactExpandedListItem.d.ts +10 -0
  87. package/dist/cjs/api/types/ContactListRes.d.ts +1 -1
  88. package/dist/cjs/api/types/Invoice1.d.ts +2 -0
  89. package/dist/cjs/api/types/InvoiceExpandedListItem.d.ts +11 -0
  90. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.d.ts +8 -0
  91. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.js +5 -0
  92. package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +1 -1
  93. package/dist/cjs/api/types/InvoiceListRes.d.ts +1 -1
  94. package/dist/cjs/api/types/Model.d.ts +12 -0
  95. package/dist/cjs/api/types/Model.js +11 -0
  96. package/dist/cjs/api/types/OperationsTaskExpandedListItem.d.ts +1 -0
  97. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.d.ts +7 -0
  98. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.js +5 -0
  99. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
  100. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +2 -0
  101. package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +1 -0
  102. package/dist/cjs/api/types/OrderInformationConversationRes.d.ts +7 -0
  103. package/dist/cjs/api/types/OrderInformationConversationRes.js +5 -0
  104. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.d.ts +12 -0
  105. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.js +5 -0
  106. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.ts +11 -0
  107. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.js +5 -0
  108. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.ts +9 -0
  109. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.js +11 -0
  110. package/dist/cjs/api/types/StoredModel.d.ts +5 -0
  111. package/dist/cjs/api/types/StoredModel.js +5 -0
  112. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.d.ts +8 -0
  113. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.js +5 -0
  114. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.d.ts +8 -0
  115. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.js +5 -0
  116. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.d.ts +9 -0
  117. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.js +11 -0
  118. package/dist/cjs/api/types/index.d.ts +14 -7
  119. package/dist/cjs/api/types/index.js +14 -7
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/Client.d.mts +3 -0
  123. package/dist/esm/Client.mjs +7 -2
  124. package/dist/esm/api/resources/agent/client/Client.d.mts +23 -0
  125. package/dist/esm/api/resources/agent/client/Client.mjs +13 -0
  126. package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
  127. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  128. package/dist/esm/api/resources/agent/index.d.mts +2 -0
  129. package/dist/esm/api/resources/agent/index.mjs +2 -0
  130. package/dist/esm/api/resources/agent/resources/index.d.mts +2 -0
  131. package/dist/esm/api/resources/agent/resources/index.mjs +2 -0
  132. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +79 -0
  133. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +223 -0
  134. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.d.mts +2 -0
  135. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.mjs +1 -0
  136. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +11 -0
  137. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts +12 -0
  138. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +13 -0
  139. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +3 -0
  140. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs +1 -0
  141. package/dist/esm/api/resources/agent/resources/orderInformation/index.d.mts +1 -0
  142. package/dist/esm/api/resources/agent/resources/orderInformation/index.mjs +1 -0
  143. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +0 -1
  144. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -5
  145. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -1
  146. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +0 -3
  147. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -1
  148. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -1
  149. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +19 -2
  150. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +68 -2
  151. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +2 -0
  152. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.mts +14 -0
  153. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
  154. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +3 -0
  155. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -0
  156. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
  157. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
  158. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +2 -0
  159. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +2 -0
  160. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +49 -0
  161. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +98 -0
  162. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +2 -0
  163. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +1 -0
  164. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +12 -0
  165. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +1 -0
  166. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +1 -0
  167. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +1 -0
  168. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +1 -0
  169. package/dist/esm/api/resources/index.d.mts +1 -0
  170. package/dist/esm/api/resources/index.mjs +1 -0
  171. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +7 -7
  172. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -10
  173. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.mts → OperationsTasksSetStatusReq1.d.mts} +3 -1
  174. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -1
  175. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +1 -1
  176. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +1 -1
  177. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.mts +14 -0
  178. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.mjs +60 -0
  179. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  180. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  181. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -105
  182. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +6 -518
  183. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  184. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -2
  185. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
  186. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
  187. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +18 -31
  188. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +34 -93
  189. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.mts → ExpandedListForDriverV1Request.d.mts} +1 -1
  190. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.mts → ExpandedListForProviderOperatorsV1Request.d.mts} +3 -1
  191. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +2 -2
  192. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -0
  193. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -0
  194. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +11 -7
  195. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +23 -15
  196. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  197. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -1
  198. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.mts +13 -0
  199. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.mts +1 -0
  200. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.mjs +1 -0
  201. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +4 -4
  202. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
  203. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  204. package/dist/esm/api/types/{LlmModelEnum.d.mts → ArchivedModel.d.mts} +5 -2
  205. package/dist/esm/api/types/{LlmModelEnum.mjs → ArchivedModel.mjs} +1 -1
  206. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -1
  207. package/dist/esm/api/types/ContactExpandedListItem.d.mts +10 -0
  208. package/dist/esm/api/types/ContactListRes.d.mts +1 -1
  209. package/dist/esm/api/types/Invoice1.d.mts +2 -0
  210. package/dist/esm/api/types/InvoiceExpandedListItem.d.mts +11 -0
  211. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.d.mts +8 -0
  212. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.mjs +4 -0
  213. package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +1 -1
  214. package/dist/esm/api/types/InvoiceListRes.d.mts +1 -1
  215. package/dist/esm/api/types/Model.d.mts +12 -0
  216. package/dist/esm/api/types/Model.mjs +8 -0
  217. package/dist/esm/api/types/OperationsTaskExpandedListItem.d.mts +1 -0
  218. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.d.mts +7 -0
  219. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.mjs +4 -0
  220. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
  221. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +2 -0
  222. package/dist/esm/api/types/OrderExpandedForShipper.d.mts +1 -0
  223. package/dist/esm/api/types/OrderInformationConversationRes.d.mts +7 -0
  224. package/dist/esm/api/types/OrderInformationConversationRes.mjs +4 -0
  225. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.d.mts +12 -0
  226. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.mjs +4 -0
  227. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.mts +11 -0
  228. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.mjs +4 -0
  229. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.mts +9 -0
  230. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.mjs +8 -0
  231. package/dist/esm/api/types/StoredModel.d.mts +5 -0
  232. package/dist/esm/api/types/StoredModel.mjs +4 -0
  233. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.d.mts +8 -0
  234. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.mjs +4 -0
  235. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.d.mts +8 -0
  236. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.mjs +4 -0
  237. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.d.mts +9 -0
  238. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.mjs +8 -0
  239. package/dist/esm/api/types/index.d.mts +14 -7
  240. package/dist/esm/api/types/index.mjs +14 -7
  241. package/dist/esm/version.d.mts +1 -1
  242. package/dist/esm/version.mjs +1 -1
  243. package/package.json +1 -1
  244. package/reference.md +577 -476
  245. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -73
  246. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -66
  247. package/dist/cjs/api/types/OrderExpandedForCoordinator.d.ts +0 -15
  248. package/dist/cjs/api/types/OrderExpandedForExecutor.d.ts +0 -14
  249. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +0 -47
  250. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +0 -27
  251. package/dist/cjs/api/types/OrdersExpandedListForCoordinatorRes.d.ts +0 -8
  252. package/dist/cjs/api/types/OrdersExpandedListForExecutorRes.d.ts +0 -8
  253. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -73
  254. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -66
  255. package/dist/esm/api/types/OrderExpandedForCoordinator.d.mts +0 -15
  256. package/dist/esm/api/types/OrderExpandedForExecutor.d.mts +0 -14
  257. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +0 -47
  258. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +0 -27
  259. package/dist/esm/api/types/OrdersExpandedListForCoordinatorRes.d.mts +0 -8
  260. package/dist/esm/api/types/OrdersExpandedListForExecutorRes.d.mts +0 -8
  261. /package/dist/cjs/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.js → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js} +0 -0
  262. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js} +0 -0
  263. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js} +0 -0
  264. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.js → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.js} +0 -0
  265. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.js} +0 -0
  266. /package/dist/cjs/api/{types/OrderExpandedForCoordinator.js → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.js} +0 -0
  267. /package/dist/cjs/api/{types/OrderExpandedForExecutor.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.js} +0 -0
  268. /package/dist/cjs/api/{types/OrderLimitedForCoordinator1.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.js} +0 -0
  269. /package/dist/cjs/api/{types/OrderLimitedForExecutor1.js → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.js} +0 -0
  270. /package/dist/cjs/api/types/{OrdersExpandedListForCoordinatorRes.js → ContactExpandedListItem.js} +0 -0
  271. /package/dist/cjs/api/types/{OrdersExpandedListForExecutorRes.js → InvoiceExpandedListItem.js} +0 -0
  272. /package/dist/esm/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs} +0 -0
  273. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs} +0 -0
  274. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs} +0 -0
  275. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.mjs → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.mjs} +0 -0
  276. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.mjs} +0 -0
  277. /package/dist/esm/api/{types/OrderExpandedForCoordinator.mjs → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.mjs} +0 -0
  278. /package/dist/esm/api/{types/OrderExpandedForExecutor.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.mjs} +0 -0
  279. /package/dist/esm/api/{types/OrderLimitedForCoordinator1.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.mjs} +0 -0
  280. /package/dist/esm/api/{types/OrderLimitedForExecutor1.mjs → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.mjs} +0 -0
  281. /package/dist/esm/api/types/{OrdersExpandedListForCoordinatorRes.mjs → ContactExpandedListItem.mjs} +0 -0
  282. /package/dist/esm/api/types/{OrdersExpandedListForExecutorRes.mjs → InvoiceExpandedListItem.mjs} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -2,6 +2,7 @@ export * as orgs from "./orgs/index.js";
2
2
  export * as shipping from "./shipping/index.js";
3
3
  export * as flights from "./flights/index.js";
4
4
  export * as utils from "./utils/index.js";
5
+ export * as agent from "./agent/index.js";
5
6
  export * as analytics from "./analytics/index.js";
6
7
  export * as billing from "./billing/index.js";
7
8
  export * as billingNew from "./billingNew/index.js";
@@ -36,11 +36,12 @@ 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.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
39
+ exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.agent = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
40
40
  exports.orgs = __importStar(require("./orgs/index.js"));
41
41
  exports.shipping = __importStar(require("./shipping/index.js"));
42
42
  exports.flights = __importStar(require("./flights/index.js"));
43
43
  exports.utils = __importStar(require("./utils/index.js"));
44
+ exports.agent = __importStar(require("./agent/index.js"));
44
45
  exports.analytics = __importStar(require("./analytics/index.js"));
45
46
  exports.billing = __importStar(require("./billing/index.js"));
46
47
  exports.billingNew = __importStar(require("./billingNew/index.js"));
@@ -77,7 +77,7 @@ export declare class OperationsTasks {
77
77
  deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
78
78
  private __deleteCommentV1;
79
79
  /**
80
- * Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
80
+ * Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
81
81
  *
82
82
  * @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
83
83
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -145,21 +145,21 @@ export declare class OperationsTasks {
145
145
  setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
146
146
  private __setDeadlineTimestampsV1;
147
147
  /**
148
- * Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
148
+ * Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
149
149
  *
150
- * @param {string} taskId
151
- * @param {Chrt.operations.OperationsTaskStatusReq} request
150
+ * @param {Chrt.operations.OperationsTasksSetStatusReq1} request
152
151
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
153
152
  *
154
153
  * @throws {@link Chrt.UnprocessableEntityError}
155
154
  *
156
155
  * @example
157
- * await client.operations.operationsTasks.updateStatusV1("task_id", {
156
+ * await client.operations.operationsTasks.setStatusV1({
157
+ * operations_task_ids: ["operations_task_ids"],
158
158
  * status: "not_started"
159
159
  * })
160
160
  */
161
- updateStatusV1(taskId: string, request: Chrt.operations.OperationsTaskStatusReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
162
- private __updateStatusV1;
161
+ setStatusV1(request: Chrt.operations.OperationsTasksSetStatusReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksStatusUpdateRes1>;
162
+ private __setStatusV1;
163
163
  /**
164
164
  * Creates a new OperationsTask on an Order where the caller is coordinator or executor. Seeds department_id from the caller's Order department fields. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
165
165
  *
@@ -249,7 +249,7 @@ class OperationsTasks {
249
249
  });
250
250
  }
251
251
  /**
252
- * Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
252
+ * Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
253
253
  *
254
254
  * @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
255
255
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -579,28 +579,28 @@ class OperationsTasks {
579
579
  });
580
580
  }
581
581
  /**
582
- * Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
582
+ * Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
583
583
  *
584
- * @param {string} taskId
585
- * @param {Chrt.operations.OperationsTaskStatusReq} request
584
+ * @param {Chrt.operations.OperationsTasksSetStatusReq1} request
586
585
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
587
586
  *
588
587
  * @throws {@link Chrt.UnprocessableEntityError}
589
588
  *
590
589
  * @example
591
- * await client.operations.operationsTasks.updateStatusV1("task_id", {
590
+ * await client.operations.operationsTasks.setStatusV1({
591
+ * operations_task_ids: ["operations_task_ids"],
592
592
  * status: "not_started"
593
593
  * })
594
594
  */
595
- updateStatusV1(taskId, request, requestOptions) {
596
- return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
595
+ setStatusV1(request, requestOptions) {
596
+ return core.HttpResponsePromise.fromPromise(this.__setStatusV1(request, requestOptions));
597
597
  }
598
- __updateStatusV1(taskId, request, requestOptions) {
598
+ __setStatusV1(request, requestOptions) {
599
599
  return __awaiter(this, void 0, void 0, function* () {
600
600
  var _a, _b, _c, _d;
601
601
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
602
602
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
603
- 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, `operations/operations_tasks/status/v1/${encodeURIComponent(taskId)}`),
603
+ 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, "operations/operations_tasks/set_status/v1"),
604
604
  method: "PATCH",
605
605
  headers: _headers,
606
606
  contentType: "application/json",
@@ -634,7 +634,7 @@ class OperationsTasks {
634
634
  rawResponse: _response.rawResponse,
635
635
  });
636
636
  case "timeout":
637
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
637
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_status/v1.");
638
638
  case "unknown":
639
639
  throw new errors.ChrtError({
640
640
  message: _response.error.errorMessage,
@@ -5,9 +5,11 @@ import * as Chrt from "../../../../../../index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
+ * operations_task_ids: ["operations_task_ids"],
8
9
  * status: "not_started"
9
10
  * }
10
11
  */
11
- export interface OperationsTaskStatusReq {
12
+ export interface OperationsTasksSetStatusReq1 {
13
+ operations_task_ids: string[];
12
14
  status: Chrt.OperationsTaskStatusEnum;
13
15
  }
@@ -3,6 +3,6 @@ export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./Op
3
3
  export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.js";
4
4
  export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
5
5
  export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
6
- export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.js";
6
+ export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.js";
7
7
  export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
8
8
  export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
@@ -90,7 +90,7 @@ export declare class Contacts {
90
90
  deleteV1(contactId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
91
91
  private __deleteV1;
92
92
  /**
93
- * Lists organization-created contacts with association filters and search. | authz: min_org_role=operator | () -> (ContactListRes)
93
+ * Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
94
94
  *
95
95
  * @param {Chrt.orgs.ContactsListV1Request} request
96
96
  * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -305,7 +305,7 @@ class Contacts {
305
305
  });
306
306
  }
307
307
  /**
308
- * Lists organization-created contacts with association filters and search. | authz: min_org_role=operator | () -> (ContactListRes)
308
+ * Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
309
309
  *
310
310
  * @param {Chrt.orgs.ContactsListV1Request} request
311
311
  * @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -30,6 +30,20 @@ export declare namespace Cargos {
30
30
  export declare class Cargos {
31
31
  protected readonly _options: Cargos.Options;
32
32
  constructor(_options?: Cargos.Options);
33
+ /**
34
+ * Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
35
+ *
36
+ * @param {string} orderTemplateId
37
+ * @param {string} cargoKey
38
+ * @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
44
+ */
45
+ postDuplicateV1(orderTemplateId: string, cargoKey: string, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNew1>;
46
+ private __postDuplicateV1;
33
47
  /**
34
48
  * Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
35
49
  *
@@ -55,6 +55,66 @@ class Cargos {
55
55
  constructor(_options = {}) {
56
56
  this._options = _options;
57
57
  }
58
+ /**
59
+ * Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
60
+ *
61
+ * @param {string} orderTemplateId
62
+ * @param {string} cargoKey
63
+ * @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
69
+ */
70
+ postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__postDuplicateV1(orderTemplateId, cargoKey, requestOptions));
72
+ }
73
+ __postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a, _b, _c, _d;
76
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
77
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
78
+ 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, `shipping/order_templates_new/cargos/duplicate/v1/${encodeURIComponent(orderTemplateId)}/${encodeURIComponent(cargoKey)}`),
79
+ method: "POST",
80
+ headers: _headers,
81
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
82
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
+ });
86
+ if (_response.ok) {
87
+ return { data: _response.body, rawResponse: _response.rawResponse };
88
+ }
89
+ if (_response.error.reason === "status-code") {
90
+ switch (_response.error.statusCode) {
91
+ case 422:
92
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
93
+ default:
94
+ throw new errors.ChrtError({
95
+ statusCode: _response.error.statusCode,
96
+ body: _response.error.body,
97
+ rawResponse: _response.rawResponse,
98
+ });
99
+ }
100
+ }
101
+ switch (_response.error.reason) {
102
+ case "non-json":
103
+ throw new errors.ChrtError({
104
+ statusCode: _response.error.statusCode,
105
+ body: _response.error.rawBody,
106
+ rawResponse: _response.rawResponse,
107
+ });
108
+ case "timeout":
109
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_templates_new/cargos/duplicate/v1/{order_template_id}/{cargo_key}.");
110
+ case "unknown":
111
+ throw new errors.ChrtError({
112
+ message: _response.error.errorMessage,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ });
117
+ }
58
118
  /**
59
119
  * Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
60
120
  *
@@ -66,6 +66,19 @@ export declare class Cargo {
66
66
  */
67
67
  associateWithTaskV1(request: Chrt.shipping.orders.OrdersAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
68
68
  private __associateWithTaskV1;
69
+ /**
70
+ * Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
71
+ *
72
+ * @param {string} cargoId
73
+ * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Chrt.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.shipping.orders.cargo.duplicateV1("cargo_id")
79
+ */
80
+ duplicateV1(cargoId: string, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
81
+ private __duplicateV1;
69
82
  /**
70
83
  * Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
71
84
  *
@@ -189,6 +189,65 @@ class Cargo {
189
189
  }
190
190
  });
191
191
  }
192
+ /**
193
+ * Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
194
+ *
195
+ * @param {string} cargoId
196
+ * @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
197
+ *
198
+ * @throws {@link Chrt.UnprocessableEntityError}
199
+ *
200
+ * @example
201
+ * await client.shipping.orders.cargo.duplicateV1("cargo_id")
202
+ */
203
+ duplicateV1(cargoId, requestOptions) {
204
+ return core.HttpResponsePromise.fromPromise(this.__duplicateV1(cargoId, requestOptions));
205
+ }
206
+ __duplicateV1(cargoId, requestOptions) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ var _a, _b, _c, _d;
209
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
210
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
211
+ 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, `shipping/orders/cargo/duplicate/v1/${encodeURIComponent(cargoId)}`),
212
+ method: "POST",
213
+ headers: _headers,
214
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
215
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
216
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
217
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
218
+ });
219
+ if (_response.ok) {
220
+ return { data: _response.body, rawResponse: _response.rawResponse };
221
+ }
222
+ if (_response.error.reason === "status-code") {
223
+ switch (_response.error.statusCode) {
224
+ case 422:
225
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
226
+ default:
227
+ throw new errors.ChrtError({
228
+ statusCode: _response.error.statusCode,
229
+ body: _response.error.body,
230
+ rawResponse: _response.rawResponse,
231
+ });
232
+ }
233
+ }
234
+ switch (_response.error.reason) {
235
+ case "non-json":
236
+ throw new errors.ChrtError({
237
+ statusCode: _response.error.statusCode,
238
+ body: _response.error.rawBody,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ case "timeout":
242
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/cargo/duplicate/v1/{cargo_id}.");
243
+ case "unknown":
244
+ throw new errors.ChrtError({
245
+ message: _response.error.errorMessage,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ }
249
+ });
250
+ }
192
251
  /**
193
252
  * Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
194
253
  *
@@ -31,35 +31,7 @@ export declare class Expanded {
31
31
  protected readonly _options: Expanded.Options;
32
32
  constructor(_options?: Expanded.Options);
33
33
  /**
34
- * Retrieves an expanded order with optional related data for coordinator operators. Drafts are visible only to operators in the creating provider org; when expand_cargos is requested, the response includes unassigned_cargos. | authz_personas=[coordinator_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForCoordinator)
35
- *
36
- * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
37
- * @param {Chrt.OrderAndTaskGroupExpandedReq} request
38
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
39
- *
40
- * @throws {@link Chrt.UnprocessableEntityError}
41
- *
42
- * @example
43
- * await client.shipping.orders.expanded.forCoordinatorOperatorsV1("order_ref", {})
44
- */
45
- forCoordinatorOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForCoordinator>;
46
- private __forCoordinatorOperatorsV1;
47
- /**
48
- * Retrieves an expanded order containing only task groups executed by the caller's provider org. | authz_personas=[order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForExecutor)
49
- *
50
- * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
51
- * @param {Chrt.OrderAndTaskGroupExpandedReq} request
52
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
53
- *
54
- * @throws {@link Chrt.UnprocessableEntityError}
55
- *
56
- * @example
57
- * await client.shipping.orders.expanded.forExecutorOperatorsV1("order_ref", {})
58
- */
59
- forExecutorOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForExecutor>;
60
- private __forExecutorOperatorsV1;
61
- /**
62
- * Retrieves an expanded order for a provider org that is the coordinator, an executor, or both, with role-filtered task-group details. Mirrors the per-item projection of the for_provider_operators list route. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForProvider)
34
+ * Retrieves an expanded order for a provider org that is the coordinator, an executor, or both. Executor-only callers receive only their task groups. Drafts are visible only to operators in the creating provider org; coordinator responses include unassigned_cargos when expand_cargos is requested. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForProvider)
63
35
  *
64
36
  * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
65
37
  * @param {Chrt.OrderAndTaskGroupExpandedReq} request
@@ -86,82 +58,6 @@ export declare class Expanded {
86
58
  */
87
59
  forShipperOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForShipper>;
88
60
  private __forShipperOperatorsV1;
89
- /**
90
- * Lists expanded orders where the caller's provider org is the coordinator. Filtering, sorting, pagination, optional search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForCoordinatorRes)
91
- *
92
- * @param {Chrt.shipping.orders.ExpandedListForCoordinatorOperatorsV1Request} request
93
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
94
- *
95
- * @throws {@link Chrt.UnprocessableEntityError}
96
- *
97
- * @example
98
- * await client.shipping.orders.expanded.listForCoordinatorOperatorsV1({
99
- * sort_by: "draft_started_at_timestamp",
100
- * sort_order: "asc",
101
- * page: 1,
102
- * page_size: 1,
103
- * search: "search",
104
- * filter_awb_number: "filter_awb_number",
105
- * filter_has_invoice: true,
106
- * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
107
- * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
108
- * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
109
- * filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
110
- * filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
111
- * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
112
- * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
113
- * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
114
- * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
115
- * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
116
- * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
117
- * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
118
- * filter_executor_org_id: "filter_executor_org_id",
119
- * filter_shipper_org_id: "filter_shipper_org_id",
120
- * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
121
- * filter_coordinator_department_id: "filter_coordinator_department_id",
122
- * filter_coordinator_label: "filter_coordinator_label",
123
- * body: {}
124
- * })
125
- */
126
- listForCoordinatorOperatorsV1(request: Chrt.shipping.orders.ExpandedListForCoordinatorOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListForCoordinatorRes>;
127
- private __listForCoordinatorOperatorsV1;
128
- /**
129
- * Lists expanded orders where the caller's provider org executes at least one task group. Each result contains only that org's task groups. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForExecutorRes)
130
- *
131
- * @param {Chrt.shipping.orders.ExpandedListForExecutorOperatorsV1Request} request
132
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
133
- *
134
- * @throws {@link Chrt.UnprocessableEntityError}
135
- *
136
- * @example
137
- * await client.shipping.orders.expanded.listForExecutorOperatorsV1({
138
- * sort_by: "draft_started_at_timestamp",
139
- * sort_order: "asc",
140
- * page: 1,
141
- * page_size: 1,
142
- * search: "search",
143
- * filter_awb_number: "filter_awb_number",
144
- * filter_has_invoice: true,
145
- * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
146
- * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
147
- * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
148
- * filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
149
- * filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
150
- * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
151
- * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
152
- * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
153
- * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
154
- * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
155
- * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
156
- * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
157
- * filter_coordinator_org_id: "filter_coordinator_org_id",
158
- * filter_shipper_org_id: "filter_shipper_org_id",
159
- * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
160
- * body: {}
161
- * })
162
- */
163
- listForExecutorOperatorsV1(request: Chrt.shipping.orders.ExpandedListForExecutorOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListForExecutorRes>;
164
- private __listForExecutorOperatorsV1;
165
61
  /**
166
62
  * Lists expanded orders where the caller's provider org is the coordinator, an executor, or both. Each order appears once with role-filtered task-group details. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForProviderRes)
167
63
  *
@@ -193,6 +89,7 @@ export declare class Expanded {
193
89
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
194
90
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
195
91
  * filter_executor_org_id: "filter_executor_org_id",
92
+ * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
196
93
  * filter_coordinator_org_id: "filter_coordinator_org_id",
197
94
  * filter_shipper_org_id: "filter_shipper_org_id",
198
95
  * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",