@chrt-inc/typescript-sdk 1.891.0 → 1.894.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 (328) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +23 -18
  3. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +29 -0
  4. package/dist/cjs/api/resources/billingNew/client/Client.js +27 -0
  5. package/dist/cjs/api/resources/billingNew/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/billingNew/client/index.js +2 -0
  7. package/dist/cjs/api/resources/billingNew/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/billingNew/index.js +18 -0
  9. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +6 -0
  10. package/dist/cjs/api/resources/billingNew/resources/index.js +45 -0
  11. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +178 -0
  12. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +637 -0
  13. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/index.js +17 -0
  15. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +22 -0
  16. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js +5 -0
  17. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +28 -0
  18. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js +5 -0
  19. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +45 -0
  20. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js +5 -0
  21. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.ts +19 -0
  22. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.js +5 -0
  23. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.d.ts +12 -0
  24. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.js +5 -0
  25. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +62 -0
  26. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.js +5 -0
  27. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +6 -0
  28. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.js +2 -0
  29. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +17 -0
  31. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +217 -0
  32. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +880 -0
  33. package/dist/cjs/api/resources/billingNew/resources/invoices/client/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/billingNew/resources/invoices/client/index.js +17 -0
  35. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +24 -0
  36. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.js +5 -0
  37. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.d.ts +13 -0
  38. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.js +5 -0
  39. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.d.ts +12 -0
  40. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.js +5 -0
  41. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.d.ts +12 -0
  42. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.js +5 -0
  43. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.d.ts +10 -0
  44. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.js +5 -0
  45. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +51 -0
  46. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.js +5 -0
  47. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +6 -0
  48. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.js +2 -0
  49. package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +17 -0
  51. package/dist/cjs/api/resources/billingNew/resources/rates/client/Client.d.ts +145 -0
  52. package/dist/cjs/api/resources/billingNew/resources/rates/client/Client.js +578 -0
  53. package/dist/cjs/api/resources/billingNew/resources/rates/client/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/billingNew/resources/rates/client/index.js +17 -0
  55. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +13 -0
  56. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js +5 -0
  57. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +37 -0
  58. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.js +5 -0
  59. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +43 -0
  60. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.js +5 -0
  61. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +13 -0
  62. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js +5 -0
  63. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.d.ts +54 -0
  64. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.js +5 -0
  65. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +5 -0
  66. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.js +2 -0
  67. package/dist/cjs/api/resources/billingNew/resources/rates/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/billingNew/resources/rates/index.js +17 -0
  69. package/dist/cjs/api/resources/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/index.js +2 -1
  71. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  72. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -20
  73. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +3 -0
  74. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +3 -0
  75. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  76. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
  77. package/dist/cjs/api/types/AdditionalMileageRate1.d.ts +9 -0
  78. package/dist/cjs/api/types/AdditionalMileageRate1.js +5 -0
  79. package/dist/cjs/api/types/AfterHoursRate1.d.ts +7 -0
  80. package/dist/cjs/api/types/AfterHoursRate1.js +5 -0
  81. package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +7 -0
  82. package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.js +5 -0
  83. package/dist/cjs/api/types/AttemptRate1.d.ts +7 -0
  84. package/dist/cjs/api/types/AttemptRate1.js +5 -0
  85. package/dist/cjs/api/types/BaseMileageRate1.d.ts +8 -0
  86. package/dist/cjs/api/types/BaseMileageRate1.js +5 -0
  87. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +17 -0
  88. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +19 -0
  89. package/dist/cjs/api/types/CargoTypeEnum1.d.ts +8 -1
  90. package/dist/cjs/api/types/CargoTypeEnum1.js +7 -0
  91. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +35 -0
  92. package/dist/cjs/api/types/ChrtGroundProviderRates1.js +5 -0
  93. package/dist/cjs/api/types/ChrtGroundProviderRatesListRes.d.ts +8 -0
  94. package/dist/cjs/api/types/ChrtGroundProviderRatesListRes.js +5 -0
  95. package/dist/cjs/api/types/ChrtGroundProviderRatesSortByEnum.d.ts +10 -0
  96. package/dist/cjs/api/types/ChrtGroundProviderRatesSortByEnum.js +12 -0
  97. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +7 -0
  98. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.js +5 -0
  99. package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +7 -0
  100. package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.js +5 -0
  101. package/dist/cjs/api/types/DangerousGoodsRate1.d.ts +7 -0
  102. package/dist/cjs/api/types/DangerousGoodsRate1.js +5 -0
  103. package/dist/cjs/api/types/ExtraStopRate1.d.ts +7 -0
  104. package/dist/cjs/api/types/ExtraStopRate1.js +5 -0
  105. package/dist/cjs/api/types/FlatFeeRate1.d.ts +7 -0
  106. package/dist/cjs/api/types/FlatFeeRate1.js +5 -0
  107. package/dist/cjs/api/types/FuelSurchargeRate1.d.ts +7 -0
  108. package/dist/cjs/api/types/FuelSurchargeRate1.js +5 -0
  109. package/dist/cjs/api/types/HolidayRate1.d.ts +7 -0
  110. package/dist/cjs/api/types/HolidayRate1.js +5 -0
  111. package/dist/cjs/api/types/Invoice1.d.ts +57 -0
  112. package/dist/cjs/api/types/Invoice1.js +5 -0
  113. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +11 -0
  114. package/dist/cjs/api/types/InvoiceExpandedRes.js +5 -0
  115. package/dist/cjs/api/types/InvoiceLineItem1.d.ts +31 -0
  116. package/dist/cjs/api/types/InvoiceLineItem1.js +5 -0
  117. package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +8 -0
  118. package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.js +5 -0
  119. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +9 -0
  120. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +11 -0
  121. package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +8 -0
  122. package/dist/cjs/api/types/InvoiceLineItemListRes.js +5 -0
  123. package/dist/cjs/api/types/InvoiceLineItemSortByEnum.d.ts +14 -0
  124. package/dist/cjs/api/types/InvoiceLineItemSortByEnum.js +16 -0
  125. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +33 -0
  126. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +35 -0
  127. package/dist/cjs/api/types/InvoiceLineItemUnitEnum1.d.ts +14 -0
  128. package/dist/cjs/api/types/InvoiceLineItemUnitEnum1.js +16 -0
  129. package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +10 -0
  130. package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.js +5 -0
  131. package/dist/cjs/api/types/InvoiceLineItemsDeleteManyRes.d.ts +6 -0
  132. package/dist/cjs/api/types/InvoiceLineItemsDeleteManyRes.js +5 -0
  133. package/dist/cjs/api/types/InvoiceListRes.d.ts +8 -0
  134. package/dist/cjs/api/types/InvoiceListRes.js +5 -0
  135. package/dist/cjs/api/types/InvoiceMergeStatusEnum1.d.ts +12 -0
  136. package/dist/cjs/api/types/InvoiceMergeStatusEnum1.js +14 -0
  137. package/dist/cjs/api/types/InvoiceSortByEnum.d.ts +11 -0
  138. package/dist/cjs/api/types/InvoiceSortByEnum.js +13 -0
  139. package/dist/cjs/api/types/InvoiceStatusEnum1.d.ts +9 -0
  140. package/dist/cjs/api/types/InvoiceStatusEnum1.js +11 -0
  141. package/dist/cjs/api/types/InvoiceStripeStatusEnum1.d.ts +11 -0
  142. package/dist/cjs/api/types/InvoiceStripeStatusEnum1.js +13 -0
  143. package/dist/cjs/api/types/InvoiceTypeEnum1.d.ts +8 -0
  144. package/dist/cjs/api/types/InvoiceTypeEnum1.js +10 -0
  145. package/dist/cjs/api/types/LongDistanceSurchargeRate1.d.ts +8 -0
  146. package/dist/cjs/api/types/LongDistanceSurchargeRate1.js +5 -0
  147. package/dist/cjs/api/types/Order1.d.ts +1 -0
  148. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
  149. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +1 -0
  150. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  151. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -0
  152. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -0
  153. package/dist/cjs/api/types/OrderTemplateReferencesExpanded1.d.ts +1 -0
  154. package/dist/cjs/api/types/PickAndHoldRate1.d.ts +7 -0
  155. package/dist/cjs/api/types/PickAndHoldRate1.js +5 -0
  156. package/dist/cjs/api/types/WaitTimeRate1.d.ts +8 -0
  157. package/dist/cjs/api/types/WaitTimeRate1.js +5 -0
  158. package/dist/cjs/api/types/WeekendRate1.d.ts +7 -0
  159. package/dist/cjs/api/types/WeekendRate1.js +5 -0
  160. package/dist/cjs/api/types/index.d.ts +37 -0
  161. package/dist/cjs/api/types/index.js +37 -0
  162. package/dist/cjs/version.d.ts +1 -1
  163. package/dist/cjs/version.js +1 -1
  164. package/dist/esm/Client.d.mts +3 -0
  165. package/dist/esm/Client.mjs +7 -2
  166. package/dist/esm/api/resources/billingNew/client/Client.d.mts +29 -0
  167. package/dist/esm/api/resources/billingNew/client/Client.mjs +23 -0
  168. package/dist/esm/api/resources/billingNew/client/index.d.mts +1 -0
  169. package/dist/esm/api/resources/billingNew/client/index.mjs +1 -0
  170. package/dist/esm/api/resources/billingNew/index.d.mts +2 -0
  171. package/dist/esm/api/resources/billingNew/index.mjs +2 -0
  172. package/dist/esm/api/resources/billingNew/resources/index.d.mts +6 -0
  173. package/dist/esm/api/resources/billingNew/resources/index.mjs +6 -0
  174. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +178 -0
  175. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +600 -0
  176. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/index.d.mts +2 -0
  177. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/index.mjs +1 -0
  178. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +22 -0
  179. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs +4 -0
  180. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +28 -0
  181. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs +4 -0
  182. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +45 -0
  183. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs +4 -0
  184. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.mts +19 -0
  185. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.mjs +4 -0
  186. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.d.mts +12 -0
  187. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsDeleteManyReq.mjs +4 -0
  188. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +62 -0
  189. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.mjs +4 -0
  190. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +6 -0
  191. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.mjs +1 -0
  192. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +1 -0
  193. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +1 -0
  194. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +217 -0
  195. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +843 -0
  196. package/dist/esm/api/resources/billingNew/resources/invoices/client/index.d.mts +2 -0
  197. package/dist/esm/api/resources/billingNew/resources/invoices/client/index.mjs +1 -0
  198. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +24 -0
  199. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.mjs +4 -0
  200. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.d.mts +13 -0
  201. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientUpdate1.mjs +4 -0
  202. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.d.mts +12 -0
  203. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsAddReq.mjs +4 -0
  204. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.d.mts +12 -0
  205. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceLineItemsRemoveReq.mjs +4 -0
  206. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.d.mts +10 -0
  207. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceVoidReq.mjs +4 -0
  208. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +51 -0
  209. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.mjs +4 -0
  210. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +6 -0
  211. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.mjs +1 -0
  212. package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +1 -0
  213. package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +1 -0
  214. package/dist/esm/api/resources/billingNew/resources/rates/client/Client.d.mts +145 -0
  215. package/dist/esm/api/resources/billingNew/resources/rates/client/Client.mjs +541 -0
  216. package/dist/esm/api/resources/billingNew/resources/rates/client/index.d.mts +2 -0
  217. package/dist/esm/api/resources/billingNew/resources/rates/client/index.mjs +1 -0
  218. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +13 -0
  219. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs +4 -0
  220. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +37 -0
  221. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +4 -0
  222. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +43 -0
  223. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +4 -0
  224. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +13 -0
  225. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs +4 -0
  226. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.d.mts +54 -0
  227. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/RatesListV1Request.mjs +4 -0
  228. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +5 -0
  229. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.mjs +1 -0
  230. package/dist/esm/api/resources/billingNew/resources/rates/index.d.mts +1 -0
  231. package/dist/esm/api/resources/billingNew/resources/rates/index.mjs +1 -0
  232. package/dist/esm/api/resources/index.d.mts +1 -0
  233. package/dist/esm/api/resources/index.mjs +1 -0
  234. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  235. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -20
  236. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +3 -0
  237. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +3 -0
  238. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  239. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
  240. package/dist/esm/api/types/AdditionalMileageRate1.d.mts +9 -0
  241. package/dist/esm/api/types/AdditionalMileageRate1.mjs +4 -0
  242. package/dist/esm/api/types/AfterHoursRate1.d.mts +7 -0
  243. package/dist/esm/api/types/AfterHoursRate1.mjs +4 -0
  244. package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +7 -0
  245. package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.mjs +4 -0
  246. package/dist/esm/api/types/AttemptRate1.d.mts +7 -0
  247. package/dist/esm/api/types/AttemptRate1.mjs +4 -0
  248. package/dist/esm/api/types/BaseMileageRate1.d.mts +8 -0
  249. package/dist/esm/api/types/BaseMileageRate1.mjs +4 -0
  250. package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +17 -0
  251. package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +16 -0
  252. package/dist/esm/api/types/CargoTypeEnum1.d.mts +8 -1
  253. package/dist/esm/api/types/CargoTypeEnum1.mjs +7 -0
  254. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +35 -0
  255. package/dist/esm/api/types/ChrtGroundProviderRates1.mjs +4 -0
  256. package/dist/esm/api/types/ChrtGroundProviderRatesListRes.d.mts +8 -0
  257. package/dist/esm/api/types/ChrtGroundProviderRatesListRes.mjs +4 -0
  258. package/dist/esm/api/types/ChrtGroundProviderRatesSortByEnum.d.mts +10 -0
  259. package/dist/esm/api/types/ChrtGroundProviderRatesSortByEnum.mjs +9 -0
  260. package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +7 -0
  261. package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.mjs +4 -0
  262. package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +7 -0
  263. package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.mjs +4 -0
  264. package/dist/esm/api/types/DangerousGoodsRate1.d.mts +7 -0
  265. package/dist/esm/api/types/DangerousGoodsRate1.mjs +4 -0
  266. package/dist/esm/api/types/ExtraStopRate1.d.mts +7 -0
  267. package/dist/esm/api/types/ExtraStopRate1.mjs +4 -0
  268. package/dist/esm/api/types/FlatFeeRate1.d.mts +7 -0
  269. package/dist/esm/api/types/FlatFeeRate1.mjs +4 -0
  270. package/dist/esm/api/types/FuelSurchargeRate1.d.mts +7 -0
  271. package/dist/esm/api/types/FuelSurchargeRate1.mjs +4 -0
  272. package/dist/esm/api/types/HolidayRate1.d.mts +7 -0
  273. package/dist/esm/api/types/HolidayRate1.mjs +4 -0
  274. package/dist/esm/api/types/Invoice1.d.mts +57 -0
  275. package/dist/esm/api/types/Invoice1.mjs +4 -0
  276. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +11 -0
  277. package/dist/esm/api/types/InvoiceExpandedRes.mjs +4 -0
  278. package/dist/esm/api/types/InvoiceLineItem1.d.mts +31 -0
  279. package/dist/esm/api/types/InvoiceLineItem1.mjs +4 -0
  280. package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +8 -0
  281. package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.mjs +4 -0
  282. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +9 -0
  283. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +8 -0
  284. package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +8 -0
  285. package/dist/esm/api/types/InvoiceLineItemListRes.mjs +4 -0
  286. package/dist/esm/api/types/InvoiceLineItemSortByEnum.d.mts +14 -0
  287. package/dist/esm/api/types/InvoiceLineItemSortByEnum.mjs +13 -0
  288. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +33 -0
  289. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +32 -0
  290. package/dist/esm/api/types/InvoiceLineItemUnitEnum1.d.mts +14 -0
  291. package/dist/esm/api/types/InvoiceLineItemUnitEnum1.mjs +13 -0
  292. package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +10 -0
  293. package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.mjs +4 -0
  294. package/dist/esm/api/types/InvoiceLineItemsDeleteManyRes.d.mts +6 -0
  295. package/dist/esm/api/types/InvoiceLineItemsDeleteManyRes.mjs +4 -0
  296. package/dist/esm/api/types/InvoiceListRes.d.mts +8 -0
  297. package/dist/esm/api/types/InvoiceListRes.mjs +4 -0
  298. package/dist/esm/api/types/InvoiceMergeStatusEnum1.d.mts +12 -0
  299. package/dist/esm/api/types/InvoiceMergeStatusEnum1.mjs +11 -0
  300. package/dist/esm/api/types/InvoiceSortByEnum.d.mts +11 -0
  301. package/dist/esm/api/types/InvoiceSortByEnum.mjs +10 -0
  302. package/dist/esm/api/types/InvoiceStatusEnum1.d.mts +9 -0
  303. package/dist/esm/api/types/InvoiceStatusEnum1.mjs +8 -0
  304. package/dist/esm/api/types/InvoiceStripeStatusEnum1.d.mts +11 -0
  305. package/dist/esm/api/types/InvoiceStripeStatusEnum1.mjs +10 -0
  306. package/dist/esm/api/types/InvoiceTypeEnum1.d.mts +8 -0
  307. package/dist/esm/api/types/InvoiceTypeEnum1.mjs +7 -0
  308. package/dist/esm/api/types/LongDistanceSurchargeRate1.d.mts +8 -0
  309. package/dist/esm/api/types/LongDistanceSurchargeRate1.mjs +4 -0
  310. package/dist/esm/api/types/Order1.d.mts +1 -0
  311. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
  312. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +1 -0
  313. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  314. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -0
  315. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -0
  316. package/dist/esm/api/types/OrderTemplateReferencesExpanded1.d.mts +1 -0
  317. package/dist/esm/api/types/PickAndHoldRate1.d.mts +7 -0
  318. package/dist/esm/api/types/PickAndHoldRate1.mjs +4 -0
  319. package/dist/esm/api/types/WaitTimeRate1.d.mts +8 -0
  320. package/dist/esm/api/types/WaitTimeRate1.mjs +4 -0
  321. package/dist/esm/api/types/WeekendRate1.d.mts +7 -0
  322. package/dist/esm/api/types/WeekendRate1.mjs +4 -0
  323. package/dist/esm/api/types/index.d.mts +37 -0
  324. package/dist/esm/api/types/index.mjs +37 -0
  325. package/dist/esm/version.d.mts +1 -1
  326. package/dist/esm/version.mjs +1 -1
  327. package/package.json +1 -1
  328. package/reference.md +1820 -0
@@ -8,6 +8,7 @@ import { Orgs } from "./api/resources/orgs/client/Client.js";
8
8
  import { Utils } from "./api/resources/utils/client/Client.js";
9
9
  import { Analytics } from "./api/resources/analytics/client/Client.js";
10
10
  import { Billing } from "./api/resources/billing/client/Client.js";
11
+ import { BillingNew } from "./api/resources/billingNew/client/Client.js";
11
12
  import { Integrations } from "./api/resources/integrations/client/Client.js";
12
13
  import { Listing } from "./api/resources/listing/client/Client.js";
13
14
  import { Notifications } from "./api/resources/notifications/client/Client.js";
@@ -46,6 +47,7 @@ export declare class ChrtClient {
46
47
  protected _utils: Utils | undefined;
47
48
  protected _analytics: Analytics | undefined;
48
49
  protected _billing: Billing | undefined;
50
+ protected _billingNew: BillingNew | undefined;
49
51
  protected _integrations: Integrations | undefined;
50
52
  protected _listing: Listing | undefined;
51
53
  protected _notifications: Notifications | undefined;
@@ -60,6 +62,7 @@ export declare class ChrtClient {
60
62
  get utils(): Utils;
61
63
  get analytics(): Analytics;
62
64
  get billing(): Billing;
65
+ get billingNew(): BillingNew;
63
66
  get integrations(): Integrations;
64
67
  get listing(): Listing;
65
68
  get notifications(): Notifications;
@@ -44,21 +44,22 @@ const Client_js_2 = require("./api/resources/orgs/client/Client.js");
44
44
  const Client_js_3 = require("./api/resources/utils/client/Client.js");
45
45
  const Client_js_4 = require("./api/resources/analytics/client/Client.js");
46
46
  const Client_js_5 = require("./api/resources/billing/client/Client.js");
47
- const Client_js_6 = require("./api/resources/integrations/client/Client.js");
48
- const Client_js_7 = require("./api/resources/listing/client/Client.js");
49
- const Client_js_8 = require("./api/resources/notifications/client/Client.js");
50
- const Client_js_9 = require("./api/resources/operations/client/Client.js");
51
- const Client_js_10 = require("./api/resources/shipping/client/Client.js");
52
- const Client_js_11 = require("./api/resources/tracking/client/Client.js");
53
- const Client_js_12 = require("./api/resources/trackingIntegrations/client/Client.js");
54
- const Client_js_13 = require("./api/resources/users/client/Client.js");
47
+ const Client_js_6 = require("./api/resources/billingNew/client/Client.js");
48
+ const Client_js_7 = require("./api/resources/integrations/client/Client.js");
49
+ const Client_js_8 = require("./api/resources/listing/client/Client.js");
50
+ const Client_js_9 = require("./api/resources/notifications/client/Client.js");
51
+ const Client_js_10 = require("./api/resources/operations/client/Client.js");
52
+ const Client_js_11 = require("./api/resources/shipping/client/Client.js");
53
+ const Client_js_12 = require("./api/resources/tracking/client/Client.js");
54
+ const Client_js_13 = require("./api/resources/trackingIntegrations/client/Client.js");
55
+ const Client_js_14 = require("./api/resources/users/client/Client.js");
55
56
  class ChrtClient {
56
57
  constructor(_options = {}) {
57
58
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
58
59
  "X-Fern-Language": "JavaScript",
59
60
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
60
- "X-Fern-SDK-Version": "1.891.0",
61
- "User-Agent": "@chrt-inc/typescript-sdk/1.891.0",
61
+ "X-Fern-SDK-Version": "1.894.0",
62
+ "User-Agent": "@chrt-inc/typescript-sdk/1.894.0",
62
63
  "X-Fern-Runtime": core.RUNTIME.type,
63
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
64
65
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -83,37 +84,41 @@ class ChrtClient {
83
84
  var _a;
84
85
  return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_5.Billing(this._options)));
85
86
  }
87
+ get billingNew() {
88
+ var _a;
89
+ return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new Client_js_6.BillingNew(this._options)));
90
+ }
86
91
  get integrations() {
87
92
  var _a;
88
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_6.Integrations(this._options)));
93
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_7.Integrations(this._options)));
89
94
  }
90
95
  get listing() {
91
96
  var _a;
92
- return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_7.Listing(this._options)));
97
+ return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_8.Listing(this._options)));
93
98
  }
94
99
  get notifications() {
95
100
  var _a;
96
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_8.Notifications(this._options)));
101
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_9.Notifications(this._options)));
97
102
  }
98
103
  get operations() {
99
104
  var _a;
100
- return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_9.Operations(this._options)));
105
+ return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_10.Operations(this._options)));
101
106
  }
102
107
  get shipping() {
103
108
  var _a;
104
- return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_10.Shipping(this._options)));
109
+ return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_11.Shipping(this._options)));
105
110
  }
106
111
  get tracking() {
107
112
  var _a;
108
- return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_11.Tracking(this._options)));
113
+ return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_12.Tracking(this._options)));
109
114
  }
110
115
  get trackingIntegrations() {
111
116
  var _a;
112
- return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_12.TrackingIntegrations(this._options)));
117
+ return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_13.TrackingIntegrations(this._options)));
113
118
  }
114
119
  get users() {
115
120
  var _a;
116
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_13.Users(this._options)));
121
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_14.Users(this._options)));
117
122
  }
118
123
  }
119
124
  exports.ChrtClient = ChrtClient;
@@ -0,0 +1,29 @@
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 { InvoiceLineItems } from "../resources/invoiceLineItems/client/Client.js";
7
+ import { Invoices } from "../resources/invoices/client/Client.js";
8
+ import { Rates } from "../resources/rates/client/Client.js";
9
+ export declare namespace BillingNew {
10
+ interface Options {
11
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
12
+ /** Specify a custom URL to connect the client to. */
13
+ baseUrl?: core.Supplier<string>;
14
+ token?: core.Supplier<core.BearerToken | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
17
+ fetcher?: core.FetchFunction;
18
+ }
19
+ }
20
+ export declare class BillingNew {
21
+ protected readonly _options: BillingNew.Options;
22
+ protected _invoiceLineItems: InvoiceLineItems | undefined;
23
+ protected _invoices: Invoices | undefined;
24
+ protected _rates: Rates | undefined;
25
+ constructor(_options?: BillingNew.Options);
26
+ get invoiceLineItems(): InvoiceLineItems;
27
+ get invoices(): Invoices;
28
+ get rates(): Rates;
29
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BillingNew = void 0;
7
+ const Client_js_1 = require("../resources/invoiceLineItems/client/Client.js");
8
+ const Client_js_2 = require("../resources/invoices/client/Client.js");
9
+ const Client_js_3 = require("../resources/rates/client/Client.js");
10
+ class BillingNew {
11
+ constructor(_options = {}) {
12
+ this._options = _options;
13
+ }
14
+ get invoiceLineItems() {
15
+ var _a;
16
+ return ((_a = this._invoiceLineItems) !== null && _a !== void 0 ? _a : (this._invoiceLineItems = new Client_js_1.InvoiceLineItems(this._options)));
17
+ }
18
+ get invoices() {
19
+ var _a;
20
+ return ((_a = this._invoices) !== null && _a !== void 0 ? _a : (this._invoices = new Client_js_2.Invoices(this._options)));
21
+ }
22
+ get rates() {
23
+ var _a;
24
+ return ((_a = this._rates) !== null && _a !== void 0 ? _a : (this._rates = new Client_js_3.Rates(this._options)));
25
+ }
26
+ }
27
+ exports.BillingNew = BillingNew;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
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);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,6 @@
1
+ export * as invoiceLineItems from "./invoiceLineItems/index.js";
2
+ export * as invoices from "./invoices/index.js";
3
+ export * as rates from "./rates/index.js";
4
+ export * from "./invoiceLineItems/client/requests/index.js";
5
+ export * from "./invoices/client/requests/index.js";
6
+ export * from "./rates/client/requests/index.js";
@@ -0,0 +1,45 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.rates = exports.invoices = exports.invoiceLineItems = void 0;
40
+ exports.invoiceLineItems = __importStar(require("./invoiceLineItems/index.js"));
41
+ exports.invoices = __importStar(require("./invoices/index.js"));
42
+ exports.rates = __importStar(require("./rates/index.js"));
43
+ __exportStar(require("./invoiceLineItems/client/requests/index.js"), exports);
44
+ __exportStar(require("./invoices/client/requests/index.js"), exports);
45
+ __exportStar(require("./rates/client/requests/index.js"), exports);
@@ -0,0 +1,178 @@
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 InvoiceLineItems {
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 InvoiceLineItems {
31
+ protected readonly _options: InvoiceLineItems.Options;
32
+ constructor(_options?: InvoiceLineItems.Options);
33
+ /**
34
+ * Applies a caller-owned CHRT-ground rate sheet to a TaskGroup and atomically creates line items on a draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (ApplyChrtGroundProviderRatesReq) -> (ApplyChrtGroundProviderRatesRes)
35
+ *
36
+ * @param {Chrt.billingNew.ApplyChrtGroundProviderRatesReq} request
37
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
43
+ * invoice_type: "accounts_receivable",
44
+ * org_id: "org_id",
45
+ * rate_sheet_id: "rate_sheet_id",
46
+ * task_group_id: "task_group_id"
47
+ * })
48
+ */
49
+ applyChrtGroundProviderRatesV1(request: Chrt.billingNew.ApplyChrtGroundProviderRatesReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ApplyChrtGroundProviderRatesRes>;
50
+ private __applyChrtGroundProviderRatesV1;
51
+ /**
52
+ * Lists owner-scoped line items for an order with counterparties and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemsByOrderExpandedRes)
53
+ *
54
+ * @param {string} orderId
55
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Chrt.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.billingNew.invoiceLineItems.listByOrderV1("order_id")
61
+ */
62
+ listByOrderV1(orderId: string, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsByOrderExpandedRes>;
63
+ private __listByOrderV1;
64
+ /**
65
+ * Creates optionally order-attributed line items from an amount and attaches them to a draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators, order_executor_org_operators, task_group_coordinator_operators, executor_org_operators] when order-attributed | (CreateInvoiceLineItemsFromAmountReq) -> (CreateInvoiceLineItemsFromAmountRes)
66
+ *
67
+ * @param {Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq} request
68
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link Chrt.UnprocessableEntityError}
71
+ *
72
+ * @example
73
+ * await client.billingNew.invoiceLineItems.createFromAmountV1({
74
+ * amount: 1.1,
75
+ * currency_code: "USD",
76
+ * description: "description",
77
+ * invoice_type: "accounts_receivable",
78
+ * line_item_type: "base_rate"
79
+ * })
80
+ */
81
+ createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
82
+ private __createFromAmountV1;
83
+ /**
84
+ * Creates optionally order-attributed line items by transforming submitted line items and attaches them to a draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators, order_executor_org_operators, task_group_coordinator_operators, executor_org_operators] when order-attributed | (CreateInvoiceLineItemsFromLineItemsReq) -> (CreateInvoiceLineItemsFromLineItemsRes)
85
+ *
86
+ * @param {Chrt.billingNew.CreateInvoiceLineItemsFromLineItemsReq} request
87
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Chrt.UnprocessableEntityError}
90
+ *
91
+ * @example
92
+ * await client.billingNew.invoiceLineItems.createFromLineItemsV1({
93
+ * description: "description",
94
+ * invoice_line_item_amount_transformation: {
95
+ * transformation_type: "percent",
96
+ * value: 1.1
97
+ * },
98
+ * invoice_type: "accounts_receivable",
99
+ * line_item_type: "base_rate",
100
+ * source_invoice_line_items: [{
101
+ * _id: "_id",
102
+ * created_at_timestamp: "2024-01-15T09:30:00Z",
103
+ * created_by_user_id: "created_by_user_id",
104
+ * currency_code: "USD",
105
+ * description: "description",
106
+ * invoice_type: "accounts_receivable",
107
+ * last_edited_at_timestamp: "2024-01-15T09:30:00Z",
108
+ * last_edited_by_user_id: "last_edited_by_user_id",
109
+ * line_item_type: "base_rate",
110
+ * owned_by_org_id: "owned_by_org_id",
111
+ * quantity: 1.1,
112
+ * schema_version: 1,
113
+ * unit_price: 1.1
114
+ * }]
115
+ * })
116
+ */
117
+ createFromLineItemsV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromLineItemsRes>;
118
+ private __createFromLineItemsV1;
119
+ /**
120
+ * Deletes owner-scoped line items and rebuilds every affected draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsDeleteManyReq) -> (InvoiceLineItemsDeleteManyRes)
121
+ *
122
+ * @param {Chrt.billingNew.InvoiceLineItemsDeleteManyReq} request
123
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @throws {@link Chrt.UnprocessableEntityError}
126
+ *
127
+ * @example
128
+ * await client.billingNew.invoiceLineItems.deleteManyV1({
129
+ * invoice_line_item_ids: ["invoice_line_item_ids"]
130
+ * })
131
+ */
132
+ deleteManyV1(request: Chrt.billingNew.InvoiceLineItemsDeleteManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsDeleteManyRes>;
133
+ private __deleteManyV1;
134
+ /**
135
+ * Lists owner-scoped invoice line items with filtering, sorting, and pagination. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
136
+ *
137
+ * @param {Chrt.billingNew.InvoiceLineItemsListV1Request} request
138
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link Chrt.UnprocessableEntityError}
141
+ *
142
+ * @example
143
+ * await client.billingNew.invoiceLineItems.listV1({
144
+ * sort_by: "created_at_timestamp",
145
+ * sort_order: "asc",
146
+ * page: 1,
147
+ * page_size: 1,
148
+ * filter_counterparty_org_id: "filter_counterparty_org_id",
149
+ * filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
150
+ * filter_counterparty_account_id: "filter_counterparty_account_id",
151
+ * filter_invoice_id: "filter_invoice_id",
152
+ * filter_is_invoiced: true,
153
+ * filter_order_id: "filter_order_id",
154
+ * filter_task_group_id: "filter_task_group_id",
155
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
156
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
157
+ * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
158
+ * filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z"
159
+ * })
160
+ */
161
+ listV1(request?: Chrt.billingNew.InvoiceLineItemsListV1Request, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemListRes>;
162
+ private __listV1;
163
+ /**
164
+ * Updates an owner-scoped line item and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (bool)
165
+ *
166
+ * @param {string} invoiceLineItemId
167
+ * @param {Chrt.billingNew.InvoiceLineItemClientUpdate1} request
168
+ * @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
169
+ *
170
+ * @throws {@link Chrt.UnprocessableEntityError}
171
+ *
172
+ * @example
173
+ * await client.billingNew.invoiceLineItems.updateV1("invoice_line_item_id")
174
+ */
175
+ updateV1(invoiceLineItemId: string, request?: Chrt.billingNew.InvoiceLineItemClientUpdate1, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<boolean>;
176
+ private __updateV1;
177
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
178
+ }