nordlet 0.3.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +28 -20
- package/dist/api/resources/account/types/MeAccountResponse.d.ts +3 -0
- package/dist/api/resources/bank/client/Client.d.ts +65 -0
- package/dist/api/resources/bank/client/Client.js +236 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +9 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +9 -0
- package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.d.ts +48 -0
- package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.js +31 -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 +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +1 -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 +5 -2
- package/dist/api/resources/bank/client/requests/index.js +7 -1
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +9 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.js +15 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +9 -0
- package/dist/api/resources/bank/types/SecuritiesGetBankResponse.d.ts +50 -0
- package/dist/api/resources/bank/types/SecuritiesGetBankResponse.js +17 -0
- package/dist/api/resources/bank/types/SecuritiesImportBankResponse.d.ts +14 -0
- package/dist/api/resources/bank/types/SecuritiesImportBankResponse.js +3 -0
- package/dist/api/resources/bank/types/SecuritiesListBankResponse.d.ts +28 -0
- package/dist/api/resources/bank/types/SecuritiesListBankResponse.js +3 -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/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
- package/dist/api/resources/bank/types/index.d.ts +3 -0
- package/dist/api/resources/bank/types/index.js +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +131 -0
- package/dist/api/resources/billing/client/Client.js +479 -0
- package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.d.ts +16 -0
- package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.js +11 -0
- package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.d.ts +11 -0
- package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.js +17 -0
- package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.d.ts +6 -0
- package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.js +4 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +6 -0
- package/dist/api/resources/billing/client/requests/index.js +5 -1
- package/dist/api/resources/billing/types/AccountGetBillingResponse.d.ts +18 -2
- package/dist/api/resources/billing/types/AccountGetBillingResponse.js +4 -0
- package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.d.ts +18 -2
- package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.js +4 -0
- package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.d.ts +4 -0
- package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.js +3 -0
- package/dist/api/resources/billing/types/TopupConfirmBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/TopupConfirmBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/UsageListBillingResponse.d.ts +1 -0
- package/dist/api/resources/billing/types/UsageListBillingResponse.js +1 -0
- package/dist/api/resources/billing/types/index.d.ts +6 -0
- package/dist/api/resources/billing/types/index.js +6 -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 +29 -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 +93 -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/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/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 +8 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +8 -0
- package/dist/api/resources/partners/client/requests/CreatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/client/requests/FindOrCreatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/client/requests/UpdatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/types/CreatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/FindOrCreatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/GetPartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/UpdatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +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/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -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/OnlineSalesReportsResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +134 -0
- package/dist/api/resources/sales/client/Client.js +482 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.d.ts +70 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.js +27 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.d.ts +48 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.d.ts +71 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.js +27 -0
- package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -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 +6 -0
- package/dist/api/resources/sales/client/requests/index.js +7 -1
- package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.js +16 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.js +3 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.js +16 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.d.ts +69 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.js +22 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.js +16 -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 +6 -0
- package/dist/api/resources/sales/types/index.js +6 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +4 -0
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { OfficersClient } from "./api/resources/officers/client/Client.js";
|
|
|
23
23
|
import { OperationTypesClient } from "./api/resources/operationTypes/client/Client.js";
|
|
24
24
|
import { PartnersClient } from "./api/resources/partners/client/Client.js";
|
|
25
25
|
import { PayrollClient } from "./api/resources/payroll/client/Client.js";
|
|
26
|
+
import { PeppolClient } from "./api/resources/peppol/client/Client.js";
|
|
27
|
+
import { PlatformSellersClient } from "./api/resources/platformSellers/client/Client.js";
|
|
26
28
|
import { PosClient } from "./api/resources/pos/client/Client.js";
|
|
27
29
|
import { ProductionClient } from "./api/resources/production/client/Client.js";
|
|
28
30
|
import { ProjectsClient } from "./api/resources/projects/client/Client.js";
|
|
@@ -52,9 +54,11 @@ export declare class NordletApiClient {
|
|
|
52
54
|
protected _documentSeries: DocumentSeriesClient | undefined;
|
|
53
55
|
protected _purchases: PurchasesClient | undefined;
|
|
54
56
|
protected _capture: CaptureClient | undefined;
|
|
57
|
+
protected _peppol: PeppolClient | undefined;
|
|
55
58
|
protected _declarations: DeclarationsClient | undefined;
|
|
56
59
|
protected _ledger: LedgerClient | undefined;
|
|
57
60
|
protected _officers: OfficersClient | undefined;
|
|
61
|
+
protected _platformSellers: PlatformSellersClient | undefined;
|
|
58
62
|
protected _migration: MigrationClient | undefined;
|
|
59
63
|
protected _assets: AssetsClient | undefined;
|
|
60
64
|
protected _hr: HrClient | undefined;
|
|
@@ -88,9 +92,11 @@ export declare class NordletApiClient {
|
|
|
88
92
|
get documentSeries(): DocumentSeriesClient;
|
|
89
93
|
get purchases(): PurchasesClient;
|
|
90
94
|
get capture(): CaptureClient;
|
|
95
|
+
get peppol(): PeppolClient;
|
|
91
96
|
get declarations(): DeclarationsClient;
|
|
92
97
|
get ledger(): LedgerClient;
|
|
93
98
|
get officers(): OfficersClient;
|
|
99
|
+
get platformSellers(): PlatformSellersClient;
|
|
94
100
|
get migration(): MigrationClient;
|
|
95
101
|
get assets(): AssetsClient;
|
|
96
102
|
get hr(): HrClient;
|
package/dist/Client.js
CHANGED
|
@@ -60,16 +60,18 @@ const Client_js_22 = require("./api/resources/officers/client/Client.js");
|
|
|
60
60
|
const Client_js_23 = require("./api/resources/operationTypes/client/Client.js");
|
|
61
61
|
const Client_js_24 = require("./api/resources/partners/client/Client.js");
|
|
62
62
|
const Client_js_25 = require("./api/resources/payroll/client/Client.js");
|
|
63
|
-
const Client_js_26 = require("./api/resources/
|
|
64
|
-
const Client_js_27 = require("./api/resources/
|
|
65
|
-
const Client_js_28 = require("./api/resources/
|
|
66
|
-
const Client_js_29 = require("./api/resources/
|
|
67
|
-
const Client_js_30 = require("./api/resources/
|
|
68
|
-
const Client_js_31 = require("./api/resources/
|
|
69
|
-
const Client_js_32 = require("./api/resources/
|
|
70
|
-
const Client_js_33 = require("./api/resources/
|
|
71
|
-
const Client_js_34 = require("./api/resources/
|
|
72
|
-
const Client_js_35 = require("./api/resources/
|
|
63
|
+
const Client_js_26 = require("./api/resources/peppol/client/Client.js");
|
|
64
|
+
const Client_js_27 = require("./api/resources/platformSellers/client/Client.js");
|
|
65
|
+
const Client_js_28 = require("./api/resources/pos/client/Client.js");
|
|
66
|
+
const Client_js_29 = require("./api/resources/production/client/Client.js");
|
|
67
|
+
const Client_js_30 = require("./api/resources/projects/client/Client.js");
|
|
68
|
+
const Client_js_31 = require("./api/resources/public/client/Client.js");
|
|
69
|
+
const Client_js_32 = require("./api/resources/purchases/client/Client.js");
|
|
70
|
+
const Client_js_33 = require("./api/resources/reference/client/Client.js");
|
|
71
|
+
const Client_js_34 = require("./api/resources/reports/client/Client.js");
|
|
72
|
+
const Client_js_35 = require("./api/resources/sales/client/Client.js");
|
|
73
|
+
const Client_js_36 = require("./api/resources/transport/client/Client.js");
|
|
74
|
+
const Client_js_37 = require("./api/resources/webhooks/client/Client.js");
|
|
73
75
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
74
76
|
const core = __importStar(require("./core/index.js"));
|
|
75
77
|
class NordletApiClient {
|
|
@@ -77,7 +79,7 @@ class NordletApiClient {
|
|
|
77
79
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
78
80
|
}
|
|
79
81
|
get reference() {
|
|
80
|
-
return (this._reference ?? (this._reference = new
|
|
82
|
+
return (this._reference ?? (this._reference = new Client_js_33.ReferenceClient(this._options)));
|
|
81
83
|
}
|
|
82
84
|
get partners() {
|
|
83
85
|
return (this._partners ?? (this._partners = new Client_js_24.PartnersClient(this._options)));
|
|
@@ -89,7 +91,7 @@ class NordletApiClient {
|
|
|
89
91
|
return (this._catalog ?? (this._catalog = new Client_js_10.CatalogClient(this._options)));
|
|
90
92
|
}
|
|
91
93
|
get sales() {
|
|
92
|
-
return (this._sales ?? (this._sales = new
|
|
94
|
+
return (this._sales ?? (this._sales = new Client_js_35.SalesClient(this._options)));
|
|
93
95
|
}
|
|
94
96
|
get operationTypes() {
|
|
95
97
|
return (this._operationTypes ?? (this._operationTypes = new Client_js_23.OperationTypesClient(this._options)));
|
|
@@ -98,11 +100,14 @@ class NordletApiClient {
|
|
|
98
100
|
return (this._documentSeries ?? (this._documentSeries = new Client_js_13.DocumentSeriesClient(this._options)));
|
|
99
101
|
}
|
|
100
102
|
get purchases() {
|
|
101
|
-
return (this._purchases ?? (this._purchases = new
|
|
103
|
+
return (this._purchases ?? (this._purchases = new Client_js_32.PurchasesClient(this._options)));
|
|
102
104
|
}
|
|
103
105
|
get capture() {
|
|
104
106
|
return (this._capture ?? (this._capture = new Client_js_8.CaptureClient(this._options)));
|
|
105
107
|
}
|
|
108
|
+
get peppol() {
|
|
109
|
+
return (this._peppol ?? (this._peppol = new Client_js_26.PeppolClient(this._options)));
|
|
110
|
+
}
|
|
106
111
|
get declarations() {
|
|
107
112
|
return (this._declarations ?? (this._declarations = new Client_js_12.DeclarationsClient(this._options)));
|
|
108
113
|
}
|
|
@@ -112,6 +117,9 @@ class NordletApiClient {
|
|
|
112
117
|
get officers() {
|
|
113
118
|
return (this._officers ?? (this._officers = new Client_js_22.OfficersClient(this._options)));
|
|
114
119
|
}
|
|
120
|
+
get platformSellers() {
|
|
121
|
+
return (this._platformSellers ?? (this._platformSellers = new Client_js_27.PlatformSellersClient(this._options)));
|
|
122
|
+
}
|
|
115
123
|
get migration() {
|
|
116
124
|
return (this._migration ?? (this._migration = new Client_js_21.MigrationClient(this._options)));
|
|
117
125
|
}
|
|
@@ -134,7 +142,7 @@ class NordletApiClient {
|
|
|
134
142
|
return (this._inventory ?? (this._inventory = new Client_js_18.InventoryClient(this._options)));
|
|
135
143
|
}
|
|
136
144
|
get production() {
|
|
137
|
-
return (this._production ?? (this._production = new
|
|
145
|
+
return (this._production ?? (this._production = new Client_js_29.ProductionClient(this._options)));
|
|
138
146
|
}
|
|
139
147
|
get ecommerce() {
|
|
140
148
|
return (this._ecommerce ?? (this._ecommerce = new Client_js_14.EcommerceClient(this._options)));
|
|
@@ -143,13 +151,13 @@ class NordletApiClient {
|
|
|
143
151
|
return (this._cash ?? (this._cash = new Client_js_9.CashClient(this._options)));
|
|
144
152
|
}
|
|
145
153
|
get projects() {
|
|
146
|
-
return (this._projects ?? (this._projects = new
|
|
154
|
+
return (this._projects ?? (this._projects = new Client_js_30.ProjectsClient(this._options)));
|
|
147
155
|
}
|
|
148
156
|
get transport() {
|
|
149
|
-
return (this._transport ?? (this._transport = new
|
|
157
|
+
return (this._transport ?? (this._transport = new Client_js_36.TransportClient(this._options)));
|
|
150
158
|
}
|
|
151
159
|
get pos() {
|
|
152
|
-
return (this._pos ?? (this._pos = new
|
|
160
|
+
return (this._pos ?? (this._pos = new Client_js_28.PosClient(this._options)));
|
|
153
161
|
}
|
|
154
162
|
get calendar() {
|
|
155
163
|
return (this._calendar ?? (this._calendar = new Client_js_7.CalendarClient(this._options)));
|
|
@@ -158,7 +166,7 @@ class NordletApiClient {
|
|
|
158
166
|
return (this._audit ?? (this._audit = new Client_js_4.AuditClient(this._options)));
|
|
159
167
|
}
|
|
160
168
|
get webhooks() {
|
|
161
|
-
return (this._webhooks ?? (this._webhooks = new
|
|
169
|
+
return (this._webhooks ?? (this._webhooks = new Client_js_37.WebhooksClient(this._options)));
|
|
162
170
|
}
|
|
163
171
|
get bank() {
|
|
164
172
|
return (this._bank ?? (this._bank = new Client_js_5.BankClient(this._options)));
|
|
@@ -167,13 +175,13 @@ class NordletApiClient {
|
|
|
167
175
|
return (this._files ?? (this._files = new Client_js_15.FilesClient(this._options)));
|
|
168
176
|
}
|
|
169
177
|
get reports() {
|
|
170
|
-
return (this._reports ?? (this._reports = new
|
|
178
|
+
return (this._reports ?? (this._reports = new Client_js_34.ReportsClient(this._options)));
|
|
171
179
|
}
|
|
172
180
|
get consolidation() {
|
|
173
181
|
return (this._consolidation ?? (this._consolidation = new Client_js_11.ConsolidationClient(this._options)));
|
|
174
182
|
}
|
|
175
183
|
get public() {
|
|
176
|
-
return (this._public ?? (this._public = new
|
|
184
|
+
return (this._public ?? (this._public = new Client_js_31.PublicClient(this._options)));
|
|
177
185
|
}
|
|
178
186
|
get billing() {
|
|
179
187
|
return (this._billing ?? (this._billing = new Client_js_6.BillingClient(this._options)));
|
|
@@ -22,10 +22,13 @@ export declare namespace MeAccountResponse {
|
|
|
22
22
|
status: Billing.Status;
|
|
23
23
|
plan: string;
|
|
24
24
|
balanceCents: number;
|
|
25
|
+
overdraftAllowanceCents: number;
|
|
25
26
|
trialEndsAt: string | null;
|
|
26
27
|
payerUserId: string;
|
|
27
28
|
payerEmail: string;
|
|
28
29
|
isPayer: boolean;
|
|
30
|
+
planChosen: boolean;
|
|
31
|
+
flatRate: boolean;
|
|
29
32
|
}
|
|
30
33
|
namespace Billing {
|
|
31
34
|
const Status: {
|
|
@@ -820,6 +820,71 @@ export declare class BankClient {
|
|
|
820
820
|
*/
|
|
821
821
|
settlementsPost(request: NordletApi.SettlementsPostBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettlementsPostBankResponse>;
|
|
822
822
|
private __settlementsPost;
|
|
823
|
+
/**
|
|
824
|
+
* @param {NordletApi.SecuritiesImportBankRequest} request
|
|
825
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
826
|
+
*
|
|
827
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
828
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
829
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
830
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
831
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
832
|
+
* @throws {@link NordletApi.ConflictError}
|
|
833
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
834
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
835
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
836
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
837
|
+
*
|
|
838
|
+
* @example
|
|
839
|
+
* await client.bank.securitiesImport({
|
|
840
|
+
* bankAccountId: "bankAccountId",
|
|
841
|
+
* content: "content"
|
|
842
|
+
* })
|
|
843
|
+
*/
|
|
844
|
+
securitiesImport(request: NordletApi.SecuritiesImportBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.SecuritiesImportBankResponse>;
|
|
845
|
+
private __securitiesImport;
|
|
846
|
+
/**
|
|
847
|
+
* @param {NordletApi.SecuritiesListBankRequest} request
|
|
848
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
849
|
+
*
|
|
850
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
851
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
852
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
853
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
854
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
855
|
+
* @throws {@link NordletApi.ConflictError}
|
|
856
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
857
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
858
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
859
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
860
|
+
*
|
|
861
|
+
* @example
|
|
862
|
+
* await client.bank.securitiesList()
|
|
863
|
+
*/
|
|
864
|
+
securitiesList(request?: NordletApi.SecuritiesListBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.SecuritiesListBankResponse>;
|
|
865
|
+
private __securitiesList;
|
|
866
|
+
/**
|
|
867
|
+
* @param {NordletApi.SecuritiesGetBankRequest} request
|
|
868
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
869
|
+
*
|
|
870
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
871
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
872
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
873
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
874
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
875
|
+
* @throws {@link NordletApi.ConflictError}
|
|
876
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
877
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
878
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
879
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
880
|
+
*
|
|
881
|
+
* @example
|
|
882
|
+
* await client.bank.securitiesGet({
|
|
883
|
+
* id: "id"
|
|
884
|
+
* })
|
|
885
|
+
*/
|
|
886
|
+
securitiesGet(request: NordletApi.SecuritiesGetBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.SecuritiesGetBankResponse>;
|
|
887
|
+
private __securitiesGet;
|
|
823
888
|
/**
|
|
824
889
|
* @param {NordletApi.FeedsBanksListBankRequest} request
|
|
825
890
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -2936,6 +2936,242 @@ class BankClient {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/settlements/post");
|
|
2938
2938
|
}
|
|
2939
|
+
/**
|
|
2940
|
+
* @param {NordletApi.SecuritiesImportBankRequest} request
|
|
2941
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2942
|
+
*
|
|
2943
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
2944
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
2945
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
2946
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
2947
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
2948
|
+
* @throws {@link NordletApi.ConflictError}
|
|
2949
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
2950
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
2951
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
2952
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
2953
|
+
*
|
|
2954
|
+
* @example
|
|
2955
|
+
* await client.bank.securitiesImport({
|
|
2956
|
+
* bankAccountId: "bankAccountId",
|
|
2957
|
+
* content: "content"
|
|
2958
|
+
* })
|
|
2959
|
+
*/
|
|
2960
|
+
securitiesImport(request, requestOptions) {
|
|
2961
|
+
return core.HttpResponsePromise.fromPromise(this.__securitiesImport(request, requestOptions));
|
|
2962
|
+
}
|
|
2963
|
+
async __securitiesImport(request, requestOptions) {
|
|
2964
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
2965
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
2966
|
+
const _response = await core.fetcher({
|
|
2967
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
2968
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
2969
|
+
environments.NordletApiEnvironment.Production, "v1/bank/securities/import"),
|
|
2970
|
+
method: "POST",
|
|
2971
|
+
headers: _headers,
|
|
2972
|
+
contentType: "application/json",
|
|
2973
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
2974
|
+
requestType: "json",
|
|
2975
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
2976
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
2977
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
2978
|
+
abortSignal: requestOptions?.abortSignal,
|
|
2979
|
+
fetchFn: this._options?.fetch,
|
|
2980
|
+
logging: this._options.logging,
|
|
2981
|
+
});
|
|
2982
|
+
if (_response.ok) {
|
|
2983
|
+
return {
|
|
2984
|
+
data: _response.body,
|
|
2985
|
+
rawResponse: _response.rawResponse,
|
|
2986
|
+
};
|
|
2987
|
+
}
|
|
2988
|
+
if (_response.error.reason === "status-code") {
|
|
2989
|
+
switch (_response.error.statusCode) {
|
|
2990
|
+
case 400:
|
|
2991
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
2992
|
+
case 401:
|
|
2993
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2994
|
+
case 402:
|
|
2995
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
2996
|
+
case 403:
|
|
2997
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
2998
|
+
case 404:
|
|
2999
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
3000
|
+
case 409:
|
|
3001
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
3002
|
+
case 413:
|
|
3003
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
3004
|
+
case 422:
|
|
3005
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
3006
|
+
case 429:
|
|
3007
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3008
|
+
case 500:
|
|
3009
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
3010
|
+
default:
|
|
3011
|
+
throw new errors.NordletApiError({
|
|
3012
|
+
statusCode: _response.error.statusCode,
|
|
3013
|
+
body: _response.error.body,
|
|
3014
|
+
rawResponse: _response.rawResponse,
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/securities/import");
|
|
3019
|
+
}
|
|
3020
|
+
/**
|
|
3021
|
+
* @param {NordletApi.SecuritiesListBankRequest} request
|
|
3022
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3023
|
+
*
|
|
3024
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
3025
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
3026
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
3027
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
3028
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
3029
|
+
* @throws {@link NordletApi.ConflictError}
|
|
3030
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
3031
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
3032
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
3033
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
3034
|
+
*
|
|
3035
|
+
* @example
|
|
3036
|
+
* await client.bank.securitiesList()
|
|
3037
|
+
*/
|
|
3038
|
+
securitiesList(request = {}, requestOptions) {
|
|
3039
|
+
return core.HttpResponsePromise.fromPromise(this.__securitiesList(request, requestOptions));
|
|
3040
|
+
}
|
|
3041
|
+
async __securitiesList(request = {}, requestOptions) {
|
|
3042
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
3043
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
3044
|
+
const _response = await core.fetcher({
|
|
3045
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
3046
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
3047
|
+
environments.NordletApiEnvironment.Production, "v1/bank/securities/list"),
|
|
3048
|
+
method: "POST",
|
|
3049
|
+
headers: _headers,
|
|
3050
|
+
contentType: "application/json",
|
|
3051
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
3052
|
+
requestType: "json",
|
|
3053
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
3054
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
3055
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
3056
|
+
abortSignal: requestOptions?.abortSignal,
|
|
3057
|
+
fetchFn: this._options?.fetch,
|
|
3058
|
+
logging: this._options.logging,
|
|
3059
|
+
});
|
|
3060
|
+
if (_response.ok) {
|
|
3061
|
+
return {
|
|
3062
|
+
data: _response.body,
|
|
3063
|
+
rawResponse: _response.rawResponse,
|
|
3064
|
+
};
|
|
3065
|
+
}
|
|
3066
|
+
if (_response.error.reason === "status-code") {
|
|
3067
|
+
switch (_response.error.statusCode) {
|
|
3068
|
+
case 400:
|
|
3069
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
3070
|
+
case 401:
|
|
3071
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
3072
|
+
case 402:
|
|
3073
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
3074
|
+
case 403:
|
|
3075
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3076
|
+
case 404:
|
|
3077
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
3078
|
+
case 409:
|
|
3079
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
3080
|
+
case 413:
|
|
3081
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
3082
|
+
case 422:
|
|
3083
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
3084
|
+
case 429:
|
|
3085
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3086
|
+
case 500:
|
|
3087
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
3088
|
+
default:
|
|
3089
|
+
throw new errors.NordletApiError({
|
|
3090
|
+
statusCode: _response.error.statusCode,
|
|
3091
|
+
body: _response.error.body,
|
|
3092
|
+
rawResponse: _response.rawResponse,
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/securities/list");
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* @param {NordletApi.SecuritiesGetBankRequest} request
|
|
3100
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3101
|
+
*
|
|
3102
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
3103
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
3104
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
3105
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
3106
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
3107
|
+
* @throws {@link NordletApi.ConflictError}
|
|
3108
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
3109
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
3110
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
3111
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
3112
|
+
*
|
|
3113
|
+
* @example
|
|
3114
|
+
* await client.bank.securitiesGet({
|
|
3115
|
+
* id: "id"
|
|
3116
|
+
* })
|
|
3117
|
+
*/
|
|
3118
|
+
securitiesGet(request, requestOptions) {
|
|
3119
|
+
return core.HttpResponsePromise.fromPromise(this.__securitiesGet(request, requestOptions));
|
|
3120
|
+
}
|
|
3121
|
+
async __securitiesGet(request, requestOptions) {
|
|
3122
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
3123
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
3124
|
+
const _response = await core.fetcher({
|
|
3125
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
3126
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
3127
|
+
environments.NordletApiEnvironment.Production, "v1/bank/securities/get"),
|
|
3128
|
+
method: "POST",
|
|
3129
|
+
headers: _headers,
|
|
3130
|
+
contentType: "application/json",
|
|
3131
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
3132
|
+
requestType: "json",
|
|
3133
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
3134
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
3135
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
3136
|
+
abortSignal: requestOptions?.abortSignal,
|
|
3137
|
+
fetchFn: this._options?.fetch,
|
|
3138
|
+
logging: this._options.logging,
|
|
3139
|
+
});
|
|
3140
|
+
if (_response.ok) {
|
|
3141
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
3142
|
+
}
|
|
3143
|
+
if (_response.error.reason === "status-code") {
|
|
3144
|
+
switch (_response.error.statusCode) {
|
|
3145
|
+
case 400:
|
|
3146
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
3147
|
+
case 401:
|
|
3148
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
3149
|
+
case 402:
|
|
3150
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
3151
|
+
case 403:
|
|
3152
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3153
|
+
case 404:
|
|
3154
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
3155
|
+
case 409:
|
|
3156
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
3157
|
+
case 413:
|
|
3158
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
3159
|
+
case 422:
|
|
3160
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
3161
|
+
case 429:
|
|
3162
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3163
|
+
case 500:
|
|
3164
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
3165
|
+
default:
|
|
3166
|
+
throw new errors.NordletApiError({
|
|
3167
|
+
statusCode: _response.error.statusCode,
|
|
3168
|
+
body: _response.error.body,
|
|
3169
|
+
rawResponse: _response.rawResponse,
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/securities/get");
|
|
3174
|
+
}
|
|
2939
3175
|
/**
|
|
2940
3176
|
* @param {NordletApi.FeedsBanksListBankRequest} request
|
|
2941
3177
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface AccountsCreateBankRequest {
|
|
8
8
|
name: string;
|
|
9
|
+
type?: AccountsCreateBankRequest.Type;
|
|
9
10
|
iban?: string;
|
|
10
11
|
currency?: string;
|
|
11
12
|
accountCode?: string;
|
|
12
13
|
documentRef?: string;
|
|
13
14
|
}
|
|
15
|
+
export declare namespace AccountsCreateBankRequest {
|
|
16
|
+
const Type: {
|
|
17
|
+
readonly Bank: "bank";
|
|
18
|
+
readonly Stripe: "stripe";
|
|
19
|
+
readonly Broker: "broker";
|
|
20
|
+
};
|
|
21
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
22
|
+
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AccountsCreateBankRequest = void 0;
|
|
5
|
+
var AccountsCreateBankRequest;
|
|
6
|
+
(function (AccountsCreateBankRequest) {
|
|
7
|
+
AccountsCreateBankRequest.Type = {
|
|
8
|
+
Bank: "bank",
|
|
9
|
+
Stripe: "stripe",
|
|
10
|
+
Broker: "broker",
|
|
11
|
+
};
|
|
12
|
+
})(AccountsCreateBankRequest || (exports.AccountsCreateBankRequest = AccountsCreateBankRequest = {}));
|
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
export interface AccountsUpdateBankRequest {
|
|
8
8
|
id: string;
|
|
9
9
|
name?: string;
|
|
10
|
+
type?: AccountsUpdateBankRequest.Type;
|
|
10
11
|
iban?: string;
|
|
11
12
|
accountCode?: string;
|
|
12
13
|
isActive?: boolean;
|
|
13
14
|
}
|
|
15
|
+
export declare namespace AccountsUpdateBankRequest {
|
|
16
|
+
const Type: {
|
|
17
|
+
readonly Bank: "bank";
|
|
18
|
+
readonly Stripe: "stripe";
|
|
19
|
+
readonly Broker: "broker";
|
|
20
|
+
};
|
|
21
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
22
|
+
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AccountsUpdateBankRequest = void 0;
|
|
5
|
+
var AccountsUpdateBankRequest;
|
|
6
|
+
(function (AccountsUpdateBankRequest) {
|
|
7
|
+
AccountsUpdateBankRequest.Type = {
|
|
8
|
+
Bank: "bank",
|
|
9
|
+
Stripe: "stripe",
|
|
10
|
+
Broker: "broker",
|
|
11
|
+
};
|
|
12
|
+
})(AccountsUpdateBankRequest || (exports.AccountsUpdateBankRequest = AccountsUpdateBankRequest = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface SecuritiesListBankRequest {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
sort?: SecuritiesListBankRequest.Sort.Item[];
|
|
9
|
+
filter?: SecuritiesListBankRequest.Filter.Item[];
|
|
10
|
+
/** Numeric fields to sum over every row matching the filter (not only the current page) */
|
|
11
|
+
totals?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare namespace SecuritiesListBankRequest {
|
|
14
|
+
type Sort = Sort.Item[];
|
|
15
|
+
namespace Sort {
|
|
16
|
+
interface Item {
|
|
17
|
+
field: string;
|
|
18
|
+
dir?: Item.Dir | undefined;
|
|
19
|
+
}
|
|
20
|
+
namespace Item {
|
|
21
|
+
const Dir: {
|
|
22
|
+
readonly Asc: "asc";
|
|
23
|
+
readonly Desc: "desc";
|
|
24
|
+
};
|
|
25
|
+
type Dir = (typeof Dir)[keyof typeof Dir];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
type Filter = Filter.Item[];
|
|
29
|
+
namespace Filter {
|
|
30
|
+
interface Item {
|
|
31
|
+
field: string;
|
|
32
|
+
op: Item.Op;
|
|
33
|
+
value: Item.Value;
|
|
34
|
+
}
|
|
35
|
+
namespace Item {
|
|
36
|
+
const Op: {
|
|
37
|
+
readonly Eq: "eq";
|
|
38
|
+
readonly Ne: "ne";
|
|
39
|
+
readonly Contains: "contains";
|
|
40
|
+
readonly Gte: "gte";
|
|
41
|
+
readonly Lte: "lte";
|
|
42
|
+
readonly In: "in";
|
|
43
|
+
};
|
|
44
|
+
type Op = (typeof Op)[keyof typeof Op];
|
|
45
|
+
type Value = string | number | boolean | (string | number)[];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|