nordlet 0.3.8 → 0.3.11

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 (347) hide show
  1. package/dist/Client.d.ts +6 -0
  2. package/dist/Client.js +28 -20
  3. package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
  4. package/dist/api/resources/agreements/client/Client.d.ts +42 -0
  5. package/dist/api/resources/agreements/client/Client.js +158 -0
  6. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
  7. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
  8. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
  9. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
  10. package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
  11. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
  12. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
  13. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
  14. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
  15. package/dist/api/resources/agreements/types/index.d.ts +2 -0
  16. package/dist/api/resources/agreements/types/index.js +2 -0
  17. package/dist/api/resources/assets/client/Client.d.ts +42 -0
  18. package/dist/api/resources/assets/client/Client.js +155 -0
  19. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
  20. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
  21. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
  22. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
  23. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  24. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
  25. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
  26. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
  27. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
  28. package/dist/api/resources/assets/types/index.d.ts +2 -0
  29. package/dist/api/resources/assets/types/index.js +2 -0
  30. package/dist/api/resources/bank/client/Client.d.ts +27 -0
  31. package/dist/api/resources/bank/client/Client.js +85 -0
  32. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
  33. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
  34. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
  35. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -0
  36. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
  37. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
  38. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +33 -0
  39. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +18 -0
  40. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
  41. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
  42. package/dist/api/resources/bank/client/requests/index.d.ts +3 -2
  43. package/dist/api/resources/bank/client/requests/index.js +7 -1
  44. package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
  45. package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
  46. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
  47. package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
  48. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
  49. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -0
  50. package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
  51. package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
  52. package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
  53. package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
  54. package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
  55. package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
  56. package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
  57. package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
  58. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
  59. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
  60. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
  61. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
  62. package/dist/api/resources/bank/types/index.d.ts +1 -0
  63. package/dist/api/resources/bank/types/index.js +1 -0
  64. package/dist/api/resources/capture/client/Client.d.ts +2 -0
  65. package/dist/api/resources/capture/client/Client.js +2 -0
  66. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +31 -0
  67. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
  68. package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
  69. package/dist/api/resources/capture/client/requests/index.js +3 -1
  70. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +95 -0
  71. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
  72. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
  73. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
  74. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
  75. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
  76. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
  77. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
  78. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
  79. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
  80. package/dist/api/resources/cash/client/Client.d.ts +71 -2
  81. package/dist/api/resources/cash/client/Client.js +245 -2
  82. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
  83. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
  84. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
  85. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
  86. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
  87. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
  88. package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
  89. package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
  90. package/dist/api/resources/cash/client/requests/index.js +3 -1
  91. package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
  92. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
  93. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
  94. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
  95. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
  96. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
  97. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
  98. package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
  99. package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
  100. package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
  101. package/dist/api/resources/cash/types/index.d.ts +3 -0
  102. package/dist/api/resources/cash/types/index.js +3 -0
  103. package/dist/api/resources/declarations/client/Client.d.ts +93 -1
  104. package/dist/api/resources/declarations/client/Client.js +325 -1
  105. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
  106. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
  107. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
  108. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
  109. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
  110. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
  111. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
  112. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
  113. package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
  114. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
  115. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
  116. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
  117. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
  118. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
  119. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
  120. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
  121. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
  122. package/dist/api/resources/declarations/types/index.d.ts +4 -0
  123. package/dist/api/resources/declarations/types/index.js +4 -0
  124. package/dist/api/resources/hr/client/Client.d.ts +178 -0
  125. package/dist/api/resources/hr/client/Client.js +642 -0
  126. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
  127. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
  128. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
  129. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
  130. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
  131. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
  132. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
  133. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
  134. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
  135. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
  136. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
  137. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
  138. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
  139. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
  140. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
  141. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
  142. package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
  143. package/dist/api/resources/hr/client/requests/index.js +5 -1
  144. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
  145. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
  146. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
  147. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
  148. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
  149. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
  150. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
  151. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
  152. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
  153. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
  154. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
  155. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
  156. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
  157. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
  158. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
  159. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
  160. package/dist/api/resources/hr/types/index.d.ts +8 -0
  161. package/dist/api/resources/hr/types/index.js +8 -0
  162. package/dist/api/resources/index.d.ts +6 -0
  163. package/dist/api/resources/index.js +7 -1
  164. package/dist/api/resources/inventory/client/Client.d.ts +22 -0
  165. package/dist/api/resources/inventory/client/Client.js +80 -0
  166. package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
  167. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
  168. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
  169. package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
  170. package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
  171. package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
  172. package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
  173. package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
  174. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
  175. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
  176. package/dist/api/resources/inventory/types/index.d.ts +1 -0
  177. package/dist/api/resources/inventory/types/index.js +1 -0
  178. package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
  179. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
  180. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
  181. package/dist/api/resources/partners/client/Client.d.ts +23 -0
  182. package/dist/api/resources/partners/client/Client.js +78 -0
  183. package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
  184. package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
  185. package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
  187. package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
  188. package/dist/api/resources/partners/types/index.d.ts +1 -0
  189. package/dist/api/resources/partners/types/index.js +1 -0
  190. package/dist/api/resources/payroll/client/Client.d.ts +23 -0
  191. package/dist/api/resources/payroll/client/Client.js +81 -0
  192. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
  193. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
  194. package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
  195. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +5 -0
  196. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
  197. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +5 -0
  198. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
  199. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +5 -0
  200. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
  201. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +5 -0
  202. package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
  203. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +52 -0
  204. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
  205. package/dist/api/resources/payroll/types/index.d.ts +1 -0
  206. package/dist/api/resources/payroll/types/index.js +1 -0
  207. package/dist/api/resources/peppol/client/Client.d.ts +58 -0
  208. package/dist/api/resources/peppol/client/Client.js +207 -0
  209. package/dist/api/resources/peppol/client/index.d.ts +1 -0
  210. package/dist/api/resources/peppol/client/index.js +17 -0
  211. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
  212. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
  213. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
  214. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
  215. package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
  216. package/dist/api/resources/peppol/client/requests/index.js +2 -0
  217. package/dist/api/resources/peppol/exports.d.ts +2 -0
  218. package/dist/api/resources/peppol/exports.js +21 -0
  219. package/dist/api/resources/peppol/index.d.ts +2 -0
  220. package/dist/api/resources/peppol/index.js +18 -0
  221. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
  222. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
  223. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
  224. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
  225. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
  226. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
  227. package/dist/api/resources/peppol/types/index.d.ts +3 -0
  228. package/dist/api/resources/peppol/types/index.js +19 -0
  229. package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
  230. package/dist/api/resources/platformSellers/client/Client.js +458 -0
  231. package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
  232. package/dist/api/resources/platformSellers/client/index.js +17 -0
  233. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
  234. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
  235. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
  236. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
  237. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
  238. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
  239. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
  240. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
  241. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
  242. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
  243. package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
  244. package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
  245. package/dist/api/resources/platformSellers/exports.d.ts +2 -0
  246. package/dist/api/resources/platformSellers/exports.js +21 -0
  247. package/dist/api/resources/platformSellers/index.d.ts +2 -0
  248. package/dist/api/resources/platformSellers/index.js +18 -0
  249. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
  250. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
  251. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
  252. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
  253. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
  254. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
  255. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
  256. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
  257. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
  258. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
  259. package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
  260. package/dist/api/resources/platformSellers/types/index.js +21 -0
  261. package/dist/api/resources/pos/client/Client.d.ts +156 -0
  262. package/dist/api/resources/pos/client/Client.js +541 -0
  263. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
  264. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
  265. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
  266. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
  267. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
  268. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
  269. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
  270. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
  271. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
  272. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
  273. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
  274. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
  275. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
  276. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
  277. package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
  278. package/dist/api/resources/pos/client/requests/index.js +5 -1
  279. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
  280. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
  281. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
  282. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
  283. package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
  284. package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
  285. package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
  286. package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
  287. package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
  288. package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
  289. package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
  290. package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
  291. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
  292. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
  293. package/dist/api/resources/pos/types/index.d.ts +7 -0
  294. package/dist/api/resources/pos/types/index.js +7 -0
  295. package/dist/api/resources/purchases/client/Client.d.ts +40 -0
  296. package/dist/api/resources/purchases/client/Client.js +156 -0
  297. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
  298. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
  299. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
  300. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
  301. package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
  302. package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
  303. package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
  304. package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
  305. package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
  306. package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
  307. package/dist/api/resources/purchases/client/requests/index.js +3 -1
  308. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
  309. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
  310. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
  311. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
  312. package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
  313. package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
  314. package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
  315. package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
  316. package/dist/api/resources/purchases/types/index.d.ts +2 -0
  317. package/dist/api/resources/purchases/types/index.js +2 -0
  318. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
  319. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
  320. package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
  321. package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
  322. package/dist/api/resources/sales/client/Client.d.ts +26 -0
  323. package/dist/api/resources/sales/client/Client.js +84 -0
  324. package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
  325. package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
  326. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
  327. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
  328. package/dist/api/resources/sales/client/requests/index.d.ts +1 -0
  329. package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
  330. package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
  331. package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
  332. package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
  333. package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
  334. package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
  335. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
  336. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
  337. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
  338. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
  339. package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
  340. package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
  341. package/dist/api/resources/sales/types/index.d.ts +1 -0
  342. package/dist/api/resources/sales/types/index.js +1 -0
  343. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +5 -0
  344. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +5 -0
  345. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +5 -0
  346. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +5 -0
  347. package/package.json +1 -1
@@ -14,6 +14,13 @@ var DocumentsListCaptureResponse;
14
14
  Failed: "failed",
15
15
  Linked: "linked",
16
16
  };
17
+ let Extraction;
18
+ (function (Extraction) {
19
+ Extraction.DocumentType = {
20
+ Invoice: "invoice",
21
+ CreditNote: "credit_note",
22
+ };
23
+ })(Extraction = Item.Extraction || (Item.Extraction = {}));
17
24
  })(Item = Rows.Item || (Rows.Item = {}));
18
25
  })(Rows = DocumentsListCaptureResponse.Rows || (DocumentsListCaptureResponse.Rows = {}));
19
26
  })(DocumentsListCaptureResponse || (exports.DocumentsListCaptureResponse = DocumentsListCaptureResponse = {}));
@@ -12,6 +12,7 @@ export interface DocumentsUploadCaptureResponse {
12
12
  matchedPartnerId: string | null;
13
13
  purchaseInvoiceId: string | null;
14
14
  error: string | null;
15
+ senderId: string | null;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
18
  rawText: string | null;
@@ -25,6 +26,7 @@ export declare namespace DocumentsUploadCaptureResponse {
25
26
  };
26
27
  type Status = (typeof Status)[keyof typeof Status];
27
28
  interface Extraction {
29
+ documentType?: Extraction.DocumentType | undefined;
28
30
  supplier: Extraction.Supplier;
29
31
  documentNumber: string | null;
30
32
  documentDate: string | null;
@@ -35,8 +37,14 @@ export declare namespace DocumentsUploadCaptureResponse {
35
37
  grossTotal: string | null;
36
38
  notes: string | null;
37
39
  lines: Extraction.Lines.Item[];
40
+ oppositeLines?: Extraction.OppositeLines.Item[] | undefined;
38
41
  }
39
42
  namespace Extraction {
43
+ const DocumentType: {
44
+ readonly Invoice: "invoice";
45
+ readonly CreditNote: "credit_note";
46
+ };
47
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
40
48
  interface Supplier {
41
49
  name: string | null;
42
50
  code: string | null;
@@ -57,5 +65,18 @@ export declare namespace DocumentsUploadCaptureResponse {
57
65
  lineGross: string | null;
58
66
  }
59
67
  }
68
+ type OppositeLines = OppositeLines.Item[];
69
+ namespace OppositeLines {
70
+ interface Item {
71
+ description: string;
72
+ quantity: string;
73
+ unit: string | null;
74
+ unitPriceExclVat: string | null;
75
+ vatRatePercent: string | null;
76
+ lineNet: string | null;
77
+ lineVat: string | null;
78
+ lineGross: string | null;
79
+ }
80
+ }
60
81
  }
61
82
  }
@@ -10,4 +10,11 @@ var DocumentsUploadCaptureResponse;
10
10
  Failed: "failed",
11
11
  Linked: "linked",
12
12
  };
13
+ let Extraction;
14
+ (function (Extraction) {
15
+ Extraction.DocumentType = {
16
+ Invoice: "invoice",
17
+ CreditNote: "credit_note",
18
+ };
19
+ })(Extraction = DocumentsUploadCaptureResponse.Extraction || (DocumentsUploadCaptureResponse.Extraction = {}));
13
20
  })(DocumentsUploadCaptureResponse || (exports.DocumentsUploadCaptureResponse = DocumentsUploadCaptureResponse = {}));
@@ -30,8 +30,7 @@ export declare class CashClient {
30
30
  * type: "receipt",
31
31
  * date: "2026-07-01",
32
32
  * amount: "121.0000",
33
- * purpose: "purpose",
34
- * counterAccountCode: "counterAccountCode"
33
+ * purpose: "purpose"
35
34
  * })
36
35
  */
37
36
  ordersCreate(request: NordletApi.OrdersCreateCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.OrdersCreateCashResponse>;
@@ -98,6 +97,76 @@ export declare class CashClient {
98
97
  */
99
98
  balance(request?: NordletApi.BalanceCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.BalanceCashResponse>;
100
99
  private __balance;
100
+ /**
101
+ * @param {NordletApi.ExpenseReportsCreateCashRequest} request
102
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link NordletApi.BadRequestError}
105
+ * @throws {@link NordletApi.UnauthorizedError}
106
+ * @throws {@link NordletApi.PaymentRequiredError}
107
+ * @throws {@link NordletApi.ForbiddenError}
108
+ * @throws {@link NordletApi.NotFoundError}
109
+ * @throws {@link NordletApi.ConflictError}
110
+ * @throws {@link NordletApi.ContentTooLargeError}
111
+ * @throws {@link NordletApi.UnprocessableEntityError}
112
+ * @throws {@link NordletApi.TooManyRequestsError}
113
+ * @throws {@link NordletApi.InternalServerError}
114
+ *
115
+ * @example
116
+ * await client.cash.expenseReportsCreate({
117
+ * employeeId: "employeeId",
118
+ * date: "2026-07-01",
119
+ * lines: [{
120
+ * description: "description",
121
+ * accountCode: "accountCode",
122
+ * netAmount: "121.00"
123
+ * }]
124
+ * })
125
+ */
126
+ expenseReportsCreate(request: NordletApi.ExpenseReportsCreateCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsCreateCashResponse>;
127
+ private __expenseReportsCreate;
128
+ /**
129
+ * @param {NordletApi.ExpenseReportsGetCashRequest} request
130
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link NordletApi.BadRequestError}
133
+ * @throws {@link NordletApi.UnauthorizedError}
134
+ * @throws {@link NordletApi.PaymentRequiredError}
135
+ * @throws {@link NordletApi.ForbiddenError}
136
+ * @throws {@link NordletApi.NotFoundError}
137
+ * @throws {@link NordletApi.ConflictError}
138
+ * @throws {@link NordletApi.ContentTooLargeError}
139
+ * @throws {@link NordletApi.UnprocessableEntityError}
140
+ * @throws {@link NordletApi.TooManyRequestsError}
141
+ * @throws {@link NordletApi.InternalServerError}
142
+ *
143
+ * @example
144
+ * await client.cash.expenseReportsGet({
145
+ * id: "id"
146
+ * })
147
+ */
148
+ expenseReportsGet(request: NordletApi.ExpenseReportsGetCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsGetCashResponse>;
149
+ private __expenseReportsGet;
150
+ /**
151
+ * @param {NordletApi.ExpenseReportsListCashRequest} request
152
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link NordletApi.BadRequestError}
155
+ * @throws {@link NordletApi.UnauthorizedError}
156
+ * @throws {@link NordletApi.PaymentRequiredError}
157
+ * @throws {@link NordletApi.ForbiddenError}
158
+ * @throws {@link NordletApi.NotFoundError}
159
+ * @throws {@link NordletApi.ConflictError}
160
+ * @throws {@link NordletApi.ContentTooLargeError}
161
+ * @throws {@link NordletApi.UnprocessableEntityError}
162
+ * @throws {@link NordletApi.TooManyRequestsError}
163
+ * @throws {@link NordletApi.InternalServerError}
164
+ *
165
+ * @example
166
+ * await client.cash.expenseReportsList()
167
+ */
168
+ expenseReportsList(request?: NordletApi.ExpenseReportsListCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsListCashResponse>;
169
+ private __expenseReportsList;
101
170
  /**
102
171
  * @param {NordletApi.AdvanceHoldersBalancesCashRequest} request
103
172
  * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -67,8 +67,7 @@ class CashClient {
67
67
  * type: "receipt",
68
68
  * date: "2026-07-01",
69
69
  * amount: "121.0000",
70
- * purpose: "purpose",
71
- * counterAccountCode: "counterAccountCode"
70
+ * purpose: "purpose"
72
71
  * })
73
72
  */
74
73
  ordersCreate(request, requestOptions) {
@@ -355,6 +354,250 @@ class CashClient {
355
354
  }
356
355
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/balance");
357
356
  }
357
+ /**
358
+ * @param {NordletApi.ExpenseReportsCreateCashRequest} request
359
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
360
+ *
361
+ * @throws {@link NordletApi.BadRequestError}
362
+ * @throws {@link NordletApi.UnauthorizedError}
363
+ * @throws {@link NordletApi.PaymentRequiredError}
364
+ * @throws {@link NordletApi.ForbiddenError}
365
+ * @throws {@link NordletApi.NotFoundError}
366
+ * @throws {@link NordletApi.ConflictError}
367
+ * @throws {@link NordletApi.ContentTooLargeError}
368
+ * @throws {@link NordletApi.UnprocessableEntityError}
369
+ * @throws {@link NordletApi.TooManyRequestsError}
370
+ * @throws {@link NordletApi.InternalServerError}
371
+ *
372
+ * @example
373
+ * await client.cash.expenseReportsCreate({
374
+ * employeeId: "employeeId",
375
+ * date: "2026-07-01",
376
+ * lines: [{
377
+ * description: "description",
378
+ * accountCode: "accountCode",
379
+ * netAmount: "121.00"
380
+ * }]
381
+ * })
382
+ */
383
+ expenseReportsCreate(request, requestOptions) {
384
+ return core.HttpResponsePromise.fromPromise(this.__expenseReportsCreate(request, requestOptions));
385
+ }
386
+ async __expenseReportsCreate(request, requestOptions) {
387
+ const _authRequest = await this._options.authProvider.getAuthRequest();
388
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
389
+ const _response = await core.fetcher({
390
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
391
+ (await core.Supplier.get(this._options.environment)) ??
392
+ environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/create"),
393
+ method: "POST",
394
+ headers: _headers,
395
+ contentType: "application/json",
396
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
397
+ requestType: "json",
398
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
399
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
400
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
401
+ abortSignal: requestOptions?.abortSignal,
402
+ fetchFn: this._options?.fetch,
403
+ logging: this._options.logging,
404
+ });
405
+ if (_response.ok) {
406
+ return {
407
+ data: _response.body,
408
+ rawResponse: _response.rawResponse,
409
+ };
410
+ }
411
+ if (_response.error.reason === "status-code") {
412
+ switch (_response.error.statusCode) {
413
+ case 400:
414
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
415
+ case 401:
416
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
417
+ case 402:
418
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
419
+ case 403:
420
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
421
+ case 404:
422
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
423
+ case 409:
424
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
425
+ case 413:
426
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
427
+ case 422:
428
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
429
+ case 429:
430
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
431
+ case 500:
432
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
433
+ default:
434
+ throw new errors.NordletApiError({
435
+ statusCode: _response.error.statusCode,
436
+ body: _response.error.body,
437
+ rawResponse: _response.rawResponse,
438
+ });
439
+ }
440
+ }
441
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/create");
442
+ }
443
+ /**
444
+ * @param {NordletApi.ExpenseReportsGetCashRequest} request
445
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
446
+ *
447
+ * @throws {@link NordletApi.BadRequestError}
448
+ * @throws {@link NordletApi.UnauthorizedError}
449
+ * @throws {@link NordletApi.PaymentRequiredError}
450
+ * @throws {@link NordletApi.ForbiddenError}
451
+ * @throws {@link NordletApi.NotFoundError}
452
+ * @throws {@link NordletApi.ConflictError}
453
+ * @throws {@link NordletApi.ContentTooLargeError}
454
+ * @throws {@link NordletApi.UnprocessableEntityError}
455
+ * @throws {@link NordletApi.TooManyRequestsError}
456
+ * @throws {@link NordletApi.InternalServerError}
457
+ *
458
+ * @example
459
+ * await client.cash.expenseReportsGet({
460
+ * id: "id"
461
+ * })
462
+ */
463
+ expenseReportsGet(request, requestOptions) {
464
+ return core.HttpResponsePromise.fromPromise(this.__expenseReportsGet(request, requestOptions));
465
+ }
466
+ async __expenseReportsGet(request, requestOptions) {
467
+ const _authRequest = await this._options.authProvider.getAuthRequest();
468
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
469
+ const _response = await core.fetcher({
470
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
471
+ (await core.Supplier.get(this._options.environment)) ??
472
+ environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/get"),
473
+ method: "POST",
474
+ headers: _headers,
475
+ contentType: "application/json",
476
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
477
+ requestType: "json",
478
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
479
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
480
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
481
+ abortSignal: requestOptions?.abortSignal,
482
+ fetchFn: this._options?.fetch,
483
+ logging: this._options.logging,
484
+ });
485
+ if (_response.ok) {
486
+ return {
487
+ data: _response.body,
488
+ rawResponse: _response.rawResponse,
489
+ };
490
+ }
491
+ if (_response.error.reason === "status-code") {
492
+ switch (_response.error.statusCode) {
493
+ case 400:
494
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
495
+ case 401:
496
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
497
+ case 402:
498
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
499
+ case 403:
500
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
501
+ case 404:
502
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
503
+ case 409:
504
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
505
+ case 413:
506
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
507
+ case 422:
508
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
509
+ case 429:
510
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
511
+ case 500:
512
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
513
+ default:
514
+ throw new errors.NordletApiError({
515
+ statusCode: _response.error.statusCode,
516
+ body: _response.error.body,
517
+ rawResponse: _response.rawResponse,
518
+ });
519
+ }
520
+ }
521
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/get");
522
+ }
523
+ /**
524
+ * @param {NordletApi.ExpenseReportsListCashRequest} request
525
+ * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
526
+ *
527
+ * @throws {@link NordletApi.BadRequestError}
528
+ * @throws {@link NordletApi.UnauthorizedError}
529
+ * @throws {@link NordletApi.PaymentRequiredError}
530
+ * @throws {@link NordletApi.ForbiddenError}
531
+ * @throws {@link NordletApi.NotFoundError}
532
+ * @throws {@link NordletApi.ConflictError}
533
+ * @throws {@link NordletApi.ContentTooLargeError}
534
+ * @throws {@link NordletApi.UnprocessableEntityError}
535
+ * @throws {@link NordletApi.TooManyRequestsError}
536
+ * @throws {@link NordletApi.InternalServerError}
537
+ *
538
+ * @example
539
+ * await client.cash.expenseReportsList()
540
+ */
541
+ expenseReportsList(request = {}, requestOptions) {
542
+ return core.HttpResponsePromise.fromPromise(this.__expenseReportsList(request, requestOptions));
543
+ }
544
+ async __expenseReportsList(request = {}, requestOptions) {
545
+ const _authRequest = await this._options.authProvider.getAuthRequest();
546
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
547
+ const _response = await core.fetcher({
548
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
549
+ (await core.Supplier.get(this._options.environment)) ??
550
+ environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/list"),
551
+ method: "POST",
552
+ headers: _headers,
553
+ contentType: "application/json",
554
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
555
+ requestType: "json",
556
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
557
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
558
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
559
+ abortSignal: requestOptions?.abortSignal,
560
+ fetchFn: this._options?.fetch,
561
+ logging: this._options.logging,
562
+ });
563
+ if (_response.ok) {
564
+ return {
565
+ data: _response.body,
566
+ rawResponse: _response.rawResponse,
567
+ };
568
+ }
569
+ if (_response.error.reason === "status-code") {
570
+ switch (_response.error.statusCode) {
571
+ case 400:
572
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
573
+ case 401:
574
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
575
+ case 402:
576
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
577
+ case 403:
578
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
579
+ case 404:
580
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
581
+ case 409:
582
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
583
+ case 413:
584
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
585
+ case 422:
586
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
587
+ case 429:
588
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
589
+ case 500:
590
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
591
+ default:
592
+ throw new errors.NordletApiError({
593
+ statusCode: _response.error.statusCode,
594
+ body: _response.error.body,
595
+ rawResponse: _response.rawResponse,
596
+ });
597
+ }
598
+ }
599
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/list");
600
+ }
358
601
  /**
359
602
  * @param {NordletApi.AdvanceHoldersBalancesCashRequest} request
360
603
  * @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * employeeId: "employeeId",
5
+ * date: "2026-07-01",
6
+ * lines: [{
7
+ * description: "description",
8
+ * accountCode: "accountCode",
9
+ * netAmount: "121.00"
10
+ * }]
11
+ * }
12
+ */
13
+ export interface ExpenseReportsCreateCashRequest {
14
+ employeeId: string;
15
+ date: string;
16
+ notes?: string;
17
+ lines: ExpenseReportsCreateCashRequest.Lines.Item[];
18
+ }
19
+ export declare namespace ExpenseReportsCreateCashRequest {
20
+ type Lines = Lines.Item[];
21
+ namespace Lines {
22
+ interface Item {
23
+ description: string;
24
+ documentNumber?: string | undefined;
25
+ accountCode: string;
26
+ netAmount: string;
27
+ vatAmount?: string | undefined;
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface ExpenseReportsGetCashRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ExpenseReportsListCashRequest {
6
+ page?: number;
7
+ pageSize?: number;
8
+ sort?: ExpenseReportsListCashRequest.Sort.Item[];
9
+ filter?: ExpenseReportsListCashRequest.Filter.Item[];
10
+ /** Numeric fields to sum over every row matching the filter (not only the current page) */
11
+ totals?: string[];
12
+ }
13
+ export declare namespace ExpenseReportsListCashRequest {
14
+ type Sort = Sort.Item[];
15
+ namespace Sort {
16
+ interface Item {
17
+ field: string;
18
+ dir?: Item.Dir | undefined;
19
+ }
20
+ namespace Item {
21
+ const Dir: {
22
+ readonly Asc: "asc";
23
+ readonly Desc: "desc";
24
+ };
25
+ type Dir = (typeof Dir)[keyof typeof Dir];
26
+ }
27
+ }
28
+ type Filter = Filter.Item[];
29
+ namespace Filter {
30
+ interface Item {
31
+ field: string;
32
+ op: Item.Op;
33
+ value: Item.Value;
34
+ }
35
+ namespace Item {
36
+ const Op: {
37
+ readonly Eq: "eq";
38
+ readonly Ne: "ne";
39
+ readonly Contains: "contains";
40
+ readonly Gte: "gte";
41
+ readonly Lte: "lte";
42
+ readonly In: "in";
43
+ };
44
+ type Op = (typeof Op)[keyof typeof Op];
45
+ type Value = string | number | boolean | (string | number)[];
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExpenseReportsListCashRequest = void 0;
5
+ var ExpenseReportsListCashRequest;
6
+ (function (ExpenseReportsListCashRequest) {
7
+ let Sort;
8
+ (function (Sort) {
9
+ let Item;
10
+ (function (Item) {
11
+ Item.Dir = {
12
+ Asc: "asc",
13
+ Desc: "desc",
14
+ };
15
+ })(Item = Sort.Item || (Sort.Item = {}));
16
+ })(Sort = ExpenseReportsListCashRequest.Sort || (ExpenseReportsListCashRequest.Sort = {}));
17
+ let Filter;
18
+ (function (Filter) {
19
+ let Item;
20
+ (function (Item) {
21
+ Item.Op = {
22
+ Eq: "eq",
23
+ Ne: "ne",
24
+ Contains: "contains",
25
+ Gte: "gte",
26
+ Lte: "lte",
27
+ In: "in",
28
+ };
29
+ })(Item = Filter.Item || (Filter.Item = {}));
30
+ })(Filter = ExpenseReportsListCashRequest.Filter || (ExpenseReportsListCashRequest.Filter = {}));
31
+ })(ExpenseReportsListCashRequest || (exports.ExpenseReportsListCashRequest = ExpenseReportsListCashRequest = {}));
@@ -4,8 +4,7 @@
4
4
  * type: "receipt",
5
5
  * date: "2026-07-01",
6
6
  * amount: "121.0000",
7
- * purpose: "purpose",
8
- * counterAccountCode: "counterAccountCode"
7
+ * purpose: "purpose"
9
8
  * }
10
9
  */
11
10
  export interface OrdersCreateCashRequest {
@@ -13,8 +12,10 @@ export interface OrdersCreateCashRequest {
13
12
  date: string;
14
13
  amount: string;
15
14
  purpose: string;
16
- counterAccountCode: string;
15
+ counterAccountCode?: string;
17
16
  cashAccountCode?: string;
17
+ saleInvoiceId?: string;
18
+ purchaseInvoiceId?: string;
18
19
  series?: string;
19
20
  partnerId?: string;
20
21
  employeeId?: string;
@@ -1,5 +1,8 @@
1
1
  export type { AdvanceHoldersBalancesCashRequest } from "./AdvanceHoldersBalancesCashRequest.js";
2
2
  export type { BalanceCashRequest } from "./BalanceCashRequest.js";
3
+ export type { ExpenseReportsCreateCashRequest } from "./ExpenseReportsCreateCashRequest.js";
4
+ export type { ExpenseReportsGetCashRequest } from "./ExpenseReportsGetCashRequest.js";
5
+ export { ExpenseReportsListCashRequest } from "./ExpenseReportsListCashRequest.js";
3
6
  export { OrdersCreateCashRequest } from "./OrdersCreateCashRequest.js";
4
7
  export type { OrdersGetCashRequest } from "./OrdersGetCashRequest.js";
5
8
  export { OrdersListCashRequest } from "./OrdersListCashRequest.js";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrdersListCashRequest = exports.OrdersCreateCashRequest = void 0;
3
+ exports.OrdersListCashRequest = exports.OrdersCreateCashRequest = exports.ExpenseReportsListCashRequest = void 0;
4
+ var ExpenseReportsListCashRequest_js_1 = require("./ExpenseReportsListCashRequest.js");
5
+ Object.defineProperty(exports, "ExpenseReportsListCashRequest", { enumerable: true, get: function () { return ExpenseReportsListCashRequest_js_1.ExpenseReportsListCashRequest; } });
4
6
  var OrdersCreateCashRequest_js_1 = require("./OrdersCreateCashRequest.js");
5
7
  Object.defineProperty(exports, "OrdersCreateCashRequest", { enumerable: true, get: function () { return OrdersCreateCashRequest_js_1.OrdersCreateCashRequest; } });
6
8
  var OrdersListCashRequest_js_1 = require("./OrdersListCashRequest.js");
@@ -10,6 +10,7 @@ export declare namespace AdvanceHoldersBalancesCashResponse {
10
10
  lastName: string;
11
11
  issued: string;
12
12
  returned: string;
13
+ settled: string;
13
14
  balance: string;
14
15
  }
15
16
  }
@@ -0,0 +1,26 @@
1
+ export interface ExpenseReportsCreateCashResponse {
2
+ id: string;
3
+ number: string;
4
+ employeeId: string;
5
+ date: string;
6
+ netTotal: string;
7
+ vatTotal: string;
8
+ total: string;
9
+ journalTransactionId: string | null;
10
+ notes: string | null;
11
+ createdAt: string;
12
+ lines: ExpenseReportsCreateCashResponse.Lines.Item[];
13
+ }
14
+ export declare namespace ExpenseReportsCreateCashResponse {
15
+ type Lines = Lines.Item[];
16
+ namespace Lines {
17
+ interface Item {
18
+ id: string;
19
+ description: string;
20
+ documentNumber: string | null;
21
+ accountCode: string;
22
+ netAmount: string;
23
+ vatAmount: string;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ export interface ExpenseReportsGetCashResponse {
2
+ id: string;
3
+ number: string;
4
+ employeeId: string;
5
+ date: string;
6
+ netTotal: string;
7
+ vatTotal: string;
8
+ total: string;
9
+ journalTransactionId: string | null;
10
+ notes: string | null;
11
+ createdAt: string;
12
+ lines: ExpenseReportsGetCashResponse.Lines.Item[];
13
+ }
14
+ export declare namespace ExpenseReportsGetCashResponse {
15
+ type Lines = Lines.Item[];
16
+ namespace Lines {
17
+ interface Item {
18
+ id: string;
19
+ description: string;
20
+ documentNumber: string | null;
21
+ accountCode: string;
22
+ netAmount: string;
23
+ vatAmount: string;
24
+ }
25
+ }
26
+ }