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
@@ -364,6 +364,86 @@ class InventoryClient {
364
364
  }
365
365
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/warehouses/list");
366
366
  }
367
+ /**
368
+ * @param {NordletApi.WarehousesUpdateInventoryRequest} request
369
+ * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
370
+ *
371
+ * @throws {@link NordletApi.BadRequestError}
372
+ * @throws {@link NordletApi.UnauthorizedError}
373
+ * @throws {@link NordletApi.PaymentRequiredError}
374
+ * @throws {@link NordletApi.ForbiddenError}
375
+ * @throws {@link NordletApi.NotFoundError}
376
+ * @throws {@link NordletApi.ConflictError}
377
+ * @throws {@link NordletApi.ContentTooLargeError}
378
+ * @throws {@link NordletApi.UnprocessableEntityError}
379
+ * @throws {@link NordletApi.TooManyRequestsError}
380
+ * @throws {@link NordletApi.InternalServerError}
381
+ *
382
+ * @example
383
+ * await client.inventory.warehousesUpdate({
384
+ * id: "id"
385
+ * })
386
+ */
387
+ warehousesUpdate(request, requestOptions) {
388
+ return core.HttpResponsePromise.fromPromise(this.__warehousesUpdate(request, requestOptions));
389
+ }
390
+ async __warehousesUpdate(request, requestOptions) {
391
+ const _authRequest = await this._options.authProvider.getAuthRequest();
392
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
393
+ const _response = await core.fetcher({
394
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
395
+ (await core.Supplier.get(this._options.environment)) ??
396
+ environments.NordletApiEnvironment.Production, "v1/inventory/warehouses/update"),
397
+ method: "POST",
398
+ headers: _headers,
399
+ contentType: "application/json",
400
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
401
+ requestType: "json",
402
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
403
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
404
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
405
+ abortSignal: requestOptions?.abortSignal,
406
+ fetchFn: this._options?.fetch,
407
+ logging: this._options.logging,
408
+ });
409
+ if (_response.ok) {
410
+ return {
411
+ data: _response.body,
412
+ rawResponse: _response.rawResponse,
413
+ };
414
+ }
415
+ if (_response.error.reason === "status-code") {
416
+ switch (_response.error.statusCode) {
417
+ case 400:
418
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
419
+ case 401:
420
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
421
+ case 402:
422
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
423
+ case 403:
424
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
425
+ case 404:
426
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
427
+ case 409:
428
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
429
+ case 413:
430
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
431
+ case 422:
432
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
433
+ case 429:
434
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
435
+ case 500:
436
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
437
+ default:
438
+ throw new errors.NordletApiError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ rawResponse: _response.rawResponse,
442
+ });
443
+ }
444
+ }
445
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/warehouses/update");
446
+ }
367
447
  /**
368
448
  * @param {NordletApi.StockReceiveInventoryRequest} request
369
449
  * @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,4 +9,5 @@ export interface WarehousesCreateInventoryRequest {
9
9
  code: string;
10
10
  name: string;
11
11
  isDefault?: boolean;
12
+ countryCode?: string | null;
12
13
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface WarehousesUpdateInventoryRequest {
8
+ id: string;
9
+ name?: string;
10
+ countryCode?: string | null;
11
+ }
@@ -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 });
@@ -19,3 +19,4 @@ export type { StockTransferInventoryRequest } from "./StockTransferInventoryRequ
19
19
  export type { StockWriteOffInventoryRequest } from "./StockWriteOffInventoryRequest.js";
20
20
  export type { WarehousesCreateInventoryRequest } from "./WarehousesCreateInventoryRequest.js";
21
21
  export { WarehousesListInventoryRequest } from "./WarehousesListInventoryRequest.js";
22
+ export type { WarehousesUpdateInventoryRequest } from "./WarehousesUpdateInventoryRequest.js";
@@ -7,6 +7,7 @@ export interface LandedCostsCreateInventoryResponse {
7
7
  sourceInvoiceId: string | null;
8
8
  notes: string | null;
9
9
  createdAt: string;
10
+ journalTransactionId: string | null;
10
11
  lines: LandedCostsCreateInventoryResponse.Lines.Item[];
11
12
  }
12
13
  export declare namespace LandedCostsCreateInventoryResponse {
@@ -7,6 +7,7 @@ export interface LandedCostsGetInventoryResponse {
7
7
  sourceInvoiceId: string | null;
8
8
  notes: string | null;
9
9
  createdAt: string;
10
+ journalTransactionId: string | null;
10
11
  lines: LandedCostsGetInventoryResponse.Lines.Item[];
11
12
  }
12
13
  export declare namespace LandedCostsGetInventoryResponse {
@@ -3,5 +3,6 @@ export interface WarehousesCreateInventoryResponse {
3
3
  code: string;
4
4
  name: string;
5
5
  isDefault: boolean;
6
+ countryCode: string | null;
6
7
  createdAt: string;
7
8
  }
@@ -15,6 +15,7 @@ export declare namespace WarehousesListInventoryResponse {
15
15
  code: string;
16
16
  name: string;
17
17
  isDefault: boolean;
18
+ countryCode: string | null;
18
19
  createdAt: string;
19
20
  }
20
21
  }
@@ -0,0 +1,8 @@
1
+ export interface WarehousesUpdateInventoryResponse {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ isDefault: boolean;
6
+ countryCode: string | null;
7
+ createdAt: string;
8
+ }
@@ -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 });
@@ -19,3 +19,4 @@ export * from "./StockTransferInventoryResponse.js";
19
19
  export * from "./StockWriteOffInventoryResponse.js";
20
20
  export * from "./WarehousesCreateInventoryResponse.js";
21
21
  export * from "./WarehousesListInventoryResponse.js";
22
+ export * from "./WarehousesUpdateInventoryResponse.js";
@@ -35,3 +35,4 @@ __exportStar(require("./StockTransferInventoryResponse.js"), exports);
35
35
  __exportStar(require("./StockWriteOffInventoryResponse.js"), exports);
36
36
  __exportStar(require("./WarehousesCreateInventoryResponse.js"), exports);
37
37
  __exportStar(require("./WarehousesListInventoryResponse.js"), exports);
38
+ __exportStar(require("./WarehousesUpdateInventoryResponse.js"), exports);
@@ -10,6 +10,7 @@
10
10
  export interface JournalTransactionsCreateLedgerRequest {
11
11
  date: string;
12
12
  description?: string;
13
+ currency?: string;
13
14
  entries: JournalTransactionsCreateLedgerRequest.Entries.Item[];
14
15
  }
15
16
  export declare namespace JournalTransactionsCreateLedgerRequest {
@@ -27,6 +27,7 @@ export declare namespace PostingRulesUpdateLedgerRequest {
27
27
  readonly PurchasesVatReceivable: "purchases.vatReceivable";
28
28
  readonly PurchasesGoodsForResale: "purchases.goodsForResale";
29
29
  readonly PurchasesDefaultExpense: "purchases.defaultExpense";
30
+ readonly PurchasesPrepaidExpenses: "purchases.prepaidExpenses";
30
31
  readonly InventoryCogs: "inventory.cogs";
31
32
  readonly InventoryStock: "inventory.stock";
32
33
  readonly ProductionLaborApplied: "production.laborApplied";
@@ -43,6 +44,7 @@ export declare namespace PostingRulesUpdateLedgerRequest {
43
44
  readonly AssetsDisposalGain: "assets.disposalGain";
44
45
  readonly AssetsDisposalLoss: "assets.disposalLoss";
45
46
  readonly AssetsDisposalProceeds: "assets.disposalProceeds";
47
+ readonly CashAdvances: "cash.advances";
46
48
  readonly ClosingRetainedEarnings: "closing.retainedEarnings";
47
49
  };
48
50
  type Key = (typeof Key)[keyof typeof Key];
@@ -18,6 +18,7 @@ var PostingRulesUpdateLedgerRequest;
18
18
  PurchasesVatReceivable: "purchases.vatReceivable",
19
19
  PurchasesGoodsForResale: "purchases.goodsForResale",
20
20
  PurchasesDefaultExpense: "purchases.defaultExpense",
21
+ PurchasesPrepaidExpenses: "purchases.prepaidExpenses",
21
22
  InventoryCogs: "inventory.cogs",
22
23
  InventoryStock: "inventory.stock",
23
24
  ProductionLaborApplied: "production.laborApplied",
@@ -34,6 +35,7 @@ var PostingRulesUpdateLedgerRequest;
34
35
  AssetsDisposalGain: "assets.disposalGain",
35
36
  AssetsDisposalLoss: "assets.disposalLoss",
36
37
  AssetsDisposalProceeds: "assets.disposalProceeds",
38
+ CashAdvances: "cash.advances",
37
39
  ClosingRetainedEarnings: "closing.retainedEarnings",
38
40
  };
39
41
  })(Item = Rules.Item || (Rules.Item = {}));
@@ -505,6 +505,29 @@ export declare class PartnersClient {
505
505
  */
506
506
  delete(request: NordletApi.DeletePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<NordletApi.DeletePartnersResponse>;
507
507
  private __delete;
508
+ /**
509
+ * @param {NordletApi.MergePartnersRequest} request
510
+ * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
511
+ *
512
+ * @throws {@link NordletApi.BadRequestError}
513
+ * @throws {@link NordletApi.UnauthorizedError}
514
+ * @throws {@link NordletApi.PaymentRequiredError}
515
+ * @throws {@link NordletApi.ForbiddenError}
516
+ * @throws {@link NordletApi.NotFoundError}
517
+ * @throws {@link NordletApi.ConflictError}
518
+ * @throws {@link NordletApi.ContentTooLargeError}
519
+ * @throws {@link NordletApi.UnprocessableEntityError}
520
+ * @throws {@link NordletApi.TooManyRequestsError}
521
+ * @throws {@link NordletApi.InternalServerError}
522
+ *
523
+ * @example
524
+ * await client.partners.merge({
525
+ * sourceId: "sourceId",
526
+ * targetId: "targetId"
527
+ * })
528
+ */
529
+ merge(request: NordletApi.MergePartnersRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<NordletApi.MergePartnersResponse>;
530
+ private __merge;
508
531
  /**
509
532
  * Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.
510
533
  *
@@ -1861,6 +1861,84 @@ class PartnersClient {
1861
1861
  }
1862
1862
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/delete");
1863
1863
  }
1864
+ /**
1865
+ * @param {NordletApi.MergePartnersRequest} request
1866
+ * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
1867
+ *
1868
+ * @throws {@link NordletApi.BadRequestError}
1869
+ * @throws {@link NordletApi.UnauthorizedError}
1870
+ * @throws {@link NordletApi.PaymentRequiredError}
1871
+ * @throws {@link NordletApi.ForbiddenError}
1872
+ * @throws {@link NordletApi.NotFoundError}
1873
+ * @throws {@link NordletApi.ConflictError}
1874
+ * @throws {@link NordletApi.ContentTooLargeError}
1875
+ * @throws {@link NordletApi.UnprocessableEntityError}
1876
+ * @throws {@link NordletApi.TooManyRequestsError}
1877
+ * @throws {@link NordletApi.InternalServerError}
1878
+ *
1879
+ * @example
1880
+ * await client.partners.merge({
1881
+ * sourceId: "sourceId",
1882
+ * targetId: "targetId"
1883
+ * })
1884
+ */
1885
+ merge(request, requestOptions) {
1886
+ return core.HttpResponsePromise.fromPromise(this.__merge(request, requestOptions));
1887
+ }
1888
+ async __merge(request, requestOptions) {
1889
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1890
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1891
+ const _response = await core.fetcher({
1892
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1893
+ (await core.Supplier.get(this._options.environment)) ??
1894
+ environments.NordletApiEnvironment.Production, "v1/partners/merge"),
1895
+ method: "POST",
1896
+ headers: _headers,
1897
+ contentType: "application/json",
1898
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1899
+ requestType: "json",
1900
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1901
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1902
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1903
+ abortSignal: requestOptions?.abortSignal,
1904
+ fetchFn: this._options?.fetch,
1905
+ logging: this._options.logging,
1906
+ });
1907
+ if (_response.ok) {
1908
+ return { data: _response.body, rawResponse: _response.rawResponse };
1909
+ }
1910
+ if (_response.error.reason === "status-code") {
1911
+ switch (_response.error.statusCode) {
1912
+ case 400:
1913
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1914
+ case 401:
1915
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1916
+ case 402:
1917
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1918
+ case 403:
1919
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1920
+ case 404:
1921
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1922
+ case 409:
1923
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1924
+ case 413:
1925
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1926
+ case 422:
1927
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1928
+ case 429:
1929
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1930
+ case 500:
1931
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1932
+ default:
1933
+ throw new errors.NordletApiError({
1934
+ statusCode: _response.error.statusCode,
1935
+ body: _response.error.body,
1936
+ rawResponse: _response.rawResponse,
1937
+ });
1938
+ }
1939
+ }
1940
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/merge");
1941
+ }
1864
1942
  /**
1865
1943
  * Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.
1866
1944
  *
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * sourceId: "sourceId",
5
+ * targetId: "targetId"
6
+ * }
7
+ */
8
+ export interface MergePartnersRequest {
9
+ sourceId: string;
10
+ targetId: string;
11
+ }
@@ -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 });
@@ -28,6 +28,7 @@ export type { InquiriesGetPartnersRequest } from "./InquiriesGetPartnersRequest.
28
28
  export { InquiriesListPartnersRequest } from "./InquiriesListPartnersRequest.js";
29
29
  export { InquiriesUpdatePartnersRequest } from "./InquiriesUpdatePartnersRequest.js";
30
30
  export { ListPartnersRequest } from "./ListPartnersRequest.js";
31
+ export type { MergePartnersRequest } from "./MergePartnersRequest.js";
31
32
  export type { StatusesCreatePartnersRequest } from "./StatusesCreatePartnersRequest.js";
32
33
  export type { StatusesDeletePartnersRequest } from "./StatusesDeletePartnersRequest.js";
33
34
  export type { StatusesListPartnersRequest } from "./StatusesListPartnersRequest.js";
@@ -0,0 +1,15 @@
1
+ export interface MergePartnersResponse {
2
+ targetId: string;
3
+ sourceId: string;
4
+ moved: MergePartnersResponse.Moved.Item[];
5
+ }
6
+ export declare namespace MergePartnersResponse {
7
+ type Moved = Moved.Item[];
8
+ namespace Moved {
9
+ interface Item {
10
+ table: string;
11
+ column: string;
12
+ rows: number;
13
+ }
14
+ }
15
+ }
@@ -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 });
@@ -28,6 +28,7 @@ export * from "./InquiriesGetPartnersResponse.js";
28
28
  export * from "./InquiriesListPartnersResponse.js";
29
29
  export * from "./InquiriesUpdatePartnersResponse.js";
30
30
  export * from "./ListPartnersResponse.js";
31
+ export * from "./MergePartnersResponse.js";
31
32
  export * from "./StatusesCreatePartnersResponse.js";
32
33
  export * from "./StatusesDeletePartnersResponse.js";
33
34
  export * from "./StatusesListPartnersResponse.js";
@@ -44,6 +44,7 @@ __exportStar(require("./InquiriesGetPartnersResponse.js"), exports);
44
44
  __exportStar(require("./InquiriesListPartnersResponse.js"), exports);
45
45
  __exportStar(require("./InquiriesUpdatePartnersResponse.js"), exports);
46
46
  __exportStar(require("./ListPartnersResponse.js"), exports);
47
+ __exportStar(require("./MergePartnersResponse.js"), exports);
47
48
  __exportStar(require("./StatusesCreatePartnersResponse.js"), exports);
48
49
  __exportStar(require("./StatusesDeletePartnersResponse.js"), exports);
49
50
  __exportStar(require("./StatusesListPartnersResponse.js"), exports);
@@ -230,6 +230,29 @@ export declare class PayrollClient {
230
230
  */
231
231
  runsApprove(request: NordletApi.RunsApprovePayrollRequest, requestOptions?: PayrollClient.RequestOptions): core.HttpResponsePromise<NordletApi.RunsApprovePayrollResponse>;
232
232
  private __runsApprove;
233
+ /**
234
+ * @param {NordletApi.RunsReversePayrollRequest} request
235
+ * @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
236
+ *
237
+ * @throws {@link NordletApi.BadRequestError}
238
+ * @throws {@link NordletApi.UnauthorizedError}
239
+ * @throws {@link NordletApi.PaymentRequiredError}
240
+ * @throws {@link NordletApi.ForbiddenError}
241
+ * @throws {@link NordletApi.NotFoundError}
242
+ * @throws {@link NordletApi.ConflictError}
243
+ * @throws {@link NordletApi.ContentTooLargeError}
244
+ * @throws {@link NordletApi.UnprocessableEntityError}
245
+ * @throws {@link NordletApi.TooManyRequestsError}
246
+ * @throws {@link NordletApi.InternalServerError}
247
+ *
248
+ * @example
249
+ * await client.payroll.runsReverse({
250
+ * id: "id",
251
+ * reason: "reason"
252
+ * })
253
+ */
254
+ runsReverse(request: NordletApi.RunsReversePayrollRequest, requestOptions?: PayrollClient.RequestOptions): core.HttpResponsePromise<NordletApi.RunsReversePayrollResponse>;
255
+ private __runsReverse;
233
256
  /**
234
257
  * @param {NordletApi.RunsCancelPayrollRequest} request
235
258
  * @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -835,6 +835,87 @@ class PayrollClient {
835
835
  }
836
836
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/payroll/runs/approve");
837
837
  }
838
+ /**
839
+ * @param {NordletApi.RunsReversePayrollRequest} request
840
+ * @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
841
+ *
842
+ * @throws {@link NordletApi.BadRequestError}
843
+ * @throws {@link NordletApi.UnauthorizedError}
844
+ * @throws {@link NordletApi.PaymentRequiredError}
845
+ * @throws {@link NordletApi.ForbiddenError}
846
+ * @throws {@link NordletApi.NotFoundError}
847
+ * @throws {@link NordletApi.ConflictError}
848
+ * @throws {@link NordletApi.ContentTooLargeError}
849
+ * @throws {@link NordletApi.UnprocessableEntityError}
850
+ * @throws {@link NordletApi.TooManyRequestsError}
851
+ * @throws {@link NordletApi.InternalServerError}
852
+ *
853
+ * @example
854
+ * await client.payroll.runsReverse({
855
+ * id: "id",
856
+ * reason: "reason"
857
+ * })
858
+ */
859
+ runsReverse(request, requestOptions) {
860
+ return core.HttpResponsePromise.fromPromise(this.__runsReverse(request, requestOptions));
861
+ }
862
+ async __runsReverse(request, requestOptions) {
863
+ const _authRequest = await this._options.authProvider.getAuthRequest();
864
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
865
+ const _response = await core.fetcher({
866
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
867
+ (await core.Supplier.get(this._options.environment)) ??
868
+ environments.NordletApiEnvironment.Production, "v1/payroll/runs/reverse"),
869
+ method: "POST",
870
+ headers: _headers,
871
+ contentType: "application/json",
872
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
873
+ requestType: "json",
874
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
875
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
876
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
877
+ abortSignal: requestOptions?.abortSignal,
878
+ fetchFn: this._options?.fetch,
879
+ logging: this._options.logging,
880
+ });
881
+ if (_response.ok) {
882
+ return {
883
+ data: _response.body,
884
+ rawResponse: _response.rawResponse,
885
+ };
886
+ }
887
+ if (_response.error.reason === "status-code") {
888
+ switch (_response.error.statusCode) {
889
+ case 400:
890
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
891
+ case 401:
892
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
893
+ case 402:
894
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
895
+ case 403:
896
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
897
+ case 404:
898
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
899
+ case 409:
900
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
901
+ case 413:
902
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
903
+ case 422:
904
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
905
+ case 429:
906
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
907
+ case 500:
908
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
909
+ default:
910
+ throw new errors.NordletApiError({
911
+ statusCode: _response.error.statusCode,
912
+ body: _response.error.body,
913
+ rawResponse: _response.rawResponse,
914
+ });
915
+ }
916
+ }
917
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/payroll/runs/reverse");
918
+ }
838
919
  /**
839
920
  * @param {NordletApi.RunsCancelPayrollRequest} request
840
921
  * @param {PayrollClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id",
5
+ * reason: "reason"
6
+ * }
7
+ */
8
+ export interface RunsReversePayrollRequest {
9
+ id: string;
10
+ reason: string;
11
+ }
@@ -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 });
@@ -8,5 +8,6 @@ export type { RunsCancelPayrollRequest } from "./RunsCancelPayrollRequest.js";
8
8
  export type { RunsCreatePayrollRequest } from "./RunsCreatePayrollRequest.js";
9
9
  export type { RunsGetPayrollRequest } from "./RunsGetPayrollRequest.js";
10
10
  export { RunsListPayrollRequest } from "./RunsListPayrollRequest.js";
11
+ export type { RunsReversePayrollRequest } from "./RunsReversePayrollRequest.js";
11
12
  export type { SchedulesCreatePayrollRequest } from "./SchedulesCreatePayrollRequest.js";
12
13
  export type { SchedulesListPayrollRequest } from "./SchedulesListPayrollRequest.js";
@@ -12,16 +12,21 @@ export interface RunsApprovePayrollResponse {
12
12
  employerContributionsTotal: string;
13
13
  componentTotals: RunsApprovePayrollResponse.ComponentTotals.Item[];
14
14
  netTotal: string;
15
+ paidAmount: string;
15
16
  journalTransactionId: string | null;
16
17
  notes: string | null;
17
18
  warnings: string[];
18
19
  createdAt: string;
19
20
  approvedAt: string | null;
21
+ reversedAt: string | null;
22
+ reversalJournalTransactionId: string | null;
23
+ reversalReason: string | null;
20
24
  }
21
25
  export declare namespace RunsApprovePayrollResponse {
22
26
  const Status: {
23
27
  readonly Draft: "draft";
24
28
  readonly Approved: "approved";
29
+ readonly Reversed: "reversed";
25
30
  };
26
31
  type Status = (typeof Status)[keyof typeof Status];
27
32
  type ComponentTotals = ComponentTotals.Item[];
@@ -7,6 +7,7 @@ var RunsApprovePayrollResponse;
7
7
  RunsApprovePayrollResponse.Status = {
8
8
  Draft: "draft",
9
9
  Approved: "approved",
10
+ Reversed: "reversed",
10
11
  };
11
12
  let ComponentTotals;
12
13
  (function (ComponentTotals) {
@@ -12,17 +12,22 @@ export interface RunsCreatePayrollResponse {
12
12
  employerContributionsTotal: string;
13
13
  componentTotals: RunsCreatePayrollResponse.ComponentTotals.Item[];
14
14
  netTotal: string;
15
+ paidAmount: string;
15
16
  journalTransactionId: string | null;
16
17
  notes: string | null;
17
18
  warnings: string[];
18
19
  createdAt: string;
19
20
  approvedAt: string | null;
21
+ reversedAt: string | null;
22
+ reversalJournalTransactionId: string | null;
23
+ reversalReason: string | null;
20
24
  lines: RunsCreatePayrollResponse.Lines.Item[];
21
25
  }
22
26
  export declare namespace RunsCreatePayrollResponse {
23
27
  const Status: {
24
28
  readonly Draft: "draft";
25
29
  readonly Approved: "approved";
30
+ readonly Reversed: "reversed";
26
31
  };
27
32
  type Status = (typeof Status)[keyof typeof Status];
28
33
  type ComponentTotals = ComponentTotals.Item[];
@@ -7,6 +7,7 @@ var RunsCreatePayrollResponse;
7
7
  RunsCreatePayrollResponse.Status = {
8
8
  Draft: "draft",
9
9
  Approved: "approved",
10
+ Reversed: "reversed",
10
11
  };
11
12
  let ComponentTotals;
12
13
  (function (ComponentTotals) {
@@ -12,17 +12,22 @@ export interface RunsGetPayrollResponse {
12
12
  employerContributionsTotal: string;
13
13
  componentTotals: RunsGetPayrollResponse.ComponentTotals.Item[];
14
14
  netTotal: string;
15
+ paidAmount: string;
15
16
  journalTransactionId: string | null;
16
17
  notes: string | null;
17
18
  warnings: string[];
18
19
  createdAt: string;
19
20
  approvedAt: string | null;
21
+ reversedAt: string | null;
22
+ reversalJournalTransactionId: string | null;
23
+ reversalReason: string | null;
20
24
  lines: RunsGetPayrollResponse.Lines.Item[];
21
25
  }
22
26
  export declare namespace RunsGetPayrollResponse {
23
27
  const Status: {
24
28
  readonly Draft: "draft";
25
29
  readonly Approved: "approved";
30
+ readonly Reversed: "reversed";
26
31
  };
27
32
  type Status = (typeof Status)[keyof typeof Status];
28
33
  type ComponentTotals = ComponentTotals.Item[];