@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
|
@@ -4,20 +4,28 @@ import { BaseMigrationTool } from './base';
|
|
|
4
4
|
import { MigrationResult, MigrationTool } from './interfaces';
|
|
5
5
|
import { ObjectMapping } from './interfaces';
|
|
6
6
|
import { Connection, Messages } from '@salesforce/core';
|
|
7
|
-
import {
|
|
7
|
+
import { Ux } from '@salesforce/sf-plugins-core';
|
|
8
8
|
import { OmniAssessmentInfo } from '../../src/utils';
|
|
9
9
|
import { Logger } from '../utils/logger';
|
|
10
10
|
export declare class OmniScriptMigrationTool extends BaseMigrationTool implements MigrationTool {
|
|
11
11
|
private readonly exportType;
|
|
12
12
|
private readonly allVersions;
|
|
13
|
+
private hookRegisteredClasses;
|
|
14
|
+
private IS_STANDARD_DATA_MODEL;
|
|
15
|
+
private readonly apexNamespaceRegistry;
|
|
16
|
+
private readonly reservedKeys;
|
|
17
|
+
private readonly tagsToValidate;
|
|
18
|
+
private readonly OMNISCRIPT;
|
|
13
19
|
static readonly OMNISCRIPT_NAME = "OmniScript__c";
|
|
14
20
|
static readonly ELEMENT_NAME = "Element__c";
|
|
15
21
|
static readonly OMNISCRIPTDEFINITION_NAME = "OmniScriptDefinition__c";
|
|
16
22
|
static readonly OMNIPROCESS_NAME = "OmniProcess";
|
|
17
23
|
static readonly OMNIPROCESSELEMENT_NAME = "OmniProcessElement";
|
|
18
24
|
static readonly OMNIPROCESSCOMPILATION_NAME = "OmniProcessCompilation";
|
|
19
|
-
constructor(exportType: OmniScriptExportType, namespace: string, connection: Connection, logger: Logger, messages: Messages
|
|
20
|
-
|
|
25
|
+
constructor(exportType: OmniScriptExportType, namespace: string, connection: Connection, logger: Logger, messages: Messages<string>, ux: Ux, allVersions: boolean);
|
|
26
|
+
private loadHookRegistrations;
|
|
27
|
+
private hasHookForClass;
|
|
28
|
+
getName(singular?: boolean): 'Integration Procedures' | 'Integration Procedure' | 'Omniscripts' | 'Omniscript';
|
|
21
29
|
getRecordName(record: string): string;
|
|
22
30
|
getMappings(): ObjectMapping[];
|
|
23
31
|
truncate(): Promise<void>;
|
|
@@ -33,11 +41,18 @@ export declare class OmniScriptMigrationTool extends BaseMigrationTool implement
|
|
|
33
41
|
};
|
|
34
42
|
}>;
|
|
35
43
|
assess(dataRaptorAssessmentInfos: DataRaptorAssessmentInfo[], flexCardAssessmentInfos: FlexCardAssessmentInfo[]): Promise<OmniAssessmentInfo>;
|
|
44
|
+
private handleAssessmentForStdDataModelOrgsWithMetadataAPIEnabled;
|
|
36
45
|
processOmniComponents(omniscripts: AnyJson[], dataRaptorAssessmentInfos: DataRaptorAssessmentInfo[], flexCardAssessmentInfos: FlexCardAssessmentInfo[]): Promise<OmniAssessmentInfo>;
|
|
37
46
|
private processOmniScript;
|
|
47
|
+
private prepareStorageForRelatedObjectsWhenMetadataAPIEnabled;
|
|
48
|
+
private updateStorageForOmniscriptAssessment;
|
|
49
|
+
private addKeyToStorage;
|
|
50
|
+
private markDuplicateKeyInStorage;
|
|
51
|
+
private isDifferentOmniscript;
|
|
52
|
+
private cleanLanguageName;
|
|
38
53
|
migrate(): Promise<MigrationResult[]>;
|
|
39
54
|
private getMigratedRecordsByType;
|
|
40
|
-
private
|
|
55
|
+
private handleMigrationForStdDataModelOrgsWithMetadataAPIEnabled;
|
|
41
56
|
private updateStorageForOmniscript;
|
|
42
57
|
private getAllOmniScripts;
|
|
43
58
|
private getAllElementsForOmniScript;
|
|
@@ -52,11 +67,210 @@ export declare class OmniScriptMigrationTool extends BaseMigrationTool implement
|
|
|
52
67
|
* @returns
|
|
53
68
|
*/
|
|
54
69
|
private mapOmniScriptRecord;
|
|
70
|
+
/**
|
|
71
|
+
* Processes persistentComponent array in OmniProcess PropertySetConfig to update transform bundle references
|
|
72
|
+
* Handles: persistentComponent[].remoteOptions.preTransformBundle, persistentComponent[].remoteOptions.postTransformBundle,
|
|
73
|
+
* persistentComponent[].preTransformBundle, persistentComponent[].postTransformBundle
|
|
74
|
+
* @param propertySetConfig The parsed PropertySetConfig object
|
|
75
|
+
*/
|
|
76
|
+
private processPersistentComponents;
|
|
55
77
|
private mapElementData;
|
|
56
78
|
private mapOsDefinitionsData;
|
|
79
|
+
/**
|
|
80
|
+
* Shared helper method to process element types and update references
|
|
81
|
+
* Handles the switch statement logic for different element types
|
|
82
|
+
* @param elementType Type of the element
|
|
83
|
+
* @param propSet Property set map from the element
|
|
84
|
+
* @param invalidIpReferences Optional map to track invalid IP references
|
|
85
|
+
* @param elementName Optional element name for logging
|
|
86
|
+
*/
|
|
87
|
+
private processElementByType;
|
|
88
|
+
/**
|
|
89
|
+
* Recursively processes children elements in the content JSON to update bundle/reference names
|
|
90
|
+
* @param children Array of child elements from the content JSON
|
|
91
|
+
*/
|
|
92
|
+
private processContentChildren;
|
|
93
|
+
/**
|
|
94
|
+
* Processes individual content element to update bundle/reference names based on type
|
|
95
|
+
* @param element Individual element from the content JSON
|
|
96
|
+
*/
|
|
97
|
+
private processContentElement;
|
|
98
|
+
/**
|
|
99
|
+
* Processes DocuSign Envelope Action elements to update transformBundle references
|
|
100
|
+
* @param propSetMap Property set map from the element
|
|
101
|
+
*/
|
|
102
|
+
private processDocuSignEnvelopeAction;
|
|
103
|
+
/**
|
|
104
|
+
* Processes DocuSign Signature Action elements to update transformBundle references
|
|
105
|
+
* @param propSetMap Property set map from the element
|
|
106
|
+
*/
|
|
107
|
+
private processDocuSignSignatureAction;
|
|
108
|
+
/**
|
|
109
|
+
* Processes Integration Procedure Action elements to update reference names
|
|
110
|
+
* @param propSetMap Property set map from the element
|
|
111
|
+
* @param invalidIpReferences Optional map to track invalid IP references for reporting
|
|
112
|
+
* @param elementName Optional element name for tracking invalid references
|
|
113
|
+
*/
|
|
114
|
+
private processIntegrationProcedureAction;
|
|
115
|
+
/**
|
|
116
|
+
* Processes DataRaptor Action elements to update bundle names
|
|
117
|
+
* @param propSetMap Property set map from the element
|
|
118
|
+
*/
|
|
119
|
+
private processDataRaptorAction;
|
|
120
|
+
/**
|
|
121
|
+
* Processes OmniScript Action elements to update reference names
|
|
122
|
+
* @param propSetMap Property set map from the element
|
|
123
|
+
*/
|
|
124
|
+
private processOmniScriptAction;
|
|
125
|
+
/**
|
|
126
|
+
* Processes Navigate Action elements so the migrated parent OmniScript can launch its child
|
|
127
|
+
* under the standard runtime. The standard-runtime Navigate Action LWC reads
|
|
128
|
+
* `omniscript__type`, `omniscript__subType`, `omniscript__language` from the propertySet to
|
|
129
|
+
* resolve the child OmniScript (it does not consume `targetLWC`). Params on the URL bound for
|
|
130
|
+
* the OmniScript page must use the `omniscript__` prefix instead of the managed-package `c__`
|
|
131
|
+
* prefix.
|
|
132
|
+
* @param propSetMap Property set map from the element
|
|
133
|
+
*/
|
|
134
|
+
private processNavigateAction;
|
|
135
|
+
/**
|
|
136
|
+
* Processes Step elements to update reference names
|
|
137
|
+
* @param propSetMap Property set map from the element
|
|
138
|
+
*/
|
|
139
|
+
private processStepAction;
|
|
140
|
+
/**
|
|
141
|
+
* Generic helper to process common transform bundle properties
|
|
142
|
+
* Handles: preTransformBundle, postTransformBundle, remoteOptions.preTransformBundle, remoteOptions.postTransformBundle
|
|
143
|
+
* @param propSetMap Property set map from the element
|
|
144
|
+
*/
|
|
145
|
+
private processTransformBundles;
|
|
146
|
+
/**
|
|
147
|
+
* Helper to clean a single bundle name using registry or fallback
|
|
148
|
+
* @param bundleName The bundle name to clean
|
|
149
|
+
* @returns The cleaned bundle name
|
|
150
|
+
*/
|
|
151
|
+
private cleanBundleName;
|
|
152
|
+
/**
|
|
153
|
+
* Processes Decision Matrix Action elements to update transform bundle references
|
|
154
|
+
* @param propSetMap Property set map from the element
|
|
155
|
+
*/
|
|
156
|
+
private processDecisionMatrixAction;
|
|
157
|
+
/**
|
|
158
|
+
* Processes Expression Set Action elements to update transform bundle references
|
|
159
|
+
* @param propSetMap Property set map from the element
|
|
160
|
+
*/
|
|
161
|
+
private processExpressionSetAction;
|
|
162
|
+
/**
|
|
163
|
+
* Processes HTTP Action elements to update transform bundle references
|
|
164
|
+
* Handles: preTransformBundle, postTransformBundle, xmlPreTransformBundle, xmlPostTransformBundle
|
|
165
|
+
* @param propSetMap Property set map from the element
|
|
166
|
+
*/
|
|
167
|
+
private processHttpAction;
|
|
168
|
+
/**
|
|
169
|
+
* Processes PDF Action elements to update transform bundle references
|
|
170
|
+
* @param propSetMap Property set map from the element
|
|
171
|
+
*/
|
|
172
|
+
private processPdfAction;
|
|
173
|
+
/**
|
|
174
|
+
* Processes Remote Action elements to update transform bundle references and qualify remoteClass with namespace
|
|
175
|
+
* @param propSetMap Property set map from the element
|
|
176
|
+
*/
|
|
177
|
+
private processRemoteAction;
|
|
178
|
+
/**
|
|
179
|
+
* Processes lwcComponentOverride property to update FlexCard reference names
|
|
180
|
+
* @param propSetMap Property set map from the element
|
|
181
|
+
*/
|
|
182
|
+
private processLwcComponentOverride;
|
|
57
183
|
private getOmniScriptFields;
|
|
58
184
|
private getElementFields;
|
|
185
|
+
private getOmniScriptCompiledDefinitionObjectName;
|
|
59
186
|
private getOmniScriptDefinitionFields;
|
|
187
|
+
/**
|
|
188
|
+
* Prioritizes OmniScripts by name characteristics:
|
|
189
|
+
* - Clean names (alphanumeric only) are processed first
|
|
190
|
+
* - Names with special characters are processed after
|
|
191
|
+
* This avoids naming conflicts during migration when special characters are cleaned
|
|
192
|
+
*/
|
|
193
|
+
private prioritizeOmniscriptsWithoutSpecialCharacters;
|
|
194
|
+
/**
|
|
195
|
+
* Collects reserved keys found in PropertySet tagsToValidate
|
|
196
|
+
* @param propertySet - The PropertySet JSON object to validate
|
|
197
|
+
* @param foundReservedKeys - Set to collect found reserved keys
|
|
198
|
+
*/
|
|
199
|
+
private collectReservedKeys;
|
|
200
|
+
/**
|
|
201
|
+
* Collects DataRaptor transform bundle dependencies from PropertySet
|
|
202
|
+
* Handles: preTransformBundle, postTransformBundle, xmlPreTransformBundle, xmlPostTransformBundle,
|
|
203
|
+
* and remoteOptions.preTransformBundle, remoteOptions.postTransformBundle
|
|
204
|
+
* Used by: HTTP Action, Remote Action, Decision Matrix Action, Expression Set Action, PDF Action, Step
|
|
205
|
+
* @param propertySet - The PropertySet JSON object
|
|
206
|
+
* @param elemName - Element name for location tracking
|
|
207
|
+
* @param dependencyDR - Array to collect DataRaptor dependencies
|
|
208
|
+
* @param existingDataRaptorNames - Set of existing DataRaptor names
|
|
209
|
+
* @param missingDR - Array to collect missing DataRaptor names
|
|
210
|
+
*/
|
|
211
|
+
private collectTransformBundleDependencies;
|
|
212
|
+
/**
|
|
213
|
+
* Collects DataRaptor transform bundle dependencies from DocuSign Envelope Action
|
|
214
|
+
* Handles: docuSignTemplatesGroup[].transformBundle
|
|
215
|
+
* @param propertySet - The PropertySet JSON object
|
|
216
|
+
* @param elemName - Element name for location tracking
|
|
217
|
+
* @param dependencyDR - Array to collect DataRaptor dependencies
|
|
218
|
+
* @param existingDataRaptorNames - Set of existing DataRaptor names
|
|
219
|
+
* @param missingDR - Array to collect missing DataRaptor names
|
|
220
|
+
*/
|
|
221
|
+
private collectDocuSignBundleDependencies;
|
|
222
|
+
/**
|
|
223
|
+
* Collects DataRaptor transform bundle dependencies from DocuSign Signature Action
|
|
224
|
+
* Handles: docuSignTemplatesGroupSig[].transformBundle
|
|
225
|
+
* @param propertySet - The PropertySet JSON object
|
|
226
|
+
* @param elemName - Element name for location tracking
|
|
227
|
+
* @param dependencyDR - Array to collect DataRaptor dependencies
|
|
228
|
+
* @param existingDataRaptorNames - Set of existing DataRaptor names
|
|
229
|
+
* @param missingDR - Array to collect missing DataRaptor names
|
|
230
|
+
*/
|
|
231
|
+
private collectDocuSignSignatureBundleDependencies;
|
|
232
|
+
/**
|
|
233
|
+
* Collects DataRaptor transform bundle dependencies from OmniProcess PropertySetConfig persistentComponent array
|
|
234
|
+
* Handles: persistentComponent[].remoteOptions.preTransformBundle, persistentComponent[].remoteOptions.postTransformBundle,
|
|
235
|
+
* persistentComponent[].preTransformBundle, persistentComponent[].postTransformBundle
|
|
236
|
+
* @param omniscript - The OmniScript/Integration Procedure record
|
|
237
|
+
* @param dependencyDR - Array to collect DataRaptor dependencies
|
|
238
|
+
* @param existingDataRaptorNames - Set of existing DataRaptor names
|
|
239
|
+
* @param missingDR - Array to collect missing DataRaptor names
|
|
240
|
+
*/
|
|
241
|
+
private collectPersistentComponentBundleDependencies;
|
|
242
|
+
/**
|
|
243
|
+
* Reads the OmniScript's custom Lightning/Newport stylesheet references from
|
|
244
|
+
* PropertySetConfig and warns if the referenced StaticResource's CSS body
|
|
245
|
+
* still contains the org's managed-package namespace string. Such references
|
|
246
|
+
* won't resolve after migration and would silently break styling, so the
|
|
247
|
+
* caller escalates `migrationStatus` to 'Needs manual intervention' on a hit.
|
|
248
|
+
*
|
|
249
|
+
* Heavy lifting (StaticResource lookup, body fetch, zip extraction, scan,
|
|
250
|
+
* cache) lives in {@link CustomCssRegistry} so the same cache can later be
|
|
251
|
+
* shared with FlexCard assessment without re-querying the same resources.
|
|
252
|
+
*
|
|
253
|
+
* @param omniscript The OmniScript/IP record being assessed.
|
|
254
|
+
* @param warnings Warnings array on the in-progress OSAssessmentInfo (mutated).
|
|
255
|
+
* @returns `true` if at least one namespace-referencing stylesheet
|
|
256
|
+
* was found and a warning was pushed.
|
|
257
|
+
*/
|
|
258
|
+
private collectStylesheetNamespaceDependencies;
|
|
259
|
+
/**
|
|
260
|
+
* Detects elements that have a corrupted parent-child level hierarchy.
|
|
261
|
+
* In a valid OmniScript, a child element should always have a higher Level__c
|
|
262
|
+
* than its parent. When both parent and child are at the same level (typically level 0),
|
|
263
|
+
* it indicates data corruption that will cause elements to be lost during migration.
|
|
264
|
+
*
|
|
265
|
+
* @param elements - Array of element records queried from the OmniScript
|
|
266
|
+
* @returns Set of element names that have corrupted parent-child levels
|
|
267
|
+
*/
|
|
268
|
+
private detectCorruptedParentChildElements;
|
|
269
|
+
private getElementFieldKey;
|
|
270
|
+
private getFieldKey;
|
|
271
|
+
private getQueryNamespace;
|
|
272
|
+
getOmniscriptObjectName(): string;
|
|
273
|
+
private getElementObjectName;
|
|
60
274
|
private sleep;
|
|
61
275
|
}
|
|
62
276
|
export declare enum OmniScriptExportType {
|