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.
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +28 -20
- package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
- package/dist/api/resources/agreements/client/Client.d.ts +42 -0
- package/dist/api/resources/agreements/client/Client.js +158 -0
- package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
- package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
- package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
- package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
- package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
- package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
- package/dist/api/resources/agreements/types/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/index.js +2 -0
- package/dist/api/resources/assets/client/Client.d.ts +42 -0
- package/dist/api/resources/assets/client/Client.js +155 -0
- package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
- package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
- package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
- package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
- package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/index.d.ts +2 -0
- package/dist/api/resources/assets/types/index.js +2 -0
- package/dist/api/resources/bank/client/Client.d.ts +27 -0
- package/dist/api/resources/bank/client/Client.js +85 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +33 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +18 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +3 -2
- package/dist/api/resources/bank/client/requests/index.js +7 -1
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -0
- package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
- package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
- package/dist/api/resources/bank/types/index.d.ts +1 -0
- package/dist/api/resources/bank/types/index.js +1 -0
- package/dist/api/resources/capture/client/Client.d.ts +2 -0
- package/dist/api/resources/capture/client/Client.js +2 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +31 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
- package/dist/api/resources/capture/client/requests/index.js +3 -1
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +95 -0
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
- package/dist/api/resources/cash/client/Client.d.ts +71 -2
- package/dist/api/resources/cash/client/Client.js +245 -2
- package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
- package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
- package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
- package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
- package/dist/api/resources/cash/client/requests/index.js +3 -1
- package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
- package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
- package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
- package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
- package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
- package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
- package/dist/api/resources/cash/types/index.d.ts +3 -0
- package/dist/api/resources/cash/types/index.js +3 -0
- package/dist/api/resources/declarations/client/Client.d.ts +93 -1
- package/dist/api/resources/declarations/client/Client.js +325 -1
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/index.js +4 -0
- package/dist/api/resources/hr/client/Client.d.ts +178 -0
- package/dist/api/resources/hr/client/Client.js +642 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
- package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
- package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
- package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
- package/dist/api/resources/hr/client/requests/index.js +5 -1
- package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
- package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
- package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
- package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
- package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
- package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
- package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
- package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
- package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
- package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
- package/dist/api/resources/hr/types/index.d.ts +8 -0
- package/dist/api/resources/hr/types/index.js +8 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/inventory/client/Client.d.ts +22 -0
- package/dist/api/resources/inventory/client/Client.js +80 -0
- package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
- package/dist/api/resources/inventory/types/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.js +1 -0
- package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
- package/dist/api/resources/partners/client/Client.d.ts +23 -0
- package/dist/api/resources/partners/client/Client.js +78 -0
- package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
- package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
- package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
- package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
- package/dist/api/resources/partners/types/index.d.ts +1 -0
- package/dist/api/resources/partners/types/index.js +1 -0
- package/dist/api/resources/payroll/client/Client.d.ts +23 -0
- package/dist/api/resources/payroll/client/Client.js +81 -0
- package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
- package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
- package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +5 -0
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +5 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +5 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +5 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +52 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
- package/dist/api/resources/payroll/types/index.d.ts +1 -0
- package/dist/api/resources/payroll/types/index.js +1 -0
- package/dist/api/resources/peppol/client/Client.d.ts +58 -0
- package/dist/api/resources/peppol/client/Client.js +207 -0
- package/dist/api/resources/peppol/client/index.d.ts +1 -0
- package/dist/api/resources/peppol/client/index.js +17 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
- package/dist/api/resources/peppol/client/requests/index.js +2 -0
- package/dist/api/resources/peppol/exports.d.ts +2 -0
- package/dist/api/resources/peppol/exports.js +21 -0
- package/dist/api/resources/peppol/index.d.ts +2 -0
- package/dist/api/resources/peppol/index.js +18 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/index.d.ts +3 -0
- package/dist/api/resources/peppol/types/index.js +19 -0
- package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
- package/dist/api/resources/platformSellers/client/Client.js +458 -0
- package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
- package/dist/api/resources/platformSellers/client/index.js +17 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
- package/dist/api/resources/platformSellers/exports.d.ts +2 -0
- package/dist/api/resources/platformSellers/exports.js +21 -0
- package/dist/api/resources/platformSellers/index.d.ts +2 -0
- package/dist/api/resources/platformSellers/index.js +18 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/types/index.js +21 -0
- package/dist/api/resources/pos/client/Client.d.ts +156 -0
- package/dist/api/resources/pos/client/Client.js +541 -0
- package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
- package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
- package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
- package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
- package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
- package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
- package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
- package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
- package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
- package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
- package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
- package/dist/api/resources/pos/client/requests/index.js +5 -1
- package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
- package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
- package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
- package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
- package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
- package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
- package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
- package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
- package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
- package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
- package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
- package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
- package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
- package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
- package/dist/api/resources/pos/types/index.d.ts +7 -0
- package/dist/api/resources/pos/types/index.js +7 -0
- package/dist/api/resources/purchases/client/Client.d.ts +40 -0
- package/dist/api/resources/purchases/client/Client.js +156 -0
- package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
- package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
- package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
- package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/index.js +3 -1
- package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
- package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
- package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
- package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
- package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/index.d.ts +2 -0
- package/dist/api/resources/purchases/types/index.js +2 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
- package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
- package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +26 -0
- package/dist/api/resources/sales/client/Client.js +84 -0
- package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
- package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
- package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/index.d.ts +1 -0
- package/dist/api/resources/sales/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +5 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +5 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +5 -0
- package/package.json +1 -1
|
@@ -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[];
|
|
@@ -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,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,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,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,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,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);
|