@chrt-inc/typescript-sdk 1.998.0 → 1.1000.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 (242) 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 +30 -3
  20. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +137 -6
  21. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +7 -1
  22. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +0 -1
  24. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +0 -1
  25. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.d.ts +128 -0
  26. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/Client.js +485 -0
  27. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.ts +21 -0
  28. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.ts +12 -0
  29. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.ts +14 -0
  30. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.ts +33 -0
  31. package/dist/cjs/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.ts +4 -0
  32. package/dist/cjs/api/resources/flights/client/Client.d.ts +1 -1
  33. package/dist/cjs/api/resources/flights/client/Client.js +1 -1
  34. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -0
  35. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +22 -2
  36. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +6 -0
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -0
  38. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.d.ts +1 -2
  39. package/dist/cjs/api/types/BillingCurrencyCodeEnum1.js +0 -1
  40. package/dist/cjs/api/types/BillingPeriodCloseRes.d.ts +8 -0
  41. package/dist/cjs/api/types/CalculatedInvoiceTax1.d.ts +12 -0
  42. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -3
  43. package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.ts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.ts} +2 -2
  44. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.ts +1 -1
  45. package/dist/cjs/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.ts +1 -9
  46. package/dist/cjs/api/types/InvoiceCreateFromOrdersReq.d.ts +22 -0
  47. package/dist/cjs/api/types/InvoiceCreateFromOrdersRes.d.ts +14 -0
  48. package/dist/cjs/api/types/InvoiceCreateFromOrdersRes.js +5 -0
  49. package/dist/cjs/api/types/InvoiceCreateReq.d.ts +20 -0
  50. package/dist/cjs/api/types/InvoiceCreateReq.js +5 -0
  51. package/dist/cjs/api/types/InvoiceLineItem1.d.ts +1 -0
  52. package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +4 -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/Order1.d.ts +1 -0
  62. package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +7 -0
  63. package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +2 -1
  64. package/dist/cjs/api/types/OrderBillingSortByEnum.js +1 -0
  65. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  66. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -0
  67. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -1
  68. package/dist/cjs/api/types/OrderSortByEnum.js +1 -0
  69. package/dist/cjs/api/types/TaxConfiguration1.d.ts +24 -0
  70. package/dist/cjs/api/types/TaxConfiguration1.js +5 -0
  71. package/dist/cjs/api/types/TaxConfigurationListRes.d.ts +8 -0
  72. package/dist/cjs/api/types/TaxConfigurationListRes.js +5 -0
  73. package/dist/cjs/api/types/TaxConfigurationSortByEnum.d.ts +8 -0
  74. package/dist/cjs/api/types/TaxConfigurationSortByEnum.js +10 -0
  75. package/dist/cjs/api/types/{TaxRate1.d.ts → TaxRule1.d.ts} +2 -3
  76. package/dist/cjs/api/types/TaxRule1.js +5 -0
  77. package/dist/cjs/api/types/index.d.ts +14 -6
  78. package/dist/cjs/api/types/index.js +14 -6
  79. package/dist/cjs/version.d.ts +1 -1
  80. package/dist/cjs/version.js +1 -1
  81. package/dist/esm/Client.mjs +2 -2
  82. package/dist/esm/api/resources/billingNew/client/Client.d.mts +3 -0
  83. package/dist/esm/api/resources/billingNew/client/Client.mjs +5 -0
  84. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +2 -2
  85. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +1 -1
  86. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -3
  87. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +0 -6
  88. package/dist/esm/api/resources/billingNew/resources/index.d.mts +2 -0
  89. package/dist/esm/api/resources/billingNew/resources/index.mjs +2 -0
  90. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +17 -73
  91. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +50 -193
  92. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.d.mts +1 -0
  93. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -3
  94. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +0 -1
  95. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +0 -1
  96. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +57 -32
  97. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +169 -89
  98. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +0 -1
  99. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +30 -3
  100. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +137 -6
  101. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +7 -1
  102. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  103. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +0 -1
  104. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +0 -1
  105. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.d.mts +128 -0
  106. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/Client.mjs +448 -0
  107. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientCreate1.d.mts +21 -0
  108. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationClientUpdate1.d.mts +12 -0
  109. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationResolveReq.d.mts +14 -0
  110. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/TaxConfigurationsListV1Request.d.mts +33 -0
  111. package/dist/esm/api/resources/billingNew/resources/taxConfigurations/client/requests/index.d.mts +4 -0
  112. package/dist/esm/api/resources/flights/client/Client.d.mts +1 -1
  113. package/dist/esm/api/resources/flights/client/Client.mjs +1 -1
  114. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -0
  115. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +22 -2
  116. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +6 -0
  117. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -0
  118. package/dist/esm/api/types/BillingCurrencyCodeEnum1.d.mts +1 -2
  119. package/dist/esm/api/types/BillingCurrencyCodeEnum1.mjs +0 -1
  120. package/dist/esm/api/types/BillingPeriodCloseRes.d.mts +8 -0
  121. package/dist/esm/api/types/CalculatedInvoiceTax1.d.mts +12 -0
  122. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -3
  123. package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.d.mts → CreateInvoiceLineItemsFromAwbCostsGroupRes1.d.mts} +2 -2
  124. package/dist/esm/api/types/CreateInvoiceLineItemsFromAwbCostsRes.d.mts +1 -1
  125. package/dist/esm/api/{resources/billingNew/resources/invoices/client/requests → types}/InvoiceClientCreate1.d.mts +1 -9
  126. package/dist/esm/api/types/InvoiceCreateFromOrdersReq.d.mts +22 -0
  127. package/dist/esm/api/types/InvoiceCreateFromOrdersRes.d.mts +14 -0
  128. package/dist/esm/api/types/InvoiceCreateFromOrdersRes.mjs +4 -0
  129. package/dist/esm/api/types/InvoiceCreateReq.d.mts +20 -0
  130. package/dist/esm/api/types/InvoiceCreateReq.mjs +4 -0
  131. package/dist/esm/api/types/InvoiceLineItem1.d.mts +1 -0
  132. package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +4 -2
  133. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +2 -4
  134. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +1 -3
  135. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.d.mts +15 -0
  136. package/dist/esm/api/types/InvoicePreviewFromOrdersRes.mjs +4 -0
  137. package/dist/esm/api/types/InvoicePreviewRes.d.mts +10 -0
  138. package/dist/esm/api/types/InvoicePreviewRes.mjs +4 -0
  139. package/dist/esm/api/types/InvoiceTaxCalculation1.d.mts +12 -0
  140. package/dist/esm/api/types/InvoiceTaxCalculation1.mjs +4 -0
  141. package/dist/esm/api/types/Order1.d.mts +1 -0
  142. package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +7 -0
  143. package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +2 -1
  144. package/dist/esm/api/types/OrderBillingSortByEnum.mjs +1 -0
  145. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  146. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -0
  147. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -1
  148. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -0
  149. package/dist/esm/api/types/TaxConfiguration1.d.mts +24 -0
  150. package/dist/esm/api/types/TaxConfiguration1.mjs +4 -0
  151. package/dist/esm/api/types/TaxConfigurationListRes.d.mts +8 -0
  152. package/dist/esm/api/types/TaxConfigurationListRes.mjs +4 -0
  153. package/dist/esm/api/types/TaxConfigurationSortByEnum.d.mts +8 -0
  154. package/dist/esm/api/types/TaxConfigurationSortByEnum.mjs +7 -0
  155. package/dist/esm/api/types/{TaxRate1.d.mts → TaxRule1.d.mts} +2 -3
  156. package/dist/esm/api/types/TaxRule1.mjs +4 -0
  157. package/dist/esm/api/types/index.d.mts +14 -6
  158. package/dist/esm/api/types/index.mjs +14 -6
  159. package/dist/esm/version.d.mts +1 -1
  160. package/dist/esm/version.mjs +1 -1
  161. package/package.json +1 -1
  162. package/reference.md +526 -219
  163. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +0 -32
  164. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +0 -46
  165. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +0 -12
  166. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.ts +0 -51
  167. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.js +0 -153
  168. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +0 -1
  169. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.ts +0 -2
  170. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/index.js +0 -41
  171. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +0 -2
  172. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +0 -41
  173. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +0 -49
  174. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +0 -135
  175. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +0 -2
  176. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +0 -17
  177. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +0 -1
  178. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +0 -2
  179. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +0 -1
  180. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +0 -17
  181. package/dist/cjs/api/types/CreateInvoiceLineItemsFromAmountRes.d.ts +0 -7
  182. package/dist/cjs/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.ts +0 -7
  183. package/dist/cjs/api/types/InvoiceLineItemAmountTransformation1.d.ts +0 -8
  184. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.ts +0 -9
  185. package/dist/cjs/api/types/InvoiceLineItemAmountTransformationTypeEnum1.js +0 -11
  186. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +0 -32
  187. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +0 -46
  188. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +0 -12
  189. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.d.mts +0 -51
  190. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/Client.mjs +0 -116
  191. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +0 -1
  192. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.d.mts +0 -2
  193. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/index.mjs +0 -2
  194. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +0 -2
  195. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +0 -2
  196. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +0 -49
  197. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +0 -98
  198. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +0 -2
  199. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +0 -1
  200. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +0 -1
  201. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +0 -1
  202. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +0 -1
  203. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +0 -1
  204. package/dist/esm/api/types/CreateInvoiceLineItemsFromAmountRes.d.mts +0 -7
  205. package/dist/esm/api/types/CreateInvoiceLineItemsFromLineItemsRes.d.mts +0 -7
  206. package/dist/esm/api/types/InvoiceLineItemAmountTransformation1.d.mts +0 -8
  207. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.d.mts +0 -9
  208. package/dist/esm/api/types/InvoiceLineItemAmountTransformationTypeEnum1.mjs +0 -8
  209. /package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.js +0 -0
  210. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +0 -0
  211. /package/dist/cjs/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.js +0 -0
  212. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.ts +0 -0
  213. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.js +0 -0
  214. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.js → taxConfigurations/client/requests/TaxConfigurationClientCreate1.js} +0 -0
  215. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.js} +0 -0
  216. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js → taxConfigurations/client/requests/TaxConfigurationResolveReq.js} +0 -0
  217. /package/dist/cjs/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.js → taxConfigurations/client/requests/TaxConfigurationsListV1Request.js} +0 -0
  218. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.js +0 -0
  219. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.ts +0 -0
  220. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.js +0 -0
  221. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAmountRes.js → BillingPeriodCloseRes.js} +0 -0
  222. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.js → CalculatedInvoiceTax1.js} +0 -0
  223. /package/dist/cjs/api/types/{CreateInvoiceLineItemsFromLineItemsRes.js → CreateInvoiceLineItemsFromAwbCostsGroupRes1.js} +0 -0
  224. /package/dist/cjs/api/types/{InvoiceLineItemAmountTransformation1.js → InvoiceClientCreate1.js} +0 -0
  225. /package/dist/cjs/api/types/{TaxRate1.js → InvoiceCreateFromOrdersReq.js} +0 -0
  226. /package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/{resources/export/client → client}/requests/InvoiceLineItemExportListReq.mjs +0 -0
  227. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +0 -0
  228. /package/dist/esm/api/resources/billingNew/resources/orders/{resources/rateSheetLineItems/client → client}/requests/OrderRateSheetLineItemsGenerateManyReq.mjs +0 -0
  229. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.d.mts +0 -0
  230. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/index.mjs +0 -0
  231. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientCreate1.mjs} +0 -0
  232. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationClientUpdate1.mjs} +0 -0
  233. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs → taxConfigurations/client/requests/TaxConfigurationResolveReq.mjs} +0 -0
  234. /package/dist/esm/api/resources/billingNew/resources/{invoices/client/requests/InvoiceClientCreate1.mjs → taxConfigurations/client/requests/TaxConfigurationsListV1Request.mjs} +0 -0
  235. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/client/requests/index.mjs +0 -0
  236. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.d.mts +0 -0
  237. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/resources/export → taxConfigurations}/index.mjs +0 -0
  238. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAmountRes.mjs → BillingPeriodCloseRes.mjs} +0 -0
  239. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromAwbCostsInvoiceRes1.mjs → CalculatedInvoiceTax1.mjs} +0 -0
  240. /package/dist/esm/api/types/{CreateInvoiceLineItemsFromLineItemsRes.mjs → CreateInvoiceLineItemsFromAwbCostsGroupRes1.mjs} +0 -0
  241. /package/dist/esm/api/types/{InvoiceLineItemAmountTransformation1.mjs → InvoiceClientCreate1.mjs} +0 -0
  242. /package/dist/esm/api/types/{TaxRate1.mjs → InvoiceCreateFromOrdersReq.mjs} +0 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TaxConfigurationResolveReq {
9
+ counterparty_driver_id?: string | null;
10
+ counterparty_off_chrt_org_data_id?: string | null;
11
+ /** Must be a string starting with `org_` */
12
+ counterparty_org_id?: string | null;
13
+ shipper_account_id?: string | null;
14
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "name",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_counterparty_org_id: "filter_counterparty_org_id",
13
+ * filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
14
+ * filter_counterparty_driver_id: "filter_counterparty_driver_id",
15
+ * filter_shipper_account_id: "filter_shipper_account_id",
16
+ * filter_archived: true,
17
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
18
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
19
+ * }
20
+ */
21
+ export interface TaxConfigurationsListV1Request {
22
+ sort_by?: Chrt.TaxConfigurationSortByEnum | null;
23
+ sort_order?: Chrt.SortOrderEnum | null;
24
+ page?: number | null;
25
+ page_size?: number | null;
26
+ filter_counterparty_org_id?: string | null;
27
+ filter_counterparty_off_chrt_org_data_id?: string | null;
28
+ filter_counterparty_driver_id?: string | null;
29
+ filter_shipper_account_id?: string | null;
30
+ filter_archived?: boolean | null;
31
+ filter_created_at_timestamp_gte?: string | null;
32
+ filter_created_at_timestamp_lte?: string | null;
33
+ }
@@ -0,0 +1,4 @@
1
+ export { type TaxConfigurationClientCreate1 } from "./TaxConfigurationClientCreate1.mjs";
2
+ export { type TaxConfigurationsListV1Request } from "./TaxConfigurationsListV1Request.mjs";
3
+ export { type TaxConfigurationResolveReq } from "./TaxConfigurationResolveReq.mjs";
4
+ export { type TaxConfigurationClientUpdate1 } from "./TaxConfigurationClientUpdate1.mjs";
@@ -31,7 +31,7 @@ export declare class Flights {
31
31
  protected readonly _options: Flights.Options;
32
32
  constructor(_options?: Flights.Options);
33
33
  /**
34
- * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
34
+ * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time, ordered by earliest final arrival with unknown arrivals last. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
35
35
  *
36
36
  * @param {Chrt.FlightConnectionsSearchReq} request
37
37
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Flights {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
23
+ * Searches Cirium for cargo flight connections between two airports, anchored on a departure or arrival time, ordered by earliest final arrival with unknown arrivals last. | (FlightConnectionsSearchReq) -> (FlightConnectionsSearchRes)
24
24
  *
25
25
  * @param {Chrt.FlightConnectionsSearchReq} request
26
26
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -87,6 +87,8 @@ export declare class Expanded {
87
87
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
88
88
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
89
89
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
90
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
91
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
90
92
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
91
93
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
92
94
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -134,6 +136,8 @@ export declare class Expanded {
134
136
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
135
137
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
136
138
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
139
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
140
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
137
141
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
138
142
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
139
143
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -174,6 +174,8 @@ export class Expanded {
174
174
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
175
175
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
176
176
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
177
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
178
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
177
179
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
178
180
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
179
181
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -197,7 +199,7 @@ export class Expanded {
197
199
  __listForProviderOperatorsV1(request, requestOptions) {
198
200
  return __awaiter(this, void 0, void 0, function* () {
199
201
  var _a, _b, _c, _d, _e, _f, _g;
200
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_ids: filterExecutorDepartmentIds, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_labels: filterCoordinatorLabels, body: _body, } = request;
202
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_last_delivery_task_completed_at_timestamp_lte: filterLastDeliveryTaskCompletedAtTimestampLte, filter_last_delivery_task_completed_at_timestamp_gte: filterLastDeliveryTaskCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_ids: filterExecutorDepartmentIds, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_labels: filterCoordinatorLabels, body: _body, } = request;
201
203
  const _queryParams = {};
202
204
  if (providerRole !== undefined) {
203
205
  _queryParams["provider_role"] = providerRole;
@@ -273,6 +275,14 @@ export class Expanded {
273
275
  if (filterCompletedAtTimestampGte !== undefined) {
274
276
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
275
277
  }
278
+ if (filterLastDeliveryTaskCompletedAtTimestampLte !== undefined) {
279
+ _queryParams["filter_last_delivery_task_completed_at_timestamp_lte"] =
280
+ filterLastDeliveryTaskCompletedAtTimestampLte;
281
+ }
282
+ if (filterLastDeliveryTaskCompletedAtTimestampGte !== undefined) {
283
+ _queryParams["filter_last_delivery_task_completed_at_timestamp_gte"] =
284
+ filterLastDeliveryTaskCompletedAtTimestampGte;
285
+ }
276
286
  if (filterCancelledAtTimestampLte !== undefined) {
277
287
  _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
278
288
  }
@@ -416,6 +426,8 @@ export class Expanded {
416
426
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
417
427
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
418
428
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
429
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
430
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
419
431
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
420
432
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
421
433
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -431,7 +443,7 @@ export class Expanded {
431
443
  __listForShipperOperatorsV1(request, requestOptions) {
432
444
  return __awaiter(this, void 0, void 0, function* () {
433
445
  var _a, _b, _c, _d, _e, _f, _g;
434
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
446
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_last_delivery_task_completed_at_timestamp_lte: filterLastDeliveryTaskCompletedAtTimestampLte, filter_last_delivery_task_completed_at_timestamp_gte: filterLastDeliveryTaskCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
435
447
  const _queryParams = {};
436
448
  if (sortBy !== undefined) {
437
449
  _queryParams["sort_by"] = sortBy;
@@ -504,6 +516,14 @@ export class Expanded {
504
516
  if (filterCompletedAtTimestampGte !== undefined) {
505
517
  _queryParams["filter_completed_at_timestamp_gte"] = filterCompletedAtTimestampGte;
506
518
  }
519
+ if (filterLastDeliveryTaskCompletedAtTimestampLte !== undefined) {
520
+ _queryParams["filter_last_delivery_task_completed_at_timestamp_lte"] =
521
+ filterLastDeliveryTaskCompletedAtTimestampLte;
522
+ }
523
+ if (filterLastDeliveryTaskCompletedAtTimestampGte !== undefined) {
524
+ _queryParams["filter_last_delivery_task_completed_at_timestamp_gte"] =
525
+ filterLastDeliveryTaskCompletedAtTimestampGte;
526
+ }
507
527
  if (filterCancelledAtTimestampLte !== undefined) {
508
528
  _queryParams["filter_cancelled_at_timestamp_lte"] = filterCancelledAtTimestampLte;
509
529
  }
@@ -24,6 +24,8 @@ import * as Chrt from "../../../../../../../../index.mjs";
24
24
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
25
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
26
26
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
27
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
28
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
27
29
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
28
30
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
29
31
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -67,6 +69,10 @@ export interface ExpandedListForProviderOperatorsV1Request {
67
69
  filter_in_progress_at_timestamp_gte?: string | null;
68
70
  filter_completed_at_timestamp_lte?: string | null;
69
71
  filter_completed_at_timestamp_gte?: string | null;
72
+ /** Filter by last delivery completion time, inclusive. */
73
+ filter_last_delivery_task_completed_at_timestamp_lte?: string | null;
74
+ /** Filter by last delivery completion time, inclusive. */
75
+ filter_last_delivery_task_completed_at_timestamp_gte?: string | null;
70
76
  filter_cancelled_at_timestamp_lte?: string | null;
71
77
  filter_cancelled_at_timestamp_gte?: string | null;
72
78
  filter_exception_at_timestamp_lte?: string | null;
@@ -23,6 +23,8 @@ import * as Chrt from "../../../../../../../../index.mjs";
23
23
  * filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
24
24
  * filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
25
25
  * filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
26
+ * filter_last_delivery_task_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
27
+ * filter_last_delivery_task_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
26
28
  * filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
27
29
  * filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
28
30
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -57,6 +59,10 @@ export interface ExpandedListForShipperOperatorsV1Request {
57
59
  filter_in_progress_at_timestamp_gte?: string | null;
58
60
  filter_completed_at_timestamp_lte?: string | null;
59
61
  filter_completed_at_timestamp_gte?: string | null;
62
+ /** Filter by last delivery completion time, inclusive. */
63
+ filter_last_delivery_task_completed_at_timestamp_lte?: string | null;
64
+ /** Filter by last delivery completion time, inclusive. */
65
+ filter_last_delivery_task_completed_at_timestamp_gte?: string | null;
60
66
  filter_cancelled_at_timestamp_lte?: string | null;
61
67
  filter_cancelled_at_timestamp_gte?: string | null;
62
68
  filter_exception_at_timestamp_lte?: string | null;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type BillingCurrencyCodeEnum1 = "USD" | "CAD" | "EUR" | "GBP" | "MXN" | "AUD" | "JPY" | "CNY" | "CHF" | "INR" | "XXX";
4
+ export type BillingCurrencyCodeEnum1 = "USD" | "CAD" | "EUR" | "GBP" | "MXN" | "AUD" | "JPY" | "CNY" | "CHF" | "INR";
5
5
  export declare const BillingCurrencyCodeEnum1: {
6
6
  readonly Usd: "USD";
7
7
  readonly Cad: "CAD";
@@ -13,5 +13,4 @@ export declare const BillingCurrencyCodeEnum1: {
13
13
  readonly Cny: "CNY";
14
14
  readonly Chf: "CHF";
15
15
  readonly Inr: "INR";
16
- readonly Xxx: "XXX";
17
16
  };
@@ -12,5 +12,4 @@ export const BillingCurrencyCodeEnum1 = {
12
12
  Cny: "CNY",
13
13
  Chf: "CHF",
14
14
  Inr: "INR",
15
- Xxx: "XXX",
16
15
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface BillingPeriodCloseRes {
6
+ billing_period: Chrt.BillingPeriod1;
7
+ invoice_line_item: Chrt.InvoiceLineItem1;
8
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CalculatedInvoiceTax1 {
5
+ export_ref__sage__item_id?: string | null;
6
+ invoice_line_item_id: string;
7
+ name: string;
8
+ percentage: number;
9
+ tax_amount: number;
10
+ tax_configuration_id: string;
11
+ taxable_amount: number;
12
+ }
@@ -32,9 +32,6 @@ export interface ChrtGroundProviderRates1 {
32
32
  schema_version: number;
33
33
  service_line?: Chrt.ServiceLineEnum;
34
34
  shipper_account_id?: string | null;
35
- tax_1?: Chrt.TaxRate1 | null;
36
- tax_2?: Chrt.TaxRate1 | null;
37
- tax_3?: Chrt.TaxRate1 | null;
38
35
  updated_at_timestamp: string;
39
36
  vehicle_types?: Chrt.VehicleTypeEnum[];
40
37
  wait_time?: Chrt.WaitTimeRate1 | null;
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
- export interface CreateInvoiceLineItemsFromAwbCostsInvoiceRes1 {
5
+ export interface CreateInvoiceLineItemsFromAwbCostsGroupRes1 {
6
6
  counterparty_off_chrt_org_data_id: string;
7
7
  created_awb_count: number;
8
8
  created_invoice_line_item_count: number;
9
9
  currency_code: Chrt.BillingCurrencyCodeEnum1;
10
- invoice_id: string;
10
+ invoice_line_item_ids?: string[];
11
11
  }
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface CreateInvoiceLineItemsFromAwbCostsRes {
6
+ charge_groups?: Chrt.CreateInvoiceLineItemsFromAwbCostsGroupRes1[];
6
7
  created_awbs?: Chrt.CreateInvoiceLineItemsFromAwbCostsCreatedAwb1[];
7
8
  created_invoice_line_item_count: number;
8
- invoices?: Chrt.CreateInvoiceLineItemsFromAwbCostsInvoiceRes1[];
9
9
  rejected_awbs?: Chrt.CreateInvoiceLineItemsFromAwbCostsRejectedAwb1[];
10
10
  }
@@ -1,15 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../../../../../../index.mjs";
5
- /**
6
- * @example
7
- * {
8
- * currency_code: "USD",
9
- * invoice_type: "accounts_receivable",
10
- * schema_version: 1
11
- * }
12
- */
4
+ import * as Chrt from "../index.mjs";
13
5
  export interface InvoiceClientCreate1 {
14
6
  counterparty_driver_id?: string | null;
15
7
  counterparty_off_chrt_org_data_id?: string | null;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoiceCreateFromOrdersReq {
6
+ counterparty_driver_id?: string | null;
7
+ counterparty_off_chrt_org_data_id?: string | null;
8
+ /** Must be a string starting with `org_` */
9
+ counterparty_org_id?: string | null;
10
+ currency_code: Chrt.BillingCurrencyCodeEnum1;
11
+ description?: string | null;
12
+ export_ref__sage__customer_id?: string | null;
13
+ export_ref__sage__department_id?: string | null;
14
+ invoice_type: Chrt.InvoiceTypeEnum1;
15
+ name?: string | null;
16
+ order_ids: string[];
17
+ /** When derived, the exclusive UTC midnight after the last delivery day. Explicit bounds are preserved. */
18
+ period_end_at_timestamp?: string | null;
19
+ /** Supply both bounds or omit both to derive the period from delivery completion days in UTC. */
20
+ period_start_at_timestamp?: string | null;
21
+ schema_version: number;
22
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoiceCreateFromOrdersRes {
6
+ added_invoice_line_item_ids?: string[];
7
+ already_invoiced_line_item_ids?: string[];
8
+ finalized_line_item_ids?: string[];
9
+ /** Created draft, or null when no charges qualify. */
10
+ invoice?: Chrt.Invoice1 | null;
11
+ orders_without_added_charges?: string[];
12
+ /** Charges for another counterparty, invoice type, or currency, regardless of status. */
13
+ unmatched_line_item_ids?: string[];
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoiceCreateReq {
6
+ counterparty_driver_id?: string | null;
7
+ counterparty_off_chrt_org_data_id?: string | null;
8
+ /** Must be a string starting with `org_` */
9
+ counterparty_org_id?: string | null;
10
+ currency_code: Chrt.BillingCurrencyCodeEnum1;
11
+ description?: string | null;
12
+ export_ref__sage__customer_id?: string | null;
13
+ export_ref__sage__department_id?: string | null;
14
+ invoice_line_item_ids?: string[];
15
+ invoice_type: Chrt.InvoiceTypeEnum1;
16
+ name?: string | null;
17
+ period_end_at_timestamp?: string | null;
18
+ period_start_at_timestamp?: string | null;
19
+ schema_version: number;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -34,6 +34,7 @@ export interface InvoiceLineItem1 {
34
34
  status?: Chrt.InvoiceLineItemStatusEnum1;
35
35
  task_group_id?: string | null;
36
36
  tax_percentage?: number | null;
37
+ total_amount?: number;
37
38
  unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
38
39
  unit_price: number;
39
40
  }
@@ -23,11 +23,12 @@ export interface InvoiceLineItemExportListItem {
23
23
  destination_iata?: string | null;
24
24
  flight_numbers?: string[];
25
25
  invoice_approval_timestamp?: string | null;
26
- invoice_line_item_id: string;
27
- invoice_line_item_status: Chrt.InvoiceLineItemStatusEnum1;
26
+ invoice_line_item_id?: string | null;
27
+ invoice_line_item_status?: Chrt.InvoiceLineItemStatusEnum1 | null;
28
28
  invoice_number?: string | null;
29
29
  invoice_status?: Chrt.InvoiceStatusEnum1 | null;
30
30
  invoice_type: Chrt.InvoiceTypeEnum1;
31
+ is_estimate?: boolean;
31
32
  /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
32
33
  line_item_awb_number?: string | null;
33
34
  line_item_description: string;
@@ -38,6 +39,7 @@ export interface InvoiceLineItemExportListItem {
38
39
  line_item_unit_price: number;
39
40
  mileage_estimated?: number | null;
40
41
  off_chrt_reference_id?: string | null;
42
+ order_last_delivery_task_completed_at_timestamp?: string | null;
41
43
  order_placer_comments?: string | null;
42
44
  order_short_id?: string | null;
43
45
  origin_iata?: string | null;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "tax_1" | "tax_2" | "tax_3" | "other";
4
+ export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "tax" | "other";
5
5
  export declare const InvoiceLineItemTypeEnum1: {
6
6
  readonly BaseRate: "base_rate";
7
7
  readonly AdditionalMileage: "additional_mileage";
@@ -29,8 +29,6 @@ export declare const InvoiceLineItemTypeEnum1: {
29
29
  readonly TrackingDeviceLabel: "tracking_device_label";
30
30
  readonly TrackingDeviceTag: "tracking_device_tag";
31
31
  readonly TrackingDeviceOther: "tracking_device_other";
32
- readonly Tax1: "tax_1";
33
- readonly Tax2: "tax_2";
34
- readonly Tax3: "tax_3";
32
+ readonly Tax: "tax";
35
33
  readonly Other: "other";
36
34
  };
@@ -28,8 +28,6 @@ export const InvoiceLineItemTypeEnum1 = {
28
28
  TrackingDeviceLabel: "tracking_device_label",
29
29
  TrackingDeviceTag: "tracking_device_tag",
30
30
  TrackingDeviceOther: "tracking_device_other",
31
- Tax1: "tax_1",
32
- Tax2: "tax_2",
33
- Tax3: "tax_3",
31
+ Tax: "tax",
34
32
  Other: "other",
35
33
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoicePreviewFromOrdersRes {
6
+ already_invoiced_line_item_ids?: string[];
7
+ calculation: Chrt.InvoiceTaxCalculation1;
8
+ finalized_line_item_ids?: string[];
9
+ invoice: Chrt.InvoiceClientCreate1;
10
+ invoice_line_items?: Chrt.InvoiceLineItem1[];
11
+ orders_without_selected_charges?: string[];
12
+ tax_configurations_by_line_item_id?: Record<string, (Chrt.TaxConfiguration1 | null) | undefined>;
13
+ tax_line_item_ids?: string[];
14
+ unmatched_line_item_ids?: string[];
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoicePreviewRes {
6
+ calculation: Chrt.InvoiceTaxCalculation1;
7
+ invoice: Chrt.InvoiceClientCreate1;
8
+ invoice_line_items?: Chrt.InvoiceLineItem1[];
9
+ tax_configurations_by_line_item_id?: Record<string, (Chrt.TaxConfiguration1 | null) | undefined>;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoiceTaxCalculation1 {
6
+ currency_code: Chrt.BillingCurrencyCodeEnum1;
7
+ net_amounts?: Record<string, number>;
8
+ subtotal: number;
9
+ tax_breakdown?: Chrt.CalculatedInvoiceTax1[];
10
+ tax_total: number;
11
+ total_amount: number;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -24,6 +24,7 @@ export interface Order1 {
24
24
  exception_at_timestamp?: string | null;
25
25
  in_progress_at_timestamp?: string | null;
26
26
  invoice_ids?: string[];
27
+ last_delivery_task_completed_at_timestamp?: string | null;
27
28
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
28
29
  off_chrt_reference_id?: string | null;
29
30
  off_chrt_shipper_org_data_id?: string | null;
@@ -6,15 +6,22 @@ export interface OrderBillingExpandedListItem1 {
6
6
  accounts?: Chrt.OrderBillingAccount1[];
7
7
  awb_numbers?: string[];
8
8
  billing_periods?: Chrt.OrderBillingPeriod1[];
9
+ cancelled_at_timestamp?: string | null;
10
+ completed_at_timestamp?: string | null;
9
11
  coordinator_labels?: string[];
12
+ draft_started_at_timestamp: string;
13
+ exception_at_timestamp?: string | null;
10
14
  executors?: Chrt.OrderBillingExecutor1[];
15
+ in_progress_at_timestamp?: string | null;
11
16
  includes_air_waybill_invoice_line_item: boolean;
12
17
  invoice_count: number;
13
18
  invoice_line_item_count: number;
14
19
  invoice_statuses?: Chrt.InvoiceStatusEnum1[];
20
+ last_delivery_task_completed_at_timestamp?: string | null;
15
21
  order_id: string;
16
22
  order_short_id: string;
17
23
  order_status: Chrt.OrderStatusEnum1;
18
24
  shipper?: Chrt.OrderBillingShipper1 | null;
25
+ staged_at_timestamp?: string | null;
19
26
  totals_by_currency?: Chrt.OrderBillingCurrencyTotals1[];
20
27
  }
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type OrderBillingSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
4
+ export type OrderBillingSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "last_delivery_task_completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
5
5
  export declare const OrderBillingSortByEnum: {
6
6
  readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
7
7
  readonly StagedAtTimestamp: "staged_at_timestamp";
8
8
  readonly InProgressAtTimestamp: "in_progress_at_timestamp";
9
9
  readonly CompletedAtTimestamp: "completed_at_timestamp";
10
+ readonly LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp";
10
11
  readonly CancelledAtTimestamp: "cancelled_at_timestamp";
11
12
  readonly ExceptionAtTimestamp: "exception_at_timestamp";
12
13
  };
@@ -6,6 +6,7 @@ export const OrderBillingSortByEnum = {
6
6
  StagedAtTimestamp: "staged_at_timestamp",
7
7
  InProgressAtTimestamp: "in_progress_at_timestamp",
8
8
  CompletedAtTimestamp: "completed_at_timestamp",
9
+ LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp",
9
10
  CancelledAtTimestamp: "cancelled_at_timestamp",
10
11
  ExceptionAtTimestamp: "exception_at_timestamp",
11
12
  };
@@ -28,6 +28,7 @@ export interface OrderLimitedForProvider1 {
28
28
  exception_at_timestamp?: string | null;
29
29
  in_progress_at_timestamp?: string | null;
30
30
  invoice_ids?: string[];
31
+ last_delivery_task_completed_at_timestamp?: string | null;
31
32
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
32
33
  off_chrt_reference_id?: string | null;
33
34
  off_chrt_shipper_org_data_id?: string | null;
@@ -23,6 +23,7 @@ export interface OrderLimitedForShipper1 {
23
23
  exception_at_timestamp?: string | null;
24
24
  in_progress_at_timestamp?: string | null;
25
25
  invoice_ids?: string[];
26
+ last_delivery_task_completed_at_timestamp?: string | null;
26
27
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
27
28
  off_chrt_reference_id?: string | null;
28
29
  off_chrt_shipper_org_data_id?: string | null;
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type OrderSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
4
+ export type OrderSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "last_delivery_task_completed_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
5
5
  export declare const OrderSortByEnum: {
6
6
  readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
7
7
  readonly StagedAtTimestamp: "staged_at_timestamp";
8
8
  readonly InProgressAtTimestamp: "in_progress_at_timestamp";
9
9
  readonly CompletedAtTimestamp: "completed_at_timestamp";
10
+ readonly LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp";
10
11
  readonly CancelledAtTimestamp: "cancelled_at_timestamp";
11
12
  readonly ExceptionAtTimestamp: "exception_at_timestamp";
12
13
  };
@@ -6,6 +6,7 @@ export const OrderSortByEnum = {
6
6
  StagedAtTimestamp: "staged_at_timestamp",
7
7
  InProgressAtTimestamp: "in_progress_at_timestamp",
8
8
  CompletedAtTimestamp: "completed_at_timestamp",
9
+ LastDeliveryTaskCompletedAtTimestamp: "last_delivery_task_completed_at_timestamp",
9
10
  CancelledAtTimestamp: "cancelled_at_timestamp",
10
11
  ExceptionAtTimestamp: "exception_at_timestamp",
11
12
  };