@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.6 → 2.0.0-rc.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -73
- package/lib/commands/omnistudio/migration/assess.d.ts +23 -15
- package/lib/commands/omnistudio/migration/assess.js +250 -89
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/clean.d.ts +13 -0
- package/lib/commands/omnistudio/migration/clean.js +162 -0
- package/lib/commands/omnistudio/migration/clean.js.map +1 -0
- package/lib/commands/omnistudio/migration/info.d.ts +10 -16
- package/lib/commands/omnistudio/migration/info.js +53 -35
- package/lib/commands/omnistudio/migration/info.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +78 -18
- package/lib/commands/omnistudio/migration/migrate.js +461 -175
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/error/deploymentErrors.d.ts +15 -0
- package/lib/error/deploymentErrors.js +35 -0
- package/lib/error/deploymentErrors.js.map +1 -0
- package/lib/error/errorInterfaces.d.ts +5 -0
- package/lib/error/errorInterfaces.js +9 -1
- package/lib/error/errorInterfaces.js.map +1 -1
- package/lib/javascripts/reportGeneratorUtility.js +585 -22
- package/lib/migration/ApexNamespaceRegistry.d.ts +49 -0
- package/lib/migration/ApexNamespaceRegistry.js +130 -0
- package/lib/migration/ApexNamespaceRegistry.js.map +1 -0
- package/lib/migration/CustomCssRegistry.d.ts +117 -0
- package/lib/migration/CustomCssRegistry.js +234 -0
- package/lib/migration/CustomCssRegistry.js.map +1 -0
- package/lib/migration/NameMappingRegistry.d.ts +134 -0
- package/lib/migration/NameMappingRegistry.js +411 -0
- package/lib/migration/NameMappingRegistry.js.map +1 -0
- package/lib/migration/base.d.ts +8 -6
- package/lib/migration/base.js +25 -8
- package/lib/migration/base.js.map +1 -1
- package/lib/migration/customLabels.d.ts +70 -0
- package/lib/migration/customLabels.js +177 -0
- package/lib/migration/customLabels.js.map +1 -0
- package/lib/migration/dataraptor.d.ts +13 -0
- package/lib/migration/dataraptor.js +205 -80
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/deployer.d.ts +14 -0
- package/lib/migration/deployer.js +105 -0
- package/lib/migration/deployer.js.map +1 -0
- package/lib/migration/flexcard.d.ts +256 -6
- package/lib/migration/flexcard.js +1808 -268
- package/lib/migration/flexcard.js.map +1 -1
- package/lib/migration/globalautonumber.d.ts +8 -8
- package/lib/migration/globalautonumber.js +49 -24
- package/lib/migration/globalautonumber.js.map +1 -1
- package/lib/migration/interfaces.d.ts +14 -0
- package/lib/migration/interfaces.js.map +1 -1
- package/lib/migration/metadataobjnamecheck.js.map +1 -1
- package/lib/migration/omniscript.d.ts +218 -4
- package/lib/migration/omniscript.js +1709 -247
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/omniscriptInstance.d.ts +90 -0
- package/lib/migration/omniscriptInstance.js +755 -0
- package/lib/migration/omniscriptInstance.js.map +1 -0
- package/lib/migration/postMigrate.d.ts +20 -4
- package/lib/migration/postMigrate.js +199 -12
- package/lib/migration/postMigrate.js.map +1 -1
- package/lib/migration/premigrate.d.ts +51 -0
- package/lib/migration/premigrate.js +325 -0
- package/lib/migration/premigrate.js.map +1 -0
- package/lib/migration/related/ApexMigration.d.ts +3 -0
- package/lib/migration/related/ApexMigration.js +222 -56
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/ExperienceSiteMigration.d.ts +30 -5
- package/lib/migration/related/ExperienceSiteMigration.js +263 -73
- package/lib/migration/related/ExperienceSiteMigration.js.map +1 -1
- package/lib/migration/related/FlexipageMigration.d.ts +5 -5
- package/lib/migration/related/FlexipageMigration.js +60 -38
- package/lib/migration/related/FlexipageMigration.js.map +1 -1
- package/lib/migration/related/LwcMigration.js +45 -26
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +48 -32
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/styles/reportGenerator.css +241 -16
- package/lib/templates/assessmentReport.template +78 -8
- package/lib/templates/dashboard.template +86 -57
- package/lib/templates/migrationReport.template +151 -0
- package/lib/utils/OmnistudioSettingsPrefManager.d.ts +14 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js +112 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js.map +1 -0
- package/lib/utils/XMLUtil.js +2 -1
- package/lib/utils/XMLUtil.js.map +1 -1
- package/lib/utils/apex/executor/AnonymousApexRunner.d.ts +1 -1
- package/lib/utils/apex/parser/apexparser.d.ts +8 -1
- package/lib/utils/apex/parser/apexparser.js +79 -13
- package/lib/utils/apex/parser/apexparser.js.map +1 -1
- package/lib/utils/config/ExistingRecordCleanupService.d.ts +30 -0
- package/lib/utils/config/ExistingRecordCleanupService.js +266 -0
- package/lib/utils/config/ExistingRecordCleanupService.js.map +1 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.d.ts +36 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.js +123 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.js.map +1 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.d.ts +17 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.js +186 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.js.map +1 -0
- package/lib/utils/constants/documentRegistry.d.ts +9 -17
- package/lib/utils/constants/documentRegistry.js +9 -17
- package/lib/utils/constants/documentRegistry.js.map +1 -1
- package/lib/utils/constants/stringContants.d.ts +78 -0
- package/lib/utils/constants/stringContants.js +91 -4
- package/lib/utils/constants/stringContants.js.map +1 -1
- package/lib/utils/customLabels.d.ts +35 -0
- package/lib/utils/customLabels.js +100 -0
- package/lib/utils/customLabels.js.map +1 -0
- package/lib/utils/dataModelService.d.ts +18 -0
- package/lib/utils/dataModelService.js +72 -0
- package/lib/utils/dataModelService.js.map +1 -0
- package/lib/utils/file/fileUtil.d.ts +3 -1
- package/lib/utils/file/fileUtil.js +30 -13
- package/lib/utils/file/fileUtil.js.map +1 -1
- package/lib/utils/flexipage/flexiPageTransformer.js +119 -23
- package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -1
- package/lib/utils/formula/FormulaUtil.d.ts +1 -1
- package/lib/utils/formula/FormulaUtil.js +17 -9
- package/lib/utils/formula/FormulaUtil.js.map +1 -1
- package/lib/utils/formula/Stack.js.map +1 -1
- package/lib/utils/generatePackageXml.d.ts +6 -2
- package/lib/utils/generatePackageXml.js +73 -33
- package/lib/utils/generatePackageXml.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/interfaces.d.ts +69 -8
- package/lib/utils/json/jsonutil.js.map +1 -1
- package/lib/utils/logger/fileLogger.js +17 -7
- package/lib/utils/logger/fileLogger.js.map +1 -1
- package/lib/utils/logger.d.ts +3 -3
- package/lib/utils/logger.js +10 -6
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/logging/debugtimer.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +30 -22
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileProcessorFactory.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/htmlParser/HTMLParser.js +29 -10
- package/lib/utils/lwcparser/htmlParser/HTMLParser.js.map +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +29 -11
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js +19 -8
- package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
- package/lib/utils/net/index.d.ts +5 -0
- package/lib/utils/net/index.js +40 -2
- package/lib/utils/net/index.js.map +1 -1
- package/lib/utils/omniscriptPackageManager.d.ts +31 -0
- package/lib/utils/omniscriptPackageManager.js +215 -0
- package/lib/utils/omniscriptPackageManager.js.map +1 -0
- package/lib/utils/orgPreferences.d.ts +25 -0
- package/lib/utils/orgPreferences.js +124 -8
- package/lib/utils/orgPreferences.js.map +1 -1
- package/lib/utils/orgUtils/index.d.ts +12 -5
- package/lib/utils/orgUtils/index.js +52 -22
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/projectPathUtil.d.ts +1 -1
- package/lib/utils/projectPathUtil.js +27 -10
- package/lib/utils/projectPathUtil.js.map +1 -1
- package/lib/utils/promptUtil.d.ts +11 -1
- package/lib/utils/promptUtil.js +92 -0
- package/lib/utils/promptUtil.js.map +1 -1
- package/lib/utils/query/index.d.ts +1 -0
- package/lib/utils/query/index.js +18 -1
- package/lib/utils/query/index.js.map +1 -1
- package/lib/utils/recordPrioritization.d.ts +44 -0
- package/lib/utils/recordPrioritization.js +69 -0
- package/lib/utils/recordPrioritization.js.map +1 -0
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +12 -0
- package/lib/utils/reportGenerator/reportUtil.d.ts +6 -1
- package/lib/utils/reportGenerator/reportUtil.js +22 -7
- package/lib/utils/reportGenerator/reportUtil.js.map +1 -1
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +40 -17
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.d.ts +13 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js +179 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.d.ts +27 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js +262 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +38 -70
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +14 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +143 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +46 -85
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +37 -19
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js +22 -14
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +38 -71
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +14 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +143 -139
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js +41 -88
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js +109 -0
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +16 -6
- package/lib/utils/resultsbuilder/assessmentReporter.js +96 -152
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.d.ts +104 -0
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js +380 -0
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js.map +1 -0
- package/lib/utils/resultsbuilder/index.d.ts +37 -1
- package/lib/utils/resultsbuilder/index.js +582 -151
- package/lib/utils/resultsbuilder/index.js.map +1 -1
- package/lib/utils/resultsbuilder/reportingHelper.d.ts +2 -7
- package/lib/utils/resultsbuilder/reportingHelper.js +0 -43
- package/lib/utils/resultsbuilder/reportingHelper.js.map +1 -1
- package/lib/utils/sfcli/project/sfProject.d.ts +29 -0
- package/lib/utils/sfcli/project/sfProject.js +220 -2
- package/lib/utils/sfcli/project/sfProject.js.map +1 -1
- package/lib/utils/shell/cli.js +20 -14
- package/lib/utils/shell/cli.js.map +1 -1
- package/lib/utils/storageUtil.d.ts +14 -1
- package/lib/utils/storageUtil.js +31 -1
- package/lib/utils/storageUtil.js.map +1 -1
- package/lib/utils/stringUtils.d.ts +24 -0
- package/lib/utils/stringUtils.js +76 -9
- package/lib/utils/stringUtils.js.map +1 -1
- package/lib/utils/templateParser/__tests__/test.js +1 -2
- package/lib/utils/templateParser/__tests__/test.js.map +1 -1
- package/lib/utils/templateParser/generate.d.ts +1 -1
- package/lib/utils/templateParser/generate.js.map +1 -1
- package/lib/utils/templateParser/model/elementNode.d.ts +2 -2
- package/lib/utils/templateParser/model/elementNode.js +11 -2
- package/lib/utils/templateParser/model/elementNode.js.map +1 -1
- package/lib/utils/templateParser/model/nodeTypes.js +1 -1
- package/lib/utils/templateParser/model/nodeTypes.js.map +1 -1
- package/lib/utils/templateParser/util.d.ts +2 -2
- package/lib/utils/templateParser/util.js.map +1 -1
- package/lib/utils/validatorService.d.ts +14 -0
- package/lib/utils/validatorService.js +136 -0
- package/lib/utils/validatorService.js.map +1 -0
- package/messages/assess.json +220 -103
- package/messages/clean.json +40 -0
- package/messages/info.json +2 -1
- package/messages/migrate.json +314 -102
- package/oclif.manifest.json +1 -1
- package/package.json +49 -13
- package/lib/commands/basecommand.d.ts +0 -8
- package/lib/commands/basecommand.js +0 -13
- package/lib/commands/basecommand.js.map +0 -1
- package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +0 -40
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js +0 -65
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +0 -1
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ExperienceSiteMigration = void 0;
|
|
27
37
|
const fs = __importStar(require("fs"));
|
|
@@ -33,164 +43,262 @@ const logger_1 = require("../../utils/logger");
|
|
|
33
43
|
const stringContants_1 = require("../../utils/constants/stringContants");
|
|
34
44
|
const FileDiffUtil_1 = require("../../utils/lwcparser/fileutils/FileDiffUtil");
|
|
35
45
|
const storageUtil_1 = require("../../utils/storageUtil");
|
|
46
|
+
const base_1 = require("../base");
|
|
47
|
+
const dataModelService_1 = require("../../utils/dataModelService");
|
|
36
48
|
const BaseRealtedObjectMigration_1 = require("./BaseRealtedObjectMigration");
|
|
37
49
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
38
|
-
const TARGET_COMPONENT_NAME_OS = '
|
|
39
|
-
const TARGET_COMPONENT_NAME_FC = '
|
|
50
|
+
const TARGET_COMPONENT_NAME_OS = 'runtime_omnistudio:omniscript';
|
|
51
|
+
const TARGET_COMPONENT_NAME_FC = 'runtime_omnistudio:flexcard';
|
|
52
|
+
const TARGET_COMPONENT_NAME_OS_EXP = 'runtime_omnistudio:omniscriptExperienceCloud';
|
|
40
53
|
const FLEXCARD_PREFIX = 'cf';
|
|
41
54
|
class ExperienceSiteMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigration {
|
|
42
|
-
constructor(projectPath, namespace, org) {
|
|
55
|
+
constructor(projectPath, namespace, org, messages) {
|
|
43
56
|
super(projectPath, namespace, org);
|
|
57
|
+
this.MIGRATE = 'Migrate';
|
|
58
|
+
this.ASSESS = 'Assess';
|
|
59
|
+
this.IS_STANDARD_DATA_MODEL = (0, dataModelService_1.isStandardDataModel)();
|
|
60
|
+
this.messages = messages;
|
|
44
61
|
}
|
|
45
62
|
processObjectType() {
|
|
46
63
|
return stringContants_1.Constants.ExpSites;
|
|
47
64
|
}
|
|
65
|
+
assess() {
|
|
66
|
+
return this.process(this.ASSESS);
|
|
67
|
+
}
|
|
48
68
|
migrate() {
|
|
49
|
-
|
|
69
|
+
return this.process(this.MIGRATE);
|
|
70
|
+
}
|
|
71
|
+
process(type) {
|
|
72
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('processingExperienceSites', [type]));
|
|
50
73
|
const pwd = shell.pwd();
|
|
51
74
|
shell.cd(this.projectPath);
|
|
52
75
|
this.EXPERIENCE_SITES_PATH = path.join(this.projectPath, 'force-app', 'main', 'default', 'experiences');
|
|
53
|
-
logger_1.Logger.logVerbose('
|
|
54
|
-
const experienceSiteInfo = this.processExperienceSites(this.EXPERIENCE_SITES_PATH,
|
|
55
|
-
logger_1.Logger.info('
|
|
76
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('experienceSitesProcessingStarted'));
|
|
77
|
+
const experienceSiteInfo = this.processExperienceSites(this.EXPERIENCE_SITES_PATH, type);
|
|
78
|
+
logger_1.Logger.info(this.messages.getMessage('experienceSiteSuccessfullyProcessed', [type]));
|
|
56
79
|
shell.cd(pwd);
|
|
80
|
+
logger_1.Logger.log(this.messages.getMessage('expSitesWithChanges', [
|
|
81
|
+
experienceSiteInfo.flatMap((info) => info.experienceSiteAssessmentPageInfos).length,
|
|
82
|
+
]));
|
|
57
83
|
return experienceSiteInfo;
|
|
58
84
|
}
|
|
59
|
-
processExperienceSites(dir, type
|
|
60
|
-
logger_1.Logger.logVerbose('
|
|
61
|
-
const
|
|
85
|
+
processExperienceSites(dir, type) {
|
|
86
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('readingFile'));
|
|
87
|
+
const count = { total: 0 };
|
|
88
|
+
const directoryMap = fileUtil_1.FileUtil.getAllFilesInsideDirectory(dir, count, '.json');
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
90
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('totalFileCount', [count.total]));
|
|
62
91
|
// TODO - IF directory is empty
|
|
92
|
+
let progressCounter = 0;
|
|
93
|
+
const progressBar = (0, base_1.createProgressBar)(type, 'ExperienceSites');
|
|
94
|
+
progressBar.start(count.total, progressCounter);
|
|
63
95
|
const experienceSitesAssessmentInfo = [];
|
|
96
|
+
logger_1.Logger.logVerbose('The namespace for expsites processing is ' + this.namespace);
|
|
64
97
|
for (const directory of directoryMap.keys()) {
|
|
98
|
+
const experienceSiteAssessmentInfo = {
|
|
99
|
+
experienceBundleName: path.basename(path.dirname(directory)),
|
|
100
|
+
experienceSiteAssessmentPageInfos: [],
|
|
101
|
+
};
|
|
65
102
|
const fileArray = directoryMap.get(directory);
|
|
103
|
+
if (!fileArray) {
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
66
106
|
for (const file of fileArray) {
|
|
107
|
+
progressBar.update(++progressCounter);
|
|
67
108
|
if (file.ext !== '.json') {
|
|
68
|
-
logger_1.Logger.logVerbose('
|
|
109
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('skipNonJsonFile', [file.name]));
|
|
69
110
|
continue;
|
|
70
111
|
}
|
|
71
112
|
try {
|
|
72
|
-
const
|
|
73
|
-
if ((
|
|
74
|
-
logger_1.Logger.logVerbose('
|
|
75
|
-
|
|
113
|
+
const experienceSitePageInfo = this.processExperienceSite(file, type);
|
|
114
|
+
if ((experienceSitePageInfo === null || experienceSitePageInfo === void 0 ? void 0 : experienceSitePageInfo.hasOmnistudioContentWithChanges) === true) {
|
|
115
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('experienceSiteWithOmniWrapperSuccessfullyProcessed'));
|
|
116
|
+
experienceSiteAssessmentInfo.experienceSiteAssessmentPageInfos.push(experienceSitePageInfo);
|
|
76
117
|
}
|
|
77
118
|
else {
|
|
78
|
-
logger_1.Logger.logVerbose('
|
|
119
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('fileNotHavingWrapper'));
|
|
79
120
|
}
|
|
80
121
|
}
|
|
81
122
|
catch (err) {
|
|
82
|
-
|
|
123
|
+
this.populateExceptionInfo(file, experienceSiteAssessmentInfo.experienceSiteAssessmentPageInfos);
|
|
124
|
+
logger_1.Logger.error(this.messages.getMessage('errorProcessingExperienceSite', [file.name]));
|
|
83
125
|
logger_1.Logger.error(JSON.stringify(err));
|
|
84
126
|
}
|
|
85
127
|
}
|
|
128
|
+
if (experienceSiteAssessmentInfo.experienceSiteAssessmentPageInfos.length > 0) {
|
|
129
|
+
experienceSitesAssessmentInfo.push(experienceSiteAssessmentInfo);
|
|
130
|
+
}
|
|
86
131
|
}
|
|
132
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('experienceSiteReportingDetails'));
|
|
133
|
+
progressBar.stop();
|
|
87
134
|
return experienceSitesAssessmentInfo;
|
|
88
135
|
}
|
|
89
|
-
processExperienceSite(file, type
|
|
90
|
-
logger_1.Logger.logVerbose('
|
|
136
|
+
processExperienceSite(file, type) {
|
|
137
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('processingFile', [file.name]));
|
|
91
138
|
const experienceSiteAssessmentInfo = {
|
|
92
139
|
name: file.name,
|
|
93
140
|
warnings: [],
|
|
141
|
+
errors: [],
|
|
94
142
|
infos: [],
|
|
95
143
|
path: file.location,
|
|
96
144
|
diff: JSON.stringify([]),
|
|
97
|
-
|
|
145
|
+
hasOmnistudioContentWithChanges: false,
|
|
146
|
+
status: type === this.ASSESS ? 'Ready for migration' : 'Successfully migrated',
|
|
98
147
|
};
|
|
99
148
|
const lookupComponentName = `${this.namespace}:vlocityLWCOmniWrapper`;
|
|
100
149
|
const fileContent = fs.readFileSync(file.location, 'utf8');
|
|
101
150
|
// TODO - undefined check here
|
|
102
151
|
const experienceSiteParsedJSON = JSON.parse(fileContent);
|
|
103
152
|
const normalizedOriginalFileContent = JSON.stringify(experienceSiteParsedJSON, null, 2);
|
|
104
|
-
const regions = experienceSiteParsedJSON
|
|
153
|
+
const regions = experienceSiteParsedJSON.regions;
|
|
105
154
|
// TODO - When will it be Flexcard
|
|
106
155
|
if (regions === undefined) {
|
|
107
|
-
experienceSiteAssessmentInfo.
|
|
156
|
+
experienceSiteAssessmentInfo.hasOmnistudioContentWithChanges = false;
|
|
108
157
|
return experienceSiteAssessmentInfo;
|
|
109
158
|
}
|
|
110
|
-
|
|
159
|
+
let storage;
|
|
160
|
+
if (type === this.MIGRATE) {
|
|
161
|
+
storage = storageUtil_1.StorageUtil.getOmnistudioMigrationStorage();
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
storage = storageUtil_1.StorageUtil.getOmnistudioAssessmentStorage();
|
|
165
|
+
}
|
|
111
166
|
for (const region of regions) {
|
|
112
|
-
|
|
113
|
-
const regionComponents = region['components'];
|
|
114
|
-
if (regionComponents === undefined) {
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
if (Array.isArray(regionComponents)) {
|
|
118
|
-
for (const component of regionComponents) {
|
|
119
|
-
if (component === undefined || component === null) {
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
logger_1.Logger.logVerbose('The current component being processed is ' + JSON.stringify(component));
|
|
123
|
-
if (component.componentName === lookupComponentName) {
|
|
124
|
-
logger_1.Logger.logVerbose('Omnistudio wrapper component found');
|
|
125
|
-
experienceSiteAssessmentInfo.hasOmnistudioContent = true;
|
|
126
|
-
this.updateComponentAndItsAttributes(component, component.componentAttributes, experienceSiteAssessmentInfo, storage);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
167
|
+
this.processRegion(region, experienceSiteAssessmentInfo, storage, lookupComponentName, type);
|
|
130
168
|
}
|
|
131
|
-
logger_1.Logger.logVerbose('
|
|
169
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('printUpdatedObject', [JSON.stringify(experienceSiteParsedJSON)]));
|
|
132
170
|
const noarmalizeUpdatedFileContent = JSON.stringify(experienceSiteParsedJSON, null, 2); // Pretty-print with 2 spaces
|
|
133
171
|
const difference = new FileDiffUtil_1.FileDiffUtil().getFileDiff(file.name, normalizedOriginalFileContent, noarmalizeUpdatedFileContent);
|
|
134
|
-
logger_1.Logger.logVerbose('
|
|
135
|
-
|
|
136
|
-
|
|
172
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('printDifference', [JSON.stringify(difference)]));
|
|
173
|
+
// If there are no differences, mark as not having OmniStudio content to exclude from report
|
|
174
|
+
// Only exclude if status is 'Ready for migration' or 'Successfully migrated' (no warnings/errors)
|
|
175
|
+
if (difference.length === 0 &&
|
|
176
|
+
(experienceSiteAssessmentInfo.status === 'Ready for migration' ||
|
|
177
|
+
experienceSiteAssessmentInfo.status === 'Successfully migrated')) {
|
|
178
|
+
experienceSiteAssessmentInfo.hasOmnistudioContentWithChanges = false;
|
|
179
|
+
return experienceSiteAssessmentInfo;
|
|
180
|
+
}
|
|
181
|
+
if (type === this.MIGRATE && normalizedOriginalFileContent !== noarmalizeUpdatedFileContent) {
|
|
182
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('updatingFile'));
|
|
137
183
|
fs.writeFileSync(file.location, noarmalizeUpdatedFileContent, 'utf8');
|
|
138
184
|
}
|
|
139
185
|
experienceSiteAssessmentInfo.diff = JSON.stringify(difference);
|
|
140
186
|
return experienceSiteAssessmentInfo;
|
|
141
187
|
}
|
|
142
|
-
|
|
188
|
+
populateExceptionInfo(file, experienceSiteAssessmentInfos) {
|
|
189
|
+
try {
|
|
190
|
+
const experienceSiteAssessmentInfo = {
|
|
191
|
+
name: file.name,
|
|
192
|
+
warnings: ['Unknown error occurred'],
|
|
193
|
+
errors: [''],
|
|
194
|
+
infos: [],
|
|
195
|
+
path: file.location,
|
|
196
|
+
diff: JSON.stringify([]),
|
|
197
|
+
hasOmnistudioContentWithChanges: false,
|
|
198
|
+
status: 'Failed',
|
|
199
|
+
};
|
|
200
|
+
experienceSiteAssessmentInfos.push(experienceSiteAssessmentInfo);
|
|
201
|
+
}
|
|
202
|
+
catch {
|
|
203
|
+
logger_1.Logger.error(this.messages.getMessage('experienceSiteException'));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
processRegion(region, experienceSiteAssessmentInfo, storage, lookupComponentName, type) {
|
|
207
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('currentRegionOfExperienceSite', [JSON.stringify(region)]));
|
|
208
|
+
const regionComponents = region.components;
|
|
209
|
+
if (regionComponents === undefined) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (Array.isArray(regionComponents)) {
|
|
213
|
+
for (const component of regionComponents) {
|
|
214
|
+
this.processComponent(component, experienceSiteAssessmentInfo, storage, lookupComponentName, type);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
processComponent(component, experienceSiteAssessmentInfo, storage, lookupComponentName, type) {
|
|
219
|
+
if (component === undefined || component === null) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
// Check for legacy wrapper component
|
|
223
|
+
if (component.componentName === lookupComponentName) {
|
|
224
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('omniWrapperFound'));
|
|
225
|
+
experienceSiteAssessmentInfo.hasOmnistudioContentWithChanges = true;
|
|
226
|
+
this.updateComponentAndItsAttributes(component, component.componentAttributes, experienceSiteAssessmentInfo, storage, type);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
if (this.IS_STANDARD_DATA_MODEL) {
|
|
230
|
+
// Check for new LWC components that need reference updates
|
|
231
|
+
if (this.isOmnistudioStandardWrapper(component.componentName)) {
|
|
232
|
+
logger_1.Logger.logVerbose(`Found Omnistudio component: ${component.componentName}`);
|
|
233
|
+
experienceSiteAssessmentInfo.hasOmnistudioContentWithChanges = true;
|
|
234
|
+
this.updateOmnistudioComponentReferences(component, experienceSiteAssessmentInfo, storage, type);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const regionsInsideComponent = component.regions;
|
|
239
|
+
if (Array.isArray(regionsInsideComponent)) {
|
|
240
|
+
for (const region of regionsInsideComponent) {
|
|
241
|
+
this.processRegion(region, experienceSiteAssessmentInfo, storage, lookupComponentName, type);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
updateComponentAndItsAttributes(component, currentAttribute, experienceSiteAssessmentInfo, storage, type) {
|
|
143
246
|
if (component === undefined || currentAttribute === undefined) {
|
|
144
247
|
return;
|
|
145
248
|
}
|
|
146
249
|
if (currentAttribute.target === undefined || currentAttribute.target === '') {
|
|
147
|
-
experienceSiteAssessmentInfo.warnings.push(
|
|
250
|
+
experienceSiteAssessmentInfo.warnings.push(this.messages.getMessage('emptyTargetData'));
|
|
251
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
148
252
|
return;
|
|
149
253
|
}
|
|
150
254
|
const targetName = currentAttribute.target.substring(currentAttribute.target.indexOf(':') + 1); // c:ABCD -> ABCD
|
|
151
255
|
if (targetName.startsWith(FLEXCARD_PREFIX)) {
|
|
152
|
-
this.processFCComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage);
|
|
256
|
+
this.processFCComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage, type);
|
|
153
257
|
}
|
|
154
258
|
else {
|
|
155
|
-
this.processOSComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage);
|
|
259
|
+
this.processOSComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage, type);
|
|
156
260
|
}
|
|
157
261
|
logger_1.Logger.logVerbose('updatedComponentAttribute = ' + JSON.stringify(currentAttribute));
|
|
158
262
|
}
|
|
159
|
-
processFCComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage) {
|
|
160
|
-
logger_1.Logger.logVerbose(
|
|
263
|
+
processFCComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage, type) {
|
|
264
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('processingFlexcardComponent', [JSON.stringify(component)]));
|
|
161
265
|
const flexcardName = targetName.substring(2); // cfCardName -> CardName
|
|
162
|
-
const targetDataFromStorageFC = storage.fcStorage.get(flexcardName);
|
|
163
|
-
logger_1.Logger.logVerbose('
|
|
266
|
+
const targetDataFromStorageFC = storage.fcStorage.get(flexcardName.toLowerCase());
|
|
267
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('targetData', [JSON.stringify(targetDataFromStorageFC)]));
|
|
164
268
|
// Remove later
|
|
165
269
|
if (this.shouldAddWarning(targetDataFromStorageFC)) {
|
|
166
270
|
const warningMsg = this.getWarningMessage(flexcardName, targetDataFromStorageFC);
|
|
167
271
|
experienceSiteAssessmentInfo.warnings.push(warningMsg);
|
|
272
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
168
273
|
}
|
|
169
274
|
else {
|
|
170
275
|
component.componentName = TARGET_COMPONENT_NAME_FC;
|
|
276
|
+
const keysToDelete = ['target', 'layout', 'params', 'standalone'];
|
|
277
|
+
keysToDelete.forEach((key) => delete currentAttribute[key]);
|
|
171
278
|
currentAttribute['flexcardName'] = targetDataFromStorageFC.name;
|
|
172
279
|
currentAttribute['objectApiName'] = '{!objectApiName}';
|
|
173
280
|
currentAttribute['recordId'] = '{!recordId}';
|
|
174
281
|
}
|
|
175
282
|
}
|
|
176
|
-
processOSComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage) {
|
|
177
|
-
logger_1.Logger.logVerbose(
|
|
283
|
+
processOSComponent(targetName, component, currentAttribute, experienceSiteAssessmentInfo, storage, type) {
|
|
284
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('processingOmniscriptComponent', [JSON.stringify(component)]));
|
|
178
285
|
// Use storage to find the updated properties
|
|
179
|
-
const targetDataFromStorage = storage.osStorage.get(targetName);
|
|
180
|
-
logger_1.Logger.logVerbose('
|
|
286
|
+
const targetDataFromStorage = storage.osStorage.get(targetName.toLowerCase());
|
|
287
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('targetData', [JSON.stringify(targetDataFromStorage)]));
|
|
181
288
|
if (this.shouldAddWarning(targetDataFromStorage)) {
|
|
182
289
|
const warningMsg = this.getWarningMessage(targetName, targetDataFromStorage);
|
|
183
290
|
experienceSiteAssessmentInfo.warnings.push(warningMsg);
|
|
291
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
184
292
|
}
|
|
185
293
|
else {
|
|
186
294
|
component.componentName = TARGET_COMPONENT_NAME_OS;
|
|
187
295
|
// Preserve the layout value before clearing
|
|
188
296
|
const originalLayout = currentAttribute['layout'];
|
|
189
|
-
//
|
|
190
|
-
|
|
191
|
-
|
|
297
|
+
// Clear existing properties more safely - preserve any properties we don't want to delete
|
|
298
|
+
const keysToDelete = ['layout', 'params', 'standAlone', 'target'];
|
|
299
|
+
keysToDelete.forEach((key) => delete currentAttribute[key]);
|
|
192
300
|
currentAttribute['direction'] = 'ltr';
|
|
193
|
-
currentAttribute['display'] = 'Display
|
|
301
|
+
currentAttribute['display'] = 'Display OmniScript on page';
|
|
194
302
|
currentAttribute['inlineVariant'] = 'brand';
|
|
195
303
|
currentAttribute['language'] =
|
|
196
304
|
targetDataFromStorage.language === undefined ? 'English' : targetDataFromStorage.language;
|
|
@@ -200,17 +308,99 @@ class ExperienceSiteMigration extends BaseRealtedObjectMigration_1.BaseRelatedOb
|
|
|
200
308
|
}
|
|
201
309
|
}
|
|
202
310
|
shouldAddWarning(targetData) {
|
|
203
|
-
return targetData === undefined || targetData.migrationSuccess
|
|
311
|
+
return targetData === undefined || !targetData.migrationSuccess || targetData.isDuplicate === true;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Check if component is an Omnistudio LWC component
|
|
315
|
+
*/
|
|
316
|
+
isOmnistudioStandardWrapper(componentName) {
|
|
317
|
+
return (componentName === TARGET_COMPONENT_NAME_OS ||
|
|
318
|
+
componentName === TARGET_COMPONENT_NAME_FC ||
|
|
319
|
+
componentName === TARGET_COMPONENT_NAME_OS_EXP);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Update references in Omnistudio LWC components
|
|
323
|
+
*/
|
|
324
|
+
updateOmnistudioComponentReferences(component, experienceSiteAssessmentInfo, storage, type) {
|
|
325
|
+
if (component === undefined || component.componentAttributes === undefined) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
const componentName = component.componentName;
|
|
329
|
+
const attributes = component.componentAttributes;
|
|
330
|
+
if (componentName === TARGET_COMPONENT_NAME_OS || componentName === TARGET_COMPONENT_NAME_OS_EXP) {
|
|
331
|
+
this.updateOmniScriptComponentReferences(attributes, experienceSiteAssessmentInfo, storage, type);
|
|
332
|
+
}
|
|
333
|
+
else if (componentName === TARGET_COMPONENT_NAME_FC) {
|
|
334
|
+
this.updateFlexCardComponentReferences(attributes, experienceSiteAssessmentInfo, storage, type);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Update OmniScript component references (for runtime_omnistudio:omniscript and runtime_omnistudio:omniscriptExperienceCloud)
|
|
339
|
+
*/
|
|
340
|
+
updateOmniScriptComponentReferences(attributes, experienceSiteAssessmentInfo, storage, type) {
|
|
341
|
+
const currentType = attributes['type'];
|
|
342
|
+
const currentSubType = attributes['subType'];
|
|
343
|
+
const currentLanguage = attributes['language'];
|
|
344
|
+
if (!currentType || !currentSubType || !currentLanguage) {
|
|
345
|
+
const warningMsg = this.messages.getMessage('manualInterventionForExperienceSiteConfiguration', [
|
|
346
|
+
experienceSiteAssessmentInfo.name,
|
|
347
|
+
]);
|
|
348
|
+
experienceSiteAssessmentInfo.warnings.push(warningMsg);
|
|
349
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
// Create the OmniScriptStandardKey object for lookup in osStandardStorage
|
|
353
|
+
const lookupKey = {
|
|
354
|
+
type: currentType,
|
|
355
|
+
subtype: currentSubType,
|
|
356
|
+
language: currentLanguage,
|
|
357
|
+
};
|
|
358
|
+
// Look up in osStandardStorage using the object key
|
|
359
|
+
const targetDataFromStorage = storageUtil_1.StorageUtil.getStandardOmniScript(storage, lookupKey);
|
|
360
|
+
if (targetDataFromStorage === undefined || !targetDataFromStorage.migrationSuccess) {
|
|
361
|
+
// For the standard wrapper we only need to check the storage empty and migrationSuccess status
|
|
362
|
+
const originalKey = `${currentType}_${currentSubType}_${currentLanguage}`;
|
|
363
|
+
const warningMsg = this.getWarningMessage(originalKey, targetDataFromStorage);
|
|
364
|
+
experienceSiteAssessmentInfo.warnings.push(warningMsg);
|
|
365
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
// Update the attributes with the new values from storage
|
|
369
|
+
attributes['type'] = targetDataFromStorage.type;
|
|
370
|
+
attributes['subType'] = targetDataFromStorage.subtype;
|
|
371
|
+
attributes['language'] = targetDataFromStorage.language;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Update FlexCard component references (for runtime_omnistudio:flexcard)
|
|
376
|
+
*/
|
|
377
|
+
updateFlexCardComponentReferences(attributes, experienceSiteAssessmentInfo, storage, type) {
|
|
378
|
+
const currentFlexCardName = attributes['flexcardName'];
|
|
379
|
+
if (!currentFlexCardName) {
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
// Look up in storage to see if this FlexCard was migrated
|
|
383
|
+
const targetDataFromStorageFC = storage.fcStorage.get(currentFlexCardName.toLowerCase());
|
|
384
|
+
if (this.shouldAddWarning(targetDataFromStorageFC)) {
|
|
385
|
+
const warningMsg = this.getWarningMessage(currentFlexCardName, targetDataFromStorageFC);
|
|
386
|
+
experienceSiteAssessmentInfo.warnings.push(warningMsg);
|
|
387
|
+
experienceSiteAssessmentInfo.status = type === this.ASSESS ? 'Needs manual intervention' : 'Skipped';
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
// Update the flexcardName with the new value from storage
|
|
391
|
+
attributes['flexcardName'] = targetDataFromStorageFC.name;
|
|
392
|
+
}
|
|
204
393
|
}
|
|
205
394
|
getWarningMessage(oldTypeSubtypeLanguage, targetDataFromStorage) {
|
|
206
395
|
if (targetDataFromStorage === undefined) {
|
|
207
|
-
|
|
396
|
+
// Add log verbose
|
|
397
|
+
return this.messages.getMessage('manualInterventionForExperienceSite', [oldTypeSubtypeLanguage]);
|
|
208
398
|
}
|
|
209
|
-
else if (targetDataFromStorage.migrationSuccess
|
|
210
|
-
return
|
|
399
|
+
else if (!targetDataFromStorage.migrationSuccess) {
|
|
400
|
+
return this.messages.getMessage('manualInterventionForExperienceSiteAsFailure', [oldTypeSubtypeLanguage]);
|
|
211
401
|
}
|
|
212
402
|
else {
|
|
213
|
-
return
|
|
403
|
+
return this.messages.getMessage('manualInterventionForExperienceSiteAsDuplicateKey', [oldTypeSubtypeLanguage]);
|
|
214
404
|
}
|
|
215
405
|
}
|
|
216
406
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExperienceSiteMigration.js","sourceRoot":"","sources":["../../../src/migration/related/ExperienceSiteMigration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,+CAAiC;AACjC,2CAAiD;AACjD,wDAA2D;AAC3D,+CAA4C;AAC5C,yEAAiE;AAWjE,+EAA4E;AAE5E,yDAAsD;AACtD,6EAA0E;AAE1E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AACjE,MAAM,wBAAwB,GAAG,8BAA8B,CAAC;AAChE,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,MAAa,uBAAwB,SAAQ,uDAA0B;IAGrE,YAAmB,WAAmB,EAAE,SAAiB,EAAE,GAAQ;QACjE,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;IAEM,iBAAiB;QACtB,OAAO,0BAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAEM,OAAO;QACZ,eAAM,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACxB,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC3B,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,M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ACN,0DAA0D;YAC1D,UAAU,CAAC,cAAc,CAAC,GAAG,uBAAuB,CAAC,IAAI,CAAC;QAC5D,CAAC;IACH,CAAC;IAEO,iBAAiB,CAAC,sBAA8B,EAAE,qBAA8B;QACtF,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,kBAAkB;YAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,qCAAqC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QACnG,CAAC;aAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,EAAE,CAAC;YACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,8CAA8C,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC5G,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,mDAAmD,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QACjH,CAAC;IACH,CAAC;CACF;AA1dD,0DA0dC"}
|
|
@@ -31,7 +31,7 @@ export declare class FlexipageMigration extends BaseRelatedObjectMigration {
|
|
|
31
31
|
* @param org - The Salesforce org connection
|
|
32
32
|
* @param messages - Messages instance for internationalization
|
|
33
33
|
*/
|
|
34
|
-
constructor(projectPath: string, namespace: string, org: Org, messages: Messages);
|
|
34
|
+
constructor(projectPath: string, namespace: string, org: Org, messages: Messages<string>);
|
|
35
35
|
/**
|
|
36
36
|
* Returns the object type constant for FlexiPage components.
|
|
37
37
|
*
|
|
@@ -51,7 +51,7 @@ export declare class FlexipageMigration extends BaseRelatedObjectMigration {
|
|
|
51
51
|
*/
|
|
52
52
|
migrate(): FlexiPageAssessmentInfo[];
|
|
53
53
|
/**
|
|
54
|
-
* Processes
|
|
54
|
+
* Processes FlexiPages in either assessment or migration mode.
|
|
55
55
|
*
|
|
56
56
|
* This method:
|
|
57
57
|
* - Retrieves FlexiPage metadata from the Salesforce org
|
|
@@ -65,7 +65,7 @@ export declare class FlexipageMigration extends BaseRelatedObjectMigration {
|
|
|
65
65
|
*/
|
|
66
66
|
private process;
|
|
67
67
|
/**
|
|
68
|
-
* Processes a single FlexiPage
|
|
68
|
+
* Processes a single FlexiPage for assessment or migration.
|
|
69
69
|
*
|
|
70
70
|
* This method:
|
|
71
71
|
* - Reads the FlexiPage XML file content
|
|
@@ -75,8 +75,8 @@ export declare class FlexipageMigration extends BaseRelatedObjectMigration {
|
|
|
75
75
|
* - Writes transformed content back to file in migration mode
|
|
76
76
|
* - Handles errors and provides detailed error information
|
|
77
77
|
*
|
|
78
|
-
* @param fileName - The name of the FlexiPage
|
|
79
|
-
* @param filePath - The full path to the FlexiPage
|
|
78
|
+
* @param fileName - The name of the FlexiPage
|
|
79
|
+
* @param filePath - The full path to the FlexiPage
|
|
80
80
|
* @param mode - The processing mode: 'assess' or 'migrate'
|
|
81
81
|
* @returns FlexiPage assessment information with status and error details
|
|
82
82
|
*/
|