nordlet 0.3.7 → 0.3.9
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/README.md +2 -2
- 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/AgreementsListAgreementsResponse.d.ts +2 -0
- package/dist/api/resources/agreements/types/InsurancePoliciesListAgreementsResponse.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/TypesListAgreementsResponse.d.ts +2 -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/AssetsListAssetsResponse.d.ts +2 -0
- package/dist/api/resources/assets/types/GroupsListAssetsResponse.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/audit/types/ListAuditResponse.d.ts +2 -0
- package/dist/api/resources/bank/client/Client.d.ts +47 -0
- package/dist/api/resources/bank/client/Client.js +163 -0
- package/dist/api/resources/bank/client/requests/DirectDebitsCandidatesBankRequest.d.ts +48 -0
- package/dist/api/resources/bank/client/requests/DirectDebitsCandidatesBankRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +32 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +17 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/index.js +5 -1
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/DirectDebitsCandidatesBankResponse.d.ts +29 -0
- package/dist/api/resources/bank/types/DirectDebitsCandidatesBankResponse.js +3 -0
- package/dist/api/resources/bank/types/FeedsConnectionsListBankResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/ImportTemplatesListBankResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/MandatesListBankResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/TransactionsListBankResponse.d.ts +2 -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/index.d.ts +2 -0
- package/dist/api/resources/bank/types/index.js +2 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +2 -0
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +2 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +2 -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 +4 -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/catalog/types/ItemsListCatalogResponse.d.ts +2 -0
- package/dist/api/resources/declarations/client/Client.d.ts +1 -1
- package/dist/api/resources/declarations/client/Client.js +1 -1
- package/dist/api/resources/declarations/types/SubmissionsListDeclarationsResponse.d.ts +2 -0
- package/dist/api/resources/documentSeries/types/ListDocumentSeriesResponse.d.ts +2 -0
- package/dist/api/resources/ecommerce/types/OrdersListEcommerceResponse.d.ts +2 -0
- package/dist/api/resources/files/types/ListFilesResponse.d.ts +2 -0
- package/dist/api/resources/fleet/types/AssignmentsListFleetResponse.d.ts +2 -0
- package/dist/api/resources/fleet/types/VehiclesListFleetResponse.d.ts +2 -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/ContractsListHrResponse.d.ts +2 -0
- package/dist/api/resources/hr/types/EmployeesListHrResponse.d.ts +2 -0
- package/dist/api/resources/hr/types/EmployeesRecordsListHrResponse.d.ts +2 -0
- package/dist/api/resources/hr/types/IncapacityCertificatesListHrResponse.d.ts +2 -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/PositionsListHrResponse.d.ts +2 -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/inventory/types/LandedCostsListInventoryResponse.d.ts +2 -0
- package/dist/api/resources/inventory/types/LotsListInventoryResponse.d.ts +2 -0
- package/dist/api/resources/inventory/types/ReorderRulesListInventoryResponse.d.ts +2 -0
- package/dist/api/resources/inventory/types/StockMovementsListInventoryResponse.d.ts +2 -0
- package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +2 -0
- package/dist/api/resources/leads/client/Client.d.ts +106 -0
- package/dist/api/resources/leads/client/Client.js +381 -0
- package/dist/api/resources/leads/client/requests/CreateLeadsRequest.d.ts +1 -0
- package/dist/api/resources/leads/client/requests/TypesCreateLeadsRequest.d.ts +10 -0
- package/dist/api/resources/leads/client/requests/TypesCreateLeadsRequest.js +3 -0
- package/dist/api/resources/leads/client/requests/TypesDeleteLeadsRequest.d.ts +9 -0
- package/dist/api/resources/leads/client/requests/TypesDeleteLeadsRequest.js +3 -0
- package/dist/api/resources/leads/client/requests/TypesListLeadsRequest.d.ts +5 -0
- package/dist/api/resources/leads/client/requests/TypesListLeadsRequest.js +3 -0
- package/dist/api/resources/leads/client/requests/TypesOptionsLeadsRequest.d.ts +5 -0
- package/dist/api/resources/leads/client/requests/TypesOptionsLeadsRequest.js +3 -0
- package/dist/api/resources/leads/client/requests/TypesUpdateLeadsRequest.d.ts +11 -0
- package/dist/api/resources/leads/client/requests/TypesUpdateLeadsRequest.js +3 -0
- package/dist/api/resources/leads/client/requests/UpdateLeadsRequest.d.ts +1 -0
- package/dist/api/resources/leads/client/requests/index.d.ts +5 -0
- package/dist/api/resources/leads/types/ConvertLeadsResponse.d.ts +2 -0
- package/dist/api/resources/leads/types/CreateLeadsResponse.d.ts +2 -0
- package/dist/api/resources/leads/types/GetLeadsResponse.d.ts +2 -0
- package/dist/api/resources/leads/types/ListLeadsResponse.d.ts +4 -0
- package/dist/api/resources/leads/types/TypesCreateLeadsResponse.d.ts +6 -0
- package/dist/api/resources/leads/types/TypesCreateLeadsResponse.js +3 -0
- package/dist/api/resources/leads/types/TypesDeleteLeadsResponse.d.ts +3 -0
- package/dist/api/resources/leads/types/TypesDeleteLeadsResponse.js +3 -0
- package/dist/api/resources/leads/types/TypesListLeadsResponse.d.ts +14 -0
- package/dist/api/resources/leads/types/TypesListLeadsResponse.js +3 -0
- package/dist/api/resources/leads/types/TypesOptionsLeadsResponse.d.ts +12 -0
- package/dist/api/resources/leads/types/TypesOptionsLeadsResponse.js +3 -0
- package/dist/api/resources/leads/types/TypesUpdateLeadsResponse.d.ts +6 -0
- package/dist/api/resources/leads/types/TypesUpdateLeadsResponse.js +3 -0
- package/dist/api/resources/leads/types/UpdateLeadsResponse.d.ts +2 -0
- package/dist/api/resources/leads/types/index.d.ts +5 -0
- package/dist/api/resources/leads/types/index.js +5 -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/ledger/types/AccountsListLedgerResponse.d.ts +2 -0
- package/dist/api/resources/ledger/types/CostCenterGroupsListLedgerResponse.d.ts +2 -0
- package/dist/api/resources/ledger/types/CostCentersListLedgerResponse.d.ts +2 -0
- package/dist/api/resources/ledger/types/JournalTransactionsListLedgerResponse.d.ts +3 -0
- package/dist/api/resources/ledger/types/OwnersListLedgerResponse.d.ts +2 -0
- package/dist/api/resources/ledger/types/PeriodsListLedgerResponse.d.ts +2 -0
- package/dist/api/resources/migration/client/Client.d.ts +1 -1
- package/dist/api/resources/migration/client/Client.js +1 -1
- package/dist/api/resources/operationTypes/types/ListOperationTypesResponse.d.ts +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/AddressesListPartnersResponse.d.ts +2 -0
- package/dist/api/resources/partners/types/BankAccountsListPartnersResponse.d.ts +2 -0
- package/dist/api/resources/partners/types/ContactsListPartnersResponse.d.ts +2 -0
- package/dist/api/resources/partners/types/DebtRemindersListPartnersResponse.d.ts +2 -0
- package/dist/api/resources/partners/types/DebtRemindersPreviewPartnersResponse.d.ts +10 -3
- package/dist/api/resources/partners/types/InquiriesListPartnersResponse.d.ts +2 -0
- package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +2 -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/VatReviewsListPartnersResponse.d.ts +2 -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/RunsCreatePayrollRequest.d.ts +1 -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 +7 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +51 -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/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/DevicesListPosResponse.d.ts +2 -0
- 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/ReportsListPosResponse.d.ts +2 -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/production/types/BomsListProductionResponse.d.ts +2 -0
- package/dist/api/resources/production/types/MaintenanceListProductionResponse.d.ts +2 -0
- package/dist/api/resources/production/types/OrdersListProductionResponse.d.ts +2 -0
- package/dist/api/resources/production/types/QualityChecksListProductionResponse.d.ts +2 -0
- package/dist/api/resources/production/types/RoutingsListProductionResponse.d.ts +2 -0
- package/dist/api/resources/production/types/WorkCentersListProductionResponse.d.ts +2 -0
- package/dist/api/resources/projects/types/ListProjectsResponse.d.ts +2 -0
- package/dist/api/resources/projects/types/TimeEntriesListProjectsResponse.d.ts +2 -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/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/InvoicesListPurchasesResponse.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/OrdersListPurchasesResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/ReceiptsListPurchasesResponse.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/types/BanksListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/CnCodesListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/CurrenciesListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/ExchangeRatesListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/ExchangeRatesOverridesListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/SeriesListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/UnitsListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reference/types/VatClassifiersListReferenceResponse.d.ts +2 -0
- package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
- package/dist/api/resources/reports/types/JobsListReportsResponse.d.ts +2 -0
- package/dist/api/resources/reports/types/PartnerBalancesReportsResponse.d.ts +5 -0
- package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
- package/dist/api/resources/sales/types/ActsListSalesResponse.d.ts +2 -0
- package/dist/api/resources/sales/types/InvoicesEinvoiceSendSalesResponse.d.ts +1 -1
- package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +2 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +1 -1
- package/dist/api/resources/sales/types/RecognitionRunsListSalesResponse.d.ts +2 -0
- package/dist/api/resources/sales/types/RecognitionSchedulesListSalesResponse.d.ts +2 -0
- package/dist/api/resources/sales/types/RefundLiabilityListSalesResponse.d.ts +2 -0
- package/dist/api/resources/transport/types/WaybillsListTransportResponse.d.ts +2 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +1 -0
- package/dist/api/resources/webhooks/types/DeliveriesListWebhooksResponse.d.ts +2 -0
- package/dist/api/resources/webhooks/types/SubscriptionsListWebhooksResponse.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Nordlet%2FTypeScript)
|
|
4
4
|
[](https://www.npmjs.com/package/nordlet)
|
|
5
5
|
|
|
6
|
-
The Nordlet TypeScript library provides convenient access to the Nordlet Accounting API from TypeScript and JavaScript (Node.js ≥ 18, browsers, and edge runtimes
|
|
6
|
+
The Nordlet TypeScript library provides convenient access to the Nordlet Accounting API from TypeScript and JavaScript (Node.js ≥ 18, browsers, and edge runtimes - anywhere `fetch` is available).
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -53,7 +53,7 @@ await client.sales.postV1SalesInvoicesList({}, { maxRetries: 5, timeoutInSeconds
|
|
|
53
53
|
|
|
54
54
|
## Documentation
|
|
55
55
|
|
|
56
|
-
The full API reference lives at [docs.nordlet.com](https://docs.nordlet.com)
|
|
56
|
+
The full API reference lives at [docs.nordlet.com](https://docs.nordlet.com) - every endpoint, request/response schema, error envelope, idempotency and webhook conventions.
|
|
57
57
|
|
|
58
58
|
## Contributing
|
|
59
59
|
|
|
@@ -10,6 +10,48 @@ export declare namespace AgreementsClient {
|
|
|
10
10
|
export declare class AgreementsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AgreementsClient.Options>;
|
|
12
12
|
constructor(options: AgreementsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {NordletApi.SettingsGetAgreementsRequest} request
|
|
15
|
+
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
18
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
19
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
20
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
21
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
22
|
+
* @throws {@link NordletApi.ConflictError}
|
|
23
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
24
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
25
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
26
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.agreements.settingsGet()
|
|
30
|
+
*/
|
|
31
|
+
settingsGet(request?: NordletApi.SettingsGetAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAgreementsResponse>;
|
|
32
|
+
private __settingsGet;
|
|
33
|
+
/**
|
|
34
|
+
* @param {NordletApi.SettingsUpdateAgreementsRequest} request
|
|
35
|
+
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
38
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
39
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
40
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
41
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
42
|
+
* @throws {@link NordletApi.ConflictError}
|
|
43
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
44
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
45
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
46
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.agreements.settingsUpdate({
|
|
50
|
+
* autoBilling: true
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
settingsUpdate(request: NordletApi.SettingsUpdateAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAgreementsResponse>;
|
|
54
|
+
private __settingsUpdate;
|
|
13
55
|
/**
|
|
14
56
|
* @param {NordletApi.TypesCreateAgreementsRequest} request
|
|
15
57
|
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,6 +47,164 @@ class AgreementsClient {
|
|
|
47
47
|
constructor(options) {
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @param {NordletApi.SettingsGetAgreementsRequest} request
|
|
52
|
+
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
55
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
56
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
57
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
58
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
59
|
+
* @throws {@link NordletApi.ConflictError}
|
|
60
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
61
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
62
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
63
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.agreements.settingsGet()
|
|
67
|
+
*/
|
|
68
|
+
settingsGet(request = {}, requestOptions) {
|
|
69
|
+
return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
|
|
70
|
+
}
|
|
71
|
+
async __settingsGet(request = {}, requestOptions) {
|
|
72
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
73
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
74
|
+
const _response = await core.fetcher({
|
|
75
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
76
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
77
|
+
environments.NordletApiEnvironment.Production, "v1/agreements/settings/get"),
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
contentType: "application/json",
|
|
81
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
82
|
+
requestType: "json",
|
|
83
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
84
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
85
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
86
|
+
abortSignal: requestOptions?.abortSignal,
|
|
87
|
+
fetchFn: this._options?.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return {
|
|
92
|
+
data: _response.body,
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (_response.error.reason === "status-code") {
|
|
97
|
+
switch (_response.error.statusCode) {
|
|
98
|
+
case 400:
|
|
99
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
100
|
+
case 401:
|
|
101
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
102
|
+
case 402:
|
|
103
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 403:
|
|
105
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
106
|
+
case 404:
|
|
107
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 409:
|
|
109
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
110
|
+
case 413:
|
|
111
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
112
|
+
case 422:
|
|
113
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 429:
|
|
115
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 500:
|
|
117
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.NordletApiError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/get");
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @param {NordletApi.SettingsUpdateAgreementsRequest} request
|
|
130
|
+
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
133
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
134
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
135
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
136
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
137
|
+
* @throws {@link NordletApi.ConflictError}
|
|
138
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
139
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
140
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
141
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* await client.agreements.settingsUpdate({
|
|
145
|
+
* autoBilling: true
|
|
146
|
+
* })
|
|
147
|
+
*/
|
|
148
|
+
settingsUpdate(request, requestOptions) {
|
|
149
|
+
return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
|
|
150
|
+
}
|
|
151
|
+
async __settingsUpdate(request, requestOptions) {
|
|
152
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
153
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
154
|
+
const _response = await core.fetcher({
|
|
155
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
156
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
157
|
+
environments.NordletApiEnvironment.Production, "v1/agreements/settings/update"),
|
|
158
|
+
method: "POST",
|
|
159
|
+
headers: _headers,
|
|
160
|
+
contentType: "application/json",
|
|
161
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
162
|
+
requestType: "json",
|
|
163
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
164
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
165
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
166
|
+
abortSignal: requestOptions?.abortSignal,
|
|
167
|
+
fetchFn: this._options?.fetch,
|
|
168
|
+
logging: this._options.logging,
|
|
169
|
+
});
|
|
170
|
+
if (_response.ok) {
|
|
171
|
+
return {
|
|
172
|
+
data: _response.body,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if (_response.error.reason === "status-code") {
|
|
177
|
+
switch (_response.error.statusCode) {
|
|
178
|
+
case 400:
|
|
179
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
180
|
+
case 401:
|
|
181
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
182
|
+
case 402:
|
|
183
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 403:
|
|
185
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
186
|
+
case 404:
|
|
187
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 409:
|
|
189
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 413:
|
|
191
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
192
|
+
case 422:
|
|
193
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 429:
|
|
195
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
196
|
+
case 500:
|
|
197
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
198
|
+
default:
|
|
199
|
+
throw new errors.NordletApiError({
|
|
200
|
+
statusCode: _response.error.statusCode,
|
|
201
|
+
body: _response.error.body,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/update");
|
|
207
|
+
}
|
|
50
208
|
/**
|
|
51
209
|
* @param {NordletApi.TypesCreateAgreementsRequest} request
|
|
52
210
|
* @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8,5 +8,7 @@ export { AgreementsUpdateAgreementsRequest } from "./AgreementsUpdateAgreementsR
|
|
|
8
8
|
export type { InsurancePoliciesCreateAgreementsRequest } from "./InsurancePoliciesCreateAgreementsRequest.js";
|
|
9
9
|
export type { InsurancePoliciesDeleteAgreementsRequest } from "./InsurancePoliciesDeleteAgreementsRequest.js";
|
|
10
10
|
export { InsurancePoliciesListAgreementsRequest } from "./InsurancePoliciesListAgreementsRequest.js";
|
|
11
|
+
export type { SettingsGetAgreementsRequest } from "./SettingsGetAgreementsRequest.js";
|
|
12
|
+
export type { SettingsUpdateAgreementsRequest } from "./SettingsUpdateAgreementsRequest.js";
|
|
11
13
|
export type { TypesCreateAgreementsRequest } from "./TypesCreateAgreementsRequest.js";
|
|
12
14
|
export { TypesListAgreementsRequest } from "./TypesListAgreementsRequest.js";
|
|
@@ -4,6 +4,8 @@ export interface AgreementsListAgreementsResponse {
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
total: number;
|
|
6
6
|
totals?: Record<string, string> | undefined;
|
|
7
|
+
/** The requested totals split by currency code, present when the listed records carry a currency */
|
|
8
|
+
totalsByCurrency?: Record<string, Record<string, string>> | undefined;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace AgreementsListAgreementsResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -4,6 +4,8 @@ export interface InsurancePoliciesListAgreementsResponse {
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
total: number;
|
|
6
6
|
totals?: Record<string, string> | undefined;
|
|
7
|
+
/** The requested totals split by currency code, present when the listed records carry a currency */
|
|
8
|
+
totalsByCurrency?: Record<string, Record<string, string>> | undefined;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace InsurancePoliciesListAgreementsResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -4,6 +4,8 @@ export interface TypesListAgreementsResponse {
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
total: number;
|
|
6
6
|
totals?: Record<string, string> | undefined;
|
|
7
|
+
/** The requested totals split by currency code, present when the listed records carry a currency */
|
|
8
|
+
totalsByCurrency?: Record<string, Record<string, string>> | undefined;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace TypesListAgreementsResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -8,5 +8,7 @@ export * from "./AgreementsUpdateAgreementsResponse.js";
|
|
|
8
8
|
export * from "./InsurancePoliciesCreateAgreementsResponse.js";
|
|
9
9
|
export * from "./InsurancePoliciesDeleteAgreementsResponse.js";
|
|
10
10
|
export * from "./InsurancePoliciesListAgreementsResponse.js";
|
|
11
|
+
export * from "./SettingsGetAgreementsResponse.js";
|
|
12
|
+
export * from "./SettingsUpdateAgreementsResponse.js";
|
|
11
13
|
export * from "./TypesCreateAgreementsResponse.js";
|
|
12
14
|
export * from "./TypesListAgreementsResponse.js";
|
|
@@ -24,5 +24,7 @@ __exportStar(require("./AgreementsUpdateAgreementsResponse.js"), exports);
|
|
|
24
24
|
__exportStar(require("./InsurancePoliciesCreateAgreementsResponse.js"), exports);
|
|
25
25
|
__exportStar(require("./InsurancePoliciesDeleteAgreementsResponse.js"), exports);
|
|
26
26
|
__exportStar(require("./InsurancePoliciesListAgreementsResponse.js"), exports);
|
|
27
|
+
__exportStar(require("./SettingsGetAgreementsResponse.js"), exports);
|
|
28
|
+
__exportStar(require("./SettingsUpdateAgreementsResponse.js"), exports);
|
|
27
29
|
__exportStar(require("./TypesCreateAgreementsResponse.js"), exports);
|
|
28
30
|
__exportStar(require("./TypesListAgreementsResponse.js"), exports);
|
|
@@ -10,6 +10,48 @@ export declare namespace AssetsClient {
|
|
|
10
10
|
export declare class AssetsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
|
|
12
12
|
constructor(options: AssetsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {NordletApi.SettingsGetAssetsRequest} request
|
|
15
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
18
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
19
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
20
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
21
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
22
|
+
* @throws {@link NordletApi.ConflictError}
|
|
23
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
24
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
25
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
26
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.assets.settingsGet()
|
|
30
|
+
*/
|
|
31
|
+
settingsGet(request?: NordletApi.SettingsGetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAssetsResponse>;
|
|
32
|
+
private __settingsGet;
|
|
33
|
+
/**
|
|
34
|
+
* @param {NordletApi.SettingsUpdateAssetsRequest} request
|
|
35
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
38
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
39
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
40
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
41
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
42
|
+
* @throws {@link NordletApi.ConflictError}
|
|
43
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
44
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
45
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
46
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.assets.settingsUpdate({
|
|
50
|
+
* autoDepreciation: true
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
settingsUpdate(request: NordletApi.SettingsUpdateAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAssetsResponse>;
|
|
54
|
+
private __settingsUpdate;
|
|
13
55
|
/**
|
|
14
56
|
* @param {NordletApi.GroupsCreateAssetsRequest} request
|
|
15
57
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,6 +47,161 @@ class AssetsClient {
|
|
|
47
47
|
constructor(options) {
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @param {NordletApi.SettingsGetAssetsRequest} request
|
|
52
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
55
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
56
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
57
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
58
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
59
|
+
* @throws {@link NordletApi.ConflictError}
|
|
60
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
61
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
62
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
63
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.assets.settingsGet()
|
|
67
|
+
*/
|
|
68
|
+
settingsGet(request = {}, requestOptions) {
|
|
69
|
+
return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
|
|
70
|
+
}
|
|
71
|
+
async __settingsGet(request = {}, requestOptions) {
|
|
72
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
73
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
74
|
+
const _response = await core.fetcher({
|
|
75
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
76
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
77
|
+
environments.NordletApiEnvironment.Production, "v1/assets/settings/get"),
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
contentType: "application/json",
|
|
81
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
82
|
+
requestType: "json",
|
|
83
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
84
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
85
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
86
|
+
abortSignal: requestOptions?.abortSignal,
|
|
87
|
+
fetchFn: this._options?.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
92
|
+
}
|
|
93
|
+
if (_response.error.reason === "status-code") {
|
|
94
|
+
switch (_response.error.statusCode) {
|
|
95
|
+
case 400:
|
|
96
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
97
|
+
case 401:
|
|
98
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
99
|
+
case 402:
|
|
100
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
101
|
+
case 403:
|
|
102
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 404:
|
|
104
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 409:
|
|
106
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 413:
|
|
108
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 422:
|
|
110
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 429:
|
|
112
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 500:
|
|
114
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.NordletApiError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/get");
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @param {NordletApi.SettingsUpdateAssetsRequest} request
|
|
127
|
+
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
130
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
131
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
132
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
133
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
134
|
+
* @throws {@link NordletApi.ConflictError}
|
|
135
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
136
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
137
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
138
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await client.assets.settingsUpdate({
|
|
142
|
+
* autoDepreciation: true
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
settingsUpdate(request, requestOptions) {
|
|
146
|
+
return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
|
|
147
|
+
}
|
|
148
|
+
async __settingsUpdate(request, requestOptions) {
|
|
149
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
150
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
151
|
+
const _response = await core.fetcher({
|
|
152
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
153
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
154
|
+
environments.NordletApiEnvironment.Production, "v1/assets/settings/update"),
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers: _headers,
|
|
157
|
+
contentType: "application/json",
|
|
158
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
159
|
+
requestType: "json",
|
|
160
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
161
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
162
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
163
|
+
abortSignal: requestOptions?.abortSignal,
|
|
164
|
+
fetchFn: this._options?.fetch,
|
|
165
|
+
logging: this._options.logging,
|
|
166
|
+
});
|
|
167
|
+
if (_response.ok) {
|
|
168
|
+
return {
|
|
169
|
+
data: _response.body,
|
|
170
|
+
rawResponse: _response.rawResponse,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
if (_response.error.reason === "status-code") {
|
|
174
|
+
switch (_response.error.statusCode) {
|
|
175
|
+
case 400:
|
|
176
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 401:
|
|
178
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
179
|
+
case 402:
|
|
180
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 403:
|
|
182
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 404:
|
|
184
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 409:
|
|
186
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 413:
|
|
188
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 422:
|
|
190
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 429:
|
|
192
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
193
|
+
case 500:
|
|
194
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
195
|
+
default:
|
|
196
|
+
throw new errors.NordletApiError({
|
|
197
|
+
statusCode: _response.error.statusCode,
|
|
198
|
+
body: _response.error.body,
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/update");
|
|
204
|
+
}
|
|
50
205
|
/**
|
|
51
206
|
* @param {NordletApi.GroupsCreateAssetsRequest} request
|
|
52
207
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,3 +9,5 @@ export type { DepreciationPostAssetsRequest } from "./DepreciationPostAssetsRequ
|
|
|
9
9
|
export type { DepreciationPreviewAssetsRequest } from "./DepreciationPreviewAssetsRequest.js";
|
|
10
10
|
export type { GroupsCreateAssetsRequest } from "./GroupsCreateAssetsRequest.js";
|
|
11
11
|
export { GroupsListAssetsRequest } from "./GroupsListAssetsRequest.js";
|
|
12
|
+
export type { SettingsGetAssetsRequest } from "./SettingsGetAssetsRequest.js";
|
|
13
|
+
export type { SettingsUpdateAssetsRequest } from "./SettingsUpdateAssetsRequest.js";
|
|
@@ -4,6 +4,8 @@ export interface AssetsListAssetsResponse {
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
total: number;
|
|
6
6
|
totals?: Record<string, string> | undefined;
|
|
7
|
+
/** The requested totals split by currency code, present when the listed records carry a currency */
|
|
8
|
+
totalsByCurrency?: Record<string, Record<string, string>> | undefined;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace AssetsListAssetsResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -4,6 +4,8 @@ export interface GroupsListAssetsResponse {
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
total: number;
|
|
6
6
|
totals?: Record<string, string> | undefined;
|
|
7
|
+
/** The requested totals split by currency code, present when the listed records carry a currency */
|
|
8
|
+
totalsByCurrency?: Record<string, Record<string, string>> | undefined;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace GroupsListAssetsResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -9,3 +9,5 @@ export * from "./DepreciationPostAssetsResponse.js";
|
|
|
9
9
|
export * from "./DepreciationPreviewAssetsResponse.js";
|
|
10
10
|
export * from "./GroupsCreateAssetsResponse.js";
|
|
11
11
|
export * from "./GroupsListAssetsResponse.js";
|
|
12
|
+
export * from "./SettingsGetAssetsResponse.js";
|
|
13
|
+
export * from "./SettingsUpdateAssetsResponse.js";
|