@webiny/app-admin 6.4.5 → 6.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/Admin.d.ts +2 -4
- package/base/Admin.js +9 -12
- package/base/Admin.js.map +1 -1
- package/base/Base/DefaultFieldRenderers.js +24 -0
- package/base/Base/DefaultFieldRenderers.js.map +1 -1
- package/base/Base/FieldRenderers/ApiKeyTokenRenderer.d.ts +4 -0
- package/base/Base/FieldRenderers/ApiKeyTokenRenderer.js +26 -0
- package/base/Base/FieldRenderers/ApiKeyTokenRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/CheckboxesRenderer.js +1 -0
- package/base/Base/FieldRenderers/CheckboxesRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/DateTimeInputsRenderer.js +5 -1
- package/base/Base/FieldRenderers/DateTimeInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/FilePickerRenderer.js +2 -0
- package/base/Base/FieldRenderers/FilePickerRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/FileUrlPickerRenderer.js +1 -0
- package/base/Base/FieldRenderers/FileUrlPickerRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/HorizontalTabsRenderer.js +2 -1
- package/base/Base/FieldRenderers/HorizontalTabsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/InputRenderer.js +2 -0
- package/base/Base/FieldRenderers/InputRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/LexicalEditorsRenderer.d.ts +14 -0
- package/base/Base/FieldRenderers/LexicalEditorsRenderer.js +78 -0
- package/base/Base/FieldRenderers/LexicalEditorsRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/MultiAutoCompleteRenderer.d.ts +13 -0
- package/base/Base/FieldRenderers/MultiAutoCompleteRenderer.js +29 -0
- package/base/Base/FieldRenderers/MultiAutoCompleteRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/NumberInputRenderer.js +1 -0
- package/base/Base/FieldRenderers/NumberInputRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/NumberInputsRenderer.js +19 -9
- package/base/Base/FieldRenderers/NumberInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js +2 -1
- package/base/Base/FieldRenderers/ObjectRenderer/KeyValueTagsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js +46 -5
- package/base/Base/FieldRenderers/ObjectRenderer/MultiValueDynamicZone.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.d.ts +1 -0
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js +6 -4
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectAccordionMultipleRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.d.ts +2 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js +8 -6
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectFieldComponents.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.d.ts +4 -1
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js +31 -4
- package/base/Base/FieldRenderers/ObjectRenderer/ObjectRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js +45 -6
- package/base/Base/FieldRenderers/ObjectRenderer/SingleValueDynamicZone.js.map +1 -1
- package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.d.ts +3 -2
- package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js +10 -1
- package/base/Base/FieldRenderers/ObjectRenderer/resolveItemTitle.js.map +1 -1
- package/base/Base/FieldRenderers/PasswordInputRenderer.d.ts +12 -0
- package/base/Base/FieldRenderers/PasswordInputRenderer.js +22 -0
- package/base/Base/FieldRenderers/PasswordInputRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/PermissionsRenderer.d.ts +14 -0
- package/base/Base/FieldRenderers/PermissionsRenderer.js +18 -0
- package/base/Base/FieldRenderers/PermissionsRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/RadioButtonsRenderer.js +1 -0
- package/base/Base/FieldRenderers/RadioButtonsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/RolesMultiSelectRenderer.d.ts +12 -0
- package/base/Base/FieldRenderers/RolesMultiSelectRenderer.js +21 -0
- package/base/Base/FieldRenderers/RolesMultiSelectRenderer.js.map +1 -0
- package/base/Base/FieldRenderers/SelectRenderer.js +1 -0
- package/base/Base/FieldRenderers/SelectRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TagsRenderer.js +1 -0
- package/base/Base/FieldRenderers/TagsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextInputsRenderer.js +19 -9
- package/base/Base/FieldRenderers/TextInputsRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextareaRenderer.js +1 -0
- package/base/Base/FieldRenderers/TextareaRenderer.js.map +1 -1
- package/base/Base/FieldRenderers/TextareasRenderer.js +5 -1
- package/base/Base/FieldRenderers/TextareasRenderer.js.map +1 -1
- package/base/Base.d.ts +3 -1
- package/base/Base.js +2 -1
- package/base/Base.js.map +1 -1
- package/base/createRootContainer.js +10 -3
- package/base/createRootContainer.js.map +1 -1
- package/base/resolveApiUrl.d.ts +3 -0
- package/base/resolveApiUrl.js +18 -0
- package/base/resolveApiUrl.js.map +1 -0
- package/base/ui/FileManager.d.ts +2 -1
- package/components/BulkActions/BulkActionButton.d.ts +6 -0
- package/components/BulkActions/BulkActionButton.js +17 -0
- package/components/BulkActions/BulkActionButton.js.map +1 -0
- package/components/BulkActions/BulkActionRunner.d.ts +41 -0
- package/components/BulkActions/BulkActionRunner.js +32 -0
- package/components/BulkActions/BulkActionRunner.js.map +1 -0
- package/components/BulkActions/Worker.d.ts +9 -57
- package/components/BulkActions/Worker.js +5 -9
- package/components/BulkActions/Worker.js.map +1 -1
- package/components/BulkActions/index.d.ts +3 -0
- package/components/BulkActions/index.js +3 -0
- package/components/ConfirmationDialog/ConfirmationDialog.d.ts +11 -0
- package/components/ConfirmationDialog/ConfirmationDialog.js +41 -0
- package/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
- package/components/ConfirmationDialog/index.d.ts +1 -0
- package/components/ConfirmationDialog/index.js +1 -0
- package/components/Dialogs/DialogsContext.js +2 -1
- package/components/Dialogs/DialogsContext.js.map +1 -1
- package/components/IconPicker/IconPicker.d.ts +7 -5
- package/components/IconPicker/components/IconPickerTrigger.d.ts +1 -1
- package/components/IconPicker/config/index.d.ts +2 -1
- package/components/IconPicker/plugins/customPlugin.js +4 -19
- package/components/IconPicker/plugins/customPlugin.js.map +1 -1
- package/components/ListView/ListView.d.ts +17 -0
- package/components/ListView/ListView.js +36 -0
- package/components/ListView/ListView.js.map +1 -0
- package/components/ListView/ListViewBottomBar.d.ts +14 -0
- package/components/ListView/ListViewBottomBar.js +45 -0
- package/components/ListView/ListViewBottomBar.js.map +1 -0
- package/components/ListView/ListViewBulkActions.d.ts +11 -0
- package/components/ListView/ListViewBulkActions.js +41 -0
- package/components/ListView/ListViewBulkActions.js.map +1 -0
- package/components/ListView/ListViewContent.d.ts +12 -0
- package/components/ListView/ListViewContent.js +25 -0
- package/components/ListView/ListViewContent.js.map +1 -0
- package/components/ListView/ListViewFilters.d.ts +15 -0
- package/components/ListView/ListViewFilters.js +21 -0
- package/components/ListView/ListViewFilters.js.map +1 -0
- package/components/ListView/ListViewHeader.d.ts +17 -0
- package/components/ListView/ListViewHeader.js +72 -0
- package/components/ListView/ListViewHeader.js.map +1 -0
- package/components/ListView/ListViewSidebar.d.ts +17 -0
- package/components/ListView/ListViewSidebar.js +25 -0
- package/components/ListView/ListViewSidebar.js.map +1 -0
- package/components/ListView/ListViewTable.d.ts +18 -0
- package/components/ListView/ListViewTable.js +33 -0
- package/components/ListView/ListViewTable.js.map +1 -0
- package/components/ListView/context.d.ts +3 -0
- package/components/ListView/context.js +11 -0
- package/components/ListView/context.js.map +1 -0
- package/components/ListView/index.d.ts +24 -0
- package/components/ListView/index.js +22 -0
- package/components/ListView/index.js.map +1 -0
- package/components/ListView/types.d.ts +7 -0
- package/components/ListView/types.js +0 -0
- package/components/OptionsMenu/OptionsMenuItem.d.ts +1 -0
- package/components/OptionsMenu/OptionsMenuItem.js +1 -0
- package/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
- package/components/OverlayLayout/OverlayLayout.js +2 -4
- package/components/OverlayLayout/OverlayLayout.js.map +1 -1
- package/components/OverlayLayout/components/OverlayContent.js +0 -1
- package/components/OverlayLayout/components/OverlayContent.js.map +1 -1
- package/components/OverlayLayout/components/OverlayHeader.d.ts +1 -1
- package/components/Permissions/Permissions.js +2 -1
- package/components/Permissions/Permissions.js.map +1 -1
- package/components/Permissions/index.d.ts +1 -0
- package/components/Permissions/index.js +1 -0
- package/components/Permissions/mergeByName.d.ts +11 -0
- package/components/Permissions/mergeByName.js +33 -0
- package/components/Permissions/mergeByName.js.map +1 -0
- package/components/RolesMultiAutocomplete/index.d.ts +3 -1
- package/components/RolesMultiAutocomplete/index.js +24 -14
- package/components/RolesMultiAutocomplete/index.js.map +1 -1
- package/components/SimpleForm/SimpleForm.d.ts +1 -1
- package/components/SimpleUI/InputField.d.ts +2 -1
- package/components/SingleImageUpload.d.ts +1 -2
- package/components/SingleImageUpload.js +1 -2
- package/components/SingleImageUpload.js.map +1 -1
- package/components/Table/cells/CellAuthor.d.ts +2 -0
- package/components/Table/cells/CellAuthor.js +10 -0
- package/components/Table/cells/CellAuthor.js.map +1 -0
- package/components/Table/cells/CellCreated.d.ts +2 -0
- package/components/Table/cells/CellCreated.js +13 -0
- package/components/Table/cells/CellCreated.js.map +1 -0
- package/components/Table/cells/CellModified.d.ts +2 -0
- package/components/Table/cells/CellModified.js +13 -0
- package/components/Table/cells/CellModified.js.map +1 -0
- package/components/Table/cells/index.d.ts +3 -0
- package/components/Table/cells/index.js +3 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityDecorator.d.ts +9 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityDecorator.js +23 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityDecorator.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.d.ts +9 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.js +21 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.test.d.ts +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.test.js +128 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityPresenter.test.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepository.d.ts +10 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepository.js +30 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepository.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepositoryFactory.d.ts +9 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepositoryFactory.js +18 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityRepositoryFactory.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityUpdater.d.ts +8 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityUpdater.js +16 -0
- package/components/Table/components/Table/ColumnVisibility/ColumnsVisibilityUpdater.js.map +1 -0
- package/components/Table/components/Table/ColumnVisibility/IColumnsVisibilityRepository.d.ts +5 -0
- package/components/Table/components/Table/ColumnVisibility/IColumnsVisibilityRepository.js +0 -0
- package/components/Table/components/Table/ColumnVisibility/IColumnsVisibilityUpdater.d.ts +4 -0
- package/components/Table/components/Table/ColumnVisibility/IColumnsVisibilityUpdater.js +0 -0
- package/components/Table/components/Table/ColumnVisibility/index.d.ts +7 -0
- package/components/Table/components/Table/ColumnVisibility/index.js +5 -0
- package/components/Table/components/Table/Columns/Column.d.ts +42 -0
- package/components/Table/components/Table/Columns/Column.js +21 -0
- package/components/Table/components/Table/Columns/Column.js.map +1 -0
- package/components/Table/components/Table/Columns/ColumnMapper.d.ts +7 -0
- package/components/Table/components/Table/Columns/ColumnMapper.js +34 -0
- package/components/Table/components/Table/Columns/ColumnMapper.js.map +1 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.d.ts +9 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.js +18 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.js.map +1 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.test.d.ts +1 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.test.js +73 -0
- package/components/Table/components/Table/Columns/ColumnsPresenter.test.js.map +1 -0
- package/components/Table/components/Table/Columns/ColumnsRepository.d.ts +9 -0
- package/components/Table/components/Table/Columns/ColumnsRepository.js +19 -0
- package/components/Table/components/Table/Columns/ColumnsRepository.js.map +1 -0
- package/components/Table/components/Table/Columns/ColumnsRepositoryFactory.d.ts +9 -0
- package/components/Table/components/Table/Columns/ColumnsRepositoryFactory.js +21 -0
- package/components/Table/components/Table/Columns/ColumnsRepositoryFactory.js.map +1 -0
- package/components/Table/components/Table/Columns/IColumnsRepository.d.ts +5 -0
- package/components/Table/components/Table/Columns/IColumnsRepository.js +0 -0
- package/components/Table/components/Table/Columns/index.d.ts +6 -0
- package/components/Table/components/Table/Columns/index.js +5 -0
- package/components/Table/components/Table/Table.d.ts +17 -0
- package/components/Table/components/Table/Table.js +47 -0
- package/components/Table/components/Table/Table.js.map +1 -0
- package/components/Table/components/Table/TableInner.d.ts +24 -0
- package/components/Table/components/Table/TableInner.js +40 -0
- package/components/Table/components/Table/TableInner.js.map +1 -0
- package/components/Table/components/Table/TablePresenter.d.ts +15 -0
- package/components/Table/components/Table/TablePresenter.js +15 -0
- package/components/Table/components/Table/TablePresenter.js.map +1 -0
- package/components/Table/components/Table/gateways/ColumnsVisibilityLocalStorageGateway.d.ts +9 -0
- package/components/Table/components/Table/gateways/ColumnsVisibilityLocalStorageGateway.js +15 -0
- package/components/Table/components/Table/gateways/ColumnsVisibilityLocalStorageGateway.js.map +1 -0
- package/components/Table/components/Table/gateways/IColumnsVisibilityGateway.d.ts +4 -0
- package/components/Table/components/Table/gateways/IColumnsVisibilityGateway.js +0 -0
- package/components/Table/components/Table/gateways/index.d.ts +2 -0
- package/components/Table/components/Table/gateways/index.js +1 -0
- package/components/Table/components/Table/index.d.ts +1 -0
- package/components/Table/components/Table/index.js +1 -0
- package/components/Table/components/index.d.ts +1 -0
- package/components/Table/components/index.js +1 -0
- package/components/Table/createTableData.d.ts +5 -0
- package/components/Table/createTableData.js +9 -0
- package/components/Table/createTableData.js.map +1 -0
- package/components/Table/index.d.ts +5 -0
- package/components/Table/index.js +5 -0
- package/components/Table/table.types.d.ts +9 -0
- package/components/Table/table.types.js +0 -0
- package/components/Table/useTableRow.d.ts +18 -0
- package/components/Table/useTableRow.js +22 -0
- package/components/Table/useTableRow.js.map +1 -0
- package/components/TeamAutocomplete/index.d.ts +3 -1
- package/components/TeamAutocomplete/index.js +13 -14
- package/components/TeamAutocomplete/index.js.map +1 -1
- package/components/TeamsMultiAutocomplete/index.d.ts +3 -1
- package/components/TeamsMultiAutocomplete/index.js +24 -14
- package/components/TeamsMultiAutocomplete/index.js.map +1 -1
- package/components/index.d.ts +3 -2
- package/components/index.js +3 -2
- package/config/AdminConfig/Dashboard.d.ts +2 -1
- package/config/AdminConfig/Form.d.ts +4 -2
- package/config/AdminConfig/LexicalTheme/Typography.d.ts +4 -4
- package/config/AdminConfig/LexicalTheme.d.ts +6 -6
- package/config/AdminConfig/LexicalTheme.js +0 -2
- package/config/AdminConfig/LexicalTheme.js.map +1 -1
- package/config/AdminConfig/Logo.d.ts +8 -6
- package/config/AdminConfig/Menu/MenuGroup.d.ts +13 -12
- package/config/AdminConfig/Menu/MenuItem.d.ts +7 -6
- package/config/AdminConfig/Menu/MenuLink.d.ts +7 -6
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuItem.d.ts +13 -12
- package/config/AdminConfig/Menu/SupportMenu/SupportMenuLink.d.ts +7 -6
- package/config/AdminConfig/Menu/SupportMenu.d.ts +8 -6
- package/config/AdminConfig/Menu/UserMenu.d.ts +8 -6
- package/config/AdminConfig/Menu.d.ts +15 -12
- package/config/AdminConfig/Security.d.ts +2 -1
- package/config/AdminConfig/SecurityPermissions.js +2 -1
- package/config/AdminConfig/SecurityPermissions.js.map +1 -1
- package/config/AdminConfig/Tenant/TenantLogo.d.ts +8 -6
- package/config/AdminConfig/Tenant/TenantName.d.ts +8 -6
- package/config/AdminConfig/Tenant.d.ts +3 -1
- package/config/AdminConfig/Title.d.ts +8 -6
- package/config/AdminConfig.d.ts +16 -30
- package/config/AdminConfig.js +1 -2
- package/config/AdminConfig.js.map +1 -1
- package/config/table/Column.d.ts +34 -0
- package/config/table/Column.js +69 -0
- package/config/table/Column.js.map +1 -0
- package/config/table/Sorting.d.ts +11 -0
- package/config/table/Sorting.js +28 -0
- package/config/table/Sorting.js.map +1 -0
- package/config/table/index.d.ts +13 -0
- package/config/table/index.js +9 -0
- package/config/table/index.js.map +1 -0
- package/domain/securityPermissionsSchema.d.ts +20 -0
- package/domain/securityPermissionsSchema.js +34 -0
- package/domain/securityPermissionsSchema.js.map +1 -0
- package/errors/ErrorOverlayNetworkErrorHandler.js +4 -4
- package/errors/ErrorOverlayNetworkErrorHandler.js.map +1 -1
- package/exports/admin/form.d.ts +2 -0
- package/exports/admin/form.js +1 -0
- package/exports/admin/ui.d.ts +4 -0
- package/exports/admin/ui.js +2 -1
- package/exports/admin.d.ts +1 -0
- package/exports/admin.js +1 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyGateway.d.ts +12 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyGateway.js +50 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyGateway.js.map +1 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyRepository.d.ts +13 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyRepository.js +25 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyRepository.js.map +1 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyUseCase.d.ts +11 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyUseCase.js +18 -0
- package/features/accessManagement/apiKeys/createApiKey/CreateApiKeyUseCase.js.map +1 -0
- package/features/accessManagement/apiKeys/createApiKey/abstractions.d.ts +29 -0
- package/features/accessManagement/apiKeys/createApiKey/abstractions.js +7 -0
- package/features/accessManagement/apiKeys/createApiKey/abstractions.js.map +1 -0
- package/features/accessManagement/apiKeys/createApiKey/feature.d.ts +3 -0
- package/features/accessManagement/apiKeys/createApiKey/feature.js +21 -0
- package/features/accessManagement/apiKeys/createApiKey/feature.js.map +1 -0
- package/features/accessManagement/apiKeys/createApiKey/index.d.ts +3 -0
- package/features/accessManagement/apiKeys/createApiKey/index.js +2 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyGateway.d.ts +11 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyGateway.js +39 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyGateway.js.map +1 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyRepository.d.ts +12 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyRepository.js +22 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyRepository.js.map +1 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyUseCase.d.ts +10 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyUseCase.js +18 -0
- package/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyUseCase.js.map +1 -0
- package/features/accessManagement/apiKeys/deleteApiKey/abstractions.d.ts +21 -0
- package/features/accessManagement/apiKeys/deleteApiKey/abstractions.js +7 -0
- package/features/accessManagement/apiKeys/deleteApiKey/abstractions.js.map +1 -0
- package/features/accessManagement/apiKeys/deleteApiKey/feature.d.ts +3 -0
- package/features/accessManagement/apiKeys/deleteApiKey/feature.js +21 -0
- package/features/accessManagement/apiKeys/deleteApiKey/feature.js.map +1 -0
- package/features/accessManagement/apiKeys/deleteApiKey/index.d.ts +3 -0
- package/features/accessManagement/apiKeys/deleteApiKey/index.js +2 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyGateway.d.ts +12 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyGateway.js +49 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyGateway.js.map +1 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyRepository.d.ts +11 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyRepository.js +18 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyRepository.js.map +1 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyUseCase.d.ts +11 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyUseCase.js +18 -0
- package/features/accessManagement/apiKeys/getApiKey/GetApiKeyUseCase.js.map +1 -0
- package/features/accessManagement/apiKeys/getApiKey/abstractions.d.ts +22 -0
- package/features/accessManagement/apiKeys/getApiKey/abstractions.js +7 -0
- package/features/accessManagement/apiKeys/getApiKey/abstractions.js.map +1 -0
- package/features/accessManagement/apiKeys/getApiKey/feature.d.ts +3 -0
- package/features/accessManagement/apiKeys/getApiKey/feature.js +21 -0
- package/features/accessManagement/apiKeys/getApiKey/feature.js.map +1 -0
- package/features/accessManagement/apiKeys/getApiKey/index.d.ts +3 -0
- package/features/accessManagement/apiKeys/getApiKey/index.js +2 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysGateway.d.ts +11 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysGateway.js +44 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysGateway.js.map +1 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysRepository.d.ts +11 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysRepository.js +22 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysRepository.js.map +1 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysUseCase.d.ts +10 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysUseCase.js +18 -0
- package/features/accessManagement/apiKeys/listApiKeys/ListApiKeysUseCase.js.map +1 -0
- package/features/accessManagement/apiKeys/listApiKeys/abstractions.d.ts +30 -0
- package/features/accessManagement/apiKeys/listApiKeys/abstractions.js +8 -0
- package/features/accessManagement/apiKeys/listApiKeys/abstractions.js.map +1 -0
- package/features/accessManagement/apiKeys/listApiKeys/feature.d.ts +3 -0
- package/features/accessManagement/apiKeys/listApiKeys/feature.js +23 -0
- package/features/accessManagement/apiKeys/listApiKeys/feature.js.map +1 -0
- package/features/accessManagement/apiKeys/listApiKeys/index.d.ts +3 -0
- package/features/accessManagement/apiKeys/listApiKeys/index.js +2 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyGateway.d.ts +12 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyGateway.js +51 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyGateway.js.map +1 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyRepository.d.ts +13 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyRepository.js +23 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyRepository.js.map +1 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyUseCase.d.ts +11 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyUseCase.js +18 -0
- package/features/accessManagement/apiKeys/updateApiKey/UpdateApiKeyUseCase.js.map +1 -0
- package/features/accessManagement/apiKeys/updateApiKey/abstractions.d.ts +28 -0
- package/features/accessManagement/apiKeys/updateApiKey/abstractions.js +7 -0
- package/features/accessManagement/apiKeys/updateApiKey/abstractions.js.map +1 -0
- package/features/accessManagement/apiKeys/updateApiKey/feature.d.ts +3 -0
- package/features/accessManagement/apiKeys/updateApiKey/feature.js +21 -0
- package/features/accessManagement/apiKeys/updateApiKey/feature.js.map +1 -0
- package/features/accessManagement/apiKeys/updateApiKey/index.d.ts +3 -0
- package/features/accessManagement/apiKeys/updateApiKey/index.js +2 -0
- package/features/accessManagement/constants.d.ts +5 -0
- package/features/accessManagement/constants.js +9 -0
- package/features/accessManagement/constants.js.map +1 -0
- package/features/accessManagement/permissions/abstractions.d.ts +17 -0
- package/features/accessManagement/permissions/abstractions.js +6 -0
- package/features/accessManagement/permissions/abstractions.js.map +1 -0
- package/features/accessManagement/permissions/feature.d.ts +14 -0
- package/features/accessManagement/permissions/feature.js +7 -0
- package/features/accessManagement/permissions/feature.js.map +1 -0
- package/features/accessManagement/roles/createRole/CreateRoleGateway.d.ts +12 -0
- package/features/accessManagement/roles/createRole/CreateRoleGateway.js +51 -0
- package/features/accessManagement/roles/createRole/CreateRoleGateway.js.map +1 -0
- package/features/accessManagement/roles/createRole/CreateRoleRepository.d.ts +13 -0
- package/features/accessManagement/roles/createRole/CreateRoleRepository.js +25 -0
- package/features/accessManagement/roles/createRole/CreateRoleRepository.js.map +1 -0
- package/features/accessManagement/roles/createRole/CreateRoleUseCase.d.ts +11 -0
- package/features/accessManagement/roles/createRole/CreateRoleUseCase.js +18 -0
- package/features/accessManagement/roles/createRole/CreateRoleUseCase.js.map +1 -0
- package/features/accessManagement/roles/createRole/abstractions.d.ts +29 -0
- package/features/accessManagement/roles/createRole/abstractions.js +7 -0
- package/features/accessManagement/roles/createRole/abstractions.js.map +1 -0
- package/features/accessManagement/roles/createRole/feature.d.ts +3 -0
- package/features/accessManagement/roles/createRole/feature.js +21 -0
- package/features/accessManagement/roles/createRole/feature.js.map +1 -0
- package/features/accessManagement/roles/createRole/index.d.ts +3 -0
- package/features/accessManagement/roles/createRole/index.js +2 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleGateway.d.ts +11 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleGateway.js +40 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleGateway.js.map +1 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleRepository.d.ts +12 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleRepository.js +22 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleRepository.js.map +1 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleUseCase.d.ts +10 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleUseCase.js +18 -0
- package/features/accessManagement/roles/deleteRole/DeleteRoleUseCase.js.map +1 -0
- package/features/accessManagement/roles/deleteRole/abstractions.d.ts +21 -0
- package/features/accessManagement/roles/deleteRole/abstractions.js +7 -0
- package/features/accessManagement/roles/deleteRole/abstractions.js.map +1 -0
- package/features/accessManagement/roles/deleteRole/feature.d.ts +3 -0
- package/features/accessManagement/roles/deleteRole/feature.js +21 -0
- package/features/accessManagement/roles/deleteRole/feature.js.map +1 -0
- package/features/accessManagement/roles/deleteRole/index.d.ts +3 -0
- package/features/accessManagement/roles/deleteRole/index.js +2 -0
- package/features/accessManagement/roles/getRole/GetRoleGateway.d.ts +12 -0
- package/features/accessManagement/roles/getRole/GetRoleGateway.js +50 -0
- package/features/accessManagement/roles/getRole/GetRoleGateway.js.map +1 -0
- package/features/accessManagement/roles/getRole/GetRoleRepository.d.ts +11 -0
- package/features/accessManagement/roles/getRole/GetRoleRepository.js +18 -0
- package/features/accessManagement/roles/getRole/GetRoleRepository.js.map +1 -0
- package/features/accessManagement/roles/getRole/GetRoleUseCase.d.ts +11 -0
- package/features/accessManagement/roles/getRole/GetRoleUseCase.js +18 -0
- package/features/accessManagement/roles/getRole/GetRoleUseCase.js.map +1 -0
- package/features/accessManagement/roles/getRole/abstractions.d.ts +22 -0
- package/features/accessManagement/roles/getRole/abstractions.js +7 -0
- package/features/accessManagement/roles/getRole/abstractions.js.map +1 -0
- package/features/accessManagement/roles/getRole/feature.d.ts +3 -0
- package/features/accessManagement/roles/getRole/feature.js +21 -0
- package/features/accessManagement/roles/getRole/feature.js.map +1 -0
- package/features/accessManagement/roles/getRole/index.d.ts +3 -0
- package/features/accessManagement/roles/getRole/index.js +2 -0
- package/features/accessManagement/roles/listRoles/ListRolesGateway.d.ts +11 -0
- package/features/accessManagement/roles/listRoles/ListRolesGateway.js +45 -0
- package/features/accessManagement/roles/listRoles/ListRolesGateway.js.map +1 -0
- package/features/accessManagement/roles/listRoles/ListRolesRepository.d.ts +11 -0
- package/features/accessManagement/roles/listRoles/ListRolesRepository.js +22 -0
- package/features/accessManagement/roles/listRoles/ListRolesRepository.js.map +1 -0
- package/features/accessManagement/roles/listRoles/ListRolesUseCase.d.ts +10 -0
- package/features/accessManagement/roles/listRoles/ListRolesUseCase.js +18 -0
- package/features/accessManagement/roles/listRoles/ListRolesUseCase.js.map +1 -0
- package/features/accessManagement/roles/listRoles/abstractions.d.ts +30 -0
- package/features/accessManagement/roles/listRoles/abstractions.js +8 -0
- package/features/accessManagement/roles/listRoles/abstractions.js.map +1 -0
- package/features/accessManagement/roles/listRoles/feature.d.ts +3 -0
- package/features/accessManagement/roles/listRoles/feature.js +23 -0
- package/features/accessManagement/roles/listRoles/feature.js.map +1 -0
- package/features/accessManagement/roles/listRoles/index.d.ts +3 -0
- package/features/accessManagement/roles/listRoles/index.js +2 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleGateway.d.ts +12 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleGateway.js +52 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleGateway.js.map +1 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleRepository.d.ts +13 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleRepository.js +23 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleRepository.js.map +1 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleUseCase.d.ts +11 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleUseCase.js +18 -0
- package/features/accessManagement/roles/updateRole/UpdateRoleUseCase.js.map +1 -0
- package/features/accessManagement/roles/updateRole/abstractions.d.ts +28 -0
- package/features/accessManagement/roles/updateRole/abstractions.js +7 -0
- package/features/accessManagement/roles/updateRole/abstractions.js.map +1 -0
- package/features/accessManagement/roles/updateRole/feature.d.ts +3 -0
- package/features/accessManagement/roles/updateRole/feature.js +21 -0
- package/features/accessManagement/roles/updateRole/feature.js.map +1 -0
- package/features/accessManagement/roles/updateRole/index.d.ts +3 -0
- package/features/accessManagement/roles/updateRole/index.js +2 -0
- package/features/accessManagement/teams/createTeam/CreateTeamGateway.d.ts +12 -0
- package/features/accessManagement/teams/createTeam/CreateTeamGateway.js +55 -0
- package/features/accessManagement/teams/createTeam/CreateTeamGateway.js.map +1 -0
- package/features/accessManagement/teams/createTeam/CreateTeamRepository.d.ts +13 -0
- package/features/accessManagement/teams/createTeam/CreateTeamRepository.js +25 -0
- package/features/accessManagement/teams/createTeam/CreateTeamRepository.js.map +1 -0
- package/features/accessManagement/teams/createTeam/CreateTeamUseCase.d.ts +11 -0
- package/features/accessManagement/teams/createTeam/CreateTeamUseCase.js +18 -0
- package/features/accessManagement/teams/createTeam/CreateTeamUseCase.js.map +1 -0
- package/features/accessManagement/teams/createTeam/abstractions.d.ts +28 -0
- package/features/accessManagement/teams/createTeam/abstractions.js +7 -0
- package/features/accessManagement/teams/createTeam/abstractions.js.map +1 -0
- package/features/accessManagement/teams/createTeam/feature.d.ts +3 -0
- package/features/accessManagement/teams/createTeam/feature.js +21 -0
- package/features/accessManagement/teams/createTeam/feature.js.map +1 -0
- package/features/accessManagement/teams/createTeam/index.d.ts +3 -0
- package/features/accessManagement/teams/createTeam/index.js +2 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamGateway.d.ts +11 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamGateway.js +40 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamGateway.js.map +1 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamRepository.d.ts +12 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamRepository.js +22 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamRepository.js.map +1 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamUseCase.d.ts +10 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamUseCase.js +18 -0
- package/features/accessManagement/teams/deleteTeam/DeleteTeamUseCase.js.map +1 -0
- package/features/accessManagement/teams/deleteTeam/abstractions.d.ts +21 -0
- package/features/accessManagement/teams/deleteTeam/abstractions.js +7 -0
- package/features/accessManagement/teams/deleteTeam/abstractions.js.map +1 -0
- package/features/accessManagement/teams/deleteTeam/feature.d.ts +3 -0
- package/features/accessManagement/teams/deleteTeam/feature.js +21 -0
- package/features/accessManagement/teams/deleteTeam/feature.js.map +1 -0
- package/features/accessManagement/teams/deleteTeam/index.d.ts +3 -0
- package/features/accessManagement/teams/deleteTeam/index.js +2 -0
- package/features/accessManagement/teams/getTeam/GetTeamGateway.d.ts +12 -0
- package/features/accessManagement/teams/getTeam/GetTeamGateway.js +54 -0
- package/features/accessManagement/teams/getTeam/GetTeamGateway.js.map +1 -0
- package/features/accessManagement/teams/getTeam/GetTeamRepository.d.ts +11 -0
- package/features/accessManagement/teams/getTeam/GetTeamRepository.js +18 -0
- package/features/accessManagement/teams/getTeam/GetTeamRepository.js.map +1 -0
- package/features/accessManagement/teams/getTeam/GetTeamUseCase.d.ts +11 -0
- package/features/accessManagement/teams/getTeam/GetTeamUseCase.js +18 -0
- package/features/accessManagement/teams/getTeam/GetTeamUseCase.js.map +1 -0
- package/features/accessManagement/teams/getTeam/abstractions.d.ts +22 -0
- package/features/accessManagement/teams/getTeam/abstractions.js +7 -0
- package/features/accessManagement/teams/getTeam/abstractions.js.map +1 -0
- package/features/accessManagement/teams/getTeam/feature.d.ts +3 -0
- package/features/accessManagement/teams/getTeam/feature.js +21 -0
- package/features/accessManagement/teams/getTeam/feature.js.map +1 -0
- package/features/accessManagement/teams/getTeam/index.d.ts +3 -0
- package/features/accessManagement/teams/getTeam/index.js +2 -0
- package/features/accessManagement/teams/listTeams/ListTeamsGateway.d.ts +11 -0
- package/features/accessManagement/teams/listTeams/ListTeamsGateway.js +49 -0
- package/features/accessManagement/teams/listTeams/ListTeamsGateway.js.map +1 -0
- package/features/accessManagement/teams/listTeams/ListTeamsRepository.d.ts +11 -0
- package/features/accessManagement/teams/listTeams/ListTeamsRepository.js +22 -0
- package/features/accessManagement/teams/listTeams/ListTeamsRepository.js.map +1 -0
- package/features/accessManagement/teams/listTeams/ListTeamsUseCase.d.ts +10 -0
- package/features/accessManagement/teams/listTeams/ListTeamsUseCase.js +18 -0
- package/features/accessManagement/teams/listTeams/ListTeamsUseCase.js.map +1 -0
- package/features/accessManagement/teams/listTeams/abstractions.d.ts +30 -0
- package/features/accessManagement/teams/listTeams/abstractions.js +8 -0
- package/features/accessManagement/teams/listTeams/abstractions.js.map +1 -0
- package/features/accessManagement/teams/listTeams/feature.d.ts +3 -0
- package/features/accessManagement/teams/listTeams/feature.js +23 -0
- package/features/accessManagement/teams/listTeams/feature.js.map +1 -0
- package/features/accessManagement/teams/listTeams/index.d.ts +3 -0
- package/features/accessManagement/teams/listTeams/index.js +2 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamGateway.d.ts +12 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamGateway.js +56 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamGateway.js.map +1 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamRepository.d.ts +13 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamRepository.js +23 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamRepository.js.map +1 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamUseCase.d.ts +11 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamUseCase.js +18 -0
- package/features/accessManagement/teams/updateTeam/UpdateTeamUseCase.js.map +1 -0
- package/features/accessManagement/teams/updateTeam/abstractions.d.ts +27 -0
- package/features/accessManagement/teams/updateTeam/abstractions.js +7 -0
- package/features/accessManagement/teams/updateTeam/abstractions.js.map +1 -0
- package/features/accessManagement/teams/updateTeam/feature.d.ts +3 -0
- package/features/accessManagement/teams/updateTeam/feature.js +21 -0
- package/features/accessManagement/teams/updateTeam/feature.js.map +1 -0
- package/features/accessManagement/teams/updateTeam/index.d.ts +3 -0
- package/features/accessManagement/teams/updateTeam/index.js +2 -0
- package/features/accessManagement/types.d.ts +34 -0
- package/features/accessManagement/types.js +0 -0
- package/features/clipboard/ClipboardService.d.ts +15 -0
- package/features/clipboard/ClipboardService.js +51 -0
- package/features/clipboard/ClipboardService.js.map +1 -0
- package/features/clipboard/abstractions.d.ts +14 -0
- package/features/clipboard/abstractions.js +5 -0
- package/features/clipboard/abstractions.js.map +1 -0
- package/features/clipboard/feature.d.ts +3 -0
- package/features/clipboard/feature.js +17 -0
- package/features/clipboard/feature.js.map +1 -0
- package/features/clipboard/index.d.ts +2 -0
- package/features/clipboard/index.js +2 -0
- package/features/confirmation/Confirmation.d.ts +11 -0
- package/features/confirmation/Confirmation.js +29 -0
- package/features/confirmation/Confirmation.js.map +1 -0
- package/features/confirmation/ConfirmationBridge.d.ts +1 -0
- package/features/confirmation/ConfirmationBridge.js +20 -0
- package/features/confirmation/ConfirmationBridge.js.map +1 -0
- package/features/confirmation/abstractions.d.ts +15 -0
- package/features/confirmation/abstractions.js +6 -0
- package/features/confirmation/abstractions.js.map +1 -0
- package/features/confirmation/feature.d.ts +1 -0
- package/features/confirmation/feature.js +11 -0
- package/features/confirmation/feature.js.map +1 -0
- package/features/confirmation/index.d.ts +3 -0
- package/features/confirmation/index.js +3 -0
- package/features/formModel/Field.d.ts +5 -5
- package/features/formModel/Field.js +69 -23
- package/features/formModel/Field.js.map +1 -1
- package/features/formModel/FieldBuilder.d.ts +8 -3
- package/features/formModel/FieldBuilder.js +20 -1
- package/features/formModel/FieldBuilder.js.map +1 -1
- package/features/formModel/FormErrors.d.ts +2 -1
- package/features/formModel/FormErrors.js +4 -3
- package/features/formModel/FormErrors.js.map +1 -1
- package/features/formModel/FormModel.d.ts +8 -2
- package/features/formModel/FormModel.js +33 -10
- package/features/formModel/FormModel.js.map +1 -1
- package/features/formModel/FormModel.test.js +248 -53
- package/features/formModel/FormModel.test.js.map +1 -1
- package/features/formModel/FormView.js +25 -6
- package/features/formModel/FormView.js.map +1 -1
- package/features/formModel/LayoutBuilderFactory.d.ts +3 -2
- package/features/formModel/LayoutBuilderFactory.js +58 -5
- package/features/formModel/LayoutBuilderFactory.js.map +1 -1
- package/features/formModel/LayoutMutator.js +6 -0
- package/features/formModel/LayoutMutator.js.map +1 -1
- package/features/formModel/LayoutResolver.d.ts +1 -0
- package/features/formModel/LayoutResolver.js +27 -6
- package/features/formModel/LayoutResolver.js.map +1 -1
- package/features/formModel/ObjectField.d.ts +4 -2
- package/features/formModel/ObjectField.js +43 -3
- package/features/formModel/ObjectField.js.map +1 -1
- package/features/formModel/abstractions.d.ts +86 -19
- package/features/formModel/abstractions.js.map +1 -1
- package/features/formModel/demo/FormModelPhase11Presenter.js +5 -5
- package/features/formModel/demo/FormModelPhase11Presenter.js.map +1 -1
- package/features/formModel/feature.js +4 -1
- package/features/formModel/feature.js.map +1 -1
- package/features/formModel/fieldTypes/ObjectFieldType.js +2 -1
- package/features/formModel/fieldTypes/ObjectFieldType.js.map +1 -1
- package/features/formModel/fieldTypes/PasswordFieldType.d.ts +18 -0
- package/features/formModel/fieldTypes/PasswordFieldType.js +23 -0
- package/features/formModel/fieldTypes/PasswordFieldType.js.map +1 -0
- package/features/formModel/fieldTypes/PermissionsFieldType.d.ts +18 -0
- package/features/formModel/fieldTypes/PermissionsFieldType.js +27 -0
- package/features/formModel/fieldTypes/PermissionsFieldType.js.map +1 -0
- package/features/formModel/fieldTypes/RolesMultiSelectFieldType.d.ts +18 -0
- package/features/formModel/fieldTypes/RolesMultiSelectFieldType.js +24 -0
- package/features/formModel/fieldTypes/RolesMultiSelectFieldType.js.map +1 -0
- package/features/formModel/fieldTypes/index.d.ts +3 -0
- package/features/formModel/fieldTypes/index.js +3 -0
- package/features/formModel/index.d.ts +2 -3
- package/features/formModel/index.js +3 -4
- package/features/formModel/renderers.d.ts +4 -0
- package/features/formModel/renderers.js +4 -0
- package/features/iconPicker/listCustomIcons/ListCustomIconsGateway.d.ts +11 -0
- package/features/iconPicker/listCustomIcons/ListCustomIconsGateway.js +49 -0
- package/features/iconPicker/listCustomIcons/ListCustomIconsGateway.js.map +1 -0
- package/features/iconPicker/listCustomIcons/abstractions.d.ts +12 -0
- package/features/iconPicker/listCustomIcons/abstractions.js +5 -0
- package/features/iconPicker/listCustomIcons/abstractions.js.map +1 -0
- package/features/iconPicker/listCustomIcons/feature.d.ts +1 -0
- package/features/iconPicker/listCustomIcons/feature.js +11 -0
- package/features/iconPicker/listCustomIcons/feature.js.map +1 -0
- package/features/iconPicker/listCustomIcons/index.d.ts +3 -0
- package/features/iconPicker/listCustomIcons/index.js +2 -0
- package/features/listCache/ListCache.d.ts +4 -1
- package/features/listCache/ListCache.js +13 -3
- package/features/listCache/ListCache.js.map +1 -1
- package/features/notifications/Notifications.d.ts +16 -0
- package/features/notifications/Notifications.js +39 -0
- package/features/notifications/Notifications.js.map +1 -0
- package/features/notifications/NotificationsPresenter.d.ts +11 -0
- package/features/notifications/NotificationsPresenter.js +27 -0
- package/features/notifications/NotificationsPresenter.js.map +1 -0
- package/features/notifications/NotificationsRenderer.d.ts +7 -0
- package/features/notifications/NotificationsRenderer.js +38 -0
- package/features/notifications/NotificationsRenderer.js.map +1 -0
- package/features/notifications/abstractions.d.ts +38 -0
- package/features/notifications/abstractions.js +6 -0
- package/features/notifications/abstractions.js.map +1 -0
- package/features/notifications/feature.d.ts +4 -0
- package/features/notifications/feature.js +20 -0
- package/features/notifications/feature.js.map +1 -0
- package/features/notifications/index.d.ts +3 -0
- package/features/notifications/index.js +3 -0
- package/features/webinySdk/WebinySdk.d.ts +2 -1
- package/features/webinySdk/WebinySdk.js.map +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +1 -0
- package/hooks/useNamedConfirmationDialog.d.ts +9 -0
- package/hooks/useNamedConfirmationDialog.js +20 -0
- package/hooks/useNamedConfirmationDialog.js.map +1 -0
- package/index.d.ts +34 -1
- package/index.js +39 -8
- package/modules/AccessManagementExtension.d.ts +2 -0
- package/modules/AccessManagementExtension.js +151 -0
- package/modules/AccessManagementExtension.js.map +1 -0
- package/package.json +29 -37
- package/permissions/createPermissions.js.map +1 -1
- package/presentation/accessManagement/SecurityPermissions.d.ts +2 -0
- package/presentation/accessManagement/SecurityPermissions.js +54 -0
- package/presentation/accessManagement/SecurityPermissions.js.map +1 -0
- package/presentation/accessManagement/apiKeys/ApiKeysDataSource.d.ts +13 -0
- package/presentation/accessManagement/apiKeys/ApiKeysDataSource.js +23 -0
- package/presentation/accessManagement/apiKeys/ApiKeysDataSource.js.map +1 -0
- package/presentation/accessManagement/apiKeys/ApiKeysPresenter.d.ts +38 -0
- package/presentation/accessManagement/apiKeys/ApiKeysPresenter.js +193 -0
- package/presentation/accessManagement/apiKeys/ApiKeysPresenter.js.map +1 -0
- package/presentation/accessManagement/apiKeys/abstractions.d.ts +25 -0
- package/presentation/accessManagement/apiKeys/abstractions.js +5 -0
- package/presentation/accessManagement/apiKeys/abstractions.js.map +1 -0
- package/presentation/accessManagement/apiKeys/components/ApiKeysView.d.ts +4 -0
- package/presentation/accessManagement/apiKeys/components/ApiKeysView.js +234 -0
- package/presentation/accessManagement/apiKeys/components/ApiKeysView.js.map +1 -0
- package/presentation/accessManagement/apiKeys/feature.d.ts +3 -0
- package/presentation/accessManagement/apiKeys/feature.js +17 -0
- package/presentation/accessManagement/apiKeys/feature.js.map +1 -0
- package/presentation/accessManagement/roles/RolesDataSource.d.ts +13 -0
- package/presentation/accessManagement/roles/RolesDataSource.js +23 -0
- package/presentation/accessManagement/roles/RolesDataSource.js.map +1 -0
- package/presentation/accessManagement/roles/RolesPresenter.d.ts +38 -0
- package/presentation/accessManagement/roles/RolesPresenter.js +201 -0
- package/presentation/accessManagement/roles/RolesPresenter.js.map +1 -0
- package/presentation/accessManagement/roles/abstractions.d.ts +27 -0
- package/presentation/accessManagement/roles/abstractions.js +5 -0
- package/presentation/accessManagement/roles/abstractions.js.map +1 -0
- package/presentation/accessManagement/roles/components/RolesView.d.ts +4 -0
- package/presentation/accessManagement/roles/components/RolesView.js +232 -0
- package/presentation/accessManagement/roles/components/RolesView.js.map +1 -0
- package/presentation/accessManagement/roles/feature.d.ts +3 -0
- package/presentation/accessManagement/roles/feature.js +17 -0
- package/presentation/accessManagement/roles/feature.js.map +1 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/RolesAutocompletePresenter.d.ts +15 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/RolesAutocompletePresenter.js +42 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/RolesAutocompletePresenter.js.map +1 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/abstractions.d.ts +18 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/abstractions.js +5 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/abstractions.js.map +1 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/feature.d.ts +3 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/feature.js +17 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/feature.js.map +1 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/index.d.ts +3 -0
- package/presentation/accessManagement/roles/rolesAutocomplete/index.js +2 -0
- package/presentation/accessManagement/routes.d.ts +21 -0
- package/presentation/accessManagement/routes.js +36 -0
- package/presentation/accessManagement/routes.js.map +1 -0
- package/presentation/accessManagement/teams/TeamsDataSource.d.ts +13 -0
- package/presentation/accessManagement/teams/TeamsDataSource.js +23 -0
- package/presentation/accessManagement/teams/TeamsDataSource.js.map +1 -0
- package/presentation/accessManagement/teams/TeamsPresenter.d.ts +39 -0
- package/presentation/accessManagement/teams/TeamsPresenter.js +200 -0
- package/presentation/accessManagement/teams/TeamsPresenter.js.map +1 -0
- package/presentation/accessManagement/teams/abstractions.d.ts +26 -0
- package/presentation/accessManagement/teams/abstractions.js +5 -0
- package/presentation/accessManagement/teams/abstractions.js.map +1 -0
- package/presentation/accessManagement/teams/components/TeamsView.d.ts +4 -0
- package/presentation/accessManagement/teams/components/TeamsView.js +214 -0
- package/presentation/accessManagement/teams/components/TeamsView.js.map +1 -0
- package/presentation/accessManagement/teams/feature.d.ts +3 -0
- package/presentation/accessManagement/teams/feature.js +17 -0
- package/presentation/accessManagement/teams/feature.js.map +1 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/TeamsAutocompletePresenter.d.ts +15 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/TeamsAutocompletePresenter.js +42 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/TeamsAutocompletePresenter.js.map +1 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/abstractions.d.ts +18 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/abstractions.js +5 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/abstractions.js.map +1 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/feature.d.ts +3 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/feature.js +17 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/feature.js.map +1 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/index.d.ts +3 -0
- package/presentation/accessManagement/teams/teamsAutocomplete/index.js +2 -0
- package/presentation/iconPicker/customIcons/CustomIconsPresenter.d.ts +16 -0
- package/presentation/iconPicker/customIcons/CustomIconsPresenter.js +40 -0
- package/presentation/iconPicker/customIcons/CustomIconsPresenter.js.map +1 -0
- package/presentation/iconPicker/customIcons/abstractions.d.ts +14 -0
- package/presentation/iconPicker/customIcons/abstractions.js +5 -0
- package/presentation/iconPicker/customIcons/abstractions.js.map +1 -0
- package/presentation/iconPicker/customIcons/feature.d.ts +3 -0
- package/presentation/iconPicker/customIcons/feature.js +17 -0
- package/presentation/iconPicker/customIcons/feature.js.map +1 -0
- package/presentation/iconPicker/customIcons/index.d.ts +3 -0
- package/presentation/iconPicker/customIcons/index.js +2 -0
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js +3 -1
- package/presentation/installation/components/SystemInstaller/SystemInstaller.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.d.ts +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep/createPasswordValidator.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js +5 -4
- package/presentation/installation/components/SystemInstaller/steps/AdminUserStep.js.map +1 -1
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js +1 -1
- package/presentation/installation/components/SystemInstaller/steps/FinishSetup.js.map +1 -1
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js +7 -5
- package/presentation/installation/presenters/SystemInstaller/SystemInstallerPresenter.js.map +1 -1
- package/presentation/listPresenter/FolderAwareDataSource.d.ts +50 -0
- package/presentation/listPresenter/FolderAwareDataSource.js +132 -0
- package/presentation/listPresenter/FolderAwareDataSource.js.map +1 -0
- package/presentation/listPresenter/ListPresenter.d.ts +4 -0
- package/presentation/listPresenter/ListPresenter.js +30 -4
- package/presentation/listPresenter/ListPresenter.js.map +1 -1
- package/presentation/listPresenter/QueryMatcher.d.ts +56 -0
- package/presentation/listPresenter/QueryMatcher.js +59 -0
- package/presentation/listPresenter/QueryMatcher.js.map +1 -0
- package/presentation/listPresenter/SimpleDataSource.d.ts +15 -0
- package/presentation/listPresenter/SimpleDataSource.js +70 -0
- package/presentation/listPresenter/SimpleDataSource.js.map +1 -0
- package/presentation/listPresenter/abstractions.d.ts +9 -0
- package/presentation/listPresenter/abstractions.js.map +1 -1
- package/presentation/listPresenter/index.d.ts +5 -0
- package/presentation/listPresenter/index.js +3 -0
- package/presentation/security/components/HasPermission.d.ts +1 -1
- package/presentation/tenancy/TenancyProvider.js +0 -4
- package/presentation/tenancy/TenancyProvider.js.map +1 -1
- package/presentation/trashBin/TrashBinDataSource.d.ts +16 -0
- package/presentation/trashBin/TrashBinDataSource.js +82 -0
- package/presentation/trashBin/TrashBinDataSource.js.map +1 -0
- package/presentation/trashBin/TrashBinPresenter.d.ts +20 -0
- package/presentation/trashBin/TrashBinPresenter.js +114 -0
- package/presentation/trashBin/TrashBinPresenter.js.map +1 -0
- package/presentation/trashBin/abstractions.d.ts +105 -0
- package/presentation/trashBin/abstractions.js +9 -0
- package/presentation/trashBin/abstractions.js.map +1 -0
- package/presentation/trashBin/components/Actions/DeleteItemAction.d.ts +2 -0
- package/presentation/trashBin/components/Actions/DeleteItemAction.js +20 -0
- package/presentation/trashBin/components/Actions/DeleteItemAction.js.map +1 -0
- package/presentation/trashBin/components/Actions/RestoreItemAction.d.ts +2 -0
- package/presentation/trashBin/components/Actions/RestoreItemAction.js +19 -0
- package/presentation/trashBin/components/Actions/RestoreItemAction.js.map +1 -0
- package/presentation/trashBin/components/Actions/index.d.ts +2 -0
- package/presentation/trashBin/components/Actions/index.js +2 -0
- package/presentation/trashBin/components/BulkActions/DeleteItems.d.ts +4 -0
- package/presentation/trashBin/components/BulkActions/DeleteItems.js +72 -0
- package/presentation/trashBin/components/BulkActions/DeleteItems.js.map +1 -0
- package/presentation/trashBin/components/BulkActions/RestoreItems.d.ts +4 -0
- package/presentation/trashBin/components/BulkActions/RestoreItems.js +81 -0
- package/presentation/trashBin/components/BulkActions/RestoreItems.js.map +1 -0
- package/presentation/trashBin/components/BulkActions/RestoreItemsReportMessage.d.ts +5 -0
- package/presentation/trashBin/components/BulkActions/RestoreItemsReportMessage.js +12 -0
- package/presentation/trashBin/components/BulkActions/RestoreItemsReportMessage.js.map +1 -0
- package/presentation/trashBin/components/BulkActions/index.d.ts +2 -0
- package/presentation/trashBin/components/BulkActions/index.js +2 -0
- package/presentation/trashBin/components/Cells/CellActions.d.ts +2 -0
- package/presentation/trashBin/components/Cells/CellActions.js +18 -0
- package/presentation/trashBin/components/Cells/CellActions.js.map +1 -0
- package/presentation/trashBin/components/Cells/CellCreatedBy.d.ts +2 -0
- package/presentation/trashBin/components/Cells/CellCreatedBy.js +11 -0
- package/presentation/trashBin/components/Cells/CellCreatedBy.js.map +1 -0
- package/presentation/trashBin/components/Cells/CellDeletedBy.d.ts +2 -0
- package/presentation/trashBin/components/Cells/CellDeletedBy.js +11 -0
- package/presentation/trashBin/components/Cells/CellDeletedBy.js.map +1 -0
- package/presentation/trashBin/components/Cells/CellDeletedOn.d.ts +2 -0
- package/presentation/trashBin/components/Cells/CellDeletedOn.js +14 -0
- package/presentation/trashBin/components/Cells/CellDeletedOn.js.map +1 -0
- package/presentation/trashBin/components/Cells/CellTitle.d.ts +2 -0
- package/presentation/trashBin/components/Cells/CellTitle.js +21 -0
- package/presentation/trashBin/components/Cells/CellTitle.js.map +1 -0
- package/presentation/trashBin/components/Cells/index.d.ts +5 -0
- package/presentation/trashBin/components/Cells/index.js +5 -0
- package/presentation/trashBin/components/TrashBinConfigs.d.ts +2 -0
- package/presentation/trashBin/components/TrashBinConfigs.js +55 -0
- package/presentation/trashBin/components/TrashBinConfigs.js.map +1 -0
- package/presentation/trashBin/components/TrashBinOverlay.d.ts +12 -0
- package/presentation/trashBin/components/TrashBinOverlay.js +139 -0
- package/presentation/trashBin/components/TrashBinOverlay.js.map +1 -0
- package/presentation/trashBin/components/TrashBinTable.d.ts +2 -0
- package/presentation/trashBin/components/TrashBinTable.js +48 -0
- package/presentation/trashBin/components/TrashBinTable.js.map +1 -0
- package/presentation/trashBin/configs/Browser/BulkAction.d.ts +34 -0
- package/presentation/trashBin/configs/Browser/BulkAction.js +59 -0
- package/presentation/trashBin/configs/Browser/BulkAction.js.map +1 -0
- package/presentation/trashBin/configs/Browser/EntryAction.d.ts +18 -0
- package/presentation/trashBin/configs/Browser/EntryAction.js +36 -0
- package/presentation/trashBin/configs/Browser/EntryAction.js.map +1 -0
- package/presentation/trashBin/configs/Browser/Table/Column.d.ts +16 -0
- package/presentation/trashBin/configs/Browser/Table/Column.js +9 -0
- package/presentation/trashBin/configs/Browser/Table/Column.js.map +1 -0
- package/presentation/trashBin/configs/Browser/Table/Sorting.d.ts +5 -0
- package/presentation/trashBin/configs/Browser/Table/Sorting.js +6 -0
- package/presentation/trashBin/configs/Browser/Table/Sorting.js.map +1 -0
- package/presentation/trashBin/configs/Browser/Table/index.d.ts +18 -0
- package/presentation/trashBin/configs/Browser/Table/index.js +9 -0
- package/presentation/trashBin/configs/Browser/Table/index.js.map +1 -0
- package/presentation/trashBin/configs/Browser/index.d.ts +40 -0
- package/presentation/trashBin/configs/Browser/index.js +11 -0
- package/presentation/trashBin/configs/Browser/index.js.map +1 -0
- package/presentation/trashBin/configs/TrashBinListConfig.d.ts +46 -0
- package/presentation/trashBin/configs/TrashBinListConfig.js +43 -0
- package/presentation/trashBin/configs/TrashBinListConfig.js.map +1 -0
- package/presentation/trashBin/configs/index.d.ts +1 -0
- package/presentation/trashBin/configs/index.js +1 -0
- package/presentation/trashBin/feature.d.ts +3 -0
- package/presentation/trashBin/feature.js +17 -0
- package/presentation/trashBin/feature.js.map +1 -0
- package/presentation/trashBin/hooks/index.d.ts +4 -0
- package/presentation/trashBin/hooks/index.js +4 -0
- package/presentation/trashBin/hooks/useDeleteTrashBinItem.d.ts +8 -0
- package/presentation/trashBin/hooks/useDeleteTrashBinItem.js +33 -0
- package/presentation/trashBin/hooks/useDeleteTrashBinItem.js.map +1 -0
- package/presentation/trashBin/hooks/useRestoreTrashBinItem.d.ts +8 -0
- package/presentation/trashBin/hooks/useRestoreTrashBinItem.js +35 -0
- package/presentation/trashBin/hooks/useRestoreTrashBinItem.js.map +1 -0
- package/presentation/trashBin/hooks/useTrashBinItem.d.ts +11 -0
- package/presentation/trashBin/hooks/useTrashBinItem.js +7 -0
- package/presentation/trashBin/hooks/useTrashBinItem.js.map +1 -0
- package/presentation/trashBin/hooks/useTrashBinPresenter.d.ts +13 -0
- package/presentation/trashBin/hooks/useTrashBinPresenter.js +7 -0
- package/presentation/trashBin/hooks/useTrashBinPresenter.js.map +1 -0
- package/presentation/trashBin/index.d.ts +6 -0
- package/presentation/trashBin/index.js +6 -0
- package/base/plugins/AddGraphQLQuerySelection.d.ts +0 -8
- package/base/plugins/AddGraphQLQuerySelection.js +0 -19
- package/base/plugins/AddGraphQLQuerySelection.js.map +0 -1
- package/base/providers/ApolloProvider.d.ts +0 -13
- package/base/providers/ApolloProvider.js +0 -10
- package/base/providers/ApolloProvider.js.map +0 -1
- package/components/IconPicker/plugins/graphql.d.ts +0 -20
- package/components/IconPicker/plugins/graphql.js +0 -22
- package/components/IconPicker/plugins/graphql.js.map +0 -1
- package/components/RoleAutocomplete/graphql.d.ts +0 -1
- package/components/RoleAutocomplete/graphql.js +0 -19
- package/components/RoleAutocomplete/graphql.js.map +0 -1
- package/components/RoleAutocomplete/index.d.ts +0 -7
- package/components/RoleAutocomplete/index.js +0 -26
- package/components/RoleAutocomplete/index.js.map +0 -1
- package/components/RolesMultiAutocomplete/graphql.d.ts +0 -1
- package/components/RolesMultiAutocomplete/graphql.js +0 -24
- package/components/RolesMultiAutocomplete/graphql.js.map +0 -1
- package/components/TeamAutocomplete/graphql.d.ts +0 -1
- package/components/TeamAutocomplete/graphql.js +0 -19
- package/components/TeamAutocomplete/graphql.js.map +0 -1
- package/components/TeamsMultiAutocomplete/graphql.d.ts +0 -1
- package/components/TeamsMultiAutocomplete/graphql.js +0 -24
- package/components/TeamsMultiAutocomplete/graphql.js.map +0 -1
- package/config/AdminConfig/LexicalTheme/AllowCustomColors.d.ts +0 -5
- package/config/AdminConfig/LexicalTheme/AllowCustomColors.js +0 -18
- package/config/AdminConfig/LexicalTheme/AllowCustomColors.js.map +0 -1
- package/features/apolloClient/abstraction.d.ts +0 -5
- package/features/apolloClient/abstraction.js +0 -5
- package/features/apolloClient/abstraction.js.map +0 -1
- package/features/apolloClient/feature.d.ts +0 -2
- package/features/apolloClient/feature.js +0 -31
- package/features/apolloClient/feature.js.map +0 -1
- package/plugins/MenuPlugin.d.ts +0 -37
- package/plugins/MenuPlugin.js +0 -20
- package/plugins/MenuPlugin.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateApiKeyRepository, CreateApiKeyUseCase } from "./abstractions.js";
|
|
2
|
+
class CreateApiKeyUseCaseImpl {
|
|
3
|
+
constructor(repository){
|
|
4
|
+
this.repository = repository;
|
|
5
|
+
}
|
|
6
|
+
async execute(data) {
|
|
7
|
+
return this.repository.execute(data);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const CreateApiKeyUseCase_CreateApiKeyUseCase = CreateApiKeyUseCase.createImplementation({
|
|
11
|
+
implementation: CreateApiKeyUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
CreateApiKeyRepository
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { CreateApiKeyUseCase_CreateApiKeyUseCase as CreateApiKeyUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CreateApiKeyUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/createApiKey/CreateApiKeyUseCase.js","sources":["../../../../../src/features/accessManagement/apiKeys/createApiKey/CreateApiKeyUseCase.ts"],"sourcesContent":["import type { ApiKey } from \"../../types.js\";\nimport {\n CreateApiKeyUseCase as UseCaseAbstraction,\n CreateApiKeyRepository,\n type ICreateApiKeyData\n} from \"./abstractions.js\";\n\nclass CreateApiKeyUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private repository: CreateApiKeyRepository.Interface) {}\n\n async execute(data: ICreateApiKeyData): Promise<ApiKey> {\n return this.repository.execute(data);\n }\n}\n\nexport const CreateApiKeyUseCase = UseCaseAbstraction.createImplementation({\n implementation: CreateApiKeyUseCaseImpl,\n dependencies: [CreateApiKeyRepository]\n});\n"],"names":["CreateApiKeyUseCaseImpl","repository","data","CreateApiKeyUseCase","UseCaseAbstraction","CreateApiKeyRepository"],"mappings":";AAOA,MAAMA;IACF,YAAoBC,UAA4C,CAAE;aAA9CA,UAAU,GAAVA;IAA+C;IAEnE,MAAM,QAAQC,IAAuB,EAAmB;QACpD,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAACA;IACnC;AACJ;AAEO,MAAMC,0CAAsBC,oBAAAA,oBAAuC,CAAC;IACvE,gBAAgBJ;IAChB,cAAc;QAACK;KAAuB;AAC1C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Identity } from "../../../../domain/Identity.js";
|
|
2
|
+
import type { ApiKey } from "../../types.js";
|
|
3
|
+
export interface ICreateApiKeyData {
|
|
4
|
+
name: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
description: string;
|
|
7
|
+
permissions: Identity.Permission[];
|
|
8
|
+
}
|
|
9
|
+
export interface ICreateApiKeyGateway {
|
|
10
|
+
execute(data: ICreateApiKeyData): Promise<ApiKey>;
|
|
11
|
+
}
|
|
12
|
+
export declare const CreateApiKeyGateway: import("@webiny/di").Abstraction<ICreateApiKeyGateway>;
|
|
13
|
+
export declare namespace CreateApiKeyGateway {
|
|
14
|
+
type Interface = ICreateApiKeyGateway;
|
|
15
|
+
}
|
|
16
|
+
export interface ICreateApiKeyRepository {
|
|
17
|
+
execute(data: ICreateApiKeyData): Promise<ApiKey>;
|
|
18
|
+
}
|
|
19
|
+
export declare const CreateApiKeyRepository: import("@webiny/di").Abstraction<ICreateApiKeyRepository>;
|
|
20
|
+
export declare namespace CreateApiKeyRepository {
|
|
21
|
+
type Interface = ICreateApiKeyRepository;
|
|
22
|
+
}
|
|
23
|
+
export interface ICreateApiKeyUseCase {
|
|
24
|
+
execute(data: ICreateApiKeyData): Promise<ApiKey>;
|
|
25
|
+
}
|
|
26
|
+
export declare const CreateApiKeyUseCase: import("@webiny/di").Abstraction<ICreateApiKeyUseCase>;
|
|
27
|
+
export declare namespace CreateApiKeyUseCase {
|
|
28
|
+
type Interface = ICreateApiKeyUseCase;
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const CreateApiKeyGateway = createAbstraction("AccessManagement/CreateApiKeyGateway");
|
|
3
|
+
const CreateApiKeyRepository = createAbstraction("AccessManagement/CreateApiKeyRepository");
|
|
4
|
+
const CreateApiKeyUseCase = createAbstraction("AccessManagement/CreateApiKeyUseCase");
|
|
5
|
+
export { CreateApiKeyGateway, CreateApiKeyRepository, CreateApiKeyUseCase };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/createApiKey/abstractions.js","sources":["../../../../../src/features/accessManagement/apiKeys/createApiKey/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { Identity } from \"~/domain/Identity.js\";\nimport type { ApiKey } from \"../../types.js\";\n\nexport interface ICreateApiKeyData {\n name: string;\n slug: string;\n description: string;\n permissions: Identity.Permission[];\n}\n\nexport interface ICreateApiKeyGateway {\n execute(data: ICreateApiKeyData): Promise<ApiKey>;\n}\n\nexport const CreateApiKeyGateway = createAbstraction<ICreateApiKeyGateway>(\n \"AccessManagement/CreateApiKeyGateway\"\n);\n\nexport namespace CreateApiKeyGateway {\n export type Interface = ICreateApiKeyGateway;\n}\n\nexport interface ICreateApiKeyRepository {\n execute(data: ICreateApiKeyData): Promise<ApiKey>;\n}\n\nexport const CreateApiKeyRepository = createAbstraction<ICreateApiKeyRepository>(\n \"AccessManagement/CreateApiKeyRepository\"\n);\n\nexport namespace CreateApiKeyRepository {\n export type Interface = ICreateApiKeyRepository;\n}\n\nexport interface ICreateApiKeyUseCase {\n execute(data: ICreateApiKeyData): Promise<ApiKey>;\n}\n\nexport const CreateApiKeyUseCase = createAbstraction<ICreateApiKeyUseCase>(\n \"AccessManagement/CreateApiKeyUseCase\"\n);\n\nexport namespace CreateApiKeyUseCase {\n export type Interface = ICreateApiKeyUseCase;\n}\n"],"names":["CreateApiKeyGateway","createAbstraction","CreateApiKeyRepository","CreateApiKeyUseCase"],"mappings":";AAeO,MAAMA,sBAAsBC,kBAC/B;AAWG,MAAMC,yBAAyBD,kBAClC;AAWG,MAAME,sBAAsBF,kBAC/B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { CreateApiKeyUseCase } from "./abstractions.js";
|
|
3
|
+
import { CreateApiKeyUseCase as external_CreateApiKeyUseCase_js_CreateApiKeyUseCase } from "./CreateApiKeyUseCase.js";
|
|
4
|
+
import { CreateApiKeyRepository } from "./CreateApiKeyRepository.js";
|
|
5
|
+
import { CreateApiKeyGateway } from "./CreateApiKeyGateway.js";
|
|
6
|
+
const CreateApiKeyFeature = createFeature({
|
|
7
|
+
name: "AccessManagement/CreateApiKey",
|
|
8
|
+
register (container) {
|
|
9
|
+
container.register(external_CreateApiKeyUseCase_js_CreateApiKeyUseCase);
|
|
10
|
+
container.register(CreateApiKeyRepository).inSingletonScope();
|
|
11
|
+
container.register(CreateApiKeyGateway).inSingletonScope();
|
|
12
|
+
},
|
|
13
|
+
resolve (container) {
|
|
14
|
+
return {
|
|
15
|
+
useCase: container.resolve(CreateApiKeyUseCase)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { CreateApiKeyFeature };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/createApiKey/feature.js","sources":["../../../../../src/features/accessManagement/apiKeys/createApiKey/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { CreateApiKeyUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { CreateApiKeyUseCase } from \"./CreateApiKeyUseCase.js\";\nimport { CreateApiKeyRepository } from \"./CreateApiKeyRepository.js\";\nimport { CreateApiKeyGateway } from \"./CreateApiKeyGateway.js\";\n\nexport const CreateApiKeyFeature = createFeature({\n name: \"AccessManagement/CreateApiKey\",\n register(container) {\n container.register(CreateApiKeyUseCase);\n container.register(CreateApiKeyRepository).inSingletonScope();\n container.register(CreateApiKeyGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["CreateApiKeyFeature","createFeature","container","CreateApiKeyUseCase","CreateApiKeyRepository","CreateApiKeyGateway","UseCaseAbstraction"],"mappings":";;;;;AAMO,MAAMA,sBAAsBC,cAAc;IAC7C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,wBAAwB,gBAAgB;QAC3DF,UAAU,QAAQ,CAACG,qBAAqB,gBAAgB;IAC5D;IACA,SAAQH,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACI;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { DeleteApiKeyGateway as GatewayAbstraction } from "./abstractions.js";
|
|
3
|
+
declare class DeleteApiKeyGatewayImpl implements GatewayAbstraction.Interface {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(id: string): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DeleteApiKeyGateway: typeof DeleteApiKeyGatewayImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IDeleteApiKeyGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { DeleteApiKeyGateway } from "./abstractions.js";
|
|
3
|
+
const DELETE_API_KEY = `
|
|
4
|
+
mutation DeleteApiKey($id: ID!) {
|
|
5
|
+
security {
|
|
6
|
+
deleteApiKey(id: $id) {
|
|
7
|
+
data
|
|
8
|
+
error {
|
|
9
|
+
code
|
|
10
|
+
message
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
class DeleteApiKeyGatewayImpl {
|
|
17
|
+
constructor(client){
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
async execute(id) {
|
|
21
|
+
const response = await this.client.execute({
|
|
22
|
+
query: DELETE_API_KEY,
|
|
23
|
+
variables: {
|
|
24
|
+
id
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const { error } = response.security.deleteApiKey;
|
|
28
|
+
if (error) throw new Error(error.message);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const DeleteApiKeyGateway_DeleteApiKeyGateway = DeleteApiKeyGateway.createImplementation({
|
|
32
|
+
implementation: DeleteApiKeyGatewayImpl,
|
|
33
|
+
dependencies: [
|
|
34
|
+
MainGraphQLClient
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
export { DeleteApiKeyGateway_DeleteApiKeyGateway as DeleteApiKeyGateway };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=DeleteApiKeyGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyGateway.js","sources":["../../../../../src/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport { DeleteApiKeyGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nconst DELETE_API_KEY = /* GraphQL */ `\n mutation DeleteApiKey($id: ID!) {\n security {\n deleteApiKey(id: $id) {\n data\n error {\n code\n message\n }\n }\n }\n }\n`;\n\ninterface DeleteApiKeyResponse {\n security: {\n deleteApiKey: {\n data: boolean | null;\n error: { code: string; message: string } | null;\n };\n };\n}\n\nclass DeleteApiKeyGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(id: string): Promise<void> {\n const response = await this.client.execute<DeleteApiKeyResponse>({\n query: DELETE_API_KEY,\n variables: { id }\n });\n\n const { error } = response.security.deleteApiKey;\n\n if (error) {\n throw new Error(error.message);\n }\n }\n}\n\nexport const DeleteApiKeyGateway = GatewayAbstraction.createImplementation({\n implementation: DeleteApiKeyGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["DELETE_API_KEY","DeleteApiKeyGatewayImpl","client","id","response","error","Error","DeleteApiKeyGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAGA,MAAMA,iBAA+B,CAAC;;;;;;;;;;;;AAYtC,CAAC;AAWD,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QAAQC,EAAU,EAAiB;QACrC,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAuB;YAC7D,OAAOJ;YACP,WAAW;gBAAEG;YAAG;QACpB;QAEA,MAAM,EAAEE,KAAK,EAAE,GAAGD,SAAS,QAAQ,CAAC,YAAY;QAEhD,IAAIC,OACA,MAAM,IAAIC,MAAMD,MAAM,OAAO;IAErC;AACJ;AAEO,MAAME,0CAAsBC,oBAAAA,oBAAuC,CAAC;IACvE,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiKeysListCache } from "../listApiKeys/abstractions.js";
|
|
2
|
+
import { DeleteApiKeyRepository as RepositoryAbstraction, DeleteApiKeyGateway } from "./abstractions.js";
|
|
3
|
+
declare class DeleteApiKeyRepositoryImpl implements RepositoryAbstraction.Interface {
|
|
4
|
+
private gateway;
|
|
5
|
+
private cache;
|
|
6
|
+
constructor(gateway: DeleteApiKeyGateway.Interface, cache: ApiKeysListCache.Interface);
|
|
7
|
+
execute(id: string): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const DeleteApiKeyRepository: typeof DeleteApiKeyRepositoryImpl & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IDeleteApiKeyRepository>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApiKeysListCache } from "../listApiKeys/abstractions.js";
|
|
2
|
+
import { DeleteApiKeyGateway, DeleteApiKeyRepository } from "./abstractions.js";
|
|
3
|
+
class DeleteApiKeyRepositoryImpl {
|
|
4
|
+
constructor(gateway, cache){
|
|
5
|
+
this.gateway = gateway;
|
|
6
|
+
this.cache = cache;
|
|
7
|
+
}
|
|
8
|
+
async execute(id) {
|
|
9
|
+
await this.gateway.execute(id);
|
|
10
|
+
this.cache.removeItems((item)=>item.id === id);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const DeleteApiKeyRepository_DeleteApiKeyRepository = DeleteApiKeyRepository.createImplementation({
|
|
14
|
+
implementation: DeleteApiKeyRepositoryImpl,
|
|
15
|
+
dependencies: [
|
|
16
|
+
DeleteApiKeyGateway,
|
|
17
|
+
ApiKeysListCache
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
export { DeleteApiKeyRepository_DeleteApiKeyRepository as DeleteApiKeyRepository };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=DeleteApiKeyRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyRepository.js","sources":["../../../../../src/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyRepository.ts"],"sourcesContent":["import { ApiKeysListCache } from \"../listApiKeys/abstractions.js\";\nimport {\n DeleteApiKeyRepository as RepositoryAbstraction,\n DeleteApiKeyGateway\n} from \"./abstractions.js\";\n\nclass DeleteApiKeyRepositoryImpl implements RepositoryAbstraction.Interface {\n constructor(\n private gateway: DeleteApiKeyGateway.Interface,\n private cache: ApiKeysListCache.Interface\n ) {}\n\n async execute(id: string): Promise<void> {\n await this.gateway.execute(id);\n this.cache.removeItems(item => item.id === id);\n }\n}\n\nexport const DeleteApiKeyRepository = RepositoryAbstraction.createImplementation({\n implementation: DeleteApiKeyRepositoryImpl,\n dependencies: [DeleteApiKeyGateway, ApiKeysListCache]\n});\n"],"names":["DeleteApiKeyRepositoryImpl","gateway","cache","id","item","DeleteApiKeyRepository","RepositoryAbstraction","DeleteApiKeyGateway","ApiKeysListCache"],"mappings":";;AAMA,MAAMA;IACF,YACYC,OAAsC,EACtCC,KAAiC,CAC3C;aAFUD,OAAO,GAAPA;aACAC,KAAK,GAALA;IACT;IAEH,MAAM,QAAQC,EAAU,EAAiB;QACrC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;QAC3B,IAAI,CAAC,KAAK,CAAC,WAAW,CAACC,CAAAA,OAAQA,KAAK,EAAE,KAAKD;IAC/C;AACJ;AAEO,MAAME,gDAAyBC,uBAAAA,oBAA0C,CAAC;IAC7E,gBAAgBN;IAChB,cAAc;QAACO;QAAqBC;KAAiB;AACzD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeleteApiKeyUseCase as UseCaseAbstraction, DeleteApiKeyRepository } from "./abstractions.js";
|
|
2
|
+
declare class DeleteApiKeyUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private repository;
|
|
4
|
+
constructor(repository: DeleteApiKeyRepository.Interface);
|
|
5
|
+
execute(id: string): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeleteApiKeyUseCase: typeof DeleteApiKeyUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IDeleteApiKeyUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeleteApiKeyRepository, DeleteApiKeyUseCase } from "./abstractions.js";
|
|
2
|
+
class DeleteApiKeyUseCaseImpl {
|
|
3
|
+
constructor(repository){
|
|
4
|
+
this.repository = repository;
|
|
5
|
+
}
|
|
6
|
+
async execute(id) {
|
|
7
|
+
return this.repository.execute(id);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const DeleteApiKeyUseCase_DeleteApiKeyUseCase = DeleteApiKeyUseCase.createImplementation({
|
|
11
|
+
implementation: DeleteApiKeyUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
DeleteApiKeyRepository
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { DeleteApiKeyUseCase_DeleteApiKeyUseCase as DeleteApiKeyUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=DeleteApiKeyUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyUseCase.js","sources":["../../../../../src/features/accessManagement/apiKeys/deleteApiKey/DeleteApiKeyUseCase.ts"],"sourcesContent":["import {\n DeleteApiKeyUseCase as UseCaseAbstraction,\n DeleteApiKeyRepository\n} from \"./abstractions.js\";\n\nclass DeleteApiKeyUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private repository: DeleteApiKeyRepository.Interface) {}\n\n async execute(id: string): Promise<void> {\n return this.repository.execute(id);\n }\n}\n\nexport const DeleteApiKeyUseCase = UseCaseAbstraction.createImplementation({\n implementation: DeleteApiKeyUseCaseImpl,\n dependencies: [DeleteApiKeyRepository]\n});\n"],"names":["DeleteApiKeyUseCaseImpl","repository","id","DeleteApiKeyUseCase","UseCaseAbstraction","DeleteApiKeyRepository"],"mappings":";AAKA,MAAMA;IACF,YAAoBC,UAA4C,CAAE;aAA9CA,UAAU,GAAVA;IAA+C;IAEnE,MAAM,QAAQC,EAAU,EAAiB;QACrC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAACA;IACnC;AACJ;AAEO,MAAMC,0CAAsBC,oBAAAA,oBAAuC,CAAC;IACvE,gBAAgBJ;IAChB,cAAc;QAACK;KAAuB;AAC1C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IDeleteApiKeyGateway {
|
|
2
|
+
execute(id: string): Promise<void>;
|
|
3
|
+
}
|
|
4
|
+
export declare const DeleteApiKeyGateway: import("@webiny/di").Abstraction<IDeleteApiKeyGateway>;
|
|
5
|
+
export declare namespace DeleteApiKeyGateway {
|
|
6
|
+
type Interface = IDeleteApiKeyGateway;
|
|
7
|
+
}
|
|
8
|
+
export interface IDeleteApiKeyRepository {
|
|
9
|
+
execute(id: string): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export declare const DeleteApiKeyRepository: import("@webiny/di").Abstraction<IDeleteApiKeyRepository>;
|
|
12
|
+
export declare namespace DeleteApiKeyRepository {
|
|
13
|
+
type Interface = IDeleteApiKeyRepository;
|
|
14
|
+
}
|
|
15
|
+
export interface IDeleteApiKeyUseCase {
|
|
16
|
+
execute(id: string): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export declare const DeleteApiKeyUseCase: import("@webiny/di").Abstraction<IDeleteApiKeyUseCase>;
|
|
19
|
+
export declare namespace DeleteApiKeyUseCase {
|
|
20
|
+
type Interface = IDeleteApiKeyUseCase;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const DeleteApiKeyGateway = createAbstraction("AccessManagement/DeleteApiKeyGateway");
|
|
3
|
+
const DeleteApiKeyRepository = createAbstraction("AccessManagement/DeleteApiKeyRepository");
|
|
4
|
+
const DeleteApiKeyUseCase = createAbstraction("AccessManagement/DeleteApiKeyUseCase");
|
|
5
|
+
export { DeleteApiKeyGateway, DeleteApiKeyRepository, DeleteApiKeyUseCase };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/deleteApiKey/abstractions.js","sources":["../../../../../src/features/accessManagement/apiKeys/deleteApiKey/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IDeleteApiKeyGateway {\n execute(id: string): Promise<void>;\n}\n\nexport const DeleteApiKeyGateway = createAbstraction<IDeleteApiKeyGateway>(\n \"AccessManagement/DeleteApiKeyGateway\"\n);\n\nexport namespace DeleteApiKeyGateway {\n export type Interface = IDeleteApiKeyGateway;\n}\n\nexport interface IDeleteApiKeyRepository {\n execute(id: string): Promise<void>;\n}\n\nexport const DeleteApiKeyRepository = createAbstraction<IDeleteApiKeyRepository>(\n \"AccessManagement/DeleteApiKeyRepository\"\n);\n\nexport namespace DeleteApiKeyRepository {\n export type Interface = IDeleteApiKeyRepository;\n}\n\nexport interface IDeleteApiKeyUseCase {\n execute(id: string): Promise<void>;\n}\n\nexport const DeleteApiKeyUseCase = createAbstraction<IDeleteApiKeyUseCase>(\n \"AccessManagement/DeleteApiKeyUseCase\"\n);\n\nexport namespace DeleteApiKeyUseCase {\n export type Interface = IDeleteApiKeyUseCase;\n}\n"],"names":["DeleteApiKeyGateway","createAbstraction","DeleteApiKeyRepository","DeleteApiKeyUseCase"],"mappings":";AAMO,MAAMA,sBAAsBC,kBAC/B;AAWG,MAAMC,yBAAyBD,kBAClC;AAWG,MAAME,sBAAsBF,kBAC/B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { DeleteApiKeyUseCase } from "./abstractions.js";
|
|
3
|
+
import { DeleteApiKeyUseCase as external_DeleteApiKeyUseCase_js_DeleteApiKeyUseCase } from "./DeleteApiKeyUseCase.js";
|
|
4
|
+
import { DeleteApiKeyRepository } from "./DeleteApiKeyRepository.js";
|
|
5
|
+
import { DeleteApiKeyGateway } from "./DeleteApiKeyGateway.js";
|
|
6
|
+
const DeleteApiKeyFeature = createFeature({
|
|
7
|
+
name: "AccessManagement/DeleteApiKey",
|
|
8
|
+
register (container) {
|
|
9
|
+
container.register(external_DeleteApiKeyUseCase_js_DeleteApiKeyUseCase);
|
|
10
|
+
container.register(DeleteApiKeyRepository).inSingletonScope();
|
|
11
|
+
container.register(DeleteApiKeyGateway).inSingletonScope();
|
|
12
|
+
},
|
|
13
|
+
resolve (container) {
|
|
14
|
+
return {
|
|
15
|
+
useCase: container.resolve(DeleteApiKeyUseCase)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { DeleteApiKeyFeature };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/deleteApiKey/feature.js","sources":["../../../../../src/features/accessManagement/apiKeys/deleteApiKey/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { DeleteApiKeyUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { DeleteApiKeyUseCase } from \"./DeleteApiKeyUseCase.js\";\nimport { DeleteApiKeyRepository } from \"./DeleteApiKeyRepository.js\";\nimport { DeleteApiKeyGateway } from \"./DeleteApiKeyGateway.js\";\n\nexport const DeleteApiKeyFeature = createFeature({\n name: \"AccessManagement/DeleteApiKey\",\n register(container) {\n container.register(DeleteApiKeyUseCase);\n container.register(DeleteApiKeyRepository).inSingletonScope();\n container.register(DeleteApiKeyGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["DeleteApiKeyFeature","createFeature","container","DeleteApiKeyUseCase","DeleteApiKeyRepository","DeleteApiKeyGateway","UseCaseAbstraction"],"mappings":";;;;;AAMO,MAAMA,sBAAsBC,cAAc;IAC7C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,wBAAwB,gBAAgB;QAC3DF,UAAU,QAAQ,CAACG,qBAAqB,gBAAgB;IAC5D;IACA,SAAQH,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACI;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import type { ApiKey } from "../../types.js";
|
|
3
|
+
import { GetApiKeyGateway as GatewayAbstraction } from "./abstractions.js";
|
|
4
|
+
declare class GetApiKeyGatewayImpl implements GatewayAbstraction.Interface {
|
|
5
|
+
private client;
|
|
6
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
7
|
+
execute(id: string): Promise<ApiKey>;
|
|
8
|
+
}
|
|
9
|
+
export declare const GetApiKeyGateway: typeof GetApiKeyGatewayImpl & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetApiKeyGateway>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { GetApiKeyGateway } from "./abstractions.js";
|
|
3
|
+
const GET_API_KEY = `
|
|
4
|
+
query GetApiKey($id: ID!) {
|
|
5
|
+
security {
|
|
6
|
+
apiKey: getApiKey(id: $id) {
|
|
7
|
+
data {
|
|
8
|
+
id
|
|
9
|
+
name
|
|
10
|
+
slug
|
|
11
|
+
description
|
|
12
|
+
token
|
|
13
|
+
permissions
|
|
14
|
+
createdOn
|
|
15
|
+
}
|
|
16
|
+
error {
|
|
17
|
+
code
|
|
18
|
+
message
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
class GetApiKeyGatewayImpl {
|
|
25
|
+
constructor(client){
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
async execute(id) {
|
|
29
|
+
const response = await this.client.execute({
|
|
30
|
+
query: GET_API_KEY,
|
|
31
|
+
variables: {
|
|
32
|
+
id
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
const { data, error } = response.security.apiKey;
|
|
36
|
+
if (error) throw new Error(error.message);
|
|
37
|
+
if (!data) throw new Error("API key not found.");
|
|
38
|
+
return data;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const GetApiKeyGateway_GetApiKeyGateway = GetApiKeyGateway.createImplementation({
|
|
42
|
+
implementation: GetApiKeyGatewayImpl,
|
|
43
|
+
dependencies: [
|
|
44
|
+
MainGraphQLClient
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
export { GetApiKeyGateway_GetApiKeyGateway as GetApiKeyGateway };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=GetApiKeyGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/getApiKey/GetApiKeyGateway.js","sources":["../../../../../src/features/accessManagement/apiKeys/getApiKey/GetApiKeyGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport type { ApiKey } from \"../../types.js\";\nimport { GetApiKeyGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nconst GET_API_KEY = /* GraphQL */ `\n query GetApiKey($id: ID!) {\n security {\n apiKey: getApiKey(id: $id) {\n data {\n id\n name\n slug\n description\n token\n permissions\n createdOn\n }\n error {\n code\n message\n }\n }\n }\n }\n`;\n\ninterface GetApiKeyResponse {\n security: {\n apiKey: {\n data: ApiKey | null;\n error: { code: string; message: string } | null;\n };\n };\n}\n\nclass GetApiKeyGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async execute(id: string): Promise<ApiKey> {\n const response = await this.client.execute<GetApiKeyResponse>({\n query: GET_API_KEY,\n variables: { id }\n });\n\n const { data, error } = response.security.apiKey;\n\n if (error) {\n throw new Error(error.message);\n }\n\n if (!data) {\n throw new Error(\"API key not found.\");\n }\n\n return data;\n }\n}\n\nexport const GetApiKeyGateway = GatewayAbstraction.createImplementation({\n implementation: GetApiKeyGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_API_KEY","GetApiKeyGatewayImpl","client","id","response","data","error","Error","GetApiKeyGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAIA,MAAMA,cAA4B,CAAC;;;;;;;;;;;;;;;;;;;;AAoBnC,CAAC;AAWD,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,QAAQC,EAAU,EAAmB;QACvC,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAoB;YAC1D,OAAOJ;YACP,WAAW;gBAAEG;YAAG;QACpB;QAEA,MAAM,EAAEE,IAAI,EAAEC,KAAK,EAAE,GAAGF,SAAS,QAAQ,CAAC,MAAM;QAEhD,IAAIE,OACA,MAAM,IAAIC,MAAMD,MAAM,OAAO;QAGjC,IAAI,CAACD,MACD,MAAM,IAAIE,MAAM;QAGpB,OAAOF;IACX;AACJ;AAEO,MAAMG,oCAAmBC,iBAAAA,oBAAuC,CAAC;IACpE,gBAAgBR;IAChB,cAAc;QAACS;KAAkB;AACrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiKey } from "../../types.js";
|
|
2
|
+
import { GetApiKeyRepository as RepositoryAbstraction, GetApiKeyGateway } from "./abstractions.js";
|
|
3
|
+
declare class GetApiKeyRepositoryImpl implements RepositoryAbstraction.Interface {
|
|
4
|
+
private gateway;
|
|
5
|
+
constructor(gateway: GetApiKeyGateway.Interface);
|
|
6
|
+
execute(id: string): Promise<ApiKey>;
|
|
7
|
+
}
|
|
8
|
+
export declare const GetApiKeyRepository: typeof GetApiKeyRepositoryImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetApiKeyRepository>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetApiKeyGateway, GetApiKeyRepository } from "./abstractions.js";
|
|
2
|
+
class GetApiKeyRepositoryImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(id) {
|
|
7
|
+
return this.gateway.execute(id);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const GetApiKeyRepository_GetApiKeyRepository = GetApiKeyRepository.createImplementation({
|
|
11
|
+
implementation: GetApiKeyRepositoryImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
GetApiKeyGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { GetApiKeyRepository_GetApiKeyRepository as GetApiKeyRepository };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GetApiKeyRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/getApiKey/GetApiKeyRepository.js","sources":["../../../../../src/features/accessManagement/apiKeys/getApiKey/GetApiKeyRepository.ts"],"sourcesContent":["import type { ApiKey } from \"../../types.js\";\nimport { GetApiKeyRepository as RepositoryAbstraction, GetApiKeyGateway } from \"./abstractions.js\";\n\nclass GetApiKeyRepositoryImpl implements RepositoryAbstraction.Interface {\n constructor(private gateway: GetApiKeyGateway.Interface) {}\n\n async execute(id: string): Promise<ApiKey> {\n return this.gateway.execute(id);\n }\n}\n\nexport const GetApiKeyRepository = RepositoryAbstraction.createImplementation({\n implementation: GetApiKeyRepositoryImpl,\n dependencies: [GetApiKeyGateway]\n});\n"],"names":["GetApiKeyRepositoryImpl","gateway","id","GetApiKeyRepository","RepositoryAbstraction","GetApiKeyGateway"],"mappings":";AAGA,MAAMA;IACF,YAAoBC,OAAmC,CAAE;aAArCA,OAAO,GAAPA;IAAsC;IAE1D,MAAM,QAAQC,EAAU,EAAmB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;IAChC;AACJ;AAEO,MAAMC,0CAAsBC,oBAAAA,oBAA0C,CAAC;IAC1E,gBAAgBJ;IAChB,cAAc;QAACK;KAAiB;AACpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiKey } from "../../types.js";
|
|
2
|
+
import { GetApiKeyUseCase as UseCaseAbstraction, GetApiKeyRepository } from "./abstractions.js";
|
|
3
|
+
declare class GetApiKeyUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
4
|
+
private repository;
|
|
5
|
+
constructor(repository: GetApiKeyRepository.Interface);
|
|
6
|
+
execute(id: string): Promise<ApiKey>;
|
|
7
|
+
}
|
|
8
|
+
export declare const GetApiKeyUseCase: typeof GetApiKeyUseCaseImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetApiKeyUseCase>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetApiKeyRepository, GetApiKeyUseCase } from "./abstractions.js";
|
|
2
|
+
class GetApiKeyUseCaseImpl {
|
|
3
|
+
constructor(repository){
|
|
4
|
+
this.repository = repository;
|
|
5
|
+
}
|
|
6
|
+
async execute(id) {
|
|
7
|
+
return this.repository.execute(id);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const GetApiKeyUseCase_GetApiKeyUseCase = GetApiKeyUseCase.createImplementation({
|
|
11
|
+
implementation: GetApiKeyUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
GetApiKeyRepository
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { GetApiKeyUseCase_GetApiKeyUseCase as GetApiKeyUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GetApiKeyUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/getApiKey/GetApiKeyUseCase.js","sources":["../../../../../src/features/accessManagement/apiKeys/getApiKey/GetApiKeyUseCase.ts"],"sourcesContent":["import type { ApiKey } from \"../../types.js\";\nimport { GetApiKeyUseCase as UseCaseAbstraction, GetApiKeyRepository } from \"./abstractions.js\";\n\nclass GetApiKeyUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private repository: GetApiKeyRepository.Interface) {}\n\n async execute(id: string): Promise<ApiKey> {\n return this.repository.execute(id);\n }\n}\n\nexport const GetApiKeyUseCase = UseCaseAbstraction.createImplementation({\n implementation: GetApiKeyUseCaseImpl,\n dependencies: [GetApiKeyRepository]\n});\n"],"names":["GetApiKeyUseCaseImpl","repository","id","GetApiKeyUseCase","UseCaseAbstraction","GetApiKeyRepository"],"mappings":";AAGA,MAAMA;IACF,YAAoBC,UAAyC,CAAE;aAA3CA,UAAU,GAAVA;IAA4C;IAEhE,MAAM,QAAQC,EAAU,EAAmB;QACvC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAACA;IACnC;AACJ;AAEO,MAAMC,oCAAmBC,iBAAAA,oBAAuC,CAAC;IACpE,gBAAgBJ;IAChB,cAAc;QAACK;KAAoB;AACvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ApiKey } from "../../types.js";
|
|
2
|
+
export interface IGetApiKeyGateway {
|
|
3
|
+
execute(id: string): Promise<ApiKey>;
|
|
4
|
+
}
|
|
5
|
+
export declare const GetApiKeyGateway: import("@webiny/di").Abstraction<IGetApiKeyGateway>;
|
|
6
|
+
export declare namespace GetApiKeyGateway {
|
|
7
|
+
type Interface = IGetApiKeyGateway;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetApiKeyRepository {
|
|
10
|
+
execute(id: string): Promise<ApiKey>;
|
|
11
|
+
}
|
|
12
|
+
export declare const GetApiKeyRepository: import("@webiny/di").Abstraction<IGetApiKeyRepository>;
|
|
13
|
+
export declare namespace GetApiKeyRepository {
|
|
14
|
+
type Interface = IGetApiKeyRepository;
|
|
15
|
+
}
|
|
16
|
+
export interface IGetApiKeyUseCase {
|
|
17
|
+
execute(id: string): Promise<ApiKey>;
|
|
18
|
+
}
|
|
19
|
+
export declare const GetApiKeyUseCase: import("@webiny/di").Abstraction<IGetApiKeyUseCase>;
|
|
20
|
+
export declare namespace GetApiKeyUseCase {
|
|
21
|
+
type Interface = IGetApiKeyUseCase;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const GetApiKeyGateway = createAbstraction("AccessManagement/GetApiKeyGateway");
|
|
3
|
+
const GetApiKeyRepository = createAbstraction("AccessManagement/GetApiKeyRepository");
|
|
4
|
+
const GetApiKeyUseCase = createAbstraction("AccessManagement/GetApiKeyUseCase");
|
|
5
|
+
export { GetApiKeyGateway, GetApiKeyRepository, GetApiKeyUseCase };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/getApiKey/abstractions.js","sources":["../../../../../src/features/accessManagement/apiKeys/getApiKey/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { ApiKey } from \"../../types.js\";\n\nexport interface IGetApiKeyGateway {\n execute(id: string): Promise<ApiKey>;\n}\n\nexport const GetApiKeyGateway = createAbstraction<IGetApiKeyGateway>(\n \"AccessManagement/GetApiKeyGateway\"\n);\n\nexport namespace GetApiKeyGateway {\n export type Interface = IGetApiKeyGateway;\n}\n\nexport interface IGetApiKeyRepository {\n execute(id: string): Promise<ApiKey>;\n}\n\nexport const GetApiKeyRepository = createAbstraction<IGetApiKeyRepository>(\n \"AccessManagement/GetApiKeyRepository\"\n);\n\nexport namespace GetApiKeyRepository {\n export type Interface = IGetApiKeyRepository;\n}\n\nexport interface IGetApiKeyUseCase {\n execute(id: string): Promise<ApiKey>;\n}\n\nexport const GetApiKeyUseCase = createAbstraction<IGetApiKeyUseCase>(\n \"AccessManagement/GetApiKeyUseCase\"\n);\n\nexport namespace GetApiKeyUseCase {\n export type Interface = IGetApiKeyUseCase;\n}\n"],"names":["GetApiKeyGateway","createAbstraction","GetApiKeyRepository","GetApiKeyUseCase"],"mappings":";AAOO,MAAMA,mBAAmBC,kBAC5B;AAWG,MAAMC,sBAAsBD,kBAC/B;AAWG,MAAME,mBAAmBF,kBAC5B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { GetApiKeyUseCase } from "./abstractions.js";
|
|
3
|
+
import { GetApiKeyUseCase as external_GetApiKeyUseCase_js_GetApiKeyUseCase } from "./GetApiKeyUseCase.js";
|
|
4
|
+
import { GetApiKeyRepository } from "./GetApiKeyRepository.js";
|
|
5
|
+
import { GetApiKeyGateway } from "./GetApiKeyGateway.js";
|
|
6
|
+
const GetApiKeyFeature = createFeature({
|
|
7
|
+
name: "AccessManagement/GetApiKey",
|
|
8
|
+
register (container) {
|
|
9
|
+
container.register(external_GetApiKeyUseCase_js_GetApiKeyUseCase);
|
|
10
|
+
container.register(GetApiKeyRepository).inSingletonScope();
|
|
11
|
+
container.register(GetApiKeyGateway).inSingletonScope();
|
|
12
|
+
},
|
|
13
|
+
resolve (container) {
|
|
14
|
+
return {
|
|
15
|
+
useCase: container.resolve(GetApiKeyUseCase)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { GetApiKeyFeature };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features/accessManagement/apiKeys/getApiKey/feature.js","sources":["../../../../../src/features/accessManagement/apiKeys/getApiKey/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetApiKeyUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { GetApiKeyUseCase } from \"./GetApiKeyUseCase.js\";\nimport { GetApiKeyRepository } from \"./GetApiKeyRepository.js\";\nimport { GetApiKeyGateway } from \"./GetApiKeyGateway.js\";\n\nexport const GetApiKeyFeature = createFeature({\n name: \"AccessManagement/GetApiKey\",\n register(container) {\n container.register(GetApiKeyUseCase);\n container.register(GetApiKeyRepository).inSingletonScope();\n container.register(GetApiKeyGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["GetApiKeyFeature","createFeature","container","GetApiKeyUseCase","GetApiKeyRepository","GetApiKeyGateway","UseCaseAbstraction"],"mappings":";;;;;AAMO,MAAMA,mBAAmBC,cAAc;IAC1C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,qBAAqB,gBAAgB;QACxDF,UAAU,QAAQ,CAACG,kBAAkB,gBAAgB;IACzD;IACA,SAAQH,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACI;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { ListApiKeysGateway as GatewayAbstraction, type IListApiKeysGatewayResult } from "./abstractions.js";
|
|
3
|
+
declare class ListApiKeysGatewayImpl implements GatewayAbstraction.Interface {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(): Promise<IListApiKeysGatewayResult>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ListApiKeysGateway: typeof ListApiKeysGatewayImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IListApiKeysGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { ListApiKeysGateway } from "./abstractions.js";
|
|
3
|
+
const API_KEY_FIELDS = `
|
|
4
|
+
id
|
|
5
|
+
name
|
|
6
|
+
slug
|
|
7
|
+
description
|
|
8
|
+
token
|
|
9
|
+
permissions
|
|
10
|
+
createdOn
|
|
11
|
+
`;
|
|
12
|
+
const LIST_API_KEYS = `
|
|
13
|
+
query ListApiKeys {
|
|
14
|
+
security {
|
|
15
|
+
apiKeys: listApiKeys {
|
|
16
|
+
data {
|
|
17
|
+
${API_KEY_FIELDS}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
class ListApiKeysGatewayImpl {
|
|
24
|
+
constructor(client){
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
async execute() {
|
|
28
|
+
const response = await this.client.execute({
|
|
29
|
+
query: LIST_API_KEYS
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
data: response.security.apiKeys.data ?? []
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const ListApiKeysGateway_ListApiKeysGateway = ListApiKeysGateway.createImplementation({
|
|
37
|
+
implementation: ListApiKeysGatewayImpl,
|
|
38
|
+
dependencies: [
|
|
39
|
+
MainGraphQLClient
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
export { ListApiKeysGateway_ListApiKeysGateway as ListApiKeysGateway };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=ListApiKeysGateway.js.map
|