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
@@ -7,6 +7,7 @@ var RunsGetPayrollResponse;
7
7
  RunsGetPayrollResponse.Status = {
8
8
  Draft: "draft",
9
9
  Approved: "approved",
10
+ Reversed: "reversed",
10
11
  };
11
12
  let ComponentTotals;
12
13
  (function (ComponentTotals) {
@@ -24,16 +24,21 @@ export declare namespace RunsListPayrollResponse {
24
24
  employerContributionsTotal: string;
25
25
  componentTotals: Item.ComponentTotals.Item[];
26
26
  netTotal: string;
27
+ paidAmount: string;
27
28
  journalTransactionId: string | null;
28
29
  notes: string | null;
29
30
  warnings: string[];
30
31
  createdAt: string;
31
32
  approvedAt: string | null;
33
+ reversedAt: string | null;
34
+ reversalJournalTransactionId: string | null;
35
+ reversalReason: string | null;
32
36
  }
33
37
  namespace Item {
34
38
  const Status: {
35
39
  readonly Draft: "draft";
36
40
  readonly Approved: "approved";
41
+ readonly Reversed: "reversed";
37
42
  };
38
43
  type Status = (typeof Status)[keyof typeof Status];
39
44
  type ComponentTotals = ComponentTotals.Item[];
@@ -11,6 +11,7 @@ var RunsListPayrollResponse;
11
11
  Item_1.Status = {
12
12
  Draft: "draft",
13
13
  Approved: "approved",
14
+ Reversed: "reversed",
14
15
  };
15
16
  let ComponentTotals;
16
17
  (function (ComponentTotals) {
@@ -0,0 +1,52 @@
1
+ export interface RunsReversePayrollResponse {
2
+ id: string;
3
+ year: number;
4
+ month: number;
5
+ countryCode: string;
6
+ payDate: string | null;
7
+ status: RunsReversePayrollResponse.Status;
8
+ grossTotal: string;
9
+ taxAllowanceTotal: string;
10
+ incomeTaxTotal: string;
11
+ employeeContributionsTotal: string;
12
+ employerContributionsTotal: string;
13
+ componentTotals: RunsReversePayrollResponse.ComponentTotals.Item[];
14
+ netTotal: string;
15
+ paidAmount: string;
16
+ journalTransactionId: string | null;
17
+ notes: string | null;
18
+ warnings: string[];
19
+ createdAt: string;
20
+ approvedAt: string | null;
21
+ reversedAt: string | null;
22
+ reversalJournalTransactionId: string | null;
23
+ reversalReason: string | null;
24
+ }
25
+ export declare namespace RunsReversePayrollResponse {
26
+ const Status: {
27
+ readonly Draft: "draft";
28
+ readonly Approved: "approved";
29
+ readonly Reversed: "reversed";
30
+ };
31
+ type Status = (typeof Status)[keyof typeof Status];
32
+ type ComponentTotals = ComponentTotals.Item[];
33
+ namespace ComponentTotals {
34
+ interface Item {
35
+ code: string;
36
+ kind: Item.Kind;
37
+ amount: string;
38
+ rate?: string | undefined;
39
+ base?: string | undefined;
40
+ }
41
+ namespace Item {
42
+ const Kind: {
43
+ readonly Allowance: "allowance";
44
+ readonly EmployeeTax: "employee_tax";
45
+ readonly EmployeeContribution: "employee_contribution";
46
+ readonly EmployerContribution: "employer_contribution";
47
+ readonly EmployerPayment: "employer_payment";
48
+ };
49
+ type Kind = (typeof Kind)[keyof typeof Kind];
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RunsReversePayrollResponse = void 0;
5
+ var RunsReversePayrollResponse;
6
+ (function (RunsReversePayrollResponse) {
7
+ RunsReversePayrollResponse.Status = {
8
+ Draft: "draft",
9
+ Approved: "approved",
10
+ Reversed: "reversed",
11
+ };
12
+ let ComponentTotals;
13
+ (function (ComponentTotals) {
14
+ let Item;
15
+ (function (Item) {
16
+ Item.Kind = {
17
+ Allowance: "allowance",
18
+ EmployeeTax: "employee_tax",
19
+ EmployeeContribution: "employee_contribution",
20
+ EmployerContribution: "employer_contribution",
21
+ EmployerPayment: "employer_payment",
22
+ };
23
+ })(Item = ComponentTotals.Item || (ComponentTotals.Item = {}));
24
+ })(ComponentTotals = RunsReversePayrollResponse.ComponentTotals || (RunsReversePayrollResponse.ComponentTotals = {}));
25
+ })(RunsReversePayrollResponse || (exports.RunsReversePayrollResponse = RunsReversePayrollResponse = {}));
@@ -8,5 +8,6 @@ export * from "./RunsCancelPayrollResponse.js";
8
8
  export * from "./RunsCreatePayrollResponse.js";
9
9
  export * from "./RunsGetPayrollResponse.js";
10
10
  export * from "./RunsListPayrollResponse.js";
11
+ export * from "./RunsReversePayrollResponse.js";
11
12
  export * from "./SchedulesCreatePayrollResponse.js";
12
13
  export * from "./SchedulesListPayrollResponse.js";
@@ -24,5 +24,6 @@ __exportStar(require("./RunsCancelPayrollResponse.js"), exports);
24
24
  __exportStar(require("./RunsCreatePayrollResponse.js"), exports);
25
25
  __exportStar(require("./RunsGetPayrollResponse.js"), exports);
26
26
  __exportStar(require("./RunsListPayrollResponse.js"), exports);
27
+ __exportStar(require("./RunsReversePayrollResponse.js"), exports);
27
28
  __exportStar(require("./SchedulesCreatePayrollResponse.js"), exports);
28
29
  __exportStar(require("./SchedulesListPayrollResponse.js"), exports);
@@ -0,0 +1,58 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as NordletApi from "../../../index.js";
5
+ export declare namespace PeppolClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class PeppolClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<PeppolClient.Options>;
12
+ constructor(options: PeppolClient.Options);
13
+ /**
14
+ * Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
15
+ *
16
+ * @param {NordletApi.ParticipantsLookupPeppolRequest} request
17
+ * @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link NordletApi.BadRequestError}
20
+ * @throws {@link NordletApi.UnauthorizedError}
21
+ * @throws {@link NordletApi.PaymentRequiredError}
22
+ * @throws {@link NordletApi.ForbiddenError}
23
+ * @throws {@link NordletApi.NotFoundError}
24
+ * @throws {@link NordletApi.ConflictError}
25
+ * @throws {@link NordletApi.ContentTooLargeError}
26
+ * @throws {@link NordletApi.UnprocessableEntityError}
27
+ * @throws {@link NordletApi.TooManyRequestsError}
28
+ * @throws {@link NordletApi.InternalServerError}
29
+ *
30
+ * @example
31
+ * await client.peppol.participantsLookup()
32
+ */
33
+ participantsLookup(request?: NordletApi.ParticipantsLookupPeppolRequest, requestOptions?: PeppolClient.RequestOptions): core.HttpResponsePromise<NordletApi.ParticipantsLookupPeppolResponse>;
34
+ private __participantsLookup;
35
+ /**
36
+ * @param {NordletApi.WebhooksPeppolRequest} request
37
+ * @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link NordletApi.BadRequestError}
40
+ * @throws {@link NordletApi.UnauthorizedError}
41
+ * @throws {@link NordletApi.PaymentRequiredError}
42
+ * @throws {@link NordletApi.ForbiddenError}
43
+ * @throws {@link NordletApi.NotFoundError}
44
+ * @throws {@link NordletApi.ConflictError}
45
+ * @throws {@link NordletApi.ContentTooLargeError}
46
+ * @throws {@link NordletApi.UnprocessableEntityError}
47
+ * @throws {@link NordletApi.TooManyRequestsError}
48
+ * @throws {@link NordletApi.InternalServerError}
49
+ *
50
+ * @example
51
+ * await client.peppol.webhooks({
52
+ * provider: "recommand",
53
+ * companyId: "companyId"
54
+ * })
55
+ */
56
+ webhooks(request: NordletApi.WebhooksPeppolRequest, requestOptions?: PeppolClient.RequestOptions): core.HttpResponsePromise<NordletApi.WebhooksPeppolResponse>;
57
+ private __webhooks;
58
+ }
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PeppolClient = void 0;
38
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
39
+ const headers_js_1 = require("../../../../core/headers.js");
40
+ const core = __importStar(require("../../../../core/index.js"));
41
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
42
+ const environments = __importStar(require("../../../../environments.js"));
43
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
44
+ const errors = __importStar(require("../../../../errors/index.js"));
45
+ const NordletApi = __importStar(require("../../../index.js"));
46
+ class PeppolClient {
47
+ constructor(options) {
48
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
+ }
50
+ /**
51
+ * Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
52
+ *
53
+ * @param {NordletApi.ParticipantsLookupPeppolRequest} request
54
+ * @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link NordletApi.BadRequestError}
57
+ * @throws {@link NordletApi.UnauthorizedError}
58
+ * @throws {@link NordletApi.PaymentRequiredError}
59
+ * @throws {@link NordletApi.ForbiddenError}
60
+ * @throws {@link NordletApi.NotFoundError}
61
+ * @throws {@link NordletApi.ConflictError}
62
+ * @throws {@link NordletApi.ContentTooLargeError}
63
+ * @throws {@link NordletApi.UnprocessableEntityError}
64
+ * @throws {@link NordletApi.TooManyRequestsError}
65
+ * @throws {@link NordletApi.InternalServerError}
66
+ *
67
+ * @example
68
+ * await client.peppol.participantsLookup()
69
+ */
70
+ participantsLookup(request = {}, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__participantsLookup(request, requestOptions));
72
+ }
73
+ async __participantsLookup(request = {}, requestOptions) {
74
+ const _authRequest = await this._options.authProvider.getAuthRequest();
75
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
76
+ const _response = await core.fetcher({
77
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
78
+ (await core.Supplier.get(this._options.environment)) ??
79
+ environments.NordletApiEnvironment.Production, "v1/peppol/participants/lookup"),
80
+ method: "POST",
81
+ headers: _headers,
82
+ contentType: "application/json",
83
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
84
+ requestType: "json",
85
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
86
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
87
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
88
+ abortSignal: requestOptions?.abortSignal,
89
+ fetchFn: this._options?.fetch,
90
+ logging: this._options.logging,
91
+ });
92
+ if (_response.ok) {
93
+ return {
94
+ data: _response.body,
95
+ rawResponse: _response.rawResponse,
96
+ };
97
+ }
98
+ if (_response.error.reason === "status-code") {
99
+ switch (_response.error.statusCode) {
100
+ case 400:
101
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
102
+ case 401:
103
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
104
+ case 402:
105
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
106
+ case 403:
107
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
108
+ case 404:
109
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
110
+ case 409:
111
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
112
+ case 413:
113
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
114
+ case 422:
115
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
116
+ case 429:
117
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
118
+ case 500:
119
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
120
+ default:
121
+ throw new errors.NordletApiError({
122
+ statusCode: _response.error.statusCode,
123
+ body: _response.error.body,
124
+ rawResponse: _response.rawResponse,
125
+ });
126
+ }
127
+ }
128
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/peppol/participants/lookup");
129
+ }
130
+ /**
131
+ * @param {NordletApi.WebhooksPeppolRequest} request
132
+ * @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
133
+ *
134
+ * @throws {@link NordletApi.BadRequestError}
135
+ * @throws {@link NordletApi.UnauthorizedError}
136
+ * @throws {@link NordletApi.PaymentRequiredError}
137
+ * @throws {@link NordletApi.ForbiddenError}
138
+ * @throws {@link NordletApi.NotFoundError}
139
+ * @throws {@link NordletApi.ConflictError}
140
+ * @throws {@link NordletApi.ContentTooLargeError}
141
+ * @throws {@link NordletApi.UnprocessableEntityError}
142
+ * @throws {@link NordletApi.TooManyRequestsError}
143
+ * @throws {@link NordletApi.InternalServerError}
144
+ *
145
+ * @example
146
+ * await client.peppol.webhooks({
147
+ * provider: "recommand",
148
+ * companyId: "companyId"
149
+ * })
150
+ */
151
+ webhooks(request, requestOptions) {
152
+ return core.HttpResponsePromise.fromPromise(this.__webhooks(request, requestOptions));
153
+ }
154
+ async __webhooks(request, requestOptions) {
155
+ const { provider, companyId } = request;
156
+ const _authRequest = await this._options.authProvider.getAuthRequest();
157
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
158
+ const _response = await core.fetcher({
159
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
160
+ (await core.Supplier.get(this._options.environment)) ??
161
+ environments.NordletApiEnvironment.Production, `v1/peppol/webhooks/${core.url.encodePathParam(provider)}/${core.url.encodePathParam(companyId)}`),
162
+ method: "POST",
163
+ headers: _headers,
164
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
165
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
166
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
167
+ abortSignal: requestOptions?.abortSignal,
168
+ fetchFn: this._options?.fetch,
169
+ logging: this._options.logging,
170
+ });
171
+ if (_response.ok) {
172
+ return { data: _response.body, rawResponse: _response.rawResponse };
173
+ }
174
+ if (_response.error.reason === "status-code") {
175
+ switch (_response.error.statusCode) {
176
+ case 400:
177
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
178
+ case 401:
179
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
180
+ case 402:
181
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
182
+ case 403:
183
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
184
+ case 404:
185
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
186
+ case 409:
187
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
188
+ case 413:
189
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
190
+ case 422:
191
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
192
+ case 429:
193
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
194
+ case 500:
195
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
196
+ default:
197
+ throw new errors.NordletApiError({
198
+ statusCode: _response.error.statusCode,
199
+ body: _response.error.body,
200
+ rawResponse: _response.rawResponse,
201
+ });
202
+ }
203
+ }
204
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/peppol/webhooks/{provider}/{companyId}");
205
+ }
206
+ }
207
+ exports.PeppolClient = PeppolClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ParticipantsLookupPeppolRequest {
6
+ partnerId?: string;
7
+ participantId?: 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 });
@@ -0,0 +1,12 @@
1
+ import type * as NordletApi from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * provider: "recommand",
6
+ * companyId: "companyId"
7
+ * }
8
+ */
9
+ export interface WebhooksPeppolRequest {
10
+ provider: NordletApi.WebhooksPeppolRequestProvider;
11
+ companyId: string;
12
+ }
@@ -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,2 @@
1
+ export type { ParticipantsLookupPeppolRequest } from "./ParticipantsLookupPeppolRequest.js";
2
+ export type { WebhooksPeppolRequest } from "./WebhooksPeppolRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { PeppolClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PeppolClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "PeppolClient", { enumerable: true, get: function () { return Client_js_1.PeppolClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,9 @@
1
+ export interface ParticipantsLookupPeppolResponse {
2
+ participantId: string;
3
+ registered: boolean;
4
+ smpUrl: string | null;
5
+ accessPointUrl: string | null;
6
+ acceptsInvoice: boolean;
7
+ acceptsCreditNote: boolean;
8
+ acceptsCii: boolean;
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,6 @@
1
+ export declare const WebhooksPeppolRequestProvider: {
2
+ readonly Recommand: "recommand";
3
+ readonly Storecove: "storecove";
4
+ readonly EInvoiceBe: "e-invoice-be";
5
+ };
6
+ export type WebhooksPeppolRequestProvider = (typeof WebhooksPeppolRequestProvider)[keyof typeof WebhooksPeppolRequestProvider];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhooksPeppolRequestProvider = void 0;
5
+ exports.WebhooksPeppolRequestProvider = {
6
+ Recommand: "recommand",
7
+ Storecove: "storecove",
8
+ EInvoiceBe: "e-invoice-be",
9
+ };
@@ -0,0 +1,3 @@
1
+ export interface WebhooksPeppolResponse {
2
+ handled: boolean;
3
+ }
@@ -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,3 @@
1
+ export * from "./ParticipantsLookupPeppolResponse.js";
2
+ export * from "./WebhooksPeppolRequestProvider.js";
3
+ export * from "./WebhooksPeppolResponse.js";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ParticipantsLookupPeppolResponse.js"), exports);
18
+ __exportStar(require("./WebhooksPeppolRequestProvider.js"), exports);
19
+ __exportStar(require("./WebhooksPeppolResponse.js"), exports);