nordlet 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +52 -48
- package/dist/api/resources/account/client/Client.d.ts +76 -0
- package/dist/api/resources/account/client/Client.js +292 -0
- package/dist/api/resources/account/client/requests/PostV1AccountLoginLinkRequestRequest.d.ts +1 -0
- package/dist/api/resources/account/client/requests/PostV1AccountReferralGetRequest.d.ts +5 -0
- package/dist/api/resources/account/client/requests/PostV1AccountReferralGetRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsGetRequest.d.ts +9 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsGetRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsListRequest.d.ts +5 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsListRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsSetRequest.d.ts +11 -0
- package/dist/api/resources/account/client/requests/PostV1AccountTableSettingsSetRequest.js +3 -0
- package/dist/api/resources/account/client/requests/index.d.ts +4 -0
- package/dist/api/resources/account/types/PostV1AccountMeResponse.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountReferralGetResponse.d.ts +17 -0
- package/dist/api/resources/account/types/PostV1AccountReferralGetResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsGetResponse.d.ts +5 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsGetResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsListResponse.d.ts +13 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsListResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsSetResponse.d.ts +5 -0
- package/dist/api/resources/account/types/PostV1AccountTableSettingsSetResponse.js +3 -0
- package/dist/api/resources/account/types/index.d.ts +4 -0
- package/dist/api/resources/account/types/index.js +4 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsListRequest.d.ts +2 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsInsurancePoliciesListRequest.d.ts +2 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsTypesListRequest.d.ts +2 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsListResponse.d.ts +1 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsInsurancePoliciesListResponse.d.ts +1 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsTypesListResponse.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/PostV1AssetsAssetsListRequest.d.ts +2 -0
- package/dist/api/resources/assets/client/requests/PostV1AssetsGroupsListRequest.d.ts +2 -0
- package/dist/api/resources/assets/types/PostV1AssetsAssetsListResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/PostV1AssetsGroupsListResponse.d.ts +1 -0
- package/dist/api/resources/audit/client/requests/PostV1AuditListRequest.d.ts +2 -0
- package/dist/api/resources/audit/types/PostV1AuditListResponse.d.ts +1 -0
- package/dist/api/resources/bank/client/Client.d.ts +124 -0
- package/dist/api/resources/bank/client/Client.js +448 -0
- package/dist/api/resources/bank/client/requests/PostV1BankAccountsListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesCreateRequest.d.ts +6 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesUpdateRequest.d.ts +6 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesCreateRequest.d.ts +16 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesCreateRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesDeleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesListRequest.d.ts +5 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesListRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesUpdateRequest.d.ts +16 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMatchRulesUpdateRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankSettlementsLinkRequest.d.ts +11 -0
- package/dist/api/resources/bank/client/requests/PostV1BankSettlementsLinkRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankSettlementsListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankSettlementsUnlinkRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankSettlementsUnlinkRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankStatementsImportRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/PostV1BankTransactionsListRequest.d.ts +2 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankAccountsListResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesCreateResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesGetResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesListResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesUpdateResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesCreateResponse.d.ts +11 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesCreateResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesDeleteResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesListResponse.d.ts +19 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesListResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesUpdateResponse.d.ts +11 -0
- package/dist/api/resources/bank/types/PostV1BankMatchRulesUpdateResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsGetResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsImportResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsLinkResponse.d.ts +26 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsLinkResponse.js +11 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsListResponse.d.ts +2 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsPostResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsUnlinkResponse.d.ts +26 -0
- package/dist/api/resources/bank/types/PostV1BankSettlementsUnlinkResponse.js +11 -0
- package/dist/api/resources/bank/types/PostV1BankStatementsImportResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/PostV1BankTransactionsListResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/index.d.ts +6 -0
- package/dist/api/resources/bank/types/index.js +6 -0
- package/dist/api/resources/billing/client/Client.d.ts +18 -0
- package/dist/api/resources/billing/client/Client.js +72 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingPortalCreateRequest.d.ts +15 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingPortalCreateRequest.js +12 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/index.js +3 -1
- package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.d.ts +2 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.d.ts +2 -0
- package/dist/api/resources/billing/types/PostV1BillingPortalCreateResponse.d.ts +3 -0
- package/dist/api/resources/billing/types/PostV1BillingPortalCreateResponse.js +3 -0
- package/dist/api/resources/billing/types/index.d.ts +1 -0
- package/dist/api/resources/billing/types/index.js +1 -0
- package/dist/api/resources/calendar/client/Client.d.ts +112 -0
- package/dist/api/resources/calendar/client/Client.js +417 -0
- package/dist/api/resources/calendar/client/index.d.ts +1 -0
- package/dist/api/resources/calendar/client/index.js +17 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarCreateRequest.d.ts +13 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarCreateRequest.js +3 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarDeleteRequest.d.ts +9 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarDeleteRequest.js +3 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarGetRequest.d.ts +9 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarGetRequest.js +3 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarListRequest.d.ts +9 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarListRequest.js +3 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarUpdateRequest.d.ts +13 -0
- package/dist/api/resources/calendar/client/requests/PostV1CalendarUpdateRequest.js +3 -0
- package/dist/api/resources/calendar/client/requests/index.d.ts +5 -0
- package/dist/api/resources/calendar/client/requests/index.js +2 -0
- package/dist/api/resources/calendar/exports.d.ts +2 -0
- package/dist/api/resources/calendar/exports.js +21 -0
- package/dist/api/resources/calendar/index.d.ts +2 -0
- package/dist/api/resources/calendar/index.js +18 -0
- package/dist/api/resources/calendar/types/PostV1CalendarCreateResponse.d.ts +19 -0
- package/dist/api/resources/calendar/types/PostV1CalendarCreateResponse.js +11 -0
- package/dist/api/resources/calendar/types/PostV1CalendarDeleteResponse.d.ts +3 -0
- package/dist/api/resources/calendar/types/PostV1CalendarDeleteResponse.js +3 -0
- package/dist/api/resources/calendar/types/PostV1CalendarGetResponse.d.ts +19 -0
- package/dist/api/resources/calendar/types/PostV1CalendarGetResponse.js +11 -0
- package/dist/api/resources/calendar/types/PostV1CalendarListResponse.d.ts +27 -0
- package/dist/api/resources/calendar/types/PostV1CalendarListResponse.js +17 -0
- package/dist/api/resources/calendar/types/PostV1CalendarUpdateResponse.d.ts +19 -0
- package/dist/api/resources/calendar/types/PostV1CalendarUpdateResponse.js +11 -0
- package/dist/api/resources/calendar/types/index.d.ts +5 -0
- package/dist/api/resources/calendar/types/index.js +21 -0
- package/dist/api/resources/capture/client/Client.d.ts +72 -0
- package/dist/api/resources/capture/client/Client.js +288 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.d.ts +2 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureInboundEmailRequest.d.ts +48 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureInboundEmailRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsGetRequest.d.ts +5 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsGetRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsRegenerateIntakeRequest.d.ts +5 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsRegenerateIntakeRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsUpdateRequest.d.ts +8 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureSettingsUpdateRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +4 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.d.ts +1 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.d.ts +1 -0
- package/dist/api/resources/capture/types/PostV1CaptureInboundEmailResponse.d.ts +5 -0
- package/dist/api/resources/capture/types/PostV1CaptureInboundEmailResponse.js +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsGetResponse.d.ts +6 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsGetResponse.js +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsRegenerateIntakeResponse.d.ts +6 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsRegenerateIntakeResponse.js +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsUpdateResponse.d.ts +6 -0
- package/dist/api/resources/capture/types/PostV1CaptureSettingsUpdateResponse.js +3 -0
- package/dist/api/resources/capture/types/index.d.ts +4 -0
- package/dist/api/resources/capture/types/index.js +4 -0
- package/dist/api/resources/cash/client/requests/PostV1CashOrdersListRequest.d.ts +2 -0
- package/dist/api/resources/cash/types/PostV1CashOrdersListResponse.d.ts +1 -0
- package/dist/api/resources/catalog/client/Client.d.ts +196 -0
- package/dist/api/resources/catalog/client/Client.js +736 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.d.ts +27 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsFilesListRequest.d.ts +9 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsFilesListRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsCreateRequest.d.ts +23 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsCreateRequest.js +13 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsDeleteRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsListRequest.d.ts +5 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsListRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsUpdateRequest.d.ts +23 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsKindsUpdateRequest.js +13 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsListRequest.d.ts +2 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.d.ts +42 -15
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsCreateRequest.d.ts +12 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsCreateRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsDeleteRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsListRequest.d.ts +5 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsListRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsOptionsRequest.d.ts +14 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsOptionsRequest.js +11 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsUpdateRequest.d.ts +12 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogUnitsUpdateRequest.js +3 -0
- package/dist/api/resources/catalog/client/requests/index.d.ts +10 -0
- package/dist/api/resources/catalog/client/requests/index.js +7 -1
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.d.ts +27 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsFilesListResponse.d.ts +19 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsFilesListResponse.js +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.d.ts +27 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsCreateResponse.d.ts +18 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsCreateResponse.js +13 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsDeleteResponse.js +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsListResponse.d.ts +26 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsListResponse.js +19 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsUpdateResponse.d.ts +18 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsKindsUpdateResponse.js +13 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.d.ts +28 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.d.ts +27 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsCreateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsCreateResponse.js +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsDeleteResponse.js +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsListResponse.d.ts +15 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsListResponse.js +3 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsOptionsResponse.d.ts +20 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsOptionsResponse.js +17 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsUpdateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogUnitsUpdateResponse.js +3 -0
- package/dist/api/resources/catalog/types/index.d.ts +10 -0
- package/dist/api/resources/catalog/types/index.js +10 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsSubmissionsListRequest.d.ts +2 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsSubmissionsListResponse.d.ts +1 -0
- package/dist/api/resources/ecommerce/client/requests/PostV1EcommerceOrdersListRequest.d.ts +2 -0
- package/dist/api/resources/ecommerce/types/PostV1EcommerceOrdersListResponse.d.ts +1 -0
- package/dist/api/resources/files/client/requests/PostV1FilesListRequest.d.ts +2 -0
- package/dist/api/resources/files/types/PostV1FilesListResponse.d.ts +1 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.d.ts +2 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.d.ts +2 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.d.ts +1 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.d.ts +1 -0
- package/dist/api/resources/hr/client/requests/PostV1HrContractsListRequest.d.ts +2 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesListRequest.d.ts +2 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesRecordsListRequest.d.ts +2 -0
- package/dist/api/resources/hr/client/requests/PostV1HrIncapacityCertificatesListRequest.d.ts +2 -0
- package/dist/api/resources/hr/client/requests/PostV1HrPositionsListRequest.d.ts +2 -0
- package/dist/api/resources/hr/types/PostV1HrContractsListResponse.d.ts +1 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesListResponse.d.ts +1 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesRecordsListResponse.d.ts +1 -0
- package/dist/api/resources/hr/types/PostV1HrIncapacityCertificatesListResponse.d.ts +1 -0
- package/dist/api/resources/hr/types/PostV1HrPositionsListResponse.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockMovementsListRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryWarehousesListRequest.d.ts +2 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/PostV1InventoryStockMovementsListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/PostV1InventoryWarehousesListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerAccountsListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerCostCenterGroupsListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerCostCentersListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerJournalTransactionsListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerOwnersListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPeriodsListRequest.d.ts +2 -0
- package/dist/api/resources/ledger/types/PostV1LedgerAccountsListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerCostCenterGroupsListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerCostCentersListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerOwnersListResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerPeriodsListResponse.d.ts +1 -0
- package/dist/api/resources/partners/client/Client.d.ts +353 -0
- package/dist/api/resources/partners/client/Client.js +1310 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsConvertRequest.d.ts +19 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsConvertRequest.js +11 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsCreateRequest.d.ts +38 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsCreateRequest.js +13 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsDeleteRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsFilesListRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsFilesListRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsGetRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsGetRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsListRequest.d.ts +48 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsListRequest.js +31 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesCreateRequest.d.ts +11 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesCreateRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesDeleteRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesListRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsNotesListRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesCreateRequest.d.ts +10 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesCreateRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesDeleteRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesListRequest.d.ts +5 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesListRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesOptionsRequest.d.ts +5 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesOptionsRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesUpdateRequest.d.ts +11 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsSourcesUpdateRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsUpdateRequest.d.ts +38 -0
- package/dist/api/resources/partners/client/requests/PostV1LeadsUpdateRequest.js +13 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersAddressesListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersBankAccountsListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersContactsListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersCreateRequest.d.ts +33 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersCreateRequest.js +5 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersDebtRemindersListRequest.d.ts +48 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersDebtRemindersListRequest.js +31 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersDebtRemindersPreviewRequest.d.ts +5 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersDebtRemindersPreviewRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersFilesListRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersFilesListRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersFindOrCreateRequest.d.ts +33 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersFindOrCreateRequest.js +5 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersInquiriesListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersUpdateRequest.d.ts +47 -14
- package/dist/api/resources/partners/client/requests/PostV1PartnersUpdateRequest.js +5 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +18 -0
- package/dist/api/resources/partners/client/requests/index.js +11 -1
- package/dist/api/resources/partners/types/PostV1LeadsConvertResponse.d.ts +36 -0
- package/dist/api/resources/partners/types/PostV1LeadsConvertResponse.js +17 -0
- package/dist/api/resources/partners/types/PostV1LeadsCreateResponse.d.ts +30 -0
- package/dist/api/resources/partners/types/PostV1LeadsCreateResponse.js +14 -0
- package/dist/api/resources/partners/types/PostV1LeadsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsDeleteResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsFilesListResponse.d.ts +15 -0
- package/dist/api/resources/partners/types/PostV1LeadsFilesListResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsGetResponse.d.ts +30 -0
- package/dist/api/resources/partners/types/PostV1LeadsGetResponse.js +14 -0
- package/dist/api/resources/partners/types/PostV1LeadsListResponse.d.ts +42 -0
- package/dist/api/resources/partners/types/PostV1LeadsListResponse.js +20 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesCreateResponse.d.ts +7 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesCreateResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesDeleteResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesListResponse.d.ts +15 -0
- package/dist/api/resources/partners/types/PostV1LeadsNotesListResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesCreateResponse.d.ts +6 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesCreateResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesDeleteResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesListResponse.d.ts +14 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesListResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesOptionsResponse.d.ts +12 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesOptionsResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesUpdateResponse.d.ts +6 -0
- package/dist/api/resources/partners/types/PostV1LeadsSourcesUpdateResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1LeadsUpdateResponse.d.ts +30 -0
- package/dist/api/resources/partners/types/PostV1LeadsUpdateResponse.js +14 -0
- package/dist/api/resources/partners/types/PostV1PartnersAddressesListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersBankAccountsListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersContactsListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersCreateResponse.d.ts +33 -0
- package/dist/api/resources/partners/types/PostV1PartnersCreateResponse.js +5 -0
- package/dist/api/resources/partners/types/PostV1PartnersDebtRemindersListResponse.d.ts +23 -0
- package/dist/api/resources/partners/types/PostV1PartnersDebtRemindersListResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1PartnersDebtRemindersPreviewResponse.d.ts +38 -0
- package/dist/api/resources/partners/types/PostV1PartnersDebtRemindersPreviewResponse.js +18 -0
- package/dist/api/resources/partners/types/PostV1PartnersFilesListResponse.d.ts +19 -0
- package/dist/api/resources/partners/types/PostV1PartnersFilesListResponse.js +3 -0
- package/dist/api/resources/partners/types/PostV1PartnersFindOrCreateResponse.d.ts +33 -0
- package/dist/api/resources/partners/types/PostV1PartnersFindOrCreateResponse.js +5 -0
- package/dist/api/resources/partners/types/PostV1PartnersGetResponse.d.ts +33 -0
- package/dist/api/resources/partners/types/PostV1PartnersGetResponse.js +5 -0
- package/dist/api/resources/partners/types/PostV1PartnersInquiriesListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersListResponse.d.ts +34 -0
- package/dist/api/resources/partners/types/PostV1PartnersListResponse.js +5 -0
- package/dist/api/resources/partners/types/PostV1PartnersUpdateResponse.d.ts +33 -0
- package/dist/api/resources/partners/types/PostV1PartnersUpdateResponse.js +5 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/index.d.ts +18 -0
- package/dist/api/resources/partners/types/index.js +18 -0
- package/dist/api/resources/payroll/client/requests/PostV1PayrollRunsListRequest.d.ts +2 -0
- package/dist/api/resources/payroll/types/PostV1PayrollRunsListResponse.d.ts +1 -0
- package/dist/api/resources/pos/client/requests/PostV1PosDevicesListRequest.d.ts +2 -0
- package/dist/api/resources/pos/client/requests/PostV1PosReportsListRequest.d.ts +2 -0
- package/dist/api/resources/pos/types/PostV1PosDevicesListResponse.d.ts +1 -0
- package/dist/api/resources/pos/types/PostV1PosReportsListResponse.d.ts +1 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionBomsListRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersListRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.d.ts +2 -0
- package/dist/api/resources/production/types/PostV1ProductionBomsListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.d.ts +1 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.d.ts +2 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.d.ts +2 -0
- package/dist/api/resources/projects/types/PostV1ProjectsListResponse.d.ts +1 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.d.ts +1 -0
- package/dist/api/resources/public/client/Client.d.ts +20 -0
- package/dist/api/resources/public/client/Client.js +69 -0
- package/dist/api/resources/public/client/requests/GetV1PublicPayTokenRequest.d.ts +9 -0
- package/dist/api/resources/public/client/requests/GetV1PublicPayTokenRequest.js +3 -0
- package/dist/api/resources/public/client/requests/index.d.ts +1 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesCreateRequest.d.ts +1 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesListRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesUpdateRequest.d.ts +1 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesCreateResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesGetResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesListResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesRegisterResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesUpdateResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.d.ts +1 -0
- package/dist/api/resources/reference/client/Client.d.ts +54 -0
- package/dist/api/resources/reference/client/Client.js +216 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceBanksListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceCnCodesListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceCurrenciesListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceExchangeRatesListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceExchangeRatesOverridesListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtCitiesListRequest.d.ts +8 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtCitiesListRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtCountiesListRequest.d.ts +5 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtCountiesListRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtMunicipalitiesListRequest.d.ts +7 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceLtMunicipalitiesListRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceSeriesListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceUnitsListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceVatClassifiersListRequest.d.ts +2 -0
- package/dist/api/resources/reference/client/requests/index.d.ts +3 -0
- package/dist/api/resources/reference/types/PostV1ReferenceBanksListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceCnCodesListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceCurrenciesListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceExchangeRatesListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceExchangeRatesOverridesListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtCitiesListResponse.d.ts +12 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtCitiesListResponse.js +3 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtCountiesListResponse.d.ts +13 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtCountiesListResponse.js +3 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtMunicipalitiesListResponse.d.ts +13 -0
- package/dist/api/resources/reference/types/PostV1ReferenceLtMunicipalitiesListResponse.js +3 -0
- package/dist/api/resources/reference/types/PostV1ReferenceSeriesListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceUnitsListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceVatClassifiersListResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/index.d.ts +3 -0
- package/dist/api/resources/reference/types/index.js +3 -0
- package/dist/api/resources/reports/client/requests/PostV1ReportsJobsListRequest.d.ts +2 -0
- package/dist/api/resources/reports/types/PostV1ReportsJobsListResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +293 -0
- package/dist/api/resources/sales/client/Client.js +1176 -73
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesCreateRequest.d.ts +28 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesCreateRequest.js +13 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesDeleteRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesGetRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesGetRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesListRequest.d.ts +48 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesListRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesUpdateRequest.d.ts +29 -0
- package/dist/api/resources/sales/client/requests/PostV1DocumentSeriesUpdateRequest.js +13 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesCreateRequest.d.ts +43 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesCreateRequest.js +13 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesDeleteRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesGetRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesGetRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesListRequest.d.ts +48 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesListRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesUpdateRequest.d.ts +43 -0
- package/dist/api/resources/sales/client/requests/PostV1OperationTypesUpdateRequest.js +13 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesActsListRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesListRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesLockRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesLockRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentLinkRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentLinkRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentSettingsGetRequest.d.ts +5 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentSettingsGetRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentSettingsUpdateRequest.d.ts +7 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesPaymentSettingsUpdateRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUnlockRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUnlockRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionRunsListRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionSchedulesListRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRefundLiabilityListRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +15 -0
- package/dist/api/resources/sales/client/requests/index.js +13 -1
- package/dist/api/resources/sales/types/PostV1DocumentSeriesCreateResponse.d.ts +16 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesCreateResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesDeleteResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesGetResponse.d.ts +16 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesGetResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesListResponse.d.ts +28 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesListResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesUpdateResponse.d.ts +16 -0
- package/dist/api/resources/sales/types/PostV1DocumentSeriesUpdateResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesCreateResponse.d.ts +39 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesCreateResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesDeleteResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesGetResponse.d.ts +39 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesGetResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesListResponse.d.ts +51 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesListResponse.js +19 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesUpdateResponse.d.ts +39 -0
- package/dist/api/resources/sales/types/PostV1OperationTypesUpdateResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesActsListResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +12 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +12 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +12 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +12 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesListResponse.d.ts +13 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesLockResponse.d.ts +168 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesLockResponse.js +45 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentLinkResponse.d.ts +10 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentLinkResponse.js +10 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentSettingsGetResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentSettingsGetResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentSettingsUpdateResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesPaymentSettingsUpdateResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUnlockResponse.d.ts +168 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUnlockResponse.js +45 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +12 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionRunsListResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionSchedulesListResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesRefundLiabilityListResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/index.d.ts +15 -0
- package/dist/api/resources/sales/types/index.js +15 -0
- package/dist/api/resources/transport/client/requests/PostV1TransportWaybillsListRequest.d.ts +2 -0
- package/dist/api/resources/transport/types/PostV1TransportWaybillsListResponse.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/PostV1WebhooksDeliveriesListRequest.d.ts +2 -0
- package/dist/api/resources/webhooks/client/requests/PostV1WebhooksSubscriptionsListRequest.d.ts +2 -0
- package/dist/api/resources/webhooks/types/PostV1WebhooksDeliveriesListResponse.d.ts +1 -0
- package/dist/api/resources/webhooks/types/PostV1WebhooksSubscriptionsListResponse.d.ts +1 -0
- package/package.json +1 -1
|
@@ -415,6 +415,742 @@ class CatalogClient {
|
|
|
415
415
|
}
|
|
416
416
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/list");
|
|
417
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* @param {NordletApi.PostV1CatalogItemsFilesListRequest} request
|
|
420
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
421
|
+
*
|
|
422
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
423
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
424
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
425
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
426
|
+
* @throws {@link NordletApi.ConflictError}
|
|
427
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
428
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
429
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* await client.catalog.postV1CatalogItemsFilesList({
|
|
433
|
+
* itemId: "itemId"
|
|
434
|
+
* })
|
|
435
|
+
*/
|
|
436
|
+
postV1CatalogItemsFilesList(request, requestOptions) {
|
|
437
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogItemsFilesList(request, requestOptions));
|
|
438
|
+
}
|
|
439
|
+
async __postV1CatalogItemsFilesList(request, requestOptions) {
|
|
440
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
441
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
442
|
+
const _response = await core.fetcher({
|
|
443
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
444
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
445
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/items/files/list"),
|
|
446
|
+
method: "POST",
|
|
447
|
+
headers: _headers,
|
|
448
|
+
contentType: "application/json",
|
|
449
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
450
|
+
requestType: "json",
|
|
451
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
452
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
453
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
454
|
+
abortSignal: requestOptions?.abortSignal,
|
|
455
|
+
fetchFn: this._options?.fetch,
|
|
456
|
+
logging: this._options.logging,
|
|
457
|
+
});
|
|
458
|
+
if (_response.ok) {
|
|
459
|
+
return {
|
|
460
|
+
data: _response.body,
|
|
461
|
+
rawResponse: _response.rawResponse,
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
if (_response.error.reason === "status-code") {
|
|
465
|
+
switch (_response.error.statusCode) {
|
|
466
|
+
case 400:
|
|
467
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
468
|
+
case 401:
|
|
469
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
470
|
+
case 403:
|
|
471
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
472
|
+
case 404:
|
|
473
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
474
|
+
case 409:
|
|
475
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
476
|
+
case 422:
|
|
477
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
478
|
+
case 429:
|
|
479
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
480
|
+
case 500:
|
|
481
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
482
|
+
default:
|
|
483
|
+
throw new errors.NordletApiError({
|
|
484
|
+
statusCode: _response.error.statusCode,
|
|
485
|
+
body: _response.error.body,
|
|
486
|
+
rawResponse: _response.rawResponse,
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/files/list");
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* @param {NordletApi.PostV1CatalogItemsKindsCreateRequest} request
|
|
494
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
495
|
+
*
|
|
496
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
497
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
498
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
499
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
500
|
+
* @throws {@link NordletApi.ConflictError}
|
|
501
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
502
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
503
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
504
|
+
*
|
|
505
|
+
* @example
|
|
506
|
+
* await client.catalog.postV1CatalogItemsKindsCreate({
|
|
507
|
+
* code: "code",
|
|
508
|
+
* name: "name"
|
|
509
|
+
* })
|
|
510
|
+
*/
|
|
511
|
+
postV1CatalogItemsKindsCreate(request, requestOptions) {
|
|
512
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogItemsKindsCreate(request, requestOptions));
|
|
513
|
+
}
|
|
514
|
+
async __postV1CatalogItemsKindsCreate(request, requestOptions) {
|
|
515
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
516
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
517
|
+
const _response = await core.fetcher({
|
|
518
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
519
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
520
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/items/kinds/create"),
|
|
521
|
+
method: "POST",
|
|
522
|
+
headers: _headers,
|
|
523
|
+
contentType: "application/json",
|
|
524
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
525
|
+
requestType: "json",
|
|
526
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
527
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
528
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
529
|
+
abortSignal: requestOptions?.abortSignal,
|
|
530
|
+
fetchFn: this._options?.fetch,
|
|
531
|
+
logging: this._options.logging,
|
|
532
|
+
});
|
|
533
|
+
if (_response.ok) {
|
|
534
|
+
return {
|
|
535
|
+
data: _response.body,
|
|
536
|
+
rawResponse: _response.rawResponse,
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
if (_response.error.reason === "status-code") {
|
|
540
|
+
switch (_response.error.statusCode) {
|
|
541
|
+
case 400:
|
|
542
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
543
|
+
case 401:
|
|
544
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
545
|
+
case 403:
|
|
546
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
547
|
+
case 404:
|
|
548
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
549
|
+
case 409:
|
|
550
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
551
|
+
case 422:
|
|
552
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
553
|
+
case 429:
|
|
554
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
555
|
+
case 500:
|
|
556
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
557
|
+
default:
|
|
558
|
+
throw new errors.NordletApiError({
|
|
559
|
+
statusCode: _response.error.statusCode,
|
|
560
|
+
body: _response.error.body,
|
|
561
|
+
rawResponse: _response.rawResponse,
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/kinds/create");
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* @param {NordletApi.PostV1CatalogItemsKindsUpdateRequest} request
|
|
569
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
570
|
+
*
|
|
571
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
572
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
573
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
574
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
575
|
+
* @throws {@link NordletApi.ConflictError}
|
|
576
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
577
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
578
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* await client.catalog.postV1CatalogItemsKindsUpdate({
|
|
582
|
+
* id: "id"
|
|
583
|
+
* })
|
|
584
|
+
*/
|
|
585
|
+
postV1CatalogItemsKindsUpdate(request, requestOptions) {
|
|
586
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogItemsKindsUpdate(request, requestOptions));
|
|
587
|
+
}
|
|
588
|
+
async __postV1CatalogItemsKindsUpdate(request, requestOptions) {
|
|
589
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
590
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
591
|
+
const _response = await core.fetcher({
|
|
592
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
593
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
594
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/items/kinds/update"),
|
|
595
|
+
method: "POST",
|
|
596
|
+
headers: _headers,
|
|
597
|
+
contentType: "application/json",
|
|
598
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
599
|
+
requestType: "json",
|
|
600
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
601
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
602
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
603
|
+
abortSignal: requestOptions?.abortSignal,
|
|
604
|
+
fetchFn: this._options?.fetch,
|
|
605
|
+
logging: this._options.logging,
|
|
606
|
+
});
|
|
607
|
+
if (_response.ok) {
|
|
608
|
+
return {
|
|
609
|
+
data: _response.body,
|
|
610
|
+
rawResponse: _response.rawResponse,
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
if (_response.error.reason === "status-code") {
|
|
614
|
+
switch (_response.error.statusCode) {
|
|
615
|
+
case 400:
|
|
616
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
617
|
+
case 401:
|
|
618
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
619
|
+
case 403:
|
|
620
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
621
|
+
case 404:
|
|
622
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
623
|
+
case 409:
|
|
624
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
625
|
+
case 422:
|
|
626
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
627
|
+
case 429:
|
|
628
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
629
|
+
case 500:
|
|
630
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
631
|
+
default:
|
|
632
|
+
throw new errors.NordletApiError({
|
|
633
|
+
statusCode: _response.error.statusCode,
|
|
634
|
+
body: _response.error.body,
|
|
635
|
+
rawResponse: _response.rawResponse,
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/kinds/update");
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* @param {NordletApi.PostV1CatalogItemsKindsDeleteRequest} request
|
|
643
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
644
|
+
*
|
|
645
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
646
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
647
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
648
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
649
|
+
* @throws {@link NordletApi.ConflictError}
|
|
650
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
651
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
652
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
653
|
+
*
|
|
654
|
+
* @example
|
|
655
|
+
* await client.catalog.postV1CatalogItemsKindsDelete({
|
|
656
|
+
* id: "id"
|
|
657
|
+
* })
|
|
658
|
+
*/
|
|
659
|
+
postV1CatalogItemsKindsDelete(request, requestOptions) {
|
|
660
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogItemsKindsDelete(request, requestOptions));
|
|
661
|
+
}
|
|
662
|
+
async __postV1CatalogItemsKindsDelete(request, requestOptions) {
|
|
663
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
664
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
665
|
+
const _response = await core.fetcher({
|
|
666
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
667
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
668
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/items/kinds/delete"),
|
|
669
|
+
method: "POST",
|
|
670
|
+
headers: _headers,
|
|
671
|
+
contentType: "application/json",
|
|
672
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
673
|
+
requestType: "json",
|
|
674
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
675
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
676
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
677
|
+
abortSignal: requestOptions?.abortSignal,
|
|
678
|
+
fetchFn: this._options?.fetch,
|
|
679
|
+
logging: this._options.logging,
|
|
680
|
+
});
|
|
681
|
+
if (_response.ok) {
|
|
682
|
+
return {
|
|
683
|
+
data: _response.body,
|
|
684
|
+
rawResponse: _response.rawResponse,
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
if (_response.error.reason === "status-code") {
|
|
688
|
+
switch (_response.error.statusCode) {
|
|
689
|
+
case 400:
|
|
690
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
691
|
+
case 401:
|
|
692
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
693
|
+
case 403:
|
|
694
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
695
|
+
case 404:
|
|
696
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
697
|
+
case 409:
|
|
698
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
699
|
+
case 422:
|
|
700
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
701
|
+
case 429:
|
|
702
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
703
|
+
case 500:
|
|
704
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
705
|
+
default:
|
|
706
|
+
throw new errors.NordletApiError({
|
|
707
|
+
statusCode: _response.error.statusCode,
|
|
708
|
+
body: _response.error.body,
|
|
709
|
+
rawResponse: _response.rawResponse,
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/kinds/delete");
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* @param {NordletApi.PostV1CatalogItemsKindsListRequest} request
|
|
717
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
718
|
+
*
|
|
719
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
720
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
721
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
722
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
723
|
+
* @throws {@link NordletApi.ConflictError}
|
|
724
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
725
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
726
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
727
|
+
*
|
|
728
|
+
* @example
|
|
729
|
+
* await client.catalog.postV1CatalogItemsKindsList()
|
|
730
|
+
*/
|
|
731
|
+
postV1CatalogItemsKindsList(request = {}, requestOptions) {
|
|
732
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogItemsKindsList(request, requestOptions));
|
|
733
|
+
}
|
|
734
|
+
async __postV1CatalogItemsKindsList(request = {}, requestOptions) {
|
|
735
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
736
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
737
|
+
const _response = await core.fetcher({
|
|
738
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
739
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
740
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/items/kinds/list"),
|
|
741
|
+
method: "POST",
|
|
742
|
+
headers: _headers,
|
|
743
|
+
contentType: "application/json",
|
|
744
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
745
|
+
requestType: "json",
|
|
746
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
747
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
748
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
749
|
+
abortSignal: requestOptions?.abortSignal,
|
|
750
|
+
fetchFn: this._options?.fetch,
|
|
751
|
+
logging: this._options.logging,
|
|
752
|
+
});
|
|
753
|
+
if (_response.ok) {
|
|
754
|
+
return {
|
|
755
|
+
data: _response.body,
|
|
756
|
+
rawResponse: _response.rawResponse,
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
if (_response.error.reason === "status-code") {
|
|
760
|
+
switch (_response.error.statusCode) {
|
|
761
|
+
case 400:
|
|
762
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
763
|
+
case 401:
|
|
764
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
765
|
+
case 403:
|
|
766
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
767
|
+
case 404:
|
|
768
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
769
|
+
case 409:
|
|
770
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
771
|
+
case 422:
|
|
772
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
773
|
+
case 429:
|
|
774
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
775
|
+
case 500:
|
|
776
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
777
|
+
default:
|
|
778
|
+
throw new errors.NordletApiError({
|
|
779
|
+
statusCode: _response.error.statusCode,
|
|
780
|
+
body: _response.error.body,
|
|
781
|
+
rawResponse: _response.rawResponse,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/items/kinds/list");
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* @param {NordletApi.PostV1CatalogUnitsCreateRequest} request
|
|
789
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
790
|
+
*
|
|
791
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
792
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
793
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
794
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
795
|
+
* @throws {@link NordletApi.ConflictError}
|
|
796
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
797
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
798
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* await client.catalog.postV1CatalogUnitsCreate({
|
|
802
|
+
* code: "code",
|
|
803
|
+
* name: "name"
|
|
804
|
+
* })
|
|
805
|
+
*/
|
|
806
|
+
postV1CatalogUnitsCreate(request, requestOptions) {
|
|
807
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogUnitsCreate(request, requestOptions));
|
|
808
|
+
}
|
|
809
|
+
async __postV1CatalogUnitsCreate(request, requestOptions) {
|
|
810
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
811
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
812
|
+
const _response = await core.fetcher({
|
|
813
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
814
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
815
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/units/create"),
|
|
816
|
+
method: "POST",
|
|
817
|
+
headers: _headers,
|
|
818
|
+
contentType: "application/json",
|
|
819
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
820
|
+
requestType: "json",
|
|
821
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
822
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
823
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
824
|
+
abortSignal: requestOptions?.abortSignal,
|
|
825
|
+
fetchFn: this._options?.fetch,
|
|
826
|
+
logging: this._options.logging,
|
|
827
|
+
});
|
|
828
|
+
if (_response.ok) {
|
|
829
|
+
return {
|
|
830
|
+
data: _response.body,
|
|
831
|
+
rawResponse: _response.rawResponse,
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
if (_response.error.reason === "status-code") {
|
|
835
|
+
switch (_response.error.statusCode) {
|
|
836
|
+
case 400:
|
|
837
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
838
|
+
case 401:
|
|
839
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
840
|
+
case 403:
|
|
841
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
842
|
+
case 404:
|
|
843
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
844
|
+
case 409:
|
|
845
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
846
|
+
case 422:
|
|
847
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
848
|
+
case 429:
|
|
849
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
850
|
+
case 500:
|
|
851
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
852
|
+
default:
|
|
853
|
+
throw new errors.NordletApiError({
|
|
854
|
+
statusCode: _response.error.statusCode,
|
|
855
|
+
body: _response.error.body,
|
|
856
|
+
rawResponse: _response.rawResponse,
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/units/create");
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* @param {NordletApi.PostV1CatalogUnitsUpdateRequest} request
|
|
864
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
865
|
+
*
|
|
866
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
867
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
868
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
869
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
870
|
+
* @throws {@link NordletApi.ConflictError}
|
|
871
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
872
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
873
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
874
|
+
*
|
|
875
|
+
* @example
|
|
876
|
+
* await client.catalog.postV1CatalogUnitsUpdate({
|
|
877
|
+
* id: "id"
|
|
878
|
+
* })
|
|
879
|
+
*/
|
|
880
|
+
postV1CatalogUnitsUpdate(request, requestOptions) {
|
|
881
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogUnitsUpdate(request, requestOptions));
|
|
882
|
+
}
|
|
883
|
+
async __postV1CatalogUnitsUpdate(request, requestOptions) {
|
|
884
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
885
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
886
|
+
const _response = await core.fetcher({
|
|
887
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
888
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
889
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/units/update"),
|
|
890
|
+
method: "POST",
|
|
891
|
+
headers: _headers,
|
|
892
|
+
contentType: "application/json",
|
|
893
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
894
|
+
requestType: "json",
|
|
895
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
896
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
897
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
898
|
+
abortSignal: requestOptions?.abortSignal,
|
|
899
|
+
fetchFn: this._options?.fetch,
|
|
900
|
+
logging: this._options.logging,
|
|
901
|
+
});
|
|
902
|
+
if (_response.ok) {
|
|
903
|
+
return {
|
|
904
|
+
data: _response.body,
|
|
905
|
+
rawResponse: _response.rawResponse,
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
if (_response.error.reason === "status-code") {
|
|
909
|
+
switch (_response.error.statusCode) {
|
|
910
|
+
case 400:
|
|
911
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
912
|
+
case 401:
|
|
913
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
914
|
+
case 403:
|
|
915
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
916
|
+
case 404:
|
|
917
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
918
|
+
case 409:
|
|
919
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
920
|
+
case 422:
|
|
921
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
922
|
+
case 429:
|
|
923
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
924
|
+
case 500:
|
|
925
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
926
|
+
default:
|
|
927
|
+
throw new errors.NordletApiError({
|
|
928
|
+
statusCode: _response.error.statusCode,
|
|
929
|
+
body: _response.error.body,
|
|
930
|
+
rawResponse: _response.rawResponse,
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/units/update");
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* @param {NordletApi.PostV1CatalogUnitsDeleteRequest} request
|
|
938
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
939
|
+
*
|
|
940
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
941
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
942
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
943
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
944
|
+
* @throws {@link NordletApi.ConflictError}
|
|
945
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
946
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
947
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
948
|
+
*
|
|
949
|
+
* @example
|
|
950
|
+
* await client.catalog.postV1CatalogUnitsDelete({
|
|
951
|
+
* id: "id"
|
|
952
|
+
* })
|
|
953
|
+
*/
|
|
954
|
+
postV1CatalogUnitsDelete(request, requestOptions) {
|
|
955
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogUnitsDelete(request, requestOptions));
|
|
956
|
+
}
|
|
957
|
+
async __postV1CatalogUnitsDelete(request, requestOptions) {
|
|
958
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
959
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
960
|
+
const _response = await core.fetcher({
|
|
961
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
962
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
963
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/units/delete"),
|
|
964
|
+
method: "POST",
|
|
965
|
+
headers: _headers,
|
|
966
|
+
contentType: "application/json",
|
|
967
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
968
|
+
requestType: "json",
|
|
969
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
970
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
971
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
972
|
+
abortSignal: requestOptions?.abortSignal,
|
|
973
|
+
fetchFn: this._options?.fetch,
|
|
974
|
+
logging: this._options.logging,
|
|
975
|
+
});
|
|
976
|
+
if (_response.ok) {
|
|
977
|
+
return {
|
|
978
|
+
data: _response.body,
|
|
979
|
+
rawResponse: _response.rawResponse,
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
if (_response.error.reason === "status-code") {
|
|
983
|
+
switch (_response.error.statusCode) {
|
|
984
|
+
case 400:
|
|
985
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
986
|
+
case 401:
|
|
987
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
988
|
+
case 403:
|
|
989
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
990
|
+
case 404:
|
|
991
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
992
|
+
case 409:
|
|
993
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
994
|
+
case 422:
|
|
995
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
996
|
+
case 429:
|
|
997
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
998
|
+
case 500:
|
|
999
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1000
|
+
default:
|
|
1001
|
+
throw new errors.NordletApiError({
|
|
1002
|
+
statusCode: _response.error.statusCode,
|
|
1003
|
+
body: _response.error.body,
|
|
1004
|
+
rawResponse: _response.rawResponse,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/units/delete");
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* @param {NordletApi.PostV1CatalogUnitsListRequest} request
|
|
1012
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1013
|
+
*
|
|
1014
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1015
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1016
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1017
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1018
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1019
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1020
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1021
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1022
|
+
*
|
|
1023
|
+
* @example
|
|
1024
|
+
* await client.catalog.postV1CatalogUnitsList()
|
|
1025
|
+
*/
|
|
1026
|
+
postV1CatalogUnitsList(request = {}, requestOptions) {
|
|
1027
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogUnitsList(request, requestOptions));
|
|
1028
|
+
}
|
|
1029
|
+
async __postV1CatalogUnitsList(request = {}, requestOptions) {
|
|
1030
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1031
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1032
|
+
const _response = await core.fetcher({
|
|
1033
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1034
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1035
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/units/list"),
|
|
1036
|
+
method: "POST",
|
|
1037
|
+
headers: _headers,
|
|
1038
|
+
contentType: "application/json",
|
|
1039
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1040
|
+
requestType: "json",
|
|
1041
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1042
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1043
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1044
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1045
|
+
fetchFn: this._options?.fetch,
|
|
1046
|
+
logging: this._options.logging,
|
|
1047
|
+
});
|
|
1048
|
+
if (_response.ok) {
|
|
1049
|
+
return {
|
|
1050
|
+
data: _response.body,
|
|
1051
|
+
rawResponse: _response.rawResponse,
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
if (_response.error.reason === "status-code") {
|
|
1055
|
+
switch (_response.error.statusCode) {
|
|
1056
|
+
case 400:
|
|
1057
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1058
|
+
case 401:
|
|
1059
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1060
|
+
case 403:
|
|
1061
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1062
|
+
case 404:
|
|
1063
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1064
|
+
case 409:
|
|
1065
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1066
|
+
case 422:
|
|
1067
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1068
|
+
case 429:
|
|
1069
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1070
|
+
case 500:
|
|
1071
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1072
|
+
default:
|
|
1073
|
+
throw new errors.NordletApiError({
|
|
1074
|
+
statusCode: _response.error.statusCode,
|
|
1075
|
+
body: _response.error.body,
|
|
1076
|
+
rawResponse: _response.rawResponse,
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/units/list");
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {NordletApi.PostV1CatalogUnitsOptionsRequest} request
|
|
1084
|
+
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1085
|
+
*
|
|
1086
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1087
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1088
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1089
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1090
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1091
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1092
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1093
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1094
|
+
*
|
|
1095
|
+
* @example
|
|
1096
|
+
* await client.catalog.postV1CatalogUnitsOptions()
|
|
1097
|
+
*/
|
|
1098
|
+
postV1CatalogUnitsOptions(request = {}, requestOptions) {
|
|
1099
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1CatalogUnitsOptions(request, requestOptions));
|
|
1100
|
+
}
|
|
1101
|
+
async __postV1CatalogUnitsOptions(request = {}, requestOptions) {
|
|
1102
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1103
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1104
|
+
const _response = await core.fetcher({
|
|
1105
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1106
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1107
|
+
environments.NordletApiEnvironment.Production, "v1/catalog/units/options"),
|
|
1108
|
+
method: "POST",
|
|
1109
|
+
headers: _headers,
|
|
1110
|
+
contentType: "application/json",
|
|
1111
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1112
|
+
requestType: "json",
|
|
1113
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1114
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1115
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1116
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1117
|
+
fetchFn: this._options?.fetch,
|
|
1118
|
+
logging: this._options.logging,
|
|
1119
|
+
});
|
|
1120
|
+
if (_response.ok) {
|
|
1121
|
+
return {
|
|
1122
|
+
data: _response.body,
|
|
1123
|
+
rawResponse: _response.rawResponse,
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
if (_response.error.reason === "status-code") {
|
|
1127
|
+
switch (_response.error.statusCode) {
|
|
1128
|
+
case 400:
|
|
1129
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1130
|
+
case 401:
|
|
1131
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1132
|
+
case 403:
|
|
1133
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1134
|
+
case 404:
|
|
1135
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1136
|
+
case 409:
|
|
1137
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1138
|
+
case 422:
|
|
1139
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1140
|
+
case 429:
|
|
1141
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1142
|
+
case 500:
|
|
1143
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1144
|
+
default:
|
|
1145
|
+
throw new errors.NordletApiError({
|
|
1146
|
+
statusCode: _response.error.statusCode,
|
|
1147
|
+
body: _response.error.body,
|
|
1148
|
+
rawResponse: _response.rawResponse,
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/catalog/units/options");
|
|
1153
|
+
}
|
|
418
1154
|
/**
|
|
419
1155
|
* @param {NordletApi.PostV1CatalogItemGroupsCreateRequest} request
|
|
420
1156
|
* @param {CatalogClient.RequestOptions} requestOptions - Request-specific configuration.
|