@chrt-inc/typescript-sdk 1.897.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.mjs";
1
+ export { type InvoiceLineItemsApproveManyReq } from "./InvoiceLineItemsApproveManyReq.mjs";
2
2
  export { type CreateInvoiceLineItemsFromAmountReq } from "./CreateInvoiceLineItemsFromAmountReq.mjs";
3
3
  export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLineItemsFromLineItemsReq.mjs";
4
4
  export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.mjs";
5
5
  export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.mjs";
6
+ export { type RecalculateOrderTaxInvoiceLineItemsReq } from "./RecalculateOrderTaxInvoiceLineItemsReq.mjs";
6
7
  export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.mjs";
@@ -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.
@@ -79,7 +79,7 @@ export class Invoices {
79
79
  });
80
80
  }
81
81
  /**
82
- * Creates a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
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)
83
83
  *
84
84
  * @param {Chrt.billingNew.InvoiceClientCreate1} request
85
85
  * @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.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
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,211 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ import * as environments from "../../../../../../environments.mjs";
25
+ import * as core from "../../../../../../core/index.mjs";
26
+ import * as Chrt from "../../../../../index.mjs";
27
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
28
+ import * as errors from "../../../../../../errors/index.mjs";
29
+ export class Orders {
30
+ constructor(_options = {}) {
31
+ this._options = _options;
32
+ }
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 = {}, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__listExpandedForCoordinatorOperatorsV1(request, requestOptions));
69
+ }
70
+ __listExpandedForCoordinatorOperatorsV1() {
71
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
72
+ var _a, _b, _c, _d, _e, _f;
73
+ 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"]);
74
+ const _queryParams = {};
75
+ if (sortBy !== undefined) {
76
+ _queryParams["sort_by"] = sortBy;
77
+ }
78
+ if (sortOrder !== undefined) {
79
+ _queryParams["sort_order"] = sortOrder;
80
+ }
81
+ if (page !== undefined) {
82
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
83
+ }
84
+ if (pageSize !== undefined) {
85
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
86
+ }
87
+ if (search !== undefined) {
88
+ _queryParams["search"] = search;
89
+ }
90
+ if (filterStatus !== undefined) {
91
+ if (Array.isArray(filterStatus)) {
92
+ _queryParams["filter_status"] = filterStatus.map((item) => item);
93
+ }
94
+ else {
95
+ _queryParams["filter_status"] = filterStatus;
96
+ }
97
+ }
98
+ if (filterAwbNumber !== undefined) {
99
+ _queryParams["filter_awb_number"] = filterAwbNumber;
100
+ }
101
+ if (filterShipperOrgId !== undefined) {
102
+ _queryParams["filter_shipper_org_id"] = filterShipperOrgId;
103
+ }
104
+ if (filterOffChrtShipperOrgDataId !== undefined) {
105
+ _queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
106
+ }
107
+ if (filterCoordinatorShipperAccountIds !== undefined) {
108
+ if (Array.isArray(filterCoordinatorShipperAccountIds)) {
109
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
110
+ }
111
+ else {
112
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
113
+ }
114
+ }
115
+ if (filterExecutorOrgId !== undefined) {
116
+ _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
117
+ }
118
+ if (filterCoordinatorLabel !== undefined) {
119
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
120
+ }
121
+ if (filterDraftStartedAtTimestampGte !== undefined) {
122
+ _queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
123
+ }
124
+ if (filterDraftStartedAtTimestampLte !== undefined) {
125
+ _queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
126
+ }
127
+ if (filterStagedAtTimestampGte !== undefined) {
128
+ _queryParams["filter_staged_at_timestamp_gte"] = filterStagedAtTimestampGte;
129
+ }
130
+ if (filterStagedAtTimestampLte !== undefined) {
131
+ _queryParams["filter_staged_at_timestamp_lte"] = filterStagedAtTimestampLte;
132
+ }
133
+ if (filterInProgressAtTimestampGte !== undefined) {
134
+ _queryParams["filter_in_progress_at_timestamp_gte"] = filterInProgressAtTimestampGte;
135
+ }
136
+ if (filterInProgressAtTimestampLte !== undefined) {
137
+ _queryParams["filter_in_progress_at_timestamp_lte"] = filterInProgressAtTimestampLte;
138
+ }
139
+ if (filterCompletedAtTimestampGte !== undefined) {
140
+ _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
141
+ }
142
+ if (filterCompletedAtTimestampLte !== undefined) {
143
+ _queryParams["filter_completed_at_timestamp_lte"] = filterCompletedAtTimestampLte;
144
+ }
145
+ if (filterCancelledAtTimestampGte !== undefined) {
146
+ _queryParams["filter_cancelled_at_timestamp_gte"] = filterCancelledAtTimestampGte;
147
+ }
148
+ if (filterCancelledAtTimestampLte !== undefined) {
149
+ _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
150
+ }
151
+ if (filterExceptionAtTimestampGte !== undefined) {
152
+ _queryParams["filter_exception_at_timestamp_gte"] = filterExceptionAtTimestampGte;
153
+ }
154
+ if (filterExceptionAtTimestampLte !== undefined) {
155
+ _queryParams["filter_exception_at_timestamp_lte"] = filterExceptionAtTimestampLte;
156
+ }
157
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
158
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
159
+ 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"),
160
+ method: "POST",
161
+ headers: _headers,
162
+ contentType: "application/json",
163
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
164
+ requestType: "json",
165
+ body: _body,
166
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
167
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
168
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
+ });
170
+ if (_response.ok) {
171
+ return { data: _response.body, rawResponse: _response.rawResponse };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch (_response.error.statusCode) {
175
+ case 422:
176
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
177
+ default:
178
+ throw new errors.ChrtError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.body,
181
+ rawResponse: _response.rawResponse,
182
+ });
183
+ }
184
+ }
185
+ switch (_response.error.reason) {
186
+ case "non-json":
187
+ throw new errors.ChrtError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.rawBody,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ case "timeout":
193
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/expanded/list/for_coordinator_operators/v1.");
194
+ case "unknown":
195
+ throw new errors.ChrtError({
196
+ message: _response.error.errorMessage,
197
+ rawResponse: _response.rawResponse,
198
+ });
199
+ }
200
+ });
201
+ }
202
+ _getAuthorizationHeader() {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const bearer = yield core.Supplier.get(this._options.token);
205
+ if (bearer != null) {
206
+ return `Bearer ${bearer}`;
207
+ }
208
+ return undefined;
209
+ });
210
+ }
211
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "draft_started_at_timestamp",
9
+ * sort_order: "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.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -228,7 +228,7 @@ export class OrderSchedules {
228
228
  __listV1() {
229
229
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
230
230
  var _a, _b, _c, _d, _e, _f;
231
- 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;
231
+ 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;
232
232
  const _queryParams = {};
233
233
  if (sortBy !== undefined) {
234
234
  _queryParams["sort_by"] = sortBy;
@@ -253,6 +253,14 @@ export class OrderSchedules {
253
253
  if (filterOwnedByUserId !== undefined) {
254
254
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
255
255
  }
256
+ if (filterServiceLine !== undefined) {
257
+ if (Array.isArray(filterServiceLine)) {
258
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
259
+ }
260
+ else {
261
+ _queryParams["filter_service_line"] = filterServiceLine;
262
+ }
263
+ }
256
264
  if (filterCreatedAtTimestampGte !== undefined) {
257
265
  _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
258
266
  }
@@ -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). */
@@ -178,7 +178,7 @@ export class OrderTemplates {
178
178
  __listV1() {
179
179
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
180
180
  var _a, _b, _c, _d, _e, _f, _g;
181
- 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;
181
+ 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;
182
182
  const _queryParams = {};
183
183
  if (sortBy !== undefined) {
184
184
  _queryParams["sort_by"] = sortBy;
@@ -201,6 +201,14 @@ export class OrderTemplates {
201
201
  if (filterOwnedByUserId !== undefined) {
202
202
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
203
203
  }
204
+ if (filterServiceLine !== undefined) {
205
+ if (Array.isArray(filterServiceLine)) {
206
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
207
+ }
208
+ else {
209
+ _queryParams["filter_service_line"] = filterServiceLine;
210
+ }
211
+ }
204
212
  if (filterOffChrtReferenceIdStr !== undefined) {
205
213
  _queryParams["filter_off_chrt_reference_id_str"] = filterOffChrtReferenceIdStr;
206
214
  }
@@ -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
  *