@chrt-inc/typescript-sdk 1.899.0 → 1.906.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 (262) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +6 -3
  3. package/dist/cjs/api/resources/billingNew/client/Client.js +12 -7
  4. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.ts +43 -55
  5. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.js +91 -133
  6. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +11 -3
  7. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +10 -0
  8. package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.ts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts} +8 -4
  9. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.ts +12 -0
  10. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.ts +4 -0
  11. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +4 -2
  12. package/dist/cjs/api/resources/billingNew/resources/index.js +5 -3
  13. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +109 -8
  14. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +363 -14
  15. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +1 -0
  16. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +3 -3
  18. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +12 -0
  19. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +2 -1
  20. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
  21. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
  22. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +70 -0
  23. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +248 -0
  24. package/dist/cjs/api/resources/billingNew/resources/orders/client/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/billingNew/resources/orders/client/index.js +17 -0
  26. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +70 -0
  27. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.js +2 -0
  29. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +17 -0
  31. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +9 -1
  32. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
  33. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +9 -1
  34. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  35. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  36. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +2 -0
  37. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +0 -28
  38. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +0 -120
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -0
  40. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
  41. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.ts +1 -1
  42. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.js +1 -1
  43. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -4
  44. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +2 -0
  45. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +2 -0
  46. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +2 -0
  47. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +2 -0
  48. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +9 -1
  49. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +2 -0
  50. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +15 -1
  51. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +64 -1
  52. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.ts +11 -0
  53. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.js +5 -0
  54. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
  55. package/dist/cjs/api/types/AdHocInvoiceLineItem1.d.ts +8 -0
  56. package/dist/cjs/api/types/AdHocInvoiceLineItem1.js +5 -0
  57. package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.d.ts +8 -0
  58. package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.js +5 -0
  59. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +10 -3
  60. package/dist/cjs/api/types/FromPayables1.d.ts +9 -0
  61. package/dist/cjs/api/types/FromPayables1.js +5 -0
  62. package/dist/cjs/api/types/InvoiceLineItem1.d.ts +4 -1
  63. package/dist/cjs/api/types/InvoiceLineItemClientCreate1.d.ts +20 -0
  64. package/dist/cjs/api/types/InvoiceLineItemClientCreate1.js +5 -0
  65. package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +33 -0
  66. package/dist/cjs/api/types/InvoiceLineItemServerCreate1.js +5 -0
  67. package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.d.ts +9 -0
  68. package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.js +11 -0
  69. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +4 -1
  70. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +3 -0
  71. package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +1 -1
  72. package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.ts +7 -0
  73. package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js +5 -0
  74. package/dist/cjs/api/types/Order1.d.ts +1 -0
  75. package/dist/cjs/api/types/OrderBillingAccount1.d.ts +7 -0
  76. package/dist/cjs/api/types/OrderBillingAccount1.js +5 -0
  77. package/dist/cjs/api/types/OrderBillingCurrencyTotals1.d.ts +9 -0
  78. package/dist/cjs/api/types/OrderBillingCurrencyTotals1.js +5 -0
  79. package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +11 -0
  80. package/dist/cjs/api/types/OrderBillingExecutor1.js +5 -0
  81. package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +19 -0
  82. package/dist/cjs/api/types/OrderBillingExpandedListItem1.js +5 -0
  83. package/dist/cjs/api/types/OrderBillingExpandedListRes.d.ts +8 -0
  84. package/dist/cjs/api/types/OrderBillingExpandedListRes.js +5 -0
  85. package/dist/cjs/api/types/OrderBillingShipper1.d.ts +9 -0
  86. package/dist/cjs/api/types/OrderBillingShipper1.js +5 -0
  87. package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +12 -0
  88. package/dist/cjs/api/types/OrderBillingSortByEnum.js +14 -0
  89. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
  90. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +1 -0
  91. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  92. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -0
  93. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  94. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  95. package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +2 -0
  96. package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.ts +9 -0
  97. package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.js +5 -0
  98. package/dist/cjs/api/types/ServiceLineEnum.d.ts +8 -0
  99. package/dist/cjs/api/types/ServiceLineEnum.js +10 -0
  100. package/dist/cjs/api/types/Task1.d.ts +1 -0
  101. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -0
  102. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -0
  103. package/dist/cjs/api/types/TaskGroup1.d.ts +0 -2
  104. package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.ts +7 -0
  105. package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.js +5 -0
  106. package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.ts +9 -0
  107. package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.js +5 -0
  108. package/dist/cjs/api/types/TaxRate1.d.ts +9 -0
  109. package/dist/cjs/api/types/TaxRate1.js +5 -0
  110. package/dist/cjs/api/types/index.d.ts +19 -1
  111. package/dist/cjs/api/types/index.js +19 -1
  112. package/dist/cjs/version.d.ts +1 -1
  113. package/dist/cjs/version.js +1 -1
  114. package/dist/esm/Client.mjs +2 -2
  115. package/dist/esm/api/resources/billingNew/client/Client.d.mts +6 -3
  116. package/dist/esm/api/resources/billingNew/client/Client.mjs +8 -3
  117. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.mts +43 -55
  118. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.mjs +89 -131
  119. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +11 -3
  120. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +10 -0
  121. package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.mts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts} +8 -4
  122. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.mts +12 -0
  123. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.mts +4 -0
  124. package/dist/esm/api/resources/billingNew/resources/index.d.mts +4 -2
  125. package/dist/esm/api/resources/billingNew/resources/index.mjs +4 -2
  126. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +109 -8
  127. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +363 -14
  128. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +1 -0
  129. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.mts +12 -0
  130. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +3 -3
  131. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +12 -0
  132. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +2 -1
  133. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
  134. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
  135. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +70 -0
  136. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +211 -0
  137. package/dist/esm/api/resources/billingNew/resources/orders/client/index.d.mts +2 -0
  138. package/dist/esm/api/resources/billingNew/resources/orders/client/index.mjs +1 -0
  139. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +70 -0
  140. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.mjs +1 -0
  142. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
  143. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
  144. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +9 -1
  145. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
  146. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +9 -1
  147. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  148. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  149. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +2 -0
  150. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +0 -28
  151. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +0 -120
  152. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -0
  153. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
  154. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.mts +1 -1
  155. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.mjs +1 -1
  156. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -4
  157. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +2 -0
  158. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +2 -0
  159. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +2 -0
  160. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +2 -0
  161. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +9 -1
  162. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +2 -0
  163. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +15 -1
  164. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +64 -1
  165. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.mts +11 -0
  166. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.mjs +4 -0
  167. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
  168. package/dist/esm/api/types/AdHocInvoiceLineItem1.d.mts +8 -0
  169. package/dist/esm/api/types/AdHocInvoiceLineItem1.mjs +4 -0
  170. package/dist/esm/api/types/AdHocInvoiceLineItemsReq.d.mts +8 -0
  171. package/dist/esm/api/types/AdHocInvoiceLineItemsReq.mjs +4 -0
  172. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +10 -3
  173. package/dist/esm/api/types/FromPayables1.d.mts +9 -0
  174. package/dist/esm/api/types/FromPayables1.mjs +4 -0
  175. package/dist/esm/api/types/InvoiceLineItem1.d.mts +4 -1
  176. package/dist/esm/api/types/InvoiceLineItemClientCreate1.d.mts +20 -0
  177. package/dist/esm/api/types/InvoiceLineItemClientCreate1.mjs +4 -0
  178. package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +33 -0
  179. package/dist/esm/api/types/InvoiceLineItemServerCreate1.mjs +4 -0
  180. package/dist/esm/api/types/InvoiceLineItemStatusEnum1.d.mts +9 -0
  181. package/dist/esm/api/types/InvoiceLineItemStatusEnum1.mjs +8 -0
  182. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +4 -1
  183. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +3 -0
  184. package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +1 -1
  185. package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.mts +7 -0
  186. package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.mjs +4 -0
  187. package/dist/esm/api/types/Order1.d.mts +1 -0
  188. package/dist/esm/api/types/OrderBillingAccount1.d.mts +7 -0
  189. package/dist/esm/api/types/OrderBillingAccount1.mjs +4 -0
  190. package/dist/esm/api/types/OrderBillingCurrencyTotals1.d.mts +9 -0
  191. package/dist/esm/api/types/OrderBillingCurrencyTotals1.mjs +4 -0
  192. package/dist/esm/api/types/OrderBillingExecutor1.d.mts +11 -0
  193. package/dist/esm/api/types/OrderBillingExecutor1.mjs +4 -0
  194. package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +19 -0
  195. package/dist/esm/api/types/OrderBillingExpandedListItem1.mjs +4 -0
  196. package/dist/esm/api/types/OrderBillingExpandedListRes.d.mts +8 -0
  197. package/dist/esm/api/types/OrderBillingExpandedListRes.mjs +4 -0
  198. package/dist/esm/api/types/OrderBillingShipper1.d.mts +9 -0
  199. package/dist/esm/api/types/OrderBillingShipper1.mjs +4 -0
  200. package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +12 -0
  201. package/dist/esm/api/types/OrderBillingSortByEnum.mjs +11 -0
  202. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
  203. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +1 -0
  204. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  205. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -0
  206. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  207. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  208. package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +2 -0
  209. package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.mts +9 -0
  210. package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.mjs +4 -0
  211. package/dist/esm/api/types/ServiceLineEnum.d.mts +8 -0
  212. package/dist/esm/api/types/ServiceLineEnum.mjs +7 -0
  213. package/dist/esm/api/types/Task1.d.mts +1 -0
  214. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -0
  215. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -0
  216. package/dist/esm/api/types/TaskGroup1.d.mts +0 -2
  217. package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.mts +7 -0
  218. package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.mjs +4 -0
  219. package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.mts +9 -0
  220. package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.mjs +4 -0
  221. package/dist/esm/api/types/TaxRate1.d.mts +9 -0
  222. package/dist/esm/api/types/TaxRate1.mjs +4 -0
  223. package/dist/esm/api/types/index.d.mts +19 -1
  224. package/dist/esm/api/types/index.mjs +19 -1
  225. package/dist/esm/version.d.mts +1 -1
  226. package/dist/esm/version.mjs +1 -1
  227. package/package.json +1 -1
  228. package/reference.md +687 -387
  229. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +0 -22
  230. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +0 -13
  231. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +0 -13
  232. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +0 -5
  233. package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +0 -7
  234. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +0 -22
  235. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +0 -13
  236. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +0 -13
  237. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +0 -5
  238. package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +0 -7
  239. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.ts +0 -0
  240. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.js +0 -0
  241. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.js +0 -0
  242. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.js +0 -0
  243. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.js} +0 -0
  244. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.js} +0 -0
  245. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.js +0 -0
  246. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.ts +0 -0
  247. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.js +0 -0
  248. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.js} +0 -0
  249. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.js → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js} +0 -0
  250. /package/dist/cjs/api/{types/ApplyChrtGroundProviderRatesRes.js → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.js} +0 -0
  251. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.mts +0 -0
  252. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.mjs +0 -0
  253. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +0 -0
  254. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +0 -0
  255. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.mjs} +0 -0
  256. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.mjs} +0 -0
  257. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.mjs +0 -0
  258. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.mts +0 -0
  259. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.mjs +0 -0
  260. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.mjs} +0 -0
  261. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.mjs → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs} +0 -0
  262. /package/dist/esm/api/{types/ApplyChrtGroundProviderRatesRes.mjs → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.mjs} +0 -0
@@ -1,6 +1,7 @@
1
- export { type ApplyChrtGroundProviderRatesReq } from "./ApplyChrtGroundProviderRatesReq.js";
1
+ export { type InvoiceLineItemsApproveManyReq } from "./InvoiceLineItemsApproveManyReq.js";
2
2
  export { type CreateInvoiceLineItemsFromAmountReq } from "./CreateInvoiceLineItemsFromAmountReq.js";
3
3
  export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLineItemsFromLineItemsReq.js";
4
4
  export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.js";
5
5
  export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.js";
6
+ export { type RecalculateOrderTaxInvoiceLineItemsReq } from "./RecalculateOrderTaxInvoiceLineItemsReq.js";
6
7
  export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.js";
@@ -44,7 +44,7 @@ export declare class Invoices {
44
44
  approveV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
45
45
  private __approveV1;
46
46
  /**
47
- * Creates a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
47
+ * 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)
48
48
  *
49
49
  * @param {Chrt.billingNew.InvoiceClientCreate1} request
50
50
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -115,7 +115,7 @@ class Invoices {
115
115
  });
116
116
  }
117
117
  /**
118
- * Creates a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
118
+ * 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)
119
119
  *
120
120
  * @param {Chrt.billingNew.InvoiceClientCreate1} request
121
121
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace Orders {
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 Orders {
31
+ protected readonly _options: Orders.Options;
32
+ constructor(_options?: Orders.Options);
33
+ /**
34
+ * Lists coordinator orders with billing summaries and optional party-name expansion. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderBillingExpandedListReq) -> (OrderBillingExpandedListRes)
35
+ *
36
+ * @param {Chrt.billingNew.OrderBillingExpandedListReq} request
37
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
43
+ * sort_by: "draft_started_at_timestamp",
44
+ * sort_order: "asc",
45
+ * page: 1,
46
+ * page_size: 1,
47
+ * search: "search",
48
+ * filter_awb_number: "filter_awb_number",
49
+ * filter_shipper_org_id: "filter_shipper_org_id",
50
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
51
+ * filter_executor_org_id: "filter_executor_org_id",
52
+ * filter_coordinator_label: "filter_coordinator_label",
53
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
54
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
55
+ * filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
56
+ * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
57
+ * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
58
+ * filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
59
+ * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
60
+ * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
61
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
62
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
63
+ * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
64
+ * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z"
65
+ * })
66
+ */
67
+ listExpandedForCoordinatorOperatorsV1(request?: Chrt.billingNew.OrderBillingExpandedListReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrderBillingExpandedListRes>;
68
+ private __listExpandedForCoordinatorOperatorsV1;
69
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
70
+ }
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __rest = (this && this.__rest) || function (s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ };
58
+ Object.defineProperty(exports, "__esModule", { value: true });
59
+ exports.Orders = void 0;
60
+ const environments = __importStar(require("../../../../../../environments.js"));
61
+ const core = __importStar(require("../../../../../../core/index.js"));
62
+ const Chrt = __importStar(require("../../../../../index.js"));
63
+ const headers_js_1 = require("../../../../../../core/headers.js");
64
+ const errors = __importStar(require("../../../../../../errors/index.js"));
65
+ class Orders {
66
+ constructor(_options = {}) {
67
+ this._options = _options;
68
+ }
69
+ /**
70
+ * Lists coordinator orders with billing summaries and optional party-name expansion. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderBillingExpandedListReq) -> (OrderBillingExpandedListRes)
71
+ *
72
+ * @param {Chrt.billingNew.OrderBillingExpandedListReq} request
73
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Chrt.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.billingNew.orders.listExpandedForCoordinatorOperatorsV1({
79
+ * sort_by: "draft_started_at_timestamp",
80
+ * sort_order: "asc",
81
+ * page: 1,
82
+ * page_size: 1,
83
+ * search: "search",
84
+ * filter_awb_number: "filter_awb_number",
85
+ * filter_shipper_org_id: "filter_shipper_org_id",
86
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
87
+ * filter_executor_org_id: "filter_executor_org_id",
88
+ * filter_coordinator_label: "filter_coordinator_label",
89
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
90
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
91
+ * filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
92
+ * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
93
+ * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
94
+ * filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
95
+ * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
96
+ * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
97
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
98
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
99
+ * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
100
+ * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z"
101
+ * })
102
+ */
103
+ listExpandedForCoordinatorOperatorsV1(request = {}, requestOptions) {
104
+ return core.HttpResponsePromise.fromPromise(this.__listExpandedForCoordinatorOperatorsV1(request, requestOptions));
105
+ }
106
+ __listExpandedForCoordinatorOperatorsV1() {
107
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
108
+ var _a, _b, _c, _d, _e, _f;
109
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_label: filterCoordinatorLabel, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_coordinator_label", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
110
+ const _queryParams = {};
111
+ if (sortBy !== undefined) {
112
+ _queryParams["sort_by"] = sortBy;
113
+ }
114
+ if (sortOrder !== undefined) {
115
+ _queryParams["sort_order"] = sortOrder;
116
+ }
117
+ if (page !== undefined) {
118
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
119
+ }
120
+ if (pageSize !== undefined) {
121
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
122
+ }
123
+ if (search !== undefined) {
124
+ _queryParams["search"] = search;
125
+ }
126
+ if (filterStatus !== undefined) {
127
+ if (Array.isArray(filterStatus)) {
128
+ _queryParams["filter_status"] = filterStatus.map((item) => item);
129
+ }
130
+ else {
131
+ _queryParams["filter_status"] = filterStatus;
132
+ }
133
+ }
134
+ if (filterAwbNumber !== undefined) {
135
+ _queryParams["filter_awb_number"] = filterAwbNumber;
136
+ }
137
+ if (filterShipperOrgId !== undefined) {
138
+ _queryParams["filter_shipper_org_id"] = filterShipperOrgId;
139
+ }
140
+ if (filterOffChrtShipperOrgDataId !== undefined) {
141
+ _queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
142
+ }
143
+ if (filterCoordinatorShipperAccountIds !== undefined) {
144
+ if (Array.isArray(filterCoordinatorShipperAccountIds)) {
145
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
146
+ }
147
+ else {
148
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
149
+ }
150
+ }
151
+ if (filterExecutorOrgId !== undefined) {
152
+ _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
153
+ }
154
+ if (filterCoordinatorLabel !== undefined) {
155
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
156
+ }
157
+ if (filterDraftStartedAtTimestampGte !== undefined) {
158
+ _queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
159
+ }
160
+ if (filterDraftStartedAtTimestampLte !== undefined) {
161
+ _queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
162
+ }
163
+ if (filterStagedAtTimestampGte !== undefined) {
164
+ _queryParams["filter_staged_at_timestamp_gte"] = filterStagedAtTimestampGte;
165
+ }
166
+ if (filterStagedAtTimestampLte !== undefined) {
167
+ _queryParams["filter_staged_at_timestamp_lte"] = filterStagedAtTimestampLte;
168
+ }
169
+ if (filterInProgressAtTimestampGte !== undefined) {
170
+ _queryParams["filter_in_progress_at_timestamp_gte"] = filterInProgressAtTimestampGte;
171
+ }
172
+ if (filterInProgressAtTimestampLte !== undefined) {
173
+ _queryParams["filter_in_progress_at_timestamp_lte"] = filterInProgressAtTimestampLte;
174
+ }
175
+ if (filterCompletedAtTimestampGte !== undefined) {
176
+ _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
177
+ }
178
+ if (filterCompletedAtTimestampLte !== undefined) {
179
+ _queryParams["filter_completed_at_timestamp_lte"] = filterCompletedAtTimestampLte;
180
+ }
181
+ if (filterCancelledAtTimestampGte !== undefined) {
182
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
183
+ }
184
+ if (filterCancelledAtTimestampLte !== undefined) {
185
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
186
+ }
187
+ if (filterExceptionAtTimestampGte !== undefined) {
188
+ _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
189
+ }
190
+ if (filterExceptionAtTimestampLte !== undefined) {
191
+ _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
192
+ }
193
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
194
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
195
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "billing_new/orders/expanded/list/for_coordinator_operators/v1"),
196
+ method: "POST",
197
+ headers: _headers,
198
+ contentType: "application/json",
199
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
200
+ requestType: "json",
201
+ body: _body,
202
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
203
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
204
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
205
+ });
206
+ if (_response.ok) {
207
+ return { data: _response.body, rawResponse: _response.rawResponse };
208
+ }
209
+ if (_response.error.reason === "status-code") {
210
+ switch (_response.error.statusCode) {
211
+ case 422:
212
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
213
+ default:
214
+ throw new errors.ChrtError({
215
+ statusCode: _response.error.statusCode,
216
+ body: _response.error.body,
217
+ rawResponse: _response.rawResponse,
218
+ });
219
+ }
220
+ }
221
+ switch (_response.error.reason) {
222
+ case "non-json":
223
+ throw new errors.ChrtError({
224
+ statusCode: _response.error.statusCode,
225
+ body: _response.error.rawBody,
226
+ rawResponse: _response.rawResponse,
227
+ });
228
+ case "timeout":
229
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/expanded/list/for_coordinator_operators/v1.");
230
+ case "unknown":
231
+ throw new errors.ChrtError({
232
+ message: _response.error.errorMessage,
233
+ rawResponse: _response.rawResponse,
234
+ });
235
+ }
236
+ });
237
+ }
238
+ _getAuthorizationHeader() {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ const bearer = yield core.Supplier.get(this._options.token);
241
+ if (bearer != null) {
242
+ return `Bearer ${bearer}`;
243
+ }
244
+ return undefined;
245
+ });
246
+ }
247
+ }
248
+ exports.Orders = Orders;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -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("./requests/index.js"), exports);
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "draft_started_at_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * search: "search",
13
+ * filter_awb_number: "filter_awb_number",
14
+ * filter_shipper_org_id: "filter_shipper_org_id",
15
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
16
+ * filter_executor_org_id: "filter_executor_org_id",
17
+ * filter_coordinator_label: "filter_coordinator_label",
18
+ * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
19
+ * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
20
+ * filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
+ * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
22
+ * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
23
+ * filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
24
+ * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
+ * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
26
+ * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
27
+ * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
28
+ * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
29
+ * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z"
30
+ * }
31
+ */
32
+ export interface OrderBillingExpandedListReq {
33
+ /** Order lifecycle timestamp used for sorting. */
34
+ sort_by?: Chrt.OrderBillingSortByEnum | null;
35
+ /** Sort order (asc or desc). */
36
+ sort_order?: Chrt.SortOrderEnum | null;
37
+ page?: number | null;
38
+ page_size?: number | null;
39
+ /** Full-text search query for order short ID, off-CHRT reference ID, and AWB. */
40
+ search?: string | null;
41
+ /** Filter by one or more order statuses. */
42
+ filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
43
+ /** Filter by an exact order AWB number. */
44
+ filter_awb_number?: string | null;
45
+ /** Filter by an on-CHRT shipper organization. */
46
+ filter_shipper_org_id?: string | null;
47
+ /** Filter by an off-CHRT shipper. */
48
+ filter_off_chrt_shipper_org_data_id?: string | null;
49
+ /** Filter by one or more coordinator shipper accounts. */
50
+ filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
51
+ /** Filter by an on-CHRT executor organization. */
52
+ filter_executor_org_id?: string | null;
53
+ /** Filter by an exact coordinator label. */
54
+ filter_coordinator_label?: string | null;
55
+ filter_draft_started_at_timestamp_gte?: string | null;
56
+ filter_draft_started_at_timestamp_lte?: string | null;
57
+ filter_staged_at_timestamp_gte?: string | null;
58
+ filter_staged_at_timestamp_lte?: string | null;
59
+ filter_in_progress_at_timestamp_gte?: string | null;
60
+ filter_in_progress_at_timestamp_lte?: string | null;
61
+ filter_completed_at_timestamp_gte?: string | null;
62
+ filter_completed_at_timestamp_lte?: string | null;
63
+ filter_cancelled_at_timestamp_gte?: string | null;
64
+ filter_cancelled_at_timestamp_lte?: string | null;
65
+ filter_exception_at_timestamp_gte?: string | null;
66
+ filter_exception_at_timestamp_lte?: string | null;
67
+ expand_account_names?: boolean;
68
+ expand_executor_names?: boolean;
69
+ expand_shipper_name?: boolean;
70
+ }
@@ -0,0 +1 @@
1
+ export { type OrderBillingExpandedListReq } from "./OrderBillingExpandedListReq.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -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);
@@ -264,7 +264,7 @@ class OrderSchedules {
264
264
  __listV1() {
265
265
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
266
266
  var _a, _b, _c, _d, _e, _f;
267
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_intended_status: filterIntendedStatus, filter_owned_by_user_id: filterOwnedByUserId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, } = request;
267
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_intended_status: filterIntendedStatus, filter_owned_by_user_id: filterOwnedByUserId, filter_service_line: filterServiceLine, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, } = request;
268
268
  const _queryParams = {};
269
269
  if (sortBy !== undefined) {
270
270
  _queryParams["sort_by"] = sortBy;
@@ -289,6 +289,14 @@ class OrderSchedules {
289
289
  if (filterOwnedByUserId !== undefined) {
290
290
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
291
291
  }
292
+ if (filterServiceLine !== undefined) {
293
+ if (Array.isArray(filterServiceLine)) {
294
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
295
+ }
296
+ else {
297
+ _queryParams["filter_service_line"] = filterServiceLine;
298
+ }
299
+ }
292
300
  if (filterCreatedAtTimestampGte !== undefined) {
293
301
  _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
294
302
  }
@@ -27,6 +27,8 @@ export interface OrderSchedulesListV1Request {
27
27
  filter_intended_status?: (Chrt.OrderScheduleStatusEnum1 | null) | (Chrt.OrderScheduleStatusEnum1 | null)[];
28
28
  /** Filter by the user who owns the order schedule. */
29
29
  filter_owned_by_user_id?: string | null;
30
+ /** Filter by the order template service line. */
31
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
30
32
  /** Filter created_at_timestamp >= value (inclusive). */
31
33
  filter_created_at_timestamp_gte?: string | null;
32
34
  /** Filter created_at_timestamp <= value (inclusive). */
@@ -214,7 +214,7 @@ class OrderTemplates {
214
214
  __listV1() {
215
215
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
216
216
  var _a, _b, _c, _d, _e, _f, _g;
217
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_coordinator_label: filterCoordinatorLabel, filter_driver_id: filterDriverId, filter_contact_id: filterContactId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
217
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_service_line: filterServiceLine, filter_off_chrt_reference_id_str: filterOffChrtReferenceIdStr, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_department_id: filterDepartmentId, filter_coordinator_label: filterCoordinatorLabel, filter_driver_id: filterDriverId, filter_contact_id: filterContactId, filter_task_lists_to_apply_at_order_creation_task_list_id: filterTaskListsToApplyAtOrderCreationTaskListId, filter_task_lists_to_apply_at_order_staging_task_list_id: filterTaskListsToApplyAtOrderStagingTaskListId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
218
218
  const _queryParams = {};
219
219
  if (sortBy !== undefined) {
220
220
  _queryParams["sort_by"] = sortBy;
@@ -237,6 +237,14 @@ class OrderTemplates {
237
237
  if (filterOwnedByUserId !== undefined) {
238
238
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
239
239
  }
240
+ if (filterServiceLine !== undefined) {
241
+ if (Array.isArray(filterServiceLine)) {
242
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
243
+ }
244
+ else {
245
+ _queryParams["filter_service_line"] = filterServiceLine;
246
+ }
247
+ }
240
248
  if (filterOffChrtReferenceIdStr !== undefined) {
241
249
  _queryParams["filter_off_chrt_reference_id_str"] = filterOffChrtReferenceIdStr;
242
250
  }
@@ -24,6 +24,7 @@ export interface OrderTemplateClientCreate1 {
24
24
  off_chrt_reference_id_str?: string | null;
25
25
  off_chrt_shipper_org_data_id?: string | null;
26
26
  schema_version: number;
27
+ service_line?: Chrt.ServiceLineEnum;
27
28
  /** Must be a string starting with `org_` */
28
29
  shipper_org_id?: string | null;
29
30
  task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
@@ -26,6 +26,7 @@ export interface OrderTemplateClientUpdate1 {
26
26
  off_chrt_reference_id_str__set_to_None?: boolean;
27
27
  off_chrt_shipper_org_data_id?: string | null;
28
28
  off_chrt_shipper_org_data_id__set_to_None?: boolean;
29
+ service_line?: Chrt.ServiceLineEnum | null;
29
30
  /** Must be a string starting with `org_` */
30
31
  shipper_org_id?: string | null;
31
32
  shipper_org_id__set_to_None?: boolean;
@@ -43,6 +43,8 @@ export interface OrderTemplatesListV1Request {
43
43
  filter_archived?: boolean | null;
44
44
  /** Filter by the user who owns the order template. */
45
45
  filter_owned_by_user_id?: string | null;
46
+ /** Filter by service line. */
47
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
46
48
  /** Filter by the off-CHRT reference ID string. */
47
49
  filter_off_chrt_reference_id_str?: string | null;
48
50
  /** Filter by on-CHRT shipper org ID. */
@@ -80,34 +80,6 @@ export declare class Orders {
80
80
  */
81
81
  cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
82
82
  private __cancelManyV1;
83
- /**
84
- * Adds a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
85
- *
86
- * @param {string} orderId
87
- * @param {string} coordinatorShipperAccountId
88
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
89
- *
90
- * @throws {@link Chrt.UnprocessableEntityError}
91
- *
92
- * @example
93
- * await client.shipping.orders.addCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
94
- */
95
- addCoordinatorShipperAccountIdV1(orderId: string, coordinatorShipperAccountId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
96
- private __addCoordinatorShipperAccountIdV1;
97
- /**
98
- * Removes a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
99
- *
100
- * @param {string} orderId
101
- * @param {string} coordinatorShipperAccountId
102
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
103
- *
104
- * @throws {@link Chrt.UnprocessableEntityError}
105
- *
106
- * @example
107
- * await client.shipping.orders.removeCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
108
- */
109
- removeCoordinatorShipperAccountIdV1(orderId: string, coordinatorShipperAccountId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
110
- private __removeCoordinatorShipperAccountIdV1;
111
83
  /**
112
84
  * Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
113
85
  *