@chrt-inc/typescript-sdk 1.997.0 → 1.999.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 (230) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/billingNew/client/Client.js +5 -0
  4. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -3
  7. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +0 -6
  8. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/billingNew/resources/index.js +3 -1
  10. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +17 -73
  11. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +50 -193
  12. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.ts +1 -0
  13. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -3
  14. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +0 -1
  15. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +0 -1
  16. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +57 -32
  17. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +169 -89
  18. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +0 -1
  19. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +28 -3
  20. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +126 -5
  21. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +0 -1
  23. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +0 -1
  24. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.d.ts +128 -0
  25. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.js +485 -0
  26. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.ts +21 -0
  27. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.ts +12 -0
  28. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.ts +14 -0
  29. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.ts +33 -0
  30. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.ts +4 -0
  31. package/dist/cjs/api/resources/flights/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/flights/client/Client.js +1 -1
  33. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  36. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  37. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +1 -2
  38. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +0 -1
  39. package/dist/cjs/api/types/BillingPeriodCloseRes.d.ts +8 -0
  40. package/dist/cjs/api/types/CalculatedInvoiceTax1.d.ts +12 -0
  41. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -3
  42. package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.ts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.ts} +2 -2
  43. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.ts +1 -1
  44. package/dist/cjs/api/types/FlightLeg1.d.ts +1 -0
  45. package/dist/cjs/api/types/FlightTrackPosition1.d.ts +8 -6
  46. package/dist/cjs/api/types/FlightTrackRes.d.ts +5 -15
  47. package/dist/cjs/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.ts +1 -9
  48. package/dist/cjs/api/types/InvoiceCreateFromOrdersReq.d.ts +22 -0
  49. package/dist/cjs/api/types/InvoiceCreateFromOrdersRes.d.ts +14 -0
  50. package/dist/cjs/api/types/InvoiceCreateReq.d.ts +20 -0
  51. package/dist/cjs/api/types/InvoiceCreateReq.js +5 -0
  52. package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +3 -2
  53. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +2 -4
  54. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +1 -3
  55. package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.d.ts +15 -0
  56. package/dist/cjs/api/types/InvoicePreviewFromOrdersRes.js +5 -0
  57. package/dist/cjs/api/types/InvoicePreviewRes.d.ts +10 -0
  58. package/dist/cjs/api/types/InvoicePreviewRes.js +5 -0
  59. package/dist/cjs/api/types/InvoiceTaxCalculation1.d.ts +12 -0
  60. package/dist/cjs/api/types/InvoiceTaxCalculation1.js +5 -0
  61. package/dist/cjs/api/types/TaxConfiguration1.d.ts +24 -0
  62. package/dist/cjs/api/types/TaxConfiguration1.js +5 -0
  63. package/dist/cjs/api/types/TaxConfigurationListRes.d.ts +8 -0
  64. package/dist/cjs/api/types/TaxConfigurationListRes.js +5 -0
  65. package/dist/cjs/api/types/TaxConfigurationSortByEnum.d.ts +8 -0
  66. package/dist/cjs/api/types/TaxConfigurationSortByEnum.js +10 -0
  67. package/dist/cjs/api/types/{TaxRate1.d.ts → TaxRule1.d.ts} +2 -3
  68. package/dist/cjs/api/types/TaxRule1.js +5 -0
  69. package/dist/cjs/api/types/index.d.ts +14 -7
  70. package/dist/cjs/api/types/index.js +14 -7
  71. package/dist/cjs/version.d.ts +1 -1
  72. package/dist/cjs/version.js +1 -1
  73. package/dist/esm/Client.mjs +2 -2
  74. package/dist/esm/api/resources/billingNew/client/Client.d.mts +3 -0
  75. package/dist/esm/api/resources/billingNew/client/Client.mjs +5 -0
  76. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +2 -2
  77. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +1 -1
  78. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -3
  79. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +0 -6
  80. package/dist/esm/api/resources/billingNew/resources/index.d.mts +2 -0
  81. package/dist/esm/api/resources/billingNew/resources/index.mjs +2 -0
  82. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +17 -73
  83. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +50 -193
  84. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.mts +1 -0
  85. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -3
  86. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +0 -1
  87. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +0 -1
  88. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +57 -32
  89. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +169 -89
  90. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +0 -1
  91. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +28 -3
  92. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +126 -5
  93. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  94. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +0 -1
  95. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +0 -1
  96. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.d.mts +128 -0
  97. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.mjs +448 -0
  98. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.mts +21 -0
  99. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.mts +12 -0
  100. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.mts +14 -0
  101. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.mts +33 -0
  102. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.mts +4 -0
  103. package/dist/esm/api/resources/flights/client/Client.d.mts +1 -1
  104. package/dist/esm/api/resources/flights/client/Client.mjs +1 -1
  105. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  106. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  107. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  108. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  109. package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +1 -2
  110. package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +0 -1
  111. package/dist/esm/api/types/BillingPeriodCloseRes.d.mts +8 -0
  112. package/dist/esm/api/types/CalculatedInvoiceTax1.d.mts +12 -0
  113. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -3
  114. package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.mts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.mts} +2 -2
  115. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.mts +1 -1
  116. package/dist/esm/api/types/FlightLeg1.d.mts +1 -0
  117. package/dist/esm/api/types/FlightTrackPosition1.d.mts +8 -6
  118. package/dist/esm/api/types/FlightTrackRes.d.mts +5 -15
  119. package/dist/esm/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.mts +1 -9
  120. package/dist/esm/api/types/InvoiceCreateFromOrdersReq.d.mts +22 -0
  121. package/dist/esm/api/types/InvoiceCreateFromOrdersRes.d.mts +14 -0
  122. package/dist/esm/api/types/InvoiceCreateReq.d.mts +20 -0
  123. package/dist/esm/api/types/InvoiceCreateReq.mjs +4 -0
  124. package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +3 -2
  125. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +2 -4
  126. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +1 -3
  127. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.d.mts +15 -0
  128. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.mjs +4 -0
  129. package/dist/esm/api/types/InvoicePreviewRes.d.mts +10 -0
  130. package/dist/esm/api/types/InvoicePreviewRes.mjs +4 -0
  131. package/dist/esm/api/types/InvoiceTaxCalculation1.d.mts +12 -0
  132. package/dist/esm/api/types/InvoiceTaxCalculation1.mjs +4 -0
  133. package/dist/esm/api/types/TaxConfiguration1.d.mts +24 -0
  134. package/dist/esm/api/types/TaxConfiguration1.mjs +4 -0
  135. package/dist/esm/api/types/TaxConfigurationListRes.d.mts +8 -0
  136. package/dist/esm/api/types/TaxConfigurationListRes.mjs +4 -0
  137. package/dist/esm/api/types/TaxConfigurationSortByEnum.d.mts +8 -0
  138. package/dist/esm/api/types/TaxConfigurationSortByEnum.mjs +7 -0
  139. package/dist/esm/api/types/{TaxRate1.d.mts → TaxRule1.d.mts} +2 -3
  140. package/dist/esm/api/types/TaxRule1.mjs +4 -0
  141. package/dist/esm/api/types/index.d.mts +14 -7
  142. package/dist/esm/api/types/index.mjs +14 -7
  143. package/dist/esm/version.d.mts +1 -1
  144. package/dist/esm/version.mjs +1 -1
  145. package/package.json +1 -1
  146. package/reference.md +522 -221
  147. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +0 -32
  148. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +0 -46
  149. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +0 -12
  150. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.ts +0 -51
  151. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.js +0 -153
  152. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +0 -1
  153. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.ts +0 -2
  154. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.js +0 -41
  155. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +0 -2
  156. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +0 -41
  157. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +0 -49
  158. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +0 -135
  159. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +0 -2
  160. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +0 -17
  161. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +0 -1
  162. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +0 -2
  163. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +0 -1
  164. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +0 -17
  165. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +0 -7
  166. package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +0 -7
  167. package/dist/cjs/api/types/FlightTrackWaypoint1.d.ts +0 -7
  168. package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +0 -8
  169. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +0 -9
  170. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +0 -11
  171. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +0 -32
  172. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +0 -46
  173. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +0 -12
  174. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.mts +0 -51
  175. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.mjs +0 -116
  176. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +0 -1
  177. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.mts +0 -2
  178. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.mjs +0 -2
  179. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +0 -2
  180. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +0 -2
  181. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +0 -49
  182. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +0 -98
  183. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +0 -2
  184. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +0 -1
  185. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +0 -1
  186. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +0 -1
  187. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +0 -1
  188. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +0 -1
  189. package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +0 -7
  190. package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +0 -7
  191. package/dist/esm/api/types/FlightTrackWaypoint1.d.mts +0 -7
  192. package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +0 -8
  193. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +0 -9
  194. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +0 -8
  195. /package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.js +0 -0
  196. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +0 -0
  197. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.js +0 -0
  198. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.ts +0 -0
  199. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.js +0 -0
  200. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js → taxConfigurations/client/requests/TaxConfigurationClientCreate1.js} +0 -0
  201. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.js} +0 -0
  202. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationResolveReq.js} +0 -0
  203. /package/dist/cjs/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.js → taxConfigurations/client/requests/TaxConfigurationsListV1Request.js} +0 -0
  204. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.js +0 -0
  205. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.ts +0 -0
  206. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.js +0 -0
  207. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAmountRes.js → BillingPeriodCloseRes.js} +0 -0
  208. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.js → CalculatedInvoiceTax1.js} +0 -0
  209. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromLineItemsRes.js → CreateInvoiceLineItemsFromAwbCostsGroupRes1.js} +0 -0
  210. /package/dist/cjs/api/types/{FlightTrackWaypoint1.js → InvoiceClientCreate1.js} +0 -0
  211. /package/dist/cjs/api/types/{InvoiceLineItemAmountTransformation1.js → InvoiceCreateFromOrdersReq.js} +0 -0
  212. /package/dist/cjs/api/types/{TaxRate1.js → InvoiceCreateFromOrdersRes.js} +0 -0
  213. /package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.mjs +0 -0
  214. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +0 -0
  215. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.mjs +0 -0
  216. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.mts +0 -0
  217. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.mjs +0 -0
  218. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientCreate1.mjs} +0 -0
  219. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.mjs} +0 -0
  220. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationResolveReq.mjs} +0 -0
  221. /package/dist/esm/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.mjs → taxConfigurations/client/requests/TaxConfigurationsListV1Request.mjs} +0 -0
  222. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.mjs +0 -0
  223. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.mts +0 -0
  224. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.mjs +0 -0
  225. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAmountRes.mjs → BillingPeriodCloseRes.mjs} +0 -0
  226. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.mjs → CalculatedInvoiceTax1.mjs} +0 -0
  227. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromLineItemsRes.mjs → CreateInvoiceLineItemsFromAwbCostsGroupRes1.mjs} +0 -0
  228. /package/dist/esm/api/types/{FlightTrackWaypoint1.mjs → InvoiceClientCreate1.mjs} +0 -0
  229. /package/dist/esm/api/types/{InvoiceLineItemAmountTransformation1.mjs → InvoiceCreateFromOrdersReq.mjs} +0 -0
  230. /package/dist/esm/api/types/{TaxRate1.mjs → InvoiceCreateFromOrdersRes.mjs} +0 -0
@@ -1,32 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../../../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * amount: 1.1,
9
- * currency_code: "USD",
10
- * description: "description",
11
- * invoice_type: "accounts_receivable",
12
- * line_item_type: "base_rate"
13
- * }
14
- */
15
- export interface CreateInvoiceLineItemsFromAmountReq {
16
- account_ids?: string[];
17
- amount: number;
18
- /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
19
- awb_number?: string | null;
20
- counterparty_driver_id?: string | null;
21
- counterparty_off_chrt_org_data_id?: string | null;
22
- /** Must be a string starting with `org_` */
23
- counterparty_org_id?: string | null;
24
- currency_code: Chrt.BillingCurrencyCodeEnum1;
25
- description: string;
26
- invoice_id?: string | null;
27
- invoice_type: Chrt.InvoiceTypeEnum1;
28
- line_item_type: Chrt.InvoiceLineItemTypeEnum1;
29
- order_id?: string | null;
30
- task_group_id?: string | null;
31
- tax_percentage?: number | null;
32
- }
@@ -1,46 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../../../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * description: "description",
9
- * invoice_line_item_amount_transformation: {
10
- * transformation_type: "percent",
11
- * value: 1.1
12
- * },
13
- * invoice_type: "accounts_receivable",
14
- * line_item_type: "base_rate",
15
- * source_invoice_line_items: [{
16
- * _id: "_id",
17
- * created_at_timestamp: "2024-01-15T09:30:00Z",
18
- * created_by_user_id: "created_by_user_id",
19
- * currency_code: "USD",
20
- * description: "description",
21
- * invoice_type: "accounts_receivable",
22
- * last_edited_at_timestamp: "2024-01-15T09:30:00Z",
23
- * last_edited_by_user_id: "last_edited_by_user_id",
24
- * line_item_type: "base_rate",
25
- * owned_by_org_id: "owned_by_org_id",
26
- * quantity: 1.1,
27
- * schema_version: 1,
28
- * unit_price: 1.1
29
- * }]
30
- * }
31
- */
32
- export interface CreateInvoiceLineItemsFromLineItemsReq {
33
- account_ids?: string[];
34
- counterparty_driver_id?: string | null;
35
- counterparty_off_chrt_org_data_id?: string | null;
36
- /** Must be a string starting with `org_` */
37
- counterparty_org_id?: string | null;
38
- description: string;
39
- invoice_id?: string | null;
40
- invoice_line_item_amount_transformation: Chrt.InvoiceLineItemAmountTransformation1;
41
- invoice_type: Chrt.InvoiceTypeEnum1;
42
- line_item_type: Chrt.InvoiceLineItemTypeEnum1;
43
- order_id?: string | null;
44
- source_invoice_line_items: Chrt.InvoiceLineItem1[];
45
- task_group_id?: string | null;
46
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * order_id: "order_id"
8
- * }
9
- */
10
- export interface RecalculateOrderTaxInvoiceLineItemsReq {
11
- order_id: string;
12
- }
@@ -1,51 +0,0 @@
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 Export {
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 Export {
31
- protected readonly _options: Export.Options;
32
- constructor(_options?: Export.Options);
33
- /**
34
- * Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
35
- *
36
- * @param {Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq} request
37
- * @param {Export.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.billingNew.invoiceLineItems.export.listV1({
43
- * page: 1,
44
- * page_size: 1,
45
- * order_ids: ["order_ids"]
46
- * })
47
- */
48
- listV1(request: Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq, requestOptions?: Export.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemExportListRes>;
49
- private __listV1;
50
- protected _getAuthorizationHeader(): Promise<string | undefined>;
51
- }
@@ -1,153 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.Export = void 0;
60
- const environments = __importStar(require("../../../../../../../../environments.js"));
61
- const core = __importStar(require("../../../../../../../../core/index.js"));
62
- const Chrt = __importStar(require("../../../../../../../index.js"));
63
- const headers_js_1 = require("../../../../../../../../core/headers.js");
64
- const errors = __importStar(require("../../../../../../../../errors/index.js"));
65
- class Export {
66
- constructor(_options = {}) {
67
- this._options = _options;
68
- }
69
- /**
70
- * Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
71
- *
72
- * @param {Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq} request
73
- * @param {Export.RequestOptions} requestOptions - Request-specific configuration.
74
- *
75
- * @throws {@link Chrt.UnprocessableEntityError}
76
- *
77
- * @example
78
- * await client.billingNew.invoiceLineItems.export.listV1({
79
- * page: 1,
80
- * page_size: 1,
81
- * order_ids: ["order_ids"]
82
- * })
83
- */
84
- listV1(request, requestOptions) {
85
- return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
86
- }
87
- __listV1(request, requestOptions) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- var _a, _b, _c, _d, _e, _f;
90
- const { page, page_size: pageSize } = request, _body = __rest(request, ["page", "page_size"]);
91
- const _queryParams = {};
92
- if (page !== undefined) {
93
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
94
- }
95
- if (pageSize !== undefined) {
96
- _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
97
- }
98
- let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
99
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
100
- 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/invoice_line_items/export/list/v1"),
101
- method: "POST",
102
- headers: _headers,
103
- contentType: "application/json",
104
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
105
- requestType: "json",
106
- body: _body,
107
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
108
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
109
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
- });
111
- if (_response.ok) {
112
- return { data: _response.body, rawResponse: _response.rawResponse };
113
- }
114
- if (_response.error.reason === "status-code") {
115
- switch (_response.error.statusCode) {
116
- case 422:
117
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
118
- default:
119
- throw new errors.ChrtError({
120
- statusCode: _response.error.statusCode,
121
- body: _response.error.body,
122
- rawResponse: _response.rawResponse,
123
- });
124
- }
125
- }
126
- switch (_response.error.reason) {
127
- case "non-json":
128
- throw new errors.ChrtError({
129
- statusCode: _response.error.statusCode,
130
- body: _response.error.rawBody,
131
- rawResponse: _response.rawResponse,
132
- });
133
- case "timeout":
134
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/export/list/v1.");
135
- case "unknown":
136
- throw new errors.ChrtError({
137
- message: _response.error.errorMessage,
138
- rawResponse: _response.rawResponse,
139
- });
140
- }
141
- });
142
- }
143
- _getAuthorizationHeader() {
144
- return __awaiter(this, void 0, void 0, function* () {
145
- const bearer = yield core.Supplier.get(this._options.token);
146
- if (bearer != null) {
147
- return `Bearer ${bearer}`;
148
- }
149
- return undefined;
150
- });
151
- }
152
- }
153
- exports.Export = Export;
@@ -1 +0,0 @@
1
- export { type InvoiceLineItemExportListReq } from "./InvoiceLineItemExportListReq.js";
@@ -1,2 +0,0 @@
1
- export * as export_ from "./export/index.js";
2
- export * from "./export/client/requests/index.js";
@@ -1,41 +0,0 @@
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.export_ = void 0;
40
- exports.export_ = __importStar(require("./export/index.js"));
41
- __exportStar(require("./export/client/requests/index.js"), exports);
@@ -1,2 +0,0 @@
1
- export * as rateSheetLineItems from "./rateSheetLineItems/index.js";
2
- export * from "./rateSheetLineItems/client/requests/index.js";
@@ -1,41 +0,0 @@
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.rateSheetLineItems = void 0;
40
- exports.rateSheetLineItems = __importStar(require("./rateSheetLineItems/index.js"));
41
- __exportStar(require("./rateSheetLineItems/client/requests/index.js"), exports);
@@ -1,49 +0,0 @@
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 RateSheetLineItems {
8
- interface Options {
9
- environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<core.BearerToken | undefined>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
- fetcher?: core.FetchFunction;
16
- }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
- }
29
- }
30
- export declare class RateSheetLineItems {
31
- protected readonly _options: RateSheetLineItems.Options;
32
- constructor(_options?: RateSheetLineItems.Options);
33
- /**
34
- * Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
35
- *
36
- * @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
37
- * @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.billingNew.orders.rateSheetLineItems.generateManyV1({
43
- * order_ids: ["order_ids"]
44
- * })
45
- */
46
- generateManyV1(request: Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq, requestOptions?: RateSheetLineItems.RequestOptions): core.HttpResponsePromise<Chrt.OrderRateSheetLineItemsGenerateManyRes>;
47
- private __generateManyV1;
48
- protected _getAuthorizationHeader(): Promise<string | undefined>;
49
- }
@@ -1,135 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.RateSheetLineItems = void 0;
49
- const environments = __importStar(require("../../../../../../../../environments.js"));
50
- const core = __importStar(require("../../../../../../../../core/index.js"));
51
- const Chrt = __importStar(require("../../../../../../../index.js"));
52
- const headers_js_1 = require("../../../../../../../../core/headers.js");
53
- const errors = __importStar(require("../../../../../../../../errors/index.js"));
54
- class RateSheetLineItems {
55
- constructor(_options = {}) {
56
- this._options = _options;
57
- }
58
- /**
59
- * Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
60
- *
61
- * @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
62
- * @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @throws {@link Chrt.UnprocessableEntityError}
65
- *
66
- * @example
67
- * await client.billingNew.orders.rateSheetLineItems.generateManyV1({
68
- * order_ids: ["order_ids"]
69
- * })
70
- */
71
- generateManyV1(request, requestOptions) {
72
- return core.HttpResponsePromise.fromPromise(this.__generateManyV1(request, requestOptions));
73
- }
74
- __generateManyV1(request, requestOptions) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- var _a, _b, _c, _d;
77
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
78
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
79
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/orders/rate_sheet_line_items/generate_many/v1"),
80
- method: "POST",
81
- headers: _headers,
82
- contentType: "application/json",
83
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
84
- requestType: "json",
85
- body: request,
86
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
87
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
89
- });
90
- if (_response.ok) {
91
- return {
92
- data: _response.body,
93
- rawResponse: _response.rawResponse,
94
- };
95
- }
96
- if (_response.error.reason === "status-code") {
97
- switch (_response.error.statusCode) {
98
- case 422:
99
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
100
- default:
101
- throw new errors.ChrtError({
102
- statusCode: _response.error.statusCode,
103
- body: _response.error.body,
104
- rawResponse: _response.rawResponse,
105
- });
106
- }
107
- }
108
- switch (_response.error.reason) {
109
- case "non-json":
110
- throw new errors.ChrtError({
111
- statusCode: _response.error.statusCode,
112
- body: _response.error.rawBody,
113
- rawResponse: _response.rawResponse,
114
- });
115
- case "timeout":
116
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/rate_sheet_line_items/generate_many/v1.");
117
- case "unknown":
118
- throw new errors.ChrtError({
119
- message: _response.error.errorMessage,
120
- rawResponse: _response.rawResponse,
121
- });
122
- }
123
- });
124
- }
125
- _getAuthorizationHeader() {
126
- return __awaiter(this, void 0, void 0, function* () {
127
- const bearer = yield core.Supplier.get(this._options.token);
128
- if (bearer != null) {
129
- return `Bearer ${bearer}`;
130
- }
131
- return undefined;
132
- });
133
- }
134
- }
135
- exports.RateSheetLineItems = RateSheetLineItems;
@@ -1,2 +0,0 @@
1
- export {};
2
- export * from "./requests/index.js";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests/index.js"), exports);
@@ -1 +0,0 @@
1
- export { type OrderRateSheetLineItemsGenerateManyReq } from "./OrderRateSheetLineItemsGenerateManyReq.js";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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);
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateInvoiceLineItemsFromAmountRes {
5
- created_invoice_line_item_count: number;
6
- invoice_id: string;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateInvoiceLineItemsFromLineItemsRes {
5
- created_invoice_line_item_count: number;
6
- invoice_id: string;
7
- }