@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
@@ -79,7 +79,7 @@ export class Invoices {
79
79
  });
80
80
  }
81
81
  /**
82
- * Returns the matching owner-counterparty-type-currency draft invoice, or creates one when absent. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
82
+ * Returns the matching draft invoice period, or creates one with an optional rolling-month default. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
83
83
  *
84
84
  * @param {Chrt.billingNew.InvoiceClientCreate1} request
85
85
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -513,7 +513,7 @@ export class Invoices {
513
513
  });
514
514
  }
515
515
  /**
516
- * Lists owner-scoped invoices with search, filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
516
+ * Lists owner-scoped invoices with related orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
517
517
  *
518
518
  * @param {Chrt.billingNew.InvoicesListV1Request} request
519
519
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -713,6 +713,72 @@ export class Invoices {
713
713
  }
714
714
  });
715
715
  }
716
+ /**
717
+ * Updates the period of a draft invoice without changing its attached line items. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoicePeriodUpdateReq) -> (bool)
718
+ *
719
+ * @param {string} invoiceId
720
+ * @param {Chrt.billingNew.InvoicePeriodUpdateReq} request
721
+ * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
722
+ *
723
+ * @throws {@link Chrt.UnprocessableEntityError}
724
+ *
725
+ * @example
726
+ * await client.billingNew.invoices.updatePeriodV1("invoice_id", {
727
+ * period_end_at_timestamp: "2024-01-15T09:30:00Z",
728
+ * period_start_at_timestamp: "2024-01-15T09:30:00Z"
729
+ * })
730
+ */
731
+ updatePeriodV1(invoiceId, request, requestOptions) {
732
+ return core.HttpResponsePromise.fromPromise(this.__updatePeriodV1(invoiceId, request, requestOptions));
733
+ }
734
+ __updatePeriodV1(invoiceId, request, requestOptions) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ var _a, _b, _c, _d;
737
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
738
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
739
+ 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, `billing_new/invoices/update_period/v1/${encodeURIComponent(invoiceId)}`),
740
+ method: "PATCH",
741
+ headers: _headers,
742
+ contentType: "application/json",
743
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
744
+ requestType: "json",
745
+ body: request,
746
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
747
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
748
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
749
+ });
750
+ if (_response.ok) {
751
+ return { data: _response.body, rawResponse: _response.rawResponse };
752
+ }
753
+ if (_response.error.reason === "status-code") {
754
+ switch (_response.error.statusCode) {
755
+ case 422:
756
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
757
+ default:
758
+ throw new errors.ChrtError({
759
+ statusCode: _response.error.statusCode,
760
+ body: _response.error.body,
761
+ rawResponse: _response.rawResponse,
762
+ });
763
+ }
764
+ }
765
+ switch (_response.error.reason) {
766
+ case "non-json":
767
+ throw new errors.ChrtError({
768
+ statusCode: _response.error.statusCode,
769
+ body: _response.error.rawBody,
770
+ rawResponse: _response.rawResponse,
771
+ });
772
+ case "timeout":
773
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoices/update_period/v1/{invoice_id}.");
774
+ case "unknown":
775
+ throw new errors.ChrtError({
776
+ message: _response.error.errorMessage,
777
+ rawResponse: _response.rawResponse,
778
+ });
779
+ }
780
+ });
781
+ }
716
782
  /**
717
783
  * Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
718
784
  *
@@ -21,5 +21,7 @@ export interface InvoiceClientCreate1 {
21
21
  export_ref__sage__department_id?: string | null;
22
22
  invoice_type: Chrt.InvoiceTypeEnum1;
23
23
  name?: string | null;
24
+ period_end_at_timestamp?: string | null;
25
+ period_start_at_timestamp?: string | null;
24
26
  schema_version: number;
25
27
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * period_end_at_timestamp: "2024-01-15T09:30:00Z",
8
+ * period_start_at_timestamp: "2024-01-15T09:30:00Z"
9
+ * }
10
+ */
11
+ export interface InvoicePeriodUpdateReq {
12
+ period_end_at_timestamp: string;
13
+ period_start_at_timestamp: string;
14
+ }
@@ -3,4 +3,5 @@ export { type InvoiceLineItemsAddReq } from "./InvoiceLineItemsAddReq.mjs";
3
3
  export { type InvoiceLineItemsRemoveReq } from "./InvoiceLineItemsRemoveReq.mjs";
4
4
  export { type InvoicesListV1Request } from "./InvoicesListV1Request.mjs";
5
5
  export { type InvoiceClientUpdate1 } from "./InvoiceClientUpdate1.mjs";
6
+ export { type InvoicePeriodUpdateReq } from "./InvoicePeriodUpdateReq.mjs";
6
7
  export { type InvoiceVoidReq } from "./InvoiceVoidReq.mjs";
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../../../environments.mjs";
5
5
  import * as core from "../../../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../../../index.mjs";
7
+ import { RateSheetLineItems } from "../resources/rateSheetLineItems/client/Client.mjs";
7
8
  export declare namespace Orders {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -29,7 +30,9 @@ export declare namespace Orders {
29
30
  }
30
31
  export declare class Orders {
31
32
  protected readonly _options: Orders.Options;
33
+ protected _rateSheetLineItems: RateSheetLineItems | undefined;
32
34
  constructor(_options?: Orders.Options);
35
+ get rateSheetLineItems(): RateSheetLineItems;
33
36
  /**
34
37
  * Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
35
38
  *
@@ -26,10 +26,15 @@ import * as core from "../../../../../../core/index.mjs";
26
26
  import * as Chrt from "../../../../../index.mjs";
27
27
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
28
28
  import * as errors from "../../../../../../errors/index.mjs";
29
+ import { RateSheetLineItems } from "../resources/rateSheetLineItems/client/Client.mjs";
29
30
  export class Orders {
30
31
  constructor(_options = {}) {
31
32
  this._options = _options;
32
33
  }
34
+ get rateSheetLineItems() {
35
+ var _a;
36
+ return ((_a = this._rateSheetLineItems) !== null && _a !== void 0 ? _a : (this._rateSheetLineItems = new RateSheetLineItems(this._options)));
37
+ }
33
38
  /**
34
39
  * Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
35
40
  *
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as rateSheetLineItems from "./rateSheetLineItems/index.mjs";
2
+ export * from "./rateSheetLineItems/client/requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as rateSheetLineItems from "./rateSheetLineItems/index.mjs";
2
+ export * from "./rateSheetLineItems/client/requests/index.mjs";
@@ -0,0 +1,49 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace RateSheetLineItems {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class RateSheetLineItems {
31
+ protected readonly _options: RateSheetLineItems.Options;
32
+ constructor(_options?: RateSheetLineItems.Options);
33
+ /**
34
+ * Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
35
+ *
36
+ * @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
37
+ * @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.billingNew.orders.rateSheetLineItems.generateManyV1({
43
+ * order_ids: ["order_ids"]
44
+ * })
45
+ */
46
+ generateManyV1(request: Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq, requestOptions?: RateSheetLineItems.RequestOptions): core.HttpResponsePromise<Chrt.OrderRateSheetLineItemsGenerateManyRes>;
47
+ private __generateManyV1;
48
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
49
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class RateSheetLineItems {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
24
+ *
25
+ * @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
26
+ * @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.billingNew.orders.rateSheetLineItems.generateManyV1({
32
+ * order_ids: ["order_ids"]
33
+ * })
34
+ */
35
+ generateManyV1(request, requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__generateManyV1(request, requestOptions));
37
+ }
38
+ __generateManyV1(request, requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d;
41
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
42
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
43
+ 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, "billing_new/orders/rate_sheet_line_items/generate_many/v1"),
44
+ method: "POST",
45
+ headers: _headers,
46
+ contentType: "application/json",
47
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
48
+ requestType: "json",
49
+ body: request,
50
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
51
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
52
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
53
+ });
54
+ if (_response.ok) {
55
+ return {
56
+ data: _response.body,
57
+ rawResponse: _response.rawResponse,
58
+ };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 422:
63
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
64
+ default:
65
+ throw new errors.ChrtError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.ChrtError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ case "timeout":
80
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/rate_sheet_line_items/generate_many/v1.");
81
+ case "unknown":
82
+ throw new errors.ChrtError({
83
+ message: _response.error.errorMessage,
84
+ rawResponse: _response.rawResponse,
85
+ });
86
+ }
87
+ });
88
+ }
89
+ _getAuthorizationHeader() {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ const bearer = yield core.Supplier.get(this._options.token);
92
+ if (bearer != null) {
93
+ return `Bearer ${bearer}`;
94
+ }
95
+ return undefined;
96
+ });
97
+ }
98
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * order_ids: ["order_ids"]
8
+ * }
9
+ */
10
+ export interface OrderRateSheetLineItemsGenerateManyReq {
11
+ order_ids: string[];
12
+ }
@@ -0,0 +1 @@
1
+ export { type OrderRateSheetLineItemsGenerateManyReq } from "./OrderRateSheetLineItemsGenerateManyReq.mjs";
@@ -2,6 +2,7 @@ export * as orgs from "./orgs/index.mjs";
2
2
  export * as shipping from "./shipping/index.mjs";
3
3
  export * as flights from "./flights/index.mjs";
4
4
  export * as utils from "./utils/index.mjs";
5
+ export * as agent from "./agent/index.mjs";
5
6
  export * as analytics from "./analytics/index.mjs";
6
7
  export * as billing from "./billing/index.mjs";
7
8
  export * as billingNew from "./billingNew/index.mjs";
@@ -2,6 +2,7 @@ export * as orgs from "./orgs/index.mjs";
2
2
  export * as shipping from "./shipping/index.mjs";
3
3
  export * as flights from "./flights/index.mjs";
4
4
  export * as utils from "./utils/index.mjs";
5
+ export * as agent from "./agent/index.mjs";
5
6
  export * as analytics from "./analytics/index.mjs";
6
7
  export * as billing from "./billing/index.mjs";
7
8
  export * as billingNew from "./billingNew/index.mjs";
@@ -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
  *
@@ -213,7 +213,7 @@ export class OperationsTasks {
213
213
  });
214
214
  }
215
215
  /**
216
- * Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
216
+ * Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
217
217
  *
218
218
  * @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
219
219
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -543,28 +543,28 @@ export class OperationsTasks {
543
543
  });
544
544
  }
545
545
  /**
546
- * 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)
546
+ * 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)
547
547
  *
548
- * @param {string} taskId
549
- * @param {Chrt.operations.OperationsTaskStatusReq} request
548
+ * @param {Chrt.operations.OperationsTasksSetStatusReq1} request
550
549
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
551
550
  *
552
551
  * @throws {@link Chrt.UnprocessableEntityError}
553
552
  *
554
553
  * @example
555
- * await client.operations.operationsTasks.updateStatusV1("task_id", {
554
+ * await client.operations.operationsTasks.setStatusV1({
555
+ * operations_task_ids: ["operations_task_ids"],
556
556
  * status: "not_started"
557
557
  * })
558
558
  */
559
- updateStatusV1(taskId, request, requestOptions) {
560
- return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(taskId, request, requestOptions));
559
+ setStatusV1(request, requestOptions) {
560
+ return core.HttpResponsePromise.fromPromise(this.__setStatusV1(request, requestOptions));
561
561
  }
562
- __updateStatusV1(taskId, request, requestOptions) {
562
+ __setStatusV1(request, requestOptions) {
563
563
  return __awaiter(this, void 0, void 0, function* () {
564
564
  var _a, _b, _c, _d;
565
565
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
566
566
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
567
- 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)}`),
567
+ 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"),
568
568
  method: "PATCH",
569
569
  headers: _headers,
570
570
  contentType: "application/json",
@@ -598,7 +598,7 @@ export class OperationsTasks {
598
598
  rawResponse: _response.rawResponse,
599
599
  });
600
600
  case "timeout":
601
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/status/v1/{task_id}.");
601
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_status/v1.");
602
602
  case "unknown":
603
603
  throw new errors.ChrtError({
604
604
  message: _response.error.errorMessage,
@@ -5,9 +5,11 @@ import * as Chrt from "../../../../../../index.mjs";
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.mjs";
4
4
  export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
5
5
  export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.mjs";
6
- export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.mjs";
6
+ export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.mjs";
7
7
  export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
8
8
  export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
@@ -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.
@@ -269,7 +269,7 @@ export class Contacts {
269
269
  });
270
270
  }
271
271
  /**
272
- * Lists organization-created contacts with association filters and search. | authz: min_org_role=operator | () -> (ContactListRes)
272
+ * Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
273
273
  *
274
274
  * @param {Chrt.orgs.ContactsListV1Request} request
275
275
  * @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
  *
@@ -19,6 +19,66 @@ export class Cargos {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
+ /**
23
+ * Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
24
+ *
25
+ * @param {string} orderTemplateId
26
+ * @param {string} cargoKey
27
+ * @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
33
+ */
34
+ postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__postDuplicateV1(orderTemplateId, cargoKey, requestOptions));
36
+ }
37
+ __postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ var _a, _b, _c, _d;
40
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
41
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
42
+ 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)}`),
43
+ method: "POST",
44
+ headers: _headers,
45
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
46
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
47
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
48
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
49
+ });
50
+ if (_response.ok) {
51
+ return { data: _response.body, rawResponse: _response.rawResponse };
52
+ }
53
+ if (_response.error.reason === "status-code") {
54
+ switch (_response.error.statusCode) {
55
+ case 422:
56
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
57
+ default:
58
+ throw new errors.ChrtError({
59
+ statusCode: _response.error.statusCode,
60
+ body: _response.error.body,
61
+ rawResponse: _response.rawResponse,
62
+ });
63
+ }
64
+ }
65
+ switch (_response.error.reason) {
66
+ case "non-json":
67
+ throw new errors.ChrtError({
68
+ statusCode: _response.error.statusCode,
69
+ body: _response.error.rawBody,
70
+ rawResponse: _response.rawResponse,
71
+ });
72
+ case "timeout":
73
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_templates_new/cargos/duplicate/v1/{order_template_id}/{cargo_key}.");
74
+ case "unknown":
75
+ throw new errors.ChrtError({
76
+ message: _response.error.errorMessage,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ }
80
+ });
81
+ }
22
82
  /**
23
83
  * Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
24
84
  *
@@ -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
  *