@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.4 → 2.0.0-rc.41
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 +28 -40
- package/lib/commands/omnistudio/migration/assess.d.ts +1 -1
- package/lib/commands/omnistudio/migration/assess.js +107 -37
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/info.js +1 -1
- package/lib/commands/omnistudio/migration/info.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +35 -5
- package/lib/commands/omnistudio/migration/migrate.js +262 -107
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/javascripts/reportGeneratorUtility.js +100 -19
- package/lib/migration/NameMappingRegistry.d.ts +130 -0
- package/lib/migration/NameMappingRegistry.js +376 -0
- package/lib/migration/NameMappingRegistry.js.map +1 -0
- package/lib/migration/base.d.ts +4 -2
- package/lib/migration/base.js +8 -1
- package/lib/migration/base.js.map +1 -1
- package/lib/migration/customLabels.d.ts +49 -0
- package/lib/migration/customLabels.js +190 -0
- package/lib/migration/customLabels.js.map +1 -0
- package/lib/migration/dataraptor.js +63 -14
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/deployer.d.ts +11 -0
- package/lib/migration/deployer.js +59 -0
- package/lib/migration/deployer.js.map +1 -0
- package/lib/migration/flexcard.d.ts +44 -2
- package/lib/migration/flexcard.js +707 -110
- package/lib/migration/flexcard.js.map +1 -1
- package/lib/migration/globalautonumber.d.ts +6 -6
- package/lib/migration/globalautonumber.js +27 -34
- package/lib/migration/globalautonumber.js.map +1 -1
- package/lib/migration/interfaces.d.ts +5 -0
- package/lib/migration/interfaces.js +7 -0
- package/lib/migration/interfaces.js.map +1 -1
- package/lib/migration/omniscript.d.ts +42 -2
- package/lib/migration/omniscript.js +724 -100
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/postMigrate.d.ts +22 -3
- package/lib/migration/postMigrate.js +147 -12
- package/lib/migration/postMigrate.js.map +1 -1
- package/lib/migration/premigrate.d.ts +16 -0
- package/lib/migration/premigrate.js +122 -0
- package/lib/migration/premigrate.js.map +1 -0
- package/lib/migration/related/ApexMigration.d.ts +1 -0
- package/lib/migration/related/ApexMigration.js +143 -22
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/ExperienceSiteMigration.d.ts +12 -4
- package/lib/migration/related/ExperienceSiteMigration.js +127 -59
- package/lib/migration/related/ExperienceSiteMigration.js.map +1 -1
- package/lib/migration/related/FlexipageMigration.d.ts +4 -4
- package/lib/migration/related/FlexipageMigration.js +31 -30
- package/lib/migration/related/FlexipageMigration.js.map +1 -1
- package/lib/migration/related/LwcMigration.js +27 -16
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +30 -24
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/styles/reportGenerator.css +9 -5
- package/lib/templates/assessmentReport.template +67 -6
- package/lib/templates/migrationReport.template +146 -4
- package/lib/utils/OmnistudioSettingsPrefManager.d.ts +12 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js +82 -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/parser/apexparser.d.ts +8 -1
- package/lib/utils/apex/parser/apexparser.js +63 -10
- package/lib/utils/apex/parser/apexparser.js.map +1 -1
- package/lib/utils/constants/documentRegistry.d.ts +2 -1
- package/lib/utils/constants/documentRegistry.js +4 -3
- package/lib/utils/constants/documentRegistry.js.map +1 -1
- package/lib/utils/constants/stringContants.d.ts +7 -0
- package/lib/utils/constants/stringContants.js +10 -2
- package/lib/utils/constants/stringContants.js.map +1 -1
- package/lib/utils/customLabels.d.ts +34 -0
- package/lib/utils/customLabels.js +97 -0
- package/lib/utils/customLabels.js.map +1 -0
- package/lib/utils/file/fileUtil.d.ts +3 -1
- package/lib/utils/file/fileUtil.js +11 -4
- package/lib/utils/file/fileUtil.js.map +1 -1
- package/lib/utils/flexipage/flexiPageTransformer.js +14 -10
- package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -1
- package/lib/utils/generatePackageXml.d.ts +4 -2
- package/lib/utils/generatePackageXml.js +17 -23
- package/lib/utils/generatePackageXml.js.map +1 -1
- package/lib/utils/interfaces.d.ts +36 -3
- package/lib/utils/logger.js +3 -1
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +20 -21
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js +2 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
- package/lib/utils/orgPreferences.d.ts +1 -0
- package/lib/utils/orgPreferences.js +11 -8
- package/lib/utils/orgPreferences.js.map +1 -1
- package/lib/utils/orgUtils/index.d.ts +1 -1
- package/lib/utils/orgUtils/index.js +14 -14
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/promptUtil.d.ts +2 -0
- package/lib/utils/promptUtil.js +26 -1
- package/lib/utils/promptUtil.js.map +1 -1
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +9 -0
- package/lib/utils/reportGenerator/reportUtil.d.ts +1 -1
- package/lib/utils/reportGenerator/reportUtil.js +6 -3
- package/lib/utils/reportGenerator/reportUtil.js.map +1 -1
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +2 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +51 -15
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.d.ts +13 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js +178 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.d.ts +19 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js +239 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +43 -11
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +13 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +111 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +51 -12
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +40 -18
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js +21 -14
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +47 -12
- 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 +31 -18
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +6 -1
- package/lib/utils/resultsbuilder/assessmentReporter.js +163 -66
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/index.d.ts +12 -1
- package/lib/utils/resultsbuilder/index.js +343 -84
- 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 +4 -0
- package/lib/utils/sfcli/project/sfProject.js +56 -1
- package/lib/utils/sfcli/project/sfProject.js.map +1 -1
- package/lib/utils/shell/cli.js +3 -7
- package/lib/utils/shell/cli.js.map +1 -1
- package/lib/utils/storageUtil.d.ts +1 -0
- package/lib/utils/storageUtil.js +3 -0
- package/lib/utils/storageUtil.js.map +1 -1
- package/lib/utils/stringUtils.d.ts +9 -0
- package/lib/utils/stringUtils.js +38 -7
- package/lib/utils/stringUtils.js.map +1 -1
- package/lib/utils/templateParser/model/elementNode.js +11 -2
- package/lib/utils/templateParser/model/elementNode.js.map +1 -1
- package/lib/utils/validatorService.d.ts +13 -0
- package/lib/utils/validatorService.js +69 -0
- package/lib/utils/validatorService.js.map +1 -0
- package/messages/assess.json +125 -55
- package/messages/migrate.json +172 -53
- package/oclif.manifest.json +1 -1
- package/package.json +40 -7
- package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +0 -40
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js +0 -65
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +0 -1
|
@@ -26,19 +26,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.LwcMigration = void 0;
|
|
27
27
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
28
28
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
29
|
-
const shell = __importStar(require("shelljs"));
|
|
30
29
|
const core_1 = require("@salesforce/core");
|
|
30
|
+
const shell = __importStar(require("shelljs"));
|
|
31
31
|
const fileUtil_1 = require("../../utils/file/fileUtil");
|
|
32
|
-
const sfProject_1 = require("../../utils/sfcli/project/sfProject");
|
|
33
32
|
const logger_1 = require("../../utils/logger");
|
|
34
33
|
const FileProcessorFactory_1 = require("../../utils/lwcparser/fileutils/FileProcessorFactory");
|
|
35
34
|
const stringContants_1 = require("../../utils/constants/stringContants");
|
|
35
|
+
const base_1 = require("../base");
|
|
36
36
|
const BaseRealtedObjectMigration_1 = require("./BaseRealtedObjectMigration");
|
|
37
37
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
38
38
|
const assessMessages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'assess');
|
|
39
39
|
const migrateMessages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'migrate');
|
|
40
40
|
const LWC_DIR_PATH = '/force-app/main/default/lwc';
|
|
41
|
-
const LWCTYPE = 'LightningComponentBundle';
|
|
42
41
|
class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigration {
|
|
43
42
|
processObjectType() {
|
|
44
43
|
return stringContants_1.Constants.LWC;
|
|
@@ -55,7 +54,6 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
|
|
|
55
54
|
const type = 'assessment';
|
|
56
55
|
const pwd = shell.pwd();
|
|
57
56
|
shell.cd(this.projectPath);
|
|
58
|
-
sfProject_1.sfProject.retrieve(LWCTYPE, this.org.getUsername());
|
|
59
57
|
logger_1.Logger.info(assessMessages.getMessage('processingLwcsForAssessment'));
|
|
60
58
|
const filesMap = this.processLwcFiles(this.projectPath);
|
|
61
59
|
logger_1.Logger.info(assessMessages.getMessage('successfullyProcessedLwcsForAssessment', [filesMap.size]));
|
|
@@ -67,14 +65,11 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
|
|
|
67
65
|
logger_1.Logger.logVerbose(migrateMessages.getMessage('startingLwcMigration', [this.projectPath]));
|
|
68
66
|
const pwd = shell.pwd();
|
|
69
67
|
shell.cd(this.projectPath);
|
|
70
|
-
// const targetOrg: Org = this.org;
|
|
71
|
-
// sfProject.retrieve(LWCTYPE, targetOrg.getUsername());
|
|
72
68
|
logger_1.Logger.info(migrateMessages.getMessage('processingLwcsForMigration'));
|
|
73
69
|
const filesMap = this.processLwcFiles(this.projectPath);
|
|
74
70
|
const LWCAssessmentInfos = this.processFiles(filesMap, 'migration');
|
|
75
71
|
logger_1.Logger.info(migrateMessages.getMessage('successfullyProcessedLwcsForMigration', [LWCAssessmentInfos.length]));
|
|
76
72
|
logger_1.Logger.logVerbose(migrateMessages.getMessage('lwcMigrationResults', [JSON.stringify(LWCAssessmentInfos, null, 2)]));
|
|
77
|
-
// sfProject.deploy(LWCTYPE, targetOrg.getUsername());
|
|
78
73
|
shell.cd(pwd);
|
|
79
74
|
return LWCAssessmentInfos;
|
|
80
75
|
}
|
|
@@ -92,9 +87,15 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
|
|
|
92
87
|
}
|
|
93
88
|
// This method to process the parsing and return the LWCAssessmentInfo[]
|
|
94
89
|
processFiles(fileMap, type) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
const progressBar = type.toLowerCase() === 'migration'
|
|
91
|
+
? (0, base_1.createProgressBar)('Migrating', stringContants_1.Constants.LWCComponentName)
|
|
92
|
+
: (0, base_1.createProgressBar)('Assessing', stringContants_1.Constants.LWCComponentName);
|
|
93
|
+
progressBar.start(fileMap.size, 0);
|
|
94
|
+
let progressCounter = 0;
|
|
95
|
+
const jsonData = [];
|
|
96
|
+
const errors = new Set();
|
|
97
|
+
fileMap.forEach((fileList, dir) => {
|
|
98
|
+
try {
|
|
98
99
|
const changeInfos = [];
|
|
99
100
|
if (dir !== stringContants_1.Constants.LWC &&
|
|
100
101
|
!dir.endsWith('MultiLanguage') &&
|
|
@@ -128,17 +129,27 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
|
|
|
128
129
|
name,
|
|
129
130
|
changeInfos,
|
|
130
131
|
errors,
|
|
132
|
+
warnings: [],
|
|
131
133
|
};
|
|
132
134
|
if (changeInfos && changeInfos.length > 0) {
|
|
133
135
|
jsonData.push(assesmentInfo);
|
|
134
136
|
}
|
|
135
137
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
progressBar.update(++progressCounter);
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
jsonData.push({
|
|
142
|
+
name: dir,
|
|
143
|
+
changeInfos: [],
|
|
144
|
+
errors: [error instanceof Error ? error.message : String(error)],
|
|
145
|
+
warnings: [],
|
|
146
|
+
});
|
|
147
|
+
errors.add(`${assessMessages.getMessage('errorProcessingFiles')} Error: ${error instanceof Error ? error.message : String(error)}`);
|
|
148
|
+
progressBar.update(++progressCounter);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
progressBar.stop();
|
|
152
|
+
return jsonData;
|
|
142
153
|
}
|
|
143
154
|
isValideFile(filename) {
|
|
144
155
|
return !filename.includes('_def') && !filename.includes('styleDefinition') && !filename.includes('definition');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LwcMigration.js","sourceRoot":"","sources":["../../../src/migration/related/LwcMigration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiD;AACjD,+DAA+D;AAC/D,+CAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"LwcMigration.js","sourceRoot":"","sources":["../../../src/migration/related/LwcMigration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiD;AACjD,+DAA+D;AAC/D,2CAA4C;AAC5C,+CAAiC;AACjC,wDAA2D;AAC3D,+CAA4C;AAC5C,+FAA4F;AAE5F,yEAAiE;AACjE,kCAA2D;AAC3D,6EAA0E;AAE1E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,8CAA8C,EAAE,QAAQ,CAAC,CAAC;AACvG,MAAM,eAAe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AC,CAAC;QACH,WAAW,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEO,YAAY,CAAC,QAAgB;QACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjH,CAAC;CACF;AA7HD,oCA6HC"}
|
|
@@ -35,12 +35,12 @@ const logger_1 = require("../../utils/logger");
|
|
|
35
35
|
const stringContants_1 = require("../../utils/constants/stringContants");
|
|
36
36
|
const ApexMigration_1 = require("./ApexMigration");
|
|
37
37
|
const ExperienceSiteMigration_1 = require("./ExperienceSiteMigration");
|
|
38
|
+
const LwcMigration_1 = require("./LwcMigration");
|
|
38
39
|
const FlexipageMigration_1 = require("./FlexipageMigration");
|
|
39
40
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
40
41
|
const assessMessages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'assess');
|
|
41
42
|
const migrateMessages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'migrate');
|
|
42
|
-
|
|
43
|
-
// const LWCTYPE = 'LightningComponentBundle';
|
|
43
|
+
const LWCTYPE = 'LightningComponentBundle';
|
|
44
44
|
const APEXCLASS = 'Apexclass';
|
|
45
45
|
const EXPERIENCEBUNDLE = 'EXPERIENCEBUNDLE';
|
|
46
46
|
const defaultProjectName = 'omnistudio_migration';
|
|
@@ -54,9 +54,8 @@ class OmnistudioRelatedObjectMigrationFacade {
|
|
|
54
54
|
// Initialize migration instances
|
|
55
55
|
this.apexMigration = new ApexMigration_1.ApexMigration(this.projectPath, this.namespace, this.org, targetApexNamespace);
|
|
56
56
|
this.flexipageMigration = new FlexipageMigration_1.FlexipageMigration(this.projectPath, this.namespace, this.org, assessMessages);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.experienceSiteMigration = new ExperienceSiteMigration_1.ExperienceSiteMigration(this.projectPath, this.namespace, this.org);
|
|
57
|
+
this.lwcMigration = new LwcMigration_1.LwcMigration(this.projectPath, this.namespace, this.org);
|
|
58
|
+
this.experienceSiteMigration = new ExperienceSiteMigration_1.ExperienceSiteMigration(this.projectPath, this.namespace, this.org, migrateMessages);
|
|
60
59
|
}
|
|
61
60
|
createProject() {
|
|
62
61
|
sfProject_1.sfProject.create(defaultProjectName);
|
|
@@ -65,14 +64,17 @@ class OmnistudioRelatedObjectMigrationFacade {
|
|
|
65
64
|
retrieveMetadata(relatedObjects) {
|
|
66
65
|
const pwd = shell.pwd();
|
|
67
66
|
shell.cd(this.projectPath);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// }
|
|
67
|
+
if (relatedObjects.includes(stringContants_1.Constants.LWC)) {
|
|
68
|
+
sfProject_1.sfProject.retrieve(LWCTYPE, this.org.getUsername());
|
|
69
|
+
}
|
|
72
70
|
if (relatedObjects.includes(stringContants_1.Constants.Apex)) {
|
|
73
71
|
sfProject_1.sfProject.retrieve(APEXCLASS, this.org.getUsername());
|
|
74
72
|
}
|
|
73
|
+
if (relatedObjects.includes(stringContants_1.Constants.FlexiPage)) {
|
|
74
|
+
sfProject_1.sfProject.retrieve(stringContants_1.Constants.FlexiPage, this.org.getUsername());
|
|
75
|
+
}
|
|
75
76
|
if (relatedObjects.includes(stringContants_1.Constants.ExpSites)) {
|
|
77
|
+
logger_1.Logger.logVerbose(EXPERIENCEBUNDLE);
|
|
76
78
|
sfProject_1.sfProject.retrieve(EXPERIENCEBUNDLE, this.org.getUsername());
|
|
77
79
|
}
|
|
78
80
|
shell.cd(pwd);
|
|
@@ -81,15 +83,23 @@ class OmnistudioRelatedObjectMigrationFacade {
|
|
|
81
83
|
// Start the debug timer
|
|
82
84
|
utils_1.DebugTimer.getInstance().start();
|
|
83
85
|
logger_1.Logger.logVerbose(assessMessages.getMessage('startingProcessRelatedObjects', [String(relatedObjects), this.projectPath]));
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
logger_1.Logger.logVerbose(migrateMessages.getMessage('retrievingMetadata', [String(relatedObjects), this.projectPath]));
|
|
86
|
+
logger_1.Logger.logVerbose(migrateMessages.getMessage('retrievingMetadata', [String(relatedObjects), this.projectPath]));
|
|
87
|
+
try {
|
|
87
88
|
this.retrieveMetadata(relatedObjects);
|
|
88
89
|
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
logger_1.Logger.error('Error retrieving metadata', error);
|
|
92
|
+
return {
|
|
93
|
+
apexAssessmentInfos: [],
|
|
94
|
+
lwcAssessmentInfos: [],
|
|
95
|
+
experienceSiteAssessmentInfos: [],
|
|
96
|
+
flexipageAssessmentInfos: [],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
89
99
|
const debugTimer = utils_1.DebugTimer.getInstance();
|
|
90
100
|
debugTimer.start();
|
|
91
101
|
let apexAssessmentInfos = [];
|
|
92
|
-
|
|
102
|
+
let lwcAssessmentInfos = [];
|
|
93
103
|
let experienceSiteAssessmentInfos = [];
|
|
94
104
|
let flexipageAssessmentInfos = [];
|
|
95
105
|
// Proceed with processing logic
|
|
@@ -97,26 +107,22 @@ class OmnistudioRelatedObjectMigrationFacade {
|
|
|
97
107
|
if (relatedObjects.includes(stringContants_1.Constants.Apex)) {
|
|
98
108
|
apexAssessmentInfos = isMigration ? this.apexMigration.migrate() : this.apexMigration.assess();
|
|
99
109
|
}
|
|
100
|
-
if (
|
|
101
|
-
experienceSiteAssessmentInfos =
|
|
110
|
+
if (relatedObjects.includes(stringContants_1.Constants.ExpSites)) {
|
|
111
|
+
experienceSiteAssessmentInfos = isMigration
|
|
112
|
+
? this.experienceSiteMigration.migrate()
|
|
113
|
+
: this.experienceSiteMigration.assess();
|
|
102
114
|
}
|
|
103
115
|
if (relatedObjects.includes(stringContants_1.Constants.FlexiPage)) {
|
|
104
116
|
flexipageAssessmentInfos = isMigration ? this.flexipageMigration.migrate() : this.flexipageMigration.assess();
|
|
105
117
|
}
|
|
118
|
+
if (relatedObjects.includes(stringContants_1.Constants.LWC)) {
|
|
119
|
+
lwcAssessmentInfos = isMigration ? this.lwcMigration.migrate() : this.lwcMigration.assessment();
|
|
120
|
+
}
|
|
106
121
|
}
|
|
107
122
|
catch (error) {
|
|
108
123
|
// Log the error
|
|
109
124
|
logger_1.Logger.error('Error processing related objects', error);
|
|
110
125
|
}
|
|
111
|
-
// TODO: Uncomment code once MVP for migration is completed
|
|
112
|
-
// try {
|
|
113
|
-
// if (relatedObjects.includes(Constants.LWC)) {
|
|
114
|
-
// lwcAssessmentInfos = isMigration ? this.lwcMigration.migrate() : this.lwcMigration.assessment();
|
|
115
|
-
// }
|
|
116
|
-
// } catch (Error) {
|
|
117
|
-
// // Log the error
|
|
118
|
-
// Logger.error(Error.message);
|
|
119
|
-
// }
|
|
120
126
|
// Stop the debug timer
|
|
121
127
|
const timer = debugTimer.stop();
|
|
122
128
|
// Save timer to debug logger
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OmnistudioRelatedObjectMigrationFacade.js","sourceRoot":"","sources":["../../../src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,4DAA4D;AAC5D,+DAA+D;AAC/D,uDAAuD;AACvD,2CAAiD;AACjD,+CAAiC;AACjC,uCAOqB;AACrB,mEAAgE;AAChE,+CAA4C;AAC5C,yEAAiE;AACjE,mDAAgD;AAChD,uEAAoE;
|
|
1
|
+
{"version":3,"file":"OmnistudioRelatedObjectMigrationFacade.js","sourceRoot":"","sources":["../../../src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,4DAA4D;AAC5D,+DAA+D;AAC/D,uDAAuD;AACvD,2CAAiD;AACjD,+CAAiC;AACjC,uCAOqB;AACrB,mEAAg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AC;;AAvIH,yDAwIC;AAvIC,yEAAyE;AACzE,0EAA0E;AAC5D,2CAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -402,7 +402,7 @@ html {
|
|
|
402
402
|
display: flex;
|
|
403
403
|
flex-direction: column;
|
|
404
404
|
gap: 10px;
|
|
405
|
-
height: 14rem;
|
|
405
|
+
min-height: 14rem;
|
|
406
406
|
min-width: 25rem;
|
|
407
407
|
background-color: #fff;
|
|
408
408
|
}
|
|
@@ -539,10 +539,6 @@ td {
|
|
|
539
539
|
visibility: visible;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
ul {
|
|
543
|
-
list-style: inside !important;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
542
|
.invalid-icon {
|
|
547
543
|
position: relative;
|
|
548
544
|
padding-left: 24px; /* space for icon */
|
|
@@ -570,3 +566,11 @@ ul {
|
|
|
570
566
|
background-color: red;
|
|
571
567
|
transform: translateY(-50%) rotate(45deg);
|
|
572
568
|
}
|
|
569
|
+
|
|
570
|
+
.highlight {
|
|
571
|
+
background-color: #f3f3f3;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.normal-td-padding {
|
|
575
|
+
padding-left: 0.5rem !important;
|
|
576
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div style="margin: 20px">
|
|
13
13
|
<div class="report-wrapper">
|
|
14
14
|
<div id="scrollable-wrapper" class="scrollable-wrapper">
|
|
15
|
-
<c:if exp={$callToAction.length>
|
|
15
|
+
<c:if exp={$callToAction.length>0}>
|
|
16
16
|
<!-- Call To Action Button -->
|
|
17
17
|
<button class="cta-button" onclick="toggleCtaPanel()">Call To Action</button>
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<button class="cta-panel-close" onclick="closeCtaPanel()">×</button>
|
|
27
27
|
</div>
|
|
28
28
|
<div class="cta-panel-content">
|
|
29
|
-
<ul>
|
|
29
|
+
<ul class="slds-list_dotted">
|
|
30
30
|
<c:for items=(callToAction) var="cta">
|
|
31
31
|
<li> {{cta.message}}:   <a href="(cta.link)" target="_blank">See More</a></li>
|
|
32
32
|
</c:for>
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<td class="(cell.customClass)" data-name="(cell.value)" rowspan="(cell.rowspan)"
|
|
155
155
|
colspan="(cell.colspan)" key="(cell.key)" value="(cell.value)">
|
|
156
156
|
<c:if exp={Array.isArray($cell.title)}>
|
|
157
|
-
<ul>
|
|
157
|
+
<ul class="slds-list_dotted">
|
|
158
158
|
<c:for items=(cell.title) var="value">
|
|
159
159
|
<li>{{value}}</li>
|
|
160
160
|
</c:for>
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
<td rowspan="(cell.rowspan)" colspan="(cell.colspan)" class="(cell.customClass)"
|
|
168
168
|
key="(cell.key)" value="(cell.value)">
|
|
169
169
|
<c:if exp={Array.isArray($cell.title)}>
|
|
170
|
-
<ul>
|
|
170
|
+
<ul class="slds-list_dotted">
|
|
171
171
|
<c:for items=(cell.title) var="value">
|
|
172
172
|
<li>{{value}}</li>
|
|
173
173
|
</c:for>
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
<td data-name="(cell.value)" rowspan="(cell.rowspan)" colspan="(cell.colspan)"
|
|
183
183
|
class="(cell.customClass)" key="(cell.key)" value="(cell.value)">
|
|
184
184
|
<c:if exp={Array.isArray($cell.title)}>
|
|
185
|
-
<ul>
|
|
185
|
+
<ul class="slds-list_dotted">
|
|
186
186
|
<c:for items=(cell.title) var="value">
|
|
187
187
|
<li><a href="(cell.uri)" target="_blank">{{value}}</a></li>
|
|
188
188
|
</c:for>
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
<td rowspan="(cell.rowspan)" colspan="(cell.colspan)" class="(cell.customClass)"
|
|
198
198
|
key="(cell.key)" value="(cell.value)">
|
|
199
199
|
<c:if exp={Array.isArray($cell.title)}>
|
|
200
|
-
<ul>
|
|
200
|
+
<ul class="slds-list_dotted">
|
|
201
201
|
<c:for items=(cell.title) var="value">
|
|
202
202
|
<li><a href="(cell.uri)">{{value}}</a></li>
|
|
203
203
|
</c:for>
|
|
@@ -219,6 +219,19 @@
|
|
|
219
219
|
</tr>
|
|
220
220
|
</tbody>
|
|
221
221
|
</table>
|
|
222
|
+
<c:if exp={Array.isArray($actionItems) && $actionItems.length> 0}>
|
|
223
|
+
<div class="slds-box slds-theme_default slds-m-top_medium">
|
|
224
|
+
<div class="slds-text-heading_medium slds-m-bottom_small">User Action Required</div>
|
|
225
|
+
<div class="slds-m-bottom_small">
|
|
226
|
+
<p class="slds-m-bottom_x-small">Action Items</p>
|
|
227
|
+
<ul class="slds-list_dotted">
|
|
228
|
+
<c:for items=(actionItems) var="actionItem">
|
|
229
|
+
<li class="slds-item slds-text-color_destructive">{{actionItem}}</li>
|
|
230
|
+
</c:for>
|
|
231
|
+
</ul>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</c:if>
|
|
222
235
|
</div>
|
|
223
236
|
</div>
|
|
224
237
|
<div id="cta-summary-panel" class="cta-summary-panel hidden">
|
|
@@ -260,6 +273,54 @@
|
|
|
260
273
|
</div>
|
|
261
274
|
</c:if>
|
|
262
275
|
</div>
|
|
276
|
+
|
|
277
|
+
<!-- Pagination Navigation -->
|
|
278
|
+
<c:if exp={$pagination}>
|
|
279
|
+
<div class="pagination-container" style="margin-top: 20px; text-align: center;">
|
|
280
|
+
<div class="pagination-info" style="margin-bottom: 10px; color: #666;">
|
|
281
|
+
Page {{pagination.currentPage}} of {{pagination.totalPages}}
|
|
282
|
+
({{pagination.pageSize}} items per page)
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div class="pagination-controls">
|
|
286
|
+
<c:if exp={$pagination.hasPreviousPage}>
|
|
287
|
+
<a href="{{pagination.previousPageFile}}" class="pagination-btn" style="
|
|
288
|
+
display: inline-block;
|
|
289
|
+
padding: 8px 16px;
|
|
290
|
+
margin: 0 5px;
|
|
291
|
+
background-color: #0070d2;
|
|
292
|
+
color: white;
|
|
293
|
+
text-decoration: none;
|
|
294
|
+
border-radius: 4px;
|
|
295
|
+
font-weight: bold;
|
|
296
|
+
">← Previous</a>
|
|
297
|
+
</c:if>
|
|
298
|
+
|
|
299
|
+
<span class="current-page" style="
|
|
300
|
+
display: inline-block;
|
|
301
|
+
padding: 8px 16px;
|
|
302
|
+
margin: 0 5px;
|
|
303
|
+
background-color: #f3f2f2;
|
|
304
|
+
color: #333;
|
|
305
|
+
border-radius: 4px;
|
|
306
|
+
font-weight: bold;
|
|
307
|
+
">{{pagination.currentPage}}</span>
|
|
308
|
+
|
|
309
|
+
<c:if exp={$pagination.hasNextPage}>
|
|
310
|
+
<a href="{{pagination.nextPageFile}}" class="pagination-btn" style="
|
|
311
|
+
display: inline-block;
|
|
312
|
+
padding: 8px 16px;
|
|
313
|
+
margin: 0 5px;
|
|
314
|
+
background-color: #0070d2;
|
|
315
|
+
color: white;
|
|
316
|
+
text-decoration: none;
|
|
317
|
+
border-radius: 4px;
|
|
318
|
+
font-weight: bold;
|
|
319
|
+
">Next →</a>
|
|
320
|
+
</c:if>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</c:if>
|
|
263
324
|
</div>
|
|
264
325
|
</div>
|
|
265
326
|
</div>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
<td class="(cell.customClass)" data-name="(cell.value)" rowspan="(cell.rowspan)"
|
|
119
119
|
colspan="(cell.colspan)" key="(cell.key)" value="(cell.value)">
|
|
120
120
|
<c:if exp={Array.isArray($cell.title)}>
|
|
121
|
-
<ul>
|
|
121
|
+
<ul class="slds-list_dotted">
|
|
122
122
|
<c:for items=(cell.title) var="value">
|
|
123
123
|
<li>{{value}}</li>
|
|
124
124
|
</c:for>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<td rowspan="(cell.rowspan)" colspan="(cell.colspan)" class="(cell.customClass)" key="(cell.key)"
|
|
132
132
|
value="(cell.value)">
|
|
133
133
|
<c:if exp={Array.isArray($cell.title)}>
|
|
134
|
-
<ul>
|
|
134
|
+
<ul class="slds-list_dotted">
|
|
135
135
|
<c:for items=(cell.title) var="value">
|
|
136
136
|
<li>{{value}}</li>
|
|
137
137
|
</c:for>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<td class="(cell.customClass)" data-name="(cell.value)" rowspan="(cell.rowspan)"
|
|
147
147
|
colspan="(cell.colspan)" key="(cell.key)" value="(cell.value)">
|
|
148
148
|
<c:if exp={Array.isArray($cell.title)}>
|
|
149
|
-
<ul>
|
|
149
|
+
<ul class="slds-list_dotted">
|
|
150
150
|
<c:for items=(cell.title) var="value">
|
|
151
151
|
<li><a href="(cell.uri)">{{value}}</a></li>
|
|
152
152
|
</c:for>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<td rowspan="(cell.rowspan)" colspan="(cell.colspan)" class="(cell.customClass)" key="(cell.key)"
|
|
162
162
|
value="(cell.value)">
|
|
163
163
|
<c:if exp={Array.isArray($cell.title)}>
|
|
164
|
-
<ul>
|
|
164
|
+
<ul class="slds-list_dotted">
|
|
165
165
|
<c:for items=(cell.title) var="value">
|
|
166
166
|
<li><a href="(cell.uri)">{{value}}</a></li>
|
|
167
167
|
</c:for>
|
|
@@ -184,6 +184,148 @@
|
|
|
184
184
|
</tbody>
|
|
185
185
|
</table>
|
|
186
186
|
</div>
|
|
187
|
+
|
|
188
|
+
<!-- Pagination Navigation -->
|
|
189
|
+
<c:if exp={$pagination_currentPage}>
|
|
190
|
+
<div class="pagination-container" style="margin-top: 20px; text-align: center;">
|
|
191
|
+
<div class="pagination-info" style="margin-bottom: 10px; color: #666;">
|
|
192
|
+
Page {{pagination_currentPage}} of {{pagination_totalPages}}
|
|
193
|
+
({{pagination_pageSize}} items per page)
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<div class="pagination-controls">
|
|
197
|
+
<c:if exp={$pagination_hasPreviousPage}>
|
|
198
|
+
<a href="{{pagination_previousPageHref}}" class="pagination-btn" style="
|
|
199
|
+
display: inline-block;
|
|
200
|
+
padding: 8px 16px;
|
|
201
|
+
margin: 0 5px;
|
|
202
|
+
background-color: #0070d2;
|
|
203
|
+
color: white;
|
|
204
|
+
text-decoration: none;
|
|
205
|
+
border-radius: 4px;
|
|
206
|
+
font-weight: bold;
|
|
207
|
+
">← Previous</a>
|
|
208
|
+
</c:if>
|
|
209
|
+
|
|
210
|
+
<span class="current-page" style="
|
|
211
|
+
display: inline-block;
|
|
212
|
+
padding: 8px 16px;
|
|
213
|
+
margin: 0 5px;
|
|
214
|
+
background-color: #f3f2f2;
|
|
215
|
+
color: #333;
|
|
216
|
+
border-radius: 4px;
|
|
217
|
+
font-weight: bold;
|
|
218
|
+
">{{pagination_currentPage}}</span>
|
|
219
|
+
|
|
220
|
+
<c:if exp={$pagination_hasNextPage}>
|
|
221
|
+
<a href="{{pagination_nextPageHref}}" class="pagination-btn" style="
|
|
222
|
+
display: inline-block;
|
|
223
|
+
padding: 8px 16px;
|
|
224
|
+
margin: 0 5px;
|
|
225
|
+
background-color: #0070d2;
|
|
226
|
+
color: white;
|
|
227
|
+
text-decoration: none;
|
|
228
|
+
border-radius: 4px;
|
|
229
|
+
font-weight: bold;
|
|
230
|
+
">Next →</a>
|
|
231
|
+
</c:if>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
<div class="pagination-jump" style="margin-top: 10px;">
|
|
235
|
+
<span style="color: #666; margin-right: 10px;">Jump to page:</span>
|
|
236
|
+
|
|
237
|
+
<!-- Always show first page -->
|
|
238
|
+
<a href="{{pagination_page_1_href}}" style="
|
|
239
|
+
display: inline-block;
|
|
240
|
+
padding: 4px 8px;
|
|
241
|
+
margin: 0 2px;
|
|
242
|
+
background-color: {{pagination_page_1_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
243
|
+
color: {{pagination_page_1_isCurrent ? 'white' : '#333'}};
|
|
244
|
+
text-decoration: none;
|
|
245
|
+
border-radius: 2px;
|
|
246
|
+
font-size: 12px;
|
|
247
|
+
">1</a>
|
|
248
|
+
|
|
249
|
+
<!-- Show ellipsis if needed -->
|
|
250
|
+
<c:if exp={$pagination_showFirstEllipsis}>
|
|
251
|
+
<span style="color: #666; margin: 0 5px;">...</span>
|
|
252
|
+
</c:if>
|
|
253
|
+
|
|
254
|
+
<!-- Show pages 2-4 if they exist -->
|
|
255
|
+
<c:if exp={$pagination_page_2_href}>
|
|
256
|
+
<a href="{{pagination_page_2_href}}" style="
|
|
257
|
+
display: inline-block;
|
|
258
|
+
padding: 4px 8px;
|
|
259
|
+
margin: 0 2px;
|
|
260
|
+
background-color: {{pagination_page_2_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
261
|
+
color: {{pagination_page_2_isCurrent ? 'white' : '#333'}};
|
|
262
|
+
text-decoration: none;
|
|
263
|
+
border-radius: 2px;
|
|
264
|
+
font-size: 12px;
|
|
265
|
+
">2</a>
|
|
266
|
+
</c:if>
|
|
267
|
+
|
|
268
|
+
<c:if exp={$pagination_page_3_href}>
|
|
269
|
+
<a href="{{pagination_page_3_href}}" style="
|
|
270
|
+
display: inline-block;
|
|
271
|
+
padding: 4px 8px;
|
|
272
|
+
margin: 0 2px;
|
|
273
|
+
background-color: {{pagination_page_3_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
274
|
+
color: {{pagination_page_3_isCurrent ? 'white' : '#333'}};
|
|
275
|
+
text-decoration: none;
|
|
276
|
+
border-radius: 2px;
|
|
277
|
+
font-size: 12px;
|
|
278
|
+
">3</a>
|
|
279
|
+
</c:if>
|
|
280
|
+
|
|
281
|
+
<c:if exp={$pagination_page_4_href}>
|
|
282
|
+
<a href="{{pagination_page_4_href}}" style="
|
|
283
|
+
display: inline-block;
|
|
284
|
+
padding: 4px 8px;
|
|
285
|
+
margin: 0 2px;
|
|
286
|
+
background-color: {{pagination_page_4_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
287
|
+
color: {{pagination_page_4_isCurrent ? 'white' : '#333'}};
|
|
288
|
+
text-decoration: none;
|
|
289
|
+
border-radius: 2px;
|
|
290
|
+
font-size: 12px;
|
|
291
|
+
">4</a>
|
|
292
|
+
</c:if>
|
|
293
|
+
|
|
294
|
+
<c:if exp={$pagination_page_5_href}>
|
|
295
|
+
<a href="{{pagination_page_5_href}}" style="
|
|
296
|
+
display: inline-block;
|
|
297
|
+
padding: 4px 8px;
|
|
298
|
+
margin: 0 2px;
|
|
299
|
+
background-color: {{pagination_page_5_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
300
|
+
color: {{pagination_page_5_isCurrent ? 'white' : '#333'}};
|
|
301
|
+
text-decoration: none;
|
|
302
|
+
border-radius: 2px;
|
|
303
|
+
font-size: 12px;
|
|
304
|
+
">5</a>
|
|
305
|
+
</c:if>
|
|
306
|
+
|
|
307
|
+
<!-- Show ellipsis if needed -->
|
|
308
|
+
<c:if exp={$pagination_showLastEllipsis}>
|
|
309
|
+
<span style="color: #666; margin: 0 5px;">...</span>
|
|
310
|
+
</c:if>
|
|
311
|
+
|
|
312
|
+
<!-- Always show last page if different from first 5 -->
|
|
313
|
+
<c:if exp={$pagination_totalPages > 5}>
|
|
314
|
+
<a href="{{pagination_page_{{pagination_totalPages}}_href}}" style="
|
|
315
|
+
display: inline-block;
|
|
316
|
+
padding: 4px 8px;
|
|
317
|
+
margin: 0 2px;
|
|
318
|
+
background-color: {{pagination_page_{{pagination_totalPages}}_isCurrent ? '#0070d2' : '#f3f2f2'}};
|
|
319
|
+
color: {{pagination_page_{{pagination_totalPages}}_isCurrent ? 'white' : '#333'}};
|
|
320
|
+
text-decoration: none;
|
|
321
|
+
border-radius: 2px;
|
|
322
|
+
font-size: 12px;
|
|
323
|
+
">{{pagination_totalPages}}</a>
|
|
324
|
+
</c:if>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</c:if>
|
|
328
|
+
|
|
187
329
|
<c:if exp={Array.isArray($rollbackFlags)}>
|
|
188
330
|
<div class="slds-box" style="background-color: white; margin-top: 20px">
|
|
189
331
|
<div class="migration-message">
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Connection, Messages } from '@salesforce/core';
|
|
2
|
+
export declare class OmnistudioSettingsPrefManager {
|
|
3
|
+
private connection;
|
|
4
|
+
private messages;
|
|
5
|
+
constructor(connection: Connection, messages: Messages);
|
|
6
|
+
isGlobalAutoNumberEnabled(): Promise<boolean>;
|
|
7
|
+
enableGlobalAutoNumber(): Promise<any>;
|
|
8
|
+
enableGlobalAutoNumberIfDisabled(): Promise<any>;
|
|
9
|
+
isStandardRuntimeEnabled(): Promise<boolean>;
|
|
10
|
+
enableStandardRuntime(): Promise<any>;
|
|
11
|
+
enableStandardRuntimeIfDisabled(): Promise<any>;
|
|
12
|
+
}
|