From bf63f1aeb59076d3b54fb73c31e090baa22f91b1 Mon Sep 17 00:00:00 2001 From: Medvediev Date: Mon, 13 Sep 2021 17:11:53 +0300 Subject: [PATCH] Improve PR --- .../Magento/LoginAsCustomerAdminUi/README.md | 7 ------ app/code/Magento/LoginAsCustomerApi/README.md | 24 ++++++++++++++++--- .../LoginAsCustomerAssistance/README.md | 15 ------------ .../LoginAsCustomerFrontendUi/README.md | 7 ------ 4 files changed, 21 insertions(+), 32 deletions(-) diff --git a/app/code/Magento/LoginAsCustomerAdminUi/README.md b/app/code/Magento/LoginAsCustomerAdminUi/README.md index c6475eebd973e..4ae940d51a242 100644 --- a/app/code/Magento/LoginAsCustomerAdminUi/README.md +++ b/app/code/Magento/LoginAsCustomerAdminUi/README.md @@ -4,13 +4,6 @@ This module provides UI for Admin Panel for Login As Customer functionality. [The Magento dependency injection mechanism](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_LoginAsCustomerAdminUi module. -### Layouts - -This module introduces the following layouts in the `view/adminhtml/layout` directory: -- `loginascustomer_confirmation_popup` - -For more information about a layout in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html). - ## Additional information This module is a part of Login As Customer feature. diff --git a/app/code/Magento/LoginAsCustomerApi/README.md b/app/code/Magento/LoginAsCustomerApi/README.md index 8abe065393c03..af329b244418b 100644 --- a/app/code/Magento/LoginAsCustomerApi/README.md +++ b/app/code/Magento/LoginAsCustomerApi/README.md @@ -6,9 +6,9 @@ This module provides API for ability to login into customer account for an admin - `\Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterface`: - contains authentication data - -- `\Magento\LoginAsCustomerApi\Api\DataAuthenticationDataInterface`: - - authentication data + +-`\Magento\LoginAsCustomerApi\Api\Data\IsLoginAsCustomerEnabledForCustomerResultInterface`: + - contains the result of the check whether the login as customer is enabled - `\Magento\LoginAsCustomerApi\Api\AuthenticateCustomerBySecretInterface`: - authenticate a customer by secret @@ -21,8 +21,20 @@ This module provides API for ability to login into customer account for an admin - `\Magento\LoginAsCustomerApi\Api\DeleteAuthenticationDataForUserInterface`: - delete authentication data by user id +- `\Magento\LoginAsCustomerApi\Api\GenerateAuthenticationSecretInterface`: + - generate authentication secret + - `\Magento\LoginAsCustomerApi\Api\GetAuthenticationDataBySecretInterface`: - get authentication data by secret + +- `\Magento\LoginAsCustomerApi\Api\GetLoggedAsCustomerAdminIdInterface`: + - get id of admin logged as customer + +- `\Magento\LoginAsCustomerApi\Api\GetLoggedAsCustomerCustomerIdInterface`: + - get id of customer admin is logged as + +- `\Magento\LoginAsCustomerApi\Api\IsLoginAsCustomerEnabledForCustomerInterface`: + - check if login as customer functionality is enabled for customer - `\Magento\LoginAsCustomerApi\Api\IsLoginAsCustomerSessionActiveInterface`: - check if Login as Customer session is still active @@ -30,6 +42,12 @@ This module provides API for ability to login into customer account for an admin - `\Magento\LoginAsCustomerApi\Api\SaveAuthenticationDataInterface`: - save authentication data. Return secret key +- `\Magento\LoginAsCustomerApi\Api\SetLoggedAsCustomerAdminIdInterface`: + - set id of admin logged as customer + +- `\Magento\LoginAsCustomerApi\Api\SetLoggedAsCustomerCustomerIdInterface`: + - set id of customer admin is logged as + For information about a public API in Magento 2, see [Public interfaces & APIs](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/api-concepts.html). ## Additional information diff --git a/app/code/Magento/LoginAsCustomerAssistance/README.md b/app/code/Magento/LoginAsCustomerAssistance/README.md index 80eb9e6b96024..8575763f075b8 100644 --- a/app/code/Magento/LoginAsCustomerAssistance/README.md +++ b/app/code/Magento/LoginAsCustomerAssistance/README.md @@ -8,21 +8,6 @@ The Magento_LoginAsCustomerAssistance module creates the `login_as_customer_assi For information about a module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html). -### Layouts - -This module introduces the following layouts in the `view/adminhtml/layout` directory: -- `view/adminhtml/layout`: - - `loginascustomer_confirmation_popup` - -For more information about a layout in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html). - -### UI components - -This module extends ui components. The configuration files located in the directory `view/adminhtml/ui_component`: -- `customer_form` - -For information about a UI component in Magento 2, see [Overview of UI components](http://devdocs.magento.com/guides/v2.4/ui_comp_guide/bk-ui_comps.html). - ## Additional information This module is a part of Login As Customer feature. diff --git a/app/code/Magento/LoginAsCustomerFrontendUi/README.md b/app/code/Magento/LoginAsCustomerFrontendUi/README.md index 60d22b638899d..f822a71e87d35 100644 --- a/app/code/Magento/LoginAsCustomerFrontendUi/README.md +++ b/app/code/Magento/LoginAsCustomerFrontendUi/README.md @@ -2,13 +2,6 @@ This module provides UI for Storefront for Login As Customer functionality. -### Layouts - -This module introduces the following layouts in the `view/frontend/layout` directory: -- `loginascustomer_login_index` - -For more information about a layout in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html). - ## Additional information This module is a part of Login As Customer feature.