@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.
Files changed (252) hide show
  1. package/README.md +165 -73
  2. package/lib/commands/omnistudio/migration/assess.d.ts +23 -15
  3. package/lib/commands/omnistudio/migration/assess.js +250 -89
  4. package/lib/commands/omnistudio/migration/assess.js.map +1 -1
  5. package/lib/commands/omnistudio/migration/clean.d.ts +13 -0
  6. package/lib/commands/omnistudio/migration/clean.js +162 -0
  7. package/lib/commands/omnistudio/migration/clean.js.map +1 -0
  8. package/lib/commands/omnistudio/migration/info.d.ts +10 -16
  9. package/lib/commands/omnistudio/migration/info.js +53 -35
  10. package/lib/commands/omnistudio/migration/info.js.map +1 -1
  11. package/lib/commands/omnistudio/migration/migrate.d.ts +78 -18
  12. package/lib/commands/omnistudio/migration/migrate.js +461 -175
  13. package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
  14. package/lib/error/deploymentErrors.d.ts +15 -0
  15. package/lib/error/deploymentErrors.js +35 -0
  16. package/lib/error/deploymentErrors.js.map +1 -0
  17. package/lib/error/errorInterfaces.d.ts +5 -0
  18. package/lib/error/errorInterfaces.js +9 -1
  19. package/lib/error/errorInterfaces.js.map +1 -1
  20. package/lib/javascripts/reportGeneratorUtility.js +585 -22
  21. package/lib/migration/ApexNamespaceRegistry.d.ts +49 -0
  22. package/lib/migration/ApexNamespaceRegistry.js +130 -0
  23. package/lib/migration/ApexNamespaceRegistry.js.map +1 -0
  24. package/lib/migration/CustomCssRegistry.d.ts +117 -0
  25. package/lib/migration/CustomCssRegistry.js +234 -0
  26. package/lib/migration/CustomCssRegistry.js.map +1 -0
  27. package/lib/migration/NameMappingRegistry.d.ts +134 -0
  28. package/lib/migration/NameMappingRegistry.js +411 -0
  29. package/lib/migration/NameMappingRegistry.js.map +1 -0
  30. package/lib/migration/base.d.ts +8 -6
  31. package/lib/migration/base.js +25 -8
  32. package/lib/migration/base.js.map +1 -1
  33. package/lib/migration/customLabels.d.ts +70 -0
  34. package/lib/migration/customLabels.js +177 -0
  35. package/lib/migration/customLabels.js.map +1 -0
  36. package/lib/migration/dataraptor.d.ts +13 -0
  37. package/lib/migration/dataraptor.js +205 -80
  38. package/lib/migration/dataraptor.js.map +1 -1
  39. package/lib/migration/deployer.d.ts +14 -0
  40. package/lib/migration/deployer.js +105 -0
  41. package/lib/migration/deployer.js.map +1 -0
  42. package/lib/migration/flexcard.d.ts +256 -6
  43. package/lib/migration/flexcard.js +1808 -268
  44. package/lib/migration/flexcard.js.map +1 -1
  45. package/lib/migration/globalautonumber.d.ts +8 -8
  46. package/lib/migration/globalautonumber.js +49 -24
  47. package/lib/migration/globalautonumber.js.map +1 -1
  48. package/lib/migration/interfaces.d.ts +14 -0
  49. package/lib/migration/interfaces.js.map +1 -1
  50. package/lib/migration/metadataobjnamecheck.js.map +1 -1
  51. package/lib/migration/omniscript.d.ts +218 -4
  52. package/lib/migration/omniscript.js +1709 -247
  53. package/lib/migration/omniscript.js.map +1 -1
  54. package/lib/migration/omniscriptInstance.d.ts +90 -0
  55. package/lib/migration/omniscriptInstance.js +755 -0
  56. package/lib/migration/omniscriptInstance.js.map +1 -0
  57. package/lib/migration/postMigrate.d.ts +20 -4
  58. package/lib/migration/postMigrate.js +199 -12
  59. package/lib/migration/postMigrate.js.map +1 -1
  60. package/lib/migration/premigrate.d.ts +51 -0
  61. package/lib/migration/premigrate.js +325 -0
  62. package/lib/migration/premigrate.js.map +1 -0
  63. package/lib/migration/related/ApexMigration.d.ts +3 -0
  64. package/lib/migration/related/ApexMigration.js +222 -56
  65. package/lib/migration/related/ApexMigration.js.map +1 -1
  66. package/lib/migration/related/ExperienceSiteMigration.d.ts +30 -5
  67. package/lib/migration/related/ExperienceSiteMigration.js +263 -73
  68. package/lib/migration/related/ExperienceSiteMigration.js.map +1 -1
  69. package/lib/migration/related/FlexipageMigration.d.ts +5 -5
  70. package/lib/migration/related/FlexipageMigration.js +60 -38
  71. package/lib/migration/related/FlexipageMigration.js.map +1 -1
  72. package/lib/migration/related/LwcMigration.js +45 -26
  73. package/lib/migration/related/LwcMigration.js.map +1 -1
  74. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +48 -32
  75. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
  76. package/lib/styles/reportGenerator.css +241 -16
  77. package/lib/templates/assessmentReport.template +78 -8
  78. package/lib/templates/dashboard.template +86 -57
  79. package/lib/templates/migrationReport.template +151 -0
  80. package/lib/utils/OmnistudioSettingsPrefManager.d.ts +14 -0
  81. package/lib/utils/OmnistudioSettingsPrefManager.js +112 -0
  82. package/lib/utils/OmnistudioSettingsPrefManager.js.map +1 -0
  83. package/lib/utils/XMLUtil.js +2 -1
  84. package/lib/utils/XMLUtil.js.map +1 -1
  85. package/lib/utils/apex/executor/AnonymousApexRunner.d.ts +1 -1
  86. package/lib/utils/apex/parser/apexparser.d.ts +8 -1
  87. package/lib/utils/apex/parser/apexparser.js +79 -13
  88. package/lib/utils/apex/parser/apexparser.js.map +1 -1
  89. package/lib/utils/config/ExistingRecordCleanupService.d.ts +30 -0
  90. package/lib/utils/config/ExistingRecordCleanupService.js +266 -0
  91. package/lib/utils/config/ExistingRecordCleanupService.js.map +1 -0
  92. package/lib/utils/config/OmniStudioMetadataCleanupService.d.ts +36 -0
  93. package/lib/utils/config/OmniStudioMetadataCleanupService.js +123 -0
  94. package/lib/utils/config/OmniStudioMetadataCleanupService.js.map +1 -0
  95. package/lib/utils/config/SpecialCharacterRecordCleanupService.d.ts +17 -0
  96. package/lib/utils/config/SpecialCharacterRecordCleanupService.js +186 -0
  97. package/lib/utils/config/SpecialCharacterRecordCleanupService.js.map +1 -0
  98. package/lib/utils/constants/documentRegistry.d.ts +9 -17
  99. package/lib/utils/constants/documentRegistry.js +9 -17
  100. package/lib/utils/constants/documentRegistry.js.map +1 -1
  101. package/lib/utils/constants/stringContants.d.ts +78 -0
  102. package/lib/utils/constants/stringContants.js +91 -4
  103. package/lib/utils/constants/stringContants.js.map +1 -1
  104. package/lib/utils/customLabels.d.ts +35 -0
  105. package/lib/utils/customLabels.js +100 -0
  106. package/lib/utils/customLabels.js.map +1 -0
  107. package/lib/utils/dataModelService.d.ts +18 -0
  108. package/lib/utils/dataModelService.js +72 -0
  109. package/lib/utils/dataModelService.js.map +1 -0
  110. package/lib/utils/file/fileUtil.d.ts +3 -1
  111. package/lib/utils/file/fileUtil.js +30 -13
  112. package/lib/utils/file/fileUtil.js.map +1 -1
  113. package/lib/utils/flexipage/flexiPageTransformer.js +119 -23
  114. package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -1
  115. package/lib/utils/formula/FormulaUtil.d.ts +1 -1
  116. package/lib/utils/formula/FormulaUtil.js +17 -9
  117. package/lib/utils/formula/FormulaUtil.js.map +1 -1
  118. package/lib/utils/formula/Stack.js.map +1 -1
  119. package/lib/utils/generatePackageXml.d.ts +6 -2
  120. package/lib/utils/generatePackageXml.js +73 -33
  121. package/lib/utils/generatePackageXml.js.map +1 -1
  122. package/lib/utils/index.d.ts +1 -0
  123. package/lib/utils/index.js +1 -0
  124. package/lib/utils/index.js.map +1 -1
  125. package/lib/utils/interfaces.d.ts +69 -8
  126. package/lib/utils/json/jsonutil.js.map +1 -1
  127. package/lib/utils/logger/fileLogger.js +17 -7
  128. package/lib/utils/logger/fileLogger.js.map +1 -1
  129. package/lib/utils/logger.d.ts +3 -3
  130. package/lib/utils/logger.js +10 -6
  131. package/lib/utils/logger.js.map +1 -1
  132. package/lib/utils/logging/debugtimer.js.map +1 -1
  133. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +30 -22
  134. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
  135. package/lib/utils/lwcparser/fileutils/FileProcessorFactory.js.map +1 -1
  136. package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js.map +1 -1
  137. package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js.map +1 -1
  138. package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js.map +1 -1
  139. package/lib/utils/lwcparser/htmlParser/HTMLParser.js +29 -10
  140. package/lib/utils/lwcparser/htmlParser/HTMLParser.js.map +1 -1
  141. package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +29 -11
  142. package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
  143. package/lib/utils/lwcparser/xmlParser/XmlParser.js +19 -8
  144. package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
  145. package/lib/utils/net/index.d.ts +5 -0
  146. package/lib/utils/net/index.js +40 -2
  147. package/lib/utils/net/index.js.map +1 -1
  148. package/lib/utils/omniscriptPackageManager.d.ts +31 -0
  149. package/lib/utils/omniscriptPackageManager.js +215 -0
  150. package/lib/utils/omniscriptPackageManager.js.map +1 -0
  151. package/lib/utils/orgPreferences.d.ts +25 -0
  152. package/lib/utils/orgPreferences.js +124 -8
  153. package/lib/utils/orgPreferences.js.map +1 -1
  154. package/lib/utils/orgUtils/index.d.ts +12 -5
  155. package/lib/utils/orgUtils/index.js +52 -22
  156. package/lib/utils/orgUtils/index.js.map +1 -1
  157. package/lib/utils/projectPathUtil.d.ts +1 -1
  158. package/lib/utils/projectPathUtil.js +27 -10
  159. package/lib/utils/projectPathUtil.js.map +1 -1
  160. package/lib/utils/promptUtil.d.ts +11 -1
  161. package/lib/utils/promptUtil.js +92 -0
  162. package/lib/utils/promptUtil.js.map +1 -1
  163. package/lib/utils/query/index.d.ts +1 -0
  164. package/lib/utils/query/index.js +18 -1
  165. package/lib/utils/query/index.js.map +1 -1
  166. package/lib/utils/recordPrioritization.d.ts +44 -0
  167. package/lib/utils/recordPrioritization.js +69 -0
  168. package/lib/utils/recordPrioritization.js.map +1 -0
  169. package/lib/utils/reportGenerator/reportInterfaces.d.ts +12 -0
  170. package/lib/utils/reportGenerator/reportUtil.d.ts +6 -1
  171. package/lib/utils/reportGenerator/reportUtil.js +22 -7
  172. package/lib/utils/reportGenerator/reportUtil.js.map +1 -1
  173. package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +1 -0
  174. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +40 -17
  175. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
  176. package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.d.ts +13 -0
  177. package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js +179 -0
  178. package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js.map +1 -0
  179. package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.d.ts +27 -0
  180. package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js +262 -0
  181. package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js.map +1 -0
  182. package/lib/utils/resultsbuilder/DRAssessmentReporter.js +38 -70
  183. package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
  184. package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +14 -0
  185. package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +143 -0
  186. package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
  187. package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +46 -85
  188. package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
  189. package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +1 -0
  190. package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +37 -19
  191. package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -1
  192. package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js +22 -14
  193. package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js.map +1 -1
  194. package/lib/utils/resultsbuilder/IPAssessmentReporter.js +38 -71
  195. package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
  196. package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +14 -0
  197. package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +143 -139
  198. package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -1
  199. package/lib/utils/resultsbuilder/OSAssessmentReporter.js +41 -88
  200. package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
  201. package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.d.ts +12 -0
  202. package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js +109 -0
  203. package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js.map +1 -0
  204. package/lib/utils/resultsbuilder/assessmentReporter.d.ts +16 -6
  205. package/lib/utils/resultsbuilder/assessmentReporter.js +96 -152
  206. package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
  207. package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.d.ts +104 -0
  208. package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js +380 -0
  209. package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js.map +1 -0
  210. package/lib/utils/resultsbuilder/index.d.ts +37 -1
  211. package/lib/utils/resultsbuilder/index.js +582 -151
  212. package/lib/utils/resultsbuilder/index.js.map +1 -1
  213. package/lib/utils/resultsbuilder/reportingHelper.d.ts +2 -7
  214. package/lib/utils/resultsbuilder/reportingHelper.js +0 -43
  215. package/lib/utils/resultsbuilder/reportingHelper.js.map +1 -1
  216. package/lib/utils/sfcli/project/sfProject.d.ts +29 -0
  217. package/lib/utils/sfcli/project/sfProject.js +220 -2
  218. package/lib/utils/sfcli/project/sfProject.js.map +1 -1
  219. package/lib/utils/shell/cli.js +20 -14
  220. package/lib/utils/shell/cli.js.map +1 -1
  221. package/lib/utils/storageUtil.d.ts +14 -1
  222. package/lib/utils/storageUtil.js +31 -1
  223. package/lib/utils/storageUtil.js.map +1 -1
  224. package/lib/utils/stringUtils.d.ts +24 -0
  225. package/lib/utils/stringUtils.js +76 -9
  226. package/lib/utils/stringUtils.js.map +1 -1
  227. package/lib/utils/templateParser/__tests__/test.js +1 -2
  228. package/lib/utils/templateParser/__tests__/test.js.map +1 -1
  229. package/lib/utils/templateParser/generate.d.ts +1 -1
  230. package/lib/utils/templateParser/generate.js.map +1 -1
  231. package/lib/utils/templateParser/model/elementNode.d.ts +2 -2
  232. package/lib/utils/templateParser/model/elementNode.js +11 -2
  233. package/lib/utils/templateParser/model/elementNode.js.map +1 -1
  234. package/lib/utils/templateParser/model/nodeTypes.js +1 -1
  235. package/lib/utils/templateParser/model/nodeTypes.js.map +1 -1
  236. package/lib/utils/templateParser/util.d.ts +2 -2
  237. package/lib/utils/templateParser/util.js.map +1 -1
  238. package/lib/utils/validatorService.d.ts +14 -0
  239. package/lib/utils/validatorService.js +136 -0
  240. package/lib/utils/validatorService.js.map +1 -0
  241. package/messages/assess.json +220 -103
  242. package/messages/clean.json +40 -0
  243. package/messages/info.json +2 -1
  244. package/messages/migrate.json +314 -102
  245. package/oclif.manifest.json +1 -1
  246. package/package.json +49 -13
  247. package/lib/commands/basecommand.d.ts +0 -8
  248. package/lib/commands/basecommand.js +0 -13
  249. package/lib/commands/basecommand.js.map +0 -1
  250. package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +0 -40
  251. package/lib/utils/OmniGlobalAutoNumberPrefManager.js +0 -65
  252. 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 { UX } from '@salesforce/command';
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, ux: UX, allVersions: boolean);
20
- getName(): string;
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 addToAssessmentStorage;
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 {