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
|
@@ -30,8 +30,7 @@ export declare class CashClient {
|
|
|
30
30
|
* type: "receipt",
|
|
31
31
|
* date: "2026-07-01",
|
|
32
32
|
* amount: "121.0000",
|
|
33
|
-
* purpose: "purpose"
|
|
34
|
-
* counterAccountCode: "counterAccountCode"
|
|
33
|
+
* purpose: "purpose"
|
|
35
34
|
* })
|
|
36
35
|
*/
|
|
37
36
|
ordersCreate(request: NordletApi.OrdersCreateCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.OrdersCreateCashResponse>;
|
|
@@ -98,6 +97,76 @@ export declare class CashClient {
|
|
|
98
97
|
*/
|
|
99
98
|
balance(request?: NordletApi.BalanceCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.BalanceCashResponse>;
|
|
100
99
|
private __balance;
|
|
100
|
+
/**
|
|
101
|
+
* @param {NordletApi.ExpenseReportsCreateCashRequest} request
|
|
102
|
+
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
105
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
106
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
107
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
108
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
109
|
+
* @throws {@link NordletApi.ConflictError}
|
|
110
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
111
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
112
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
113
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.cash.expenseReportsCreate({
|
|
117
|
+
* employeeId: "employeeId",
|
|
118
|
+
* date: "2026-07-01",
|
|
119
|
+
* lines: [{
|
|
120
|
+
* description: "description",
|
|
121
|
+
* accountCode: "accountCode",
|
|
122
|
+
* netAmount: "121.00"
|
|
123
|
+
* }]
|
|
124
|
+
* })
|
|
125
|
+
*/
|
|
126
|
+
expenseReportsCreate(request: NordletApi.ExpenseReportsCreateCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsCreateCashResponse>;
|
|
127
|
+
private __expenseReportsCreate;
|
|
128
|
+
/**
|
|
129
|
+
* @param {NordletApi.ExpenseReportsGetCashRequest} request
|
|
130
|
+
* @param {CashClient.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.cash.expenseReportsGet({
|
|
145
|
+
* id: "id"
|
|
146
|
+
* })
|
|
147
|
+
*/
|
|
148
|
+
expenseReportsGet(request: NordletApi.ExpenseReportsGetCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsGetCashResponse>;
|
|
149
|
+
private __expenseReportsGet;
|
|
150
|
+
/**
|
|
151
|
+
* @param {NordletApi.ExpenseReportsListCashRequest} request
|
|
152
|
+
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
155
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
156
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
157
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
158
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
159
|
+
* @throws {@link NordletApi.ConflictError}
|
|
160
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
161
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
162
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
163
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* await client.cash.expenseReportsList()
|
|
167
|
+
*/
|
|
168
|
+
expenseReportsList(request?: NordletApi.ExpenseReportsListCashRequest, requestOptions?: CashClient.RequestOptions): core.HttpResponsePromise<NordletApi.ExpenseReportsListCashResponse>;
|
|
169
|
+
private __expenseReportsList;
|
|
101
170
|
/**
|
|
102
171
|
* @param {NordletApi.AdvanceHoldersBalancesCashRequest} request
|
|
103
172
|
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,8 +67,7 @@ class CashClient {
|
|
|
67
67
|
* type: "receipt",
|
|
68
68
|
* date: "2026-07-01",
|
|
69
69
|
* amount: "121.0000",
|
|
70
|
-
* purpose: "purpose"
|
|
71
|
-
* counterAccountCode: "counterAccountCode"
|
|
70
|
+
* purpose: "purpose"
|
|
72
71
|
* })
|
|
73
72
|
*/
|
|
74
73
|
ordersCreate(request, requestOptions) {
|
|
@@ -355,6 +354,250 @@ class CashClient {
|
|
|
355
354
|
}
|
|
356
355
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/balance");
|
|
357
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* @param {NordletApi.ExpenseReportsCreateCashRequest} request
|
|
359
|
+
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
360
|
+
*
|
|
361
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
362
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
363
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
364
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
365
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
366
|
+
* @throws {@link NordletApi.ConflictError}
|
|
367
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
368
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
369
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
370
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
371
|
+
*
|
|
372
|
+
* @example
|
|
373
|
+
* await client.cash.expenseReportsCreate({
|
|
374
|
+
* employeeId: "employeeId",
|
|
375
|
+
* date: "2026-07-01",
|
|
376
|
+
* lines: [{
|
|
377
|
+
* description: "description",
|
|
378
|
+
* accountCode: "accountCode",
|
|
379
|
+
* netAmount: "121.00"
|
|
380
|
+
* }]
|
|
381
|
+
* })
|
|
382
|
+
*/
|
|
383
|
+
expenseReportsCreate(request, requestOptions) {
|
|
384
|
+
return core.HttpResponsePromise.fromPromise(this.__expenseReportsCreate(request, requestOptions));
|
|
385
|
+
}
|
|
386
|
+
async __expenseReportsCreate(request, requestOptions) {
|
|
387
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
388
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
389
|
+
const _response = await core.fetcher({
|
|
390
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
391
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
392
|
+
environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/create"),
|
|
393
|
+
method: "POST",
|
|
394
|
+
headers: _headers,
|
|
395
|
+
contentType: "application/json",
|
|
396
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
397
|
+
requestType: "json",
|
|
398
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
399
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
400
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
401
|
+
abortSignal: requestOptions?.abortSignal,
|
|
402
|
+
fetchFn: this._options?.fetch,
|
|
403
|
+
logging: this._options.logging,
|
|
404
|
+
});
|
|
405
|
+
if (_response.ok) {
|
|
406
|
+
return {
|
|
407
|
+
data: _response.body,
|
|
408
|
+
rawResponse: _response.rawResponse,
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
if (_response.error.reason === "status-code") {
|
|
412
|
+
switch (_response.error.statusCode) {
|
|
413
|
+
case 400:
|
|
414
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
415
|
+
case 401:
|
|
416
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
417
|
+
case 402:
|
|
418
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
419
|
+
case 403:
|
|
420
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
421
|
+
case 404:
|
|
422
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 409:
|
|
424
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
425
|
+
case 413:
|
|
426
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 422:
|
|
428
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
429
|
+
case 429:
|
|
430
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
431
|
+
case 500:
|
|
432
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
433
|
+
default:
|
|
434
|
+
throw new errors.NordletApiError({
|
|
435
|
+
statusCode: _response.error.statusCode,
|
|
436
|
+
body: _response.error.body,
|
|
437
|
+
rawResponse: _response.rawResponse,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/create");
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @param {NordletApi.ExpenseReportsGetCashRequest} request
|
|
445
|
+
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
446
|
+
*
|
|
447
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
448
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
449
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
450
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
451
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
452
|
+
* @throws {@link NordletApi.ConflictError}
|
|
453
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
454
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
455
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
456
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* await client.cash.expenseReportsGet({
|
|
460
|
+
* id: "id"
|
|
461
|
+
* })
|
|
462
|
+
*/
|
|
463
|
+
expenseReportsGet(request, requestOptions) {
|
|
464
|
+
return core.HttpResponsePromise.fromPromise(this.__expenseReportsGet(request, requestOptions));
|
|
465
|
+
}
|
|
466
|
+
async __expenseReportsGet(request, requestOptions) {
|
|
467
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
468
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
469
|
+
const _response = await core.fetcher({
|
|
470
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
471
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
472
|
+
environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/get"),
|
|
473
|
+
method: "POST",
|
|
474
|
+
headers: _headers,
|
|
475
|
+
contentType: "application/json",
|
|
476
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
477
|
+
requestType: "json",
|
|
478
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
479
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
480
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
481
|
+
abortSignal: requestOptions?.abortSignal,
|
|
482
|
+
fetchFn: this._options?.fetch,
|
|
483
|
+
logging: this._options.logging,
|
|
484
|
+
});
|
|
485
|
+
if (_response.ok) {
|
|
486
|
+
return {
|
|
487
|
+
data: _response.body,
|
|
488
|
+
rawResponse: _response.rawResponse,
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
if (_response.error.reason === "status-code") {
|
|
492
|
+
switch (_response.error.statusCode) {
|
|
493
|
+
case 400:
|
|
494
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
495
|
+
case 401:
|
|
496
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
497
|
+
case 402:
|
|
498
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
499
|
+
case 403:
|
|
500
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
501
|
+
case 404:
|
|
502
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
503
|
+
case 409:
|
|
504
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
505
|
+
case 413:
|
|
506
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
507
|
+
case 422:
|
|
508
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
509
|
+
case 429:
|
|
510
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
511
|
+
case 500:
|
|
512
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
513
|
+
default:
|
|
514
|
+
throw new errors.NordletApiError({
|
|
515
|
+
statusCode: _response.error.statusCode,
|
|
516
|
+
body: _response.error.body,
|
|
517
|
+
rawResponse: _response.rawResponse,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/get");
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @param {NordletApi.ExpenseReportsListCashRequest} request
|
|
525
|
+
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
526
|
+
*
|
|
527
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
528
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
529
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
530
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
531
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
532
|
+
* @throws {@link NordletApi.ConflictError}
|
|
533
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
534
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
535
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
536
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
537
|
+
*
|
|
538
|
+
* @example
|
|
539
|
+
* await client.cash.expenseReportsList()
|
|
540
|
+
*/
|
|
541
|
+
expenseReportsList(request = {}, requestOptions) {
|
|
542
|
+
return core.HttpResponsePromise.fromPromise(this.__expenseReportsList(request, requestOptions));
|
|
543
|
+
}
|
|
544
|
+
async __expenseReportsList(request = {}, requestOptions) {
|
|
545
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
546
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
547
|
+
const _response = await core.fetcher({
|
|
548
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
549
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
550
|
+
environments.NordletApiEnvironment.Production, "v1/cash/expense-reports/list"),
|
|
551
|
+
method: "POST",
|
|
552
|
+
headers: _headers,
|
|
553
|
+
contentType: "application/json",
|
|
554
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
555
|
+
requestType: "json",
|
|
556
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
557
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
558
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
559
|
+
abortSignal: requestOptions?.abortSignal,
|
|
560
|
+
fetchFn: this._options?.fetch,
|
|
561
|
+
logging: this._options.logging,
|
|
562
|
+
});
|
|
563
|
+
if (_response.ok) {
|
|
564
|
+
return {
|
|
565
|
+
data: _response.body,
|
|
566
|
+
rawResponse: _response.rawResponse,
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
if (_response.error.reason === "status-code") {
|
|
570
|
+
switch (_response.error.statusCode) {
|
|
571
|
+
case 400:
|
|
572
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
573
|
+
case 401:
|
|
574
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
575
|
+
case 402:
|
|
576
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
577
|
+
case 403:
|
|
578
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
579
|
+
case 404:
|
|
580
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
581
|
+
case 409:
|
|
582
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
583
|
+
case 413:
|
|
584
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
585
|
+
case 422:
|
|
586
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
587
|
+
case 429:
|
|
588
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
589
|
+
case 500:
|
|
590
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
591
|
+
default:
|
|
592
|
+
throw new errors.NordletApiError({
|
|
593
|
+
statusCode: _response.error.statusCode,
|
|
594
|
+
body: _response.error.body,
|
|
595
|
+
rawResponse: _response.rawResponse,
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/cash/expense-reports/list");
|
|
600
|
+
}
|
|
358
601
|
/**
|
|
359
602
|
* @param {NordletApi.AdvanceHoldersBalancesCashRequest} request
|
|
360
603
|
* @param {CashClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* employeeId: "employeeId",
|
|
5
|
+
* date: "2026-07-01",
|
|
6
|
+
* lines: [{
|
|
7
|
+
* description: "description",
|
|
8
|
+
* accountCode: "accountCode",
|
|
9
|
+
* netAmount: "121.00"
|
|
10
|
+
* }]
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ExpenseReportsCreateCashRequest {
|
|
14
|
+
employeeId: string;
|
|
15
|
+
date: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
lines: ExpenseReportsCreateCashRequest.Lines.Item[];
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ExpenseReportsCreateCashRequest {
|
|
20
|
+
type Lines = Lines.Item[];
|
|
21
|
+
namespace Lines {
|
|
22
|
+
interface Item {
|
|
23
|
+
description: string;
|
|
24
|
+
documentNumber?: string | undefined;
|
|
25
|
+
accountCode: string;
|
|
26
|
+
netAmount: string;
|
|
27
|
+
vatAmount?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ExpenseReportsListCashRequest {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
sort?: ExpenseReportsListCashRequest.Sort.Item[];
|
|
9
|
+
filter?: ExpenseReportsListCashRequest.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 ExpenseReportsListCashRequest {
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExpenseReportsListCashRequest = void 0;
|
|
5
|
+
var ExpenseReportsListCashRequest;
|
|
6
|
+
(function (ExpenseReportsListCashRequest) {
|
|
7
|
+
let Sort;
|
|
8
|
+
(function (Sort) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.Dir = {
|
|
12
|
+
Asc: "asc",
|
|
13
|
+
Desc: "desc",
|
|
14
|
+
};
|
|
15
|
+
})(Item = Sort.Item || (Sort.Item = {}));
|
|
16
|
+
})(Sort = ExpenseReportsListCashRequest.Sort || (ExpenseReportsListCashRequest.Sort = {}));
|
|
17
|
+
let Filter;
|
|
18
|
+
(function (Filter) {
|
|
19
|
+
let Item;
|
|
20
|
+
(function (Item) {
|
|
21
|
+
Item.Op = {
|
|
22
|
+
Eq: "eq",
|
|
23
|
+
Ne: "ne",
|
|
24
|
+
Contains: "contains",
|
|
25
|
+
Gte: "gte",
|
|
26
|
+
Lte: "lte",
|
|
27
|
+
In: "in",
|
|
28
|
+
};
|
|
29
|
+
})(Item = Filter.Item || (Filter.Item = {}));
|
|
30
|
+
})(Filter = ExpenseReportsListCashRequest.Filter || (ExpenseReportsListCashRequest.Filter = {}));
|
|
31
|
+
})(ExpenseReportsListCashRequest || (exports.ExpenseReportsListCashRequest = ExpenseReportsListCashRequest = {}));
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* type: "receipt",
|
|
5
5
|
* date: "2026-07-01",
|
|
6
6
|
* amount: "121.0000",
|
|
7
|
-
* purpose: "purpose"
|
|
8
|
-
* counterAccountCode: "counterAccountCode"
|
|
7
|
+
* purpose: "purpose"
|
|
9
8
|
* }
|
|
10
9
|
*/
|
|
11
10
|
export interface OrdersCreateCashRequest {
|
|
@@ -13,8 +12,10 @@ export interface OrdersCreateCashRequest {
|
|
|
13
12
|
date: string;
|
|
14
13
|
amount: string;
|
|
15
14
|
purpose: string;
|
|
16
|
-
counterAccountCode
|
|
15
|
+
counterAccountCode?: string;
|
|
17
16
|
cashAccountCode?: string;
|
|
17
|
+
saleInvoiceId?: string;
|
|
18
|
+
purchaseInvoiceId?: string;
|
|
18
19
|
series?: string;
|
|
19
20
|
partnerId?: string;
|
|
20
21
|
employeeId?: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export type { AdvanceHoldersBalancesCashRequest } from "./AdvanceHoldersBalancesCashRequest.js";
|
|
2
2
|
export type { BalanceCashRequest } from "./BalanceCashRequest.js";
|
|
3
|
+
export type { ExpenseReportsCreateCashRequest } from "./ExpenseReportsCreateCashRequest.js";
|
|
4
|
+
export type { ExpenseReportsGetCashRequest } from "./ExpenseReportsGetCashRequest.js";
|
|
5
|
+
export { ExpenseReportsListCashRequest } from "./ExpenseReportsListCashRequest.js";
|
|
3
6
|
export { OrdersCreateCashRequest } from "./OrdersCreateCashRequest.js";
|
|
4
7
|
export type { OrdersGetCashRequest } from "./OrdersGetCashRequest.js";
|
|
5
8
|
export { OrdersListCashRequest } from "./OrdersListCashRequest.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersListCashRequest = exports.OrdersCreateCashRequest = void 0;
|
|
3
|
+
exports.OrdersListCashRequest = exports.OrdersCreateCashRequest = exports.ExpenseReportsListCashRequest = void 0;
|
|
4
|
+
var ExpenseReportsListCashRequest_js_1 = require("./ExpenseReportsListCashRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "ExpenseReportsListCashRequest", { enumerable: true, get: function () { return ExpenseReportsListCashRequest_js_1.ExpenseReportsListCashRequest; } });
|
|
4
6
|
var OrdersCreateCashRequest_js_1 = require("./OrdersCreateCashRequest.js");
|
|
5
7
|
Object.defineProperty(exports, "OrdersCreateCashRequest", { enumerable: true, get: function () { return OrdersCreateCashRequest_js_1.OrdersCreateCashRequest; } });
|
|
6
8
|
var OrdersListCashRequest_js_1 = require("./OrdersListCashRequest.js");
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ExpenseReportsCreateCashResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
number: string;
|
|
4
|
+
employeeId: string;
|
|
5
|
+
date: string;
|
|
6
|
+
netTotal: string;
|
|
7
|
+
vatTotal: string;
|
|
8
|
+
total: string;
|
|
9
|
+
journalTransactionId: string | null;
|
|
10
|
+
notes: string | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
lines: ExpenseReportsCreateCashResponse.Lines.Item[];
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ExpenseReportsCreateCashResponse {
|
|
15
|
+
type Lines = Lines.Item[];
|
|
16
|
+
namespace Lines {
|
|
17
|
+
interface Item {
|
|
18
|
+
id: string;
|
|
19
|
+
description: string;
|
|
20
|
+
documentNumber: string | null;
|
|
21
|
+
accountCode: string;
|
|
22
|
+
netAmount: string;
|
|
23
|
+
vatAmount: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ExpenseReportsGetCashResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
number: string;
|
|
4
|
+
employeeId: string;
|
|
5
|
+
date: string;
|
|
6
|
+
netTotal: string;
|
|
7
|
+
vatTotal: string;
|
|
8
|
+
total: string;
|
|
9
|
+
journalTransactionId: string | null;
|
|
10
|
+
notes: string | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
lines: ExpenseReportsGetCashResponse.Lines.Item[];
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ExpenseReportsGetCashResponse {
|
|
15
|
+
type Lines = Lines.Item[];
|
|
16
|
+
namespace Lines {
|
|
17
|
+
interface Item {
|
|
18
|
+
id: string;
|
|
19
|
+
description: string;
|
|
20
|
+
documentNumber: string | null;
|
|
21
|
+
accountCode: string;
|
|
22
|
+
netAmount: string;
|
|
23
|
+
vatAmount: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ExpenseReportsListCashResponse {
|
|
2
|
+
rows: ExpenseReportsListCashResponse.Rows.Item[];
|
|
3
|
+
page: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
total: number;
|
|
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;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace ExpenseReportsListCashResponse {
|
|
11
|
+
type Rows = Rows.Item[];
|
|
12
|
+
namespace Rows {
|
|
13
|
+
interface Item {
|
|
14
|
+
id: string;
|
|
15
|
+
number: string;
|
|
16
|
+
employeeId: string;
|
|
17
|
+
date: string;
|
|
18
|
+
netTotal: string;
|
|
19
|
+
vatTotal: string;
|
|
20
|
+
total: string;
|
|
21
|
+
journalTransactionId: string | null;
|
|
22
|
+
notes: string | null;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -13,6 +13,8 @@ export interface OrdersCreateCashResponse {
|
|
|
13
13
|
cashAccountCode: string;
|
|
14
14
|
counterAccountCode: string;
|
|
15
15
|
journalTransactionId: string | null;
|
|
16
|
+
saleInvoiceId: string | null;
|
|
17
|
+
purchaseInvoiceId: string | null;
|
|
16
18
|
notes: string | null;
|
|
17
19
|
createdAt: string;
|
|
18
20
|
}
|
|
@@ -13,6 +13,8 @@ export interface OrdersGetCashResponse {
|
|
|
13
13
|
cashAccountCode: string;
|
|
14
14
|
counterAccountCode: string;
|
|
15
15
|
journalTransactionId: string | null;
|
|
16
|
+
saleInvoiceId: string | null;
|
|
17
|
+
purchaseInvoiceId: string | null;
|
|
16
18
|
notes: string | null;
|
|
17
19
|
createdAt: string;
|
|
18
20
|
}
|
|
@@ -4,6 +4,8 @@ export interface OrdersListCashResponse {
|
|
|
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 OrdersListCashResponse {
|
|
9
11
|
type Rows = Rows.Item[];
|
|
@@ -23,6 +25,8 @@ export declare namespace OrdersListCashResponse {
|
|
|
23
25
|
cashAccountCode: string;
|
|
24
26
|
counterAccountCode: string;
|
|
25
27
|
journalTransactionId: string | null;
|
|
28
|
+
saleInvoiceId: string | null;
|
|
29
|
+
purchaseInvoiceId: string | null;
|
|
26
30
|
notes: string | null;
|
|
27
31
|
createdAt: string;
|
|
28
32
|
}
|