UNPKG

@spartacus/schematics

Version:
43 lines 2.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ASM_AUTH_SERVICE_MIGRATION = void 0; const constants_1 = require("../../../../shared/constants"); exports.ASM_AUTH_SERVICE_MIGRATION = [ { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `authorizeCustomerSupportAgent`, comment: `// ${constants_1.TODO_SPARTACUS} 'authorizeCustomerSupportAgent' method was moved to 'CsAgentAuthService' and returns Promise that will resolve when login procedure completes.`, }, { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `startCustomerEmulationSession`, comment: `// ${constants_1.TODO_SPARTACUS} 'startCustomerEmulationSession' method was moved to 'CsAgentAuthService'.`, }, { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `isCustomerEmulationToken`, comment: `// ${constants_1.TODO_SPARTACUS} 'isCustomerEmulationToken' method was removed. To check for who token belongs it's better to use 'AsmAuthStorageService.getTokenTarget' method.`, }, { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `getCustomerSupportAgentToken`, comment: `// ${constants_1.TODO_SPARTACUS} 'getCustomerSupportAgentToken' method was removed. You should not directly interact with token outside of AsmModule. If you still need the token use 'AuthStorageService.getToken' and 'AsmAuthStorageService.getTokenTarget'.`, }, { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `getCustomerSupportAgentTokenLoading`, comment: `// ${constants_1.TODO_SPARTACUS} 'getCustomerSupportAgentTokenLoading' method was moved to 'CsAgentAuthService'. Warning: it is not yet implemented there!`, }, { class: constants_1.ASM_AUTH_SERVICE, importPath: constants_1.SPARTACUS_CORE, deprecatedNode: `logoutCustomerSupportAgent`, comment: `// ${constants_1.TODO_SPARTACUS} 'logoutCustomerSupportAgent' method was moved to 'CsAgentAuthService'.`, }, ]; //# sourceMappingURL=asm-auth.service.migration.js.map