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
|
@@ -512,5 +512,546 @@ class PosClient {
|
|
|
512
512
|
}
|
|
513
513
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/reports/list");
|
|
514
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* @param {NordletApi.ShiftsOpenPosRequest} request
|
|
517
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
518
|
+
*
|
|
519
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
520
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
521
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
522
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
523
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
524
|
+
* @throws {@link NordletApi.ConflictError}
|
|
525
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
526
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
527
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
528
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
529
|
+
*
|
|
530
|
+
* @example
|
|
531
|
+
* await client.pos.shiftsOpen({
|
|
532
|
+
* deviceId: "deviceId"
|
|
533
|
+
* })
|
|
534
|
+
*/
|
|
535
|
+
shiftsOpen(request, requestOptions) {
|
|
536
|
+
return core.HttpResponsePromise.fromPromise(this.__shiftsOpen(request, requestOptions));
|
|
537
|
+
}
|
|
538
|
+
async __shiftsOpen(request, requestOptions) {
|
|
539
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
540
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
541
|
+
const _response = await core.fetcher({
|
|
542
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
543
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
544
|
+
environments.NordletApiEnvironment.Production, "v1/pos/shifts/open"),
|
|
545
|
+
method: "POST",
|
|
546
|
+
headers: _headers,
|
|
547
|
+
contentType: "application/json",
|
|
548
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
549
|
+
requestType: "json",
|
|
550
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
551
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
552
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
553
|
+
abortSignal: requestOptions?.abortSignal,
|
|
554
|
+
fetchFn: this._options?.fetch,
|
|
555
|
+
logging: this._options.logging,
|
|
556
|
+
});
|
|
557
|
+
if (_response.ok) {
|
|
558
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
559
|
+
}
|
|
560
|
+
if (_response.error.reason === "status-code") {
|
|
561
|
+
switch (_response.error.statusCode) {
|
|
562
|
+
case 400:
|
|
563
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
564
|
+
case 401:
|
|
565
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
566
|
+
case 402:
|
|
567
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
568
|
+
case 403:
|
|
569
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
570
|
+
case 404:
|
|
571
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
572
|
+
case 409:
|
|
573
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
574
|
+
case 413:
|
|
575
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
576
|
+
case 422:
|
|
577
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
578
|
+
case 429:
|
|
579
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
580
|
+
case 500:
|
|
581
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
582
|
+
default:
|
|
583
|
+
throw new errors.NordletApiError({
|
|
584
|
+
statusCode: _response.error.statusCode,
|
|
585
|
+
body: _response.error.body,
|
|
586
|
+
rawResponse: _response.rawResponse,
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/shifts/open");
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* @param {NordletApi.ShiftsGetPosRequest} request
|
|
594
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
595
|
+
*
|
|
596
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
597
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
598
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
599
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
600
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
601
|
+
* @throws {@link NordletApi.ConflictError}
|
|
602
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
603
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
604
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
605
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
606
|
+
*
|
|
607
|
+
* @example
|
|
608
|
+
* await client.pos.shiftsGet({
|
|
609
|
+
* id: "id"
|
|
610
|
+
* })
|
|
611
|
+
*/
|
|
612
|
+
shiftsGet(request, requestOptions) {
|
|
613
|
+
return core.HttpResponsePromise.fromPromise(this.__shiftsGet(request, requestOptions));
|
|
614
|
+
}
|
|
615
|
+
async __shiftsGet(request, requestOptions) {
|
|
616
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
617
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
618
|
+
const _response = await core.fetcher({
|
|
619
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
620
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
621
|
+
environments.NordletApiEnvironment.Production, "v1/pos/shifts/get"),
|
|
622
|
+
method: "POST",
|
|
623
|
+
headers: _headers,
|
|
624
|
+
contentType: "application/json",
|
|
625
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
626
|
+
requestType: "json",
|
|
627
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
628
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
629
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
630
|
+
abortSignal: requestOptions?.abortSignal,
|
|
631
|
+
fetchFn: this._options?.fetch,
|
|
632
|
+
logging: this._options.logging,
|
|
633
|
+
});
|
|
634
|
+
if (_response.ok) {
|
|
635
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
636
|
+
}
|
|
637
|
+
if (_response.error.reason === "status-code") {
|
|
638
|
+
switch (_response.error.statusCode) {
|
|
639
|
+
case 400:
|
|
640
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
641
|
+
case 401:
|
|
642
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
643
|
+
case 402:
|
|
644
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
645
|
+
case 403:
|
|
646
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
647
|
+
case 404:
|
|
648
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
649
|
+
case 409:
|
|
650
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
651
|
+
case 413:
|
|
652
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
653
|
+
case 422:
|
|
654
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
655
|
+
case 429:
|
|
656
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
657
|
+
case 500:
|
|
658
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
659
|
+
default:
|
|
660
|
+
throw new errors.NordletApiError({
|
|
661
|
+
statusCode: _response.error.statusCode,
|
|
662
|
+
body: _response.error.body,
|
|
663
|
+
rawResponse: _response.rawResponse,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/shifts/get");
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* @param {NordletApi.ShiftsListPosRequest} request
|
|
671
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
672
|
+
*
|
|
673
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
674
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
675
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
676
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
677
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
678
|
+
* @throws {@link NordletApi.ConflictError}
|
|
679
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
680
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
681
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
682
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
683
|
+
*
|
|
684
|
+
* @example
|
|
685
|
+
* await client.pos.shiftsList()
|
|
686
|
+
*/
|
|
687
|
+
shiftsList(request = {}, requestOptions) {
|
|
688
|
+
return core.HttpResponsePromise.fromPromise(this.__shiftsList(request, requestOptions));
|
|
689
|
+
}
|
|
690
|
+
async __shiftsList(request = {}, requestOptions) {
|
|
691
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
692
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
693
|
+
const _response = await core.fetcher({
|
|
694
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
695
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
696
|
+
environments.NordletApiEnvironment.Production, "v1/pos/shifts/list"),
|
|
697
|
+
method: "POST",
|
|
698
|
+
headers: _headers,
|
|
699
|
+
contentType: "application/json",
|
|
700
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
701
|
+
requestType: "json",
|
|
702
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
703
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
704
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
705
|
+
abortSignal: requestOptions?.abortSignal,
|
|
706
|
+
fetchFn: this._options?.fetch,
|
|
707
|
+
logging: this._options.logging,
|
|
708
|
+
});
|
|
709
|
+
if (_response.ok) {
|
|
710
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
711
|
+
}
|
|
712
|
+
if (_response.error.reason === "status-code") {
|
|
713
|
+
switch (_response.error.statusCode) {
|
|
714
|
+
case 400:
|
|
715
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
716
|
+
case 401:
|
|
717
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
718
|
+
case 402:
|
|
719
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
720
|
+
case 403:
|
|
721
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
722
|
+
case 404:
|
|
723
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
724
|
+
case 409:
|
|
725
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
726
|
+
case 413:
|
|
727
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
728
|
+
case 422:
|
|
729
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
730
|
+
case 429:
|
|
731
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
732
|
+
case 500:
|
|
733
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
734
|
+
default:
|
|
735
|
+
throw new errors.NordletApiError({
|
|
736
|
+
statusCode: _response.error.statusCode,
|
|
737
|
+
body: _response.error.body,
|
|
738
|
+
rawResponse: _response.rawResponse,
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/shifts/list");
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @param {NordletApi.ReceiptsCreatePosRequest} request
|
|
746
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
747
|
+
*
|
|
748
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
749
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
750
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
751
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
752
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
753
|
+
* @throws {@link NordletApi.ConflictError}
|
|
754
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
755
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
756
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
757
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
758
|
+
*
|
|
759
|
+
* @example
|
|
760
|
+
* await client.pos.receiptsCreate({
|
|
761
|
+
* shiftId: "shiftId",
|
|
762
|
+
* lines: [{
|
|
763
|
+
* quantity: "121.0000",
|
|
764
|
+
* unitPriceInclVat: "121.0000",
|
|
765
|
+
* vatRatePercent: "121.00"
|
|
766
|
+
* }]
|
|
767
|
+
* })
|
|
768
|
+
*/
|
|
769
|
+
receiptsCreate(request, requestOptions) {
|
|
770
|
+
return core.HttpResponsePromise.fromPromise(this.__receiptsCreate(request, requestOptions));
|
|
771
|
+
}
|
|
772
|
+
async __receiptsCreate(request, requestOptions) {
|
|
773
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
774
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
775
|
+
const _response = await core.fetcher({
|
|
776
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
777
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
778
|
+
environments.NordletApiEnvironment.Production, "v1/pos/receipts/create"),
|
|
779
|
+
method: "POST",
|
|
780
|
+
headers: _headers,
|
|
781
|
+
contentType: "application/json",
|
|
782
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
783
|
+
requestType: "json",
|
|
784
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
785
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
786
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
787
|
+
abortSignal: requestOptions?.abortSignal,
|
|
788
|
+
fetchFn: this._options?.fetch,
|
|
789
|
+
logging: this._options.logging,
|
|
790
|
+
});
|
|
791
|
+
if (_response.ok) {
|
|
792
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
793
|
+
}
|
|
794
|
+
if (_response.error.reason === "status-code") {
|
|
795
|
+
switch (_response.error.statusCode) {
|
|
796
|
+
case 400:
|
|
797
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
798
|
+
case 401:
|
|
799
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
800
|
+
case 402:
|
|
801
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
802
|
+
case 403:
|
|
803
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
804
|
+
case 404:
|
|
805
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
806
|
+
case 409:
|
|
807
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
808
|
+
case 413:
|
|
809
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
810
|
+
case 422:
|
|
811
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
812
|
+
case 429:
|
|
813
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
814
|
+
case 500:
|
|
815
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
816
|
+
default:
|
|
817
|
+
throw new errors.NordletApiError({
|
|
818
|
+
statusCode: _response.error.statusCode,
|
|
819
|
+
body: _response.error.body,
|
|
820
|
+
rawResponse: _response.rawResponse,
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/receipts/create");
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* @param {NordletApi.ReceiptsListPosRequest} request
|
|
828
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
829
|
+
*
|
|
830
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
831
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
832
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
833
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
834
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
835
|
+
* @throws {@link NordletApi.ConflictError}
|
|
836
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
837
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
838
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
839
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
840
|
+
*
|
|
841
|
+
* @example
|
|
842
|
+
* await client.pos.receiptsList()
|
|
843
|
+
*/
|
|
844
|
+
receiptsList(request = {}, requestOptions) {
|
|
845
|
+
return core.HttpResponsePromise.fromPromise(this.__receiptsList(request, requestOptions));
|
|
846
|
+
}
|
|
847
|
+
async __receiptsList(request = {}, requestOptions) {
|
|
848
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
849
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
850
|
+
const _response = await core.fetcher({
|
|
851
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
852
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
853
|
+
environments.NordletApiEnvironment.Production, "v1/pos/receipts/list"),
|
|
854
|
+
method: "POST",
|
|
855
|
+
headers: _headers,
|
|
856
|
+
contentType: "application/json",
|
|
857
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
858
|
+
requestType: "json",
|
|
859
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
860
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
861
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
862
|
+
abortSignal: requestOptions?.abortSignal,
|
|
863
|
+
fetchFn: this._options?.fetch,
|
|
864
|
+
logging: this._options.logging,
|
|
865
|
+
});
|
|
866
|
+
if (_response.ok) {
|
|
867
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
868
|
+
}
|
|
869
|
+
if (_response.error.reason === "status-code") {
|
|
870
|
+
switch (_response.error.statusCode) {
|
|
871
|
+
case 400:
|
|
872
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
873
|
+
case 401:
|
|
874
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
875
|
+
case 402:
|
|
876
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
877
|
+
case 403:
|
|
878
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
879
|
+
case 404:
|
|
880
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
881
|
+
case 409:
|
|
882
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
883
|
+
case 413:
|
|
884
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
885
|
+
case 422:
|
|
886
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
887
|
+
case 429:
|
|
888
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
889
|
+
case 500:
|
|
890
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
891
|
+
default:
|
|
892
|
+
throw new errors.NordletApiError({
|
|
893
|
+
statusCode: _response.error.statusCode,
|
|
894
|
+
body: _response.error.body,
|
|
895
|
+
rawResponse: _response.rawResponse,
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/receipts/list");
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @param {NordletApi.ReceiptsGetPosRequest} request
|
|
903
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
904
|
+
*
|
|
905
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
906
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
907
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
908
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
909
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
910
|
+
* @throws {@link NordletApi.ConflictError}
|
|
911
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
912
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
913
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
914
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
915
|
+
*
|
|
916
|
+
* @example
|
|
917
|
+
* await client.pos.receiptsGet({
|
|
918
|
+
* id: "id"
|
|
919
|
+
* })
|
|
920
|
+
*/
|
|
921
|
+
receiptsGet(request, requestOptions) {
|
|
922
|
+
return core.HttpResponsePromise.fromPromise(this.__receiptsGet(request, requestOptions));
|
|
923
|
+
}
|
|
924
|
+
async __receiptsGet(request, requestOptions) {
|
|
925
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
926
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
927
|
+
const _response = await core.fetcher({
|
|
928
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
929
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
930
|
+
environments.NordletApiEnvironment.Production, "v1/pos/receipts/get"),
|
|
931
|
+
method: "POST",
|
|
932
|
+
headers: _headers,
|
|
933
|
+
contentType: "application/json",
|
|
934
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
935
|
+
requestType: "json",
|
|
936
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
937
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
938
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
939
|
+
abortSignal: requestOptions?.abortSignal,
|
|
940
|
+
fetchFn: this._options?.fetch,
|
|
941
|
+
logging: this._options.logging,
|
|
942
|
+
});
|
|
943
|
+
if (_response.ok) {
|
|
944
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
945
|
+
}
|
|
946
|
+
if (_response.error.reason === "status-code") {
|
|
947
|
+
switch (_response.error.statusCode) {
|
|
948
|
+
case 400:
|
|
949
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
950
|
+
case 401:
|
|
951
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
952
|
+
case 402:
|
|
953
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
954
|
+
case 403:
|
|
955
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
956
|
+
case 404:
|
|
957
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
958
|
+
case 409:
|
|
959
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
960
|
+
case 413:
|
|
961
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
962
|
+
case 422:
|
|
963
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
964
|
+
case 429:
|
|
965
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
966
|
+
case 500:
|
|
967
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
968
|
+
default:
|
|
969
|
+
throw new errors.NordletApiError({
|
|
970
|
+
statusCode: _response.error.statusCode,
|
|
971
|
+
body: _response.error.body,
|
|
972
|
+
rawResponse: _response.rawResponse,
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/receipts/get");
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* @param {NordletApi.ShiftsClosePosRequest} request
|
|
980
|
+
* @param {PosClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
981
|
+
*
|
|
982
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
983
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
984
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
985
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
986
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
987
|
+
* @throws {@link NordletApi.ConflictError}
|
|
988
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
989
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
990
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
991
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
992
|
+
*
|
|
993
|
+
* @example
|
|
994
|
+
* await client.pos.shiftsClose({
|
|
995
|
+
* id: "id",
|
|
996
|
+
* countedCash: "121.00"
|
|
997
|
+
* })
|
|
998
|
+
*/
|
|
999
|
+
shiftsClose(request, requestOptions) {
|
|
1000
|
+
return core.HttpResponsePromise.fromPromise(this.__shiftsClose(request, requestOptions));
|
|
1001
|
+
}
|
|
1002
|
+
async __shiftsClose(request, requestOptions) {
|
|
1003
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1004
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1005
|
+
const _response = await core.fetcher({
|
|
1006
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1007
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1008
|
+
environments.NordletApiEnvironment.Production, "v1/pos/shifts/close"),
|
|
1009
|
+
method: "POST",
|
|
1010
|
+
headers: _headers,
|
|
1011
|
+
contentType: "application/json",
|
|
1012
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1013
|
+
requestType: "json",
|
|
1014
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1015
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1016
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1017
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1018
|
+
fetchFn: this._options?.fetch,
|
|
1019
|
+
logging: this._options.logging,
|
|
1020
|
+
});
|
|
1021
|
+
if (_response.ok) {
|
|
1022
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1023
|
+
}
|
|
1024
|
+
if (_response.error.reason === "status-code") {
|
|
1025
|
+
switch (_response.error.statusCode) {
|
|
1026
|
+
case 400:
|
|
1027
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1028
|
+
case 401:
|
|
1029
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1030
|
+
case 402:
|
|
1031
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1032
|
+
case 403:
|
|
1033
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1034
|
+
case 404:
|
|
1035
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1036
|
+
case 409:
|
|
1037
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1038
|
+
case 413:
|
|
1039
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
1040
|
+
case 422:
|
|
1041
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1042
|
+
case 429:
|
|
1043
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1044
|
+
case 500:
|
|
1045
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1046
|
+
default:
|
|
1047
|
+
throw new errors.NordletApiError({
|
|
1048
|
+
statusCode: _response.error.statusCode,
|
|
1049
|
+
body: _response.error.body,
|
|
1050
|
+
rawResponse: _response.rawResponse,
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pos/shifts/close");
|
|
1055
|
+
}
|
|
515
1056
|
}
|
|
516
1057
|
exports.PosClient = PosClient;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* shiftId: "shiftId",
|
|
5
|
+
* lines: [{
|
|
6
|
+
* quantity: "121.0000",
|
|
7
|
+
* unitPriceInclVat: "121.0000",
|
|
8
|
+
* vatRatePercent: "121.00"
|
|
9
|
+
* }]
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ReceiptsCreatePosRequest {
|
|
13
|
+
shiftId: string;
|
|
14
|
+
lines: ReceiptsCreatePosRequest.Lines.Item[];
|
|
15
|
+
cashAmount?: string;
|
|
16
|
+
cardAmount?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace ReceiptsCreatePosRequest {
|
|
19
|
+
type Lines = Lines.Item[];
|
|
20
|
+
namespace Lines {
|
|
21
|
+
interface Item {
|
|
22
|
+
itemId?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
quantity: string;
|
|
25
|
+
unitPriceInclVat: string;
|
|
26
|
+
vatRatePercent: string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ReceiptsListPosRequest {
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
sort?: ReceiptsListPosRequest.Sort.Item[];
|
|
9
|
+
filter?: ReceiptsListPosRequest.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 ReceiptsListPosRequest {
|
|
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.ReceiptsListPosRequest = void 0;
|
|
5
|
+
var ReceiptsListPosRequest;
|
|
6
|
+
(function (ReceiptsListPosRequest) {
|
|
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 = ReceiptsListPosRequest.Sort || (ReceiptsListPosRequest.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 = ReceiptsListPosRequest.Filter || (ReceiptsListPosRequest.Filter = {}));
|
|
31
|
+
})(ReceiptsListPosRequest || (exports.ReceiptsListPosRequest = ReceiptsListPosRequest = {}));
|