@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
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpecialCharacterRecordCleanupService = void 0;
4
+ const query_1 = require("../query");
5
+ const recordPrioritization_1 = require("../recordPrioritization");
6
+ const logger_1 = require("../logger");
7
+ const net_1 = require("../net");
8
+ const stringContants_1 = require("../constants/stringContants");
9
+ const base_1 = require("../../migration/base");
10
+ // Fields checked per entity are aligned with the UniqueName (Config DeveloperName) derivation:
11
+ // OmniProcess: UniqueName = Type_SubType_Language_Version → check Type, SubType
12
+ // OmniUiCard: UniqueName = Name_AuthorName_Version → check Name, AuthorName
13
+ // OmniDataTransform: UniqueName = Name_Version → check Name
14
+ const ENTITY_CONFIGS = [
15
+ {
16
+ objectName: stringContants_1.Constants.OmniProcessObjectName,
17
+ entityName: stringContants_1.Constants.OmniScriptComponentName,
18
+ nameFieldsToCheck: ['Type', 'SubType'],
19
+ additionalLabelFields: ['Language'],
20
+ filters: new Map([['IsIntegrationProcedure', false]]),
21
+ buildLabel: (r) => {
22
+ var _a, _b, _c, _d;
23
+ return `Type: ${String((_a = r['Type']) !== null && _a !== void 0 ? _a : '')}, SubType: ${String((_b = r['SubType']) !== null && _b !== void 0 ? _b : '')}, Language: ${String((_c = r['Language']) !== null && _c !== void 0 ? _c : '')}, Version: ${String((_d = r['VersionNumber']) !== null && _d !== void 0 ? _d : '')}`;
24
+ },
25
+ },
26
+ {
27
+ objectName: stringContants_1.Constants.OmniProcessObjectName,
28
+ entityName: stringContants_1.Constants.IntegrationProcedureComponentName,
29
+ nameFieldsToCheck: ['Type', 'SubType'],
30
+ additionalLabelFields: ['Language'],
31
+ filters: new Map([['IsIntegrationProcedure', true]]),
32
+ buildLabel: (r) => {
33
+ var _a, _b, _c, _d;
34
+ return `Type: ${String((_a = r['Type']) !== null && _a !== void 0 ? _a : '')}, SubType: ${String((_b = r['SubType']) !== null && _b !== void 0 ? _b : '')}, Language: ${String((_c = r['Language']) !== null && _c !== void 0 ? _c : '')}, Version: ${String((_d = r['VersionNumber']) !== null && _d !== void 0 ? _d : '')}`;
35
+ },
36
+ },
37
+ {
38
+ objectName: stringContants_1.Constants.OmniUiCardObjectName,
39
+ entityName: stringContants_1.Constants.FlexCardComponentName,
40
+ nameFieldsToCheck: ['Name', 'AuthorName'],
41
+ buildLabel: (r) => {
42
+ var _a, _b, _c;
43
+ return `Name: ${String((_a = r['Name']) !== null && _a !== void 0 ? _a : '')}, AuthorName: ${String((_b = r['AuthorName']) !== null && _b !== void 0 ? _b : '')}, Version: ${String((_c = r['VersionNumber']) !== null && _c !== void 0 ? _c : '')}`;
44
+ },
45
+ },
46
+ {
47
+ objectName: stringContants_1.Constants.OmniDataTransformObjectName,
48
+ entityName: stringContants_1.Constants.DataMapperComponentName,
49
+ nameFieldsToCheck: ['Name'],
50
+ buildLabel: (r) => { var _a, _b; return `Name: ${String((_a = r['Name']) !== null && _a !== void 0 ? _a : '')}, Version: ${String((_b = r['VersionNumber']) !== null && _b !== void 0 ? _b : '')}`; },
51
+ },
52
+ ];
53
+ class SpecialCharacterRecordCleanupService {
54
+ // ux is accepted for API consistency with the rest of the codebase but not used directly —
55
+ // createProgressBar renders to stdout independently of the Ux wrapper.
56
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
57
+ constructor(connection, messages, _ux) {
58
+ this.connection = connection;
59
+ this.messages = messages;
60
+ }
61
+ /**
62
+ * Returns all records that would be deactivated and deleted per entity, without making any changes.
63
+ * Keys are entity names (e.g. "OmniScript"). Values are the raw records including all label fields.
64
+ */
65
+ async assess() {
66
+ logger_1.Logger.log(this.messages.getMessage('assessSpecialCharPhaseStart'));
67
+ const result = new Map();
68
+ for (const config of ENTITY_CONFIGS) {
69
+ logger_1.Logger.log(this.messages.getMessage('assessScanningEntity', [config.entityName]));
70
+ try {
71
+ const records = await this.getRecordsWithSpecialCharacters(config);
72
+ if (records.length > 0) {
73
+ logger_1.Logger.log(this.messages.getMessage('assessEntityFound', [records.length, config.entityName]));
74
+ }
75
+ else {
76
+ logger_1.Logger.log(this.messages.getMessage('assessEntityNone', [config.entityName]));
77
+ }
78
+ result.set(config.entityName, records);
79
+ }
80
+ catch (error) {
81
+ logger_1.Logger.error(this.messages.getMessage('errorAssessingSpecialCharRecords', [config.entityName, String(error)]));
82
+ result.set(config.entityName, []);
83
+ }
84
+ }
85
+ return result;
86
+ }
87
+ async deactivateAndDelete() {
88
+ logger_1.Logger.log(this.messages.getMessage('specialCharCleanupPhaseStart'));
89
+ for (const config of ENTITY_CONFIGS) {
90
+ try {
91
+ logger_1.Logger.log(this.messages.getMessage('specialCharCleanupSectionStart', [config.entityName]));
92
+ const records = await this.getRecordsWithSpecialCharacters(config);
93
+ if (records.length === 0) {
94
+ logger_1.Logger.log(this.messages.getMessage('noSpecialCharRecords', [config.entityName]));
95
+ continue;
96
+ }
97
+ logger_1.Logger.log(this.messages.getMessage('foundSpecialCharRecordsToRemove', [records.length, config.entityName]));
98
+ // Build a label map once so deactivation and deletion can both report human-readable identifiers
99
+ const idToLabel = new Map(records.map((r) => [r.Id, config.buildLabel(r)]));
100
+ const ids = Array.from(idToLabel.keys());
101
+ const activeIds = records.filter((r) => r.IsActive === true).map((r) => r.Id);
102
+ let failedDeactivateIds = new Set();
103
+ if (activeIds.length > 0) {
104
+ failedDeactivateIds = await this.deactivateRecords(config, activeIds, idToLabel);
105
+ await this.sleep();
106
+ }
107
+ // Skip records that failed deactivation to avoid attempting to delete still-active records
108
+ const idsToDelete = ids.filter((id) => !failedDeactivateIds.has(id));
109
+ await this.deleteRecords(config, idsToDelete, idToLabel);
110
+ }
111
+ catch (error) {
112
+ logger_1.Logger.error(this.messages.getMessage('errorRemovingSpecialCharRecords', [config.entityName, String(error)]));
113
+ }
114
+ }
115
+ }
116
+ async getRecordsWithSpecialCharacters(config) {
117
+ var _a;
118
+ // VersionNumber and additionalLabelFields are included so buildLabel can produce a complete identifier
119
+ const queryFields = [
120
+ 'Id',
121
+ 'IsActive',
122
+ 'VersionNumber',
123
+ ...config.nameFieldsToCheck,
124
+ ...((_a = config.additionalLabelFields) !== null && _a !== void 0 ? _a : []),
125
+ ];
126
+ const allRecords = await query_1.QueryTools.query(this.connection, config.objectName, queryFields, config.filters);
127
+ const results = [];
128
+ for (const record of allRecords) {
129
+ const hasSpecialChars = config.nameFieldsToCheck.some((field) => {
130
+ const value = String(record[field] || '');
131
+ return value && !(0, recordPrioritization_1.hasOnlyAlphanumericCharacters)(value);
132
+ });
133
+ if (hasSpecialChars) {
134
+ results.push(record);
135
+ }
136
+ }
137
+ return results;
138
+ }
139
+ async deactivateRecords(config, ids, idToLabel) {
140
+ var _a;
141
+ logger_1.Logger.log(this.messages.getMessage('deactivatingRecords', [ids.length, config.entityName]));
142
+ const bar = (0, base_1.createProgressBar)('Deactivating', config.entityName);
143
+ bar.start(ids.length, 0);
144
+ const failedIds = new Set();
145
+ // Deactivate one at a time to avoid UNKNOWN_ERROR on OmniProcess (matches existing migration pattern)
146
+ for (const id of ids) {
147
+ try {
148
+ await net_1.NetUtils.request(this.connection, `sobjects/${config.objectName}/${id}`, { IsActive: false }, net_1.RequestMethod.PATCH);
149
+ }
150
+ catch (error) {
151
+ const label = (_a = idToLabel.get(id)) !== null && _a !== void 0 ? _a : id;
152
+ logger_1.Logger.error(this.messages.getMessage('deactivationFailed', [config.entityName, label, String(error)]));
153
+ failedIds.add(id);
154
+ }
155
+ bar.increment();
156
+ }
157
+ bar.stop();
158
+ logger_1.Logger.log(this.messages.getMessage('deactivatedRecords', [ids.length - failedIds.size, config.entityName]));
159
+ return failedIds;
160
+ }
161
+ async deleteRecords(config, ids, idToLabel) {
162
+ var _a;
163
+ logger_1.Logger.log(this.messages.getMessage('deletingRecords', [ids.length, config.entityName]));
164
+ const bar = (0, base_1.createProgressBar)('Deleting', config.entityName);
165
+ bar.start(ids.length, 0);
166
+ // Delete one at a time using jsforce sobject delete to avoid ECONNRESET on composite/sobjects endpoint
167
+ for (const id of ids) {
168
+ try {
169
+ await this.connection.sobject(config.objectName).delete(id);
170
+ }
171
+ catch (error) {
172
+ const label = (_a = idToLabel.get(id)) !== null && _a !== void 0 ? _a : id;
173
+ logger_1.Logger.error(this.messages.getMessage('deletionFailed', [config.entityName, label, String(error)]));
174
+ }
175
+ bar.increment();
176
+ }
177
+ logger_1.Logger.log(this.messages.getMessage('deletedRecords', [ids.length, config.entityName]));
178
+ }
179
+ sleep() {
180
+ return new Promise((resolve) => {
181
+ setTimeout(resolve, 5000);
182
+ });
183
+ }
184
+ }
185
+ exports.SpecialCharacterRecordCleanupService = SpecialCharacterRecordCleanupService;
186
+ //# sourceMappingURL=SpecialCharacterRecordCleanupService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialCharacterRecordCleanupService.js","sourceRoot":"","sources":["../../../src/utils/config/SpecialCharacterRecordCleanupService.ts"],"names":[],"mappings":";;;AAGA,oCAAsC;AACtC,kEAAwE;AACxE,sCAAmC;AACnC,gCAAiD;AACjD,gEAAwD;AACxD,+CAAyD;AAazD,+FAA+F;AAC/F,6FAA6F;AAC7F,gGAAgG;AAChG,oFAAoF;AACpF,MAAM,cAAc,GAAmB;IACrC;QACE,UAAU,EAAE,0BAAS,CAAC,qBAAqB;QAC3C,UAAU,EAAE,0BAAS,CAAC,uBAAuB;QAC7C,iBAAiB,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;QACtC,qBAAqB,EAAE,CAAC,UAAU,CAAC;QACnC,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC,CAAC;QACrD,UAAU,EAAE,CAAC,CAAC,EAAU,EAAE;;YACxB,OAAA,SAAS,MAAM,CAAC,MAAA,CAAC,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC,cAAc,MAAM,CAAC,MAAA,CAAC,CAAC,SAAS,CAAC,mCAAI,EAAE,CAAC,eAAe,MAAM,CAC3F,MAAA,CAAC,CAAC,UAAU,CAAC,mCAAI,EAAE,CACpB,cAAc,MAAM,CAAC,MAAA,CAAC,CAAC,eAAe,CAAC,mCAAI,EAAE,CAAC,EAAE,CAAA;SAAA;KACpD;IACD;QACE,UAAU,EAAE,0BAAS,CAAC,qBAAqB;QAC3C,UAAU,EAAE,0BAAS,CAAC,iCAAiC;QACvD,iBAAiB,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;QACtC,qBAAqB,EAAE,CAAC,UAAU,CAAC;QACnC,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC,CAAC;QACpD,UAAU,EAAE,CAAC,CAAC,EAAU,EAAE;;YACxB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AAE,CAAC;gBACtC,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACtG,CAAC;YACD,GAAG,CAAC,SAAS,EAAE,CAAC;QAClB,CAAC;QAED,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC;IAEO,KAAK;QACX,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzJD,oFAyJC"}
@@ -1,11 +1,6 @@
1
1
  export declare const documentRegistry: {
2
- errorNoOrgResults: string;
3
- couldNotDeactivateOmniProcesses: string;
4
- couldNotTruncate: string;
5
- couldNotTruncateOmnniProcess: string;
6
- invalidNameTypeSubtypeOrLanguage: string;
2
+ customLwcReservedActionKey: string;
7
3
  invalidOrRepeatingOmniscriptElementNames: string;
8
- invalidDataRaptorName: string;
9
4
  duplicatedCardName: string;
10
5
  duplicatedDrName: string;
11
6
  duplicatedOSName: string;
@@ -13,24 +8,21 @@ export declare const documentRegistry: {
13
8
  errorWhileActivatingOs: string;
14
9
  errorWhileActivatingCard: string;
15
10
  errorWhileUploadingCard: string;
16
- errorWhileCreatingElements: string;
17
- allVersionsDescription: string;
18
- changeMessage: string;
19
11
  angularOSWarning: string;
20
12
  formulaSyntaxError: string;
21
13
  fileNoOmnistudioCalls: string;
22
- fileAlreadyImplementsCallable: string;
23
- inApexDrNameWillBeUpdated: string;
24
- fileUpdatedToAllowRemoteCalls: string;
25
- fileUpdatedToAllowCalls: string;
26
- fileImplementsVlocityOpenInterface: string;
27
- methodCallBundleNameUpdated: string;
28
14
  cardNameChangeMessage: string;
29
- authordNameChangeMessage: string;
30
15
  omniScriptNameChangeMessage: string;
31
16
  dataRaptorNameChangeMessage: string;
32
17
  integrationProcedureNameChangeMessage: string;
33
18
  integrationProcedureManualUpdateMessage: string;
34
19
  duplicateCardNameMessage: string;
35
- duplicateGlobalAutoNumberNameMessage: string;
20
+ reservedKeysFoundInPropertySet: string;
21
+ manualDeploymentSteps: string;
22
+ customLabelMigrationErrorMessage: string;
23
+ customCssStylesheetNamespaceWarningOmniScript: string;
24
+ customCssStylesheetNamespaceWarningFlexCard: string;
25
+ customCssInlineNamespaceWarning: string;
26
+ corruptedParentChildLevel: string;
27
+ vlocityActionNotSupportedMessage: string;
36
28
  };
@@ -2,13 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.documentRegistry = void 0;
4
4
  exports.documentRegistry = {
5
- errorNoOrgResults: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_get_moving_run_the_omnistudio_migration_tool.htm&type=5',
6
- couldNotDeactivateOmniProcesses: 'https://help.salesforce.com/s/articleView?id=ind.insurance_deactivate_and_activate_omniscripts_509999.htm&type=5',
7
- couldNotTruncate: 'https://help.salesforce.com/s/articleView?id=xcloud.os_embed_an_omniscript_in_another_omniscript_20581.htm&type=5',
8
- couldNotTruncateOmnniProcess: 'https://help.salesforce.com/s/articleView?id=xcloud.os_embed_an_omniscript_in_another_omniscript_20581.htm&type=5',
9
- invalidNameTypeSubtypeOrLanguage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
5
+ customLwcReservedActionKey: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
10
6
  invalidOrRepeatingOmniscriptElementNames: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
11
- invalidDataRaptorName: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
12
7
  duplicatedCardName: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
13
8
  duplicatedDrName: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
14
9
  duplicatedOSName: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
@@ -16,25 +11,22 @@ exports.documentRegistry = {
16
11
  errorWhileActivatingOs: 'https://help.salesforce.com/s/articleView?id=xcloud.os_activating_omniscripts.htm&type=5',
17
12
  errorWhileActivatingCard: 'https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5',
18
13
  errorWhileUploadingCard: 'https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5',
19
- errorWhileCreatingElements: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_element_reference.htm&type=5',
20
- allVersionsDescription: 'https://help.salesforce.com/s/articleView?id=release-notes.rn_omnistudio_migrate_all_versions.htm&release=248&type=5',
21
- changeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
22
14
  angularOSWarning: 'https://help.salesforce.com/s/articleView?id=xcloud.os_convert_an_angular_omniscript_to_an_lwc_omniscript.htm&type=5',
23
15
  formulaSyntaxError: 'https://help.salesforce.com/s/articleView?id=xcloud.os_formulas_and_functions_1.htm&type=5',
24
16
  fileNoOmnistudioCalls: 'https://help.salesforce.com/s/articleView?id=xcloud.os_callable_implementations.htm&type=5',
25
- fileAlreadyImplementsCallable: 'https://help.salesforce.com/s/articleView?id=xcloud.os_callable_implementations.htm&type=5',
26
- inApexDrNameWillBeUpdated: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_update_references_to_dataraptors_from_apex_after_migration.htm&type=5',
27
- fileUpdatedToAllowRemoteCalls: 'https://help.salesforce.com/s/articleView?id=xcloud.os_make_a_long_running_remote_call_using_omnistudio_omnicontinuation.htm&type=5',
28
- fileUpdatedToAllowCalls: 'https://help.salesforce.com/s/articleView?id=xcloud.os_make_a_long_running_remote_call_using_omnistudio_omnicontinuation.htm&type=5',
29
- fileImplementsVlocityOpenInterface: 'https://help.salesforce.com/s/articleView?id=ind.v_dev_t_vlocityopeninterface_657706.htm&type=5',
30
- methodCallBundleNameUpdated: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_update_omnistudio_custom_functions_after_migration.htm&type=5',
31
17
  cardNameChangeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
32
- authordNameChangeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
33
18
  omniScriptNameChangeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_omniscript_elements_with_overridden_components.htm&type=5',
34
19
  dataRaptorNameChangeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_update_references_to_dataraptors_from_apex_after_migration.htm&type=5',
35
20
  integrationProcedureNameChangeMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_update_references_to_dataraptors_from_apex_after_migration.htm&type=5',
36
21
  integrationProcedureManualUpdateMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_update_references_to_dataraptors_from_apex_after_migration.htm&type=5',
37
22
  duplicateCardNameMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_clone_a_flexcard.htm&type=5',
38
- duplicateGlobalAutoNumberNameMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
23
+ reservedKeysFoundInPropertySet: 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
24
+ manualDeploymentSteps: 'https://help.salesforce.com/s/articleView?id=xcloud.os_standard_set_up_your_environment_for_customizing_omniscript_elements.htm&type=5',
25
+ customLabelMigrationErrorMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_oma_prereq.htm&type=5',
26
+ customCssStylesheetNamespaceWarningOmniScript: 'https://help.salesforce.com/s/articleView?id=xcloud.os_style_omniscripts_18959.htm&type=5',
27
+ customCssStylesheetNamespaceWarningFlexCard: 'https://help.salesforce.com/s/articleView?id=xcloud.os_apply_custom_lightning_styles_to_a_specific_flexcard.htm&type=5',
28
+ customCssInlineNamespaceWarning: 'https://help.salesforce.com/s/articleView?id=xcloud.os_apply_custom_css_to_a_flexcard_element.htm&type=5',
29
+ corruptedParentChildLevel: 'https://help.salesforce.com/s/articleView?id=xcloud.os_version_omniscripts.htm&type=5',
30
+ vlocityActionNotSupportedMessage: 'https://help.salesforce.com/s/articleView?id=xcloud.os_add_an_action_to_a_flexcard_25672.htm&type=5',
39
31
  };
40
32
  //# sourceMappingURL=documentRegistry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"documentRegistry.js","sourceRoot":"","sources":["../../../src/utils/constants/documentRegistry.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,iBAAiB,EACf,wHAAwH;IAC1H,+BAA+B,EAC7B,kHAAkH;IACpH,gBAAgB,EACd,mHAAmH;IACrH,4BAA4B,EAC1B,mHAAmH;IACrH,gCAAgC,EAC9B,iGAAiG;IACnG,wCAAwC,EACtC,iGAAiG;IACnG,qBAAqB,EACnB,iGAAiG;IACnG,kBAAkB,EAAE,iGAAiG;IACrH,gBAAgB,EAAE,iGAAiG;IACnH,gBAAgB,EAAE,iGAAiG;IACnH,cAAc,EAAE,iGAAiG;IACjH,sBAAsB,EAAE,0FAA0F;IAClH,wBAAwB,EACtB,gHAAgH;IAClH,uBAAuB,EACrB,gHAAgH;IAClH,0BAA0B,EACxB,gGAAgG;IAClG,sBAAsB,EACpB,sHAAsH;IACxH,aAAa,EAAE,iGAAiG;IAChH,gBAAgB,EACd,sHAAsH;IACxH,kBAAkB,EAAE,4FAA4F;IAChH,qBAAqB,EAAE,4FAA4F;IACnH,6BAA6B,EAC3B,4FAA4F;IAC9F,yBAAyB,EACvB,sIAAsI;IACxI,6BAA6B,EAC3B,qIAAqI;IACvI,uBAAuB,EACrB,qIAAqI;IACvI,kCAAkC,EAChC,iGAAiG;IACnG,2BAA2B,EACzB,8HAA8H;IAChI,qBAAqB,EACnB,iGAAiG;IACnG,wBAAwB,EACtB,iGAAiG;IACnG,2BAA2B,EACzB,0HAA0H;IAC5H,2BAA2B,EACzB,sIAAsI;IACxI,qCAAqC,EACnC,sIAAsI;IACxI,uCAAuC,EACrC,sIAAsI;IACxI,wBAAwB,EAAE,oFAAoF;IAC9G,oCAAoC,EAClC,iGAAiG;CACpG,CAAC"}
1
+ {"version":3,"file":"documentRegistry.js","sourceRoot":"","sources":["../../../src/utils/constants/documentRegistry.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,0BAA0B,EACxB,iGAAiG;IACnG,wCAAwC,EACtC,iGAAiG;IACnG,kBAAkB,EAAE,iGAAiG;IACrH,gBAAgB,EAAE,iGAAiG;IACnH,gBAAgB,EAAE,iGAAiG;IACnH,cAAc,EAAE,iGAAiG;IACjH,sBAAsB,EAAE,0FAA0F;IAClH,wBAAwB,EACtB,gHAAgH;IAClH,uBAAuB,EACrB,gHAAgH;IAClH,gBAAgB,EACd,sHAAsH;IACxH,kBAAkB,EAAE,4FAA4F;IAChH,qBAAqB,EAAE,4FAA4F;IACnH,qBAAqB,EACnB,iGAAiG;IACnG,2BAA2B,EACzB,0HAA0H;IAC5H,2BAA2B,EACzB,sIAAsI;IACxI,qCAAqC,EACnC,sIAAsI;IACxI,uCAAuC,EACrC,sIAAsI;IACxI,wBAAwB,EAAE,oFAAoF;IAC9G,8BAA8B,EAC5B,iGAAiG;IACnG,qBAAqB,EACnB,wIAAwI;IAC1I,gCAAgC,EAC9B,sFAAsF;IACxF,6CAA6C,EAC3C,2FAA2F;IAC7F,2CAA2C,EACzC,wHAAwH;IAC1H,+BAA+B,EAC7B,0GAA0G;IAC5G,yBAAyB,EAAE,uFAAuF;IAClH,gCAAgC,EAC9B,qGAAqG;CACxG,CAAC"}
@@ -4,6 +4,8 @@ export declare const Constants: {
4
4
  IntegrationProcedure: string;
5
5
  DataMapper: string;
6
6
  GlobalAutoNumber: string;
7
+ CustomLabel: string;
8
+ SaveForLater: string;
7
9
  LWC: string;
8
10
  Apex: string;
9
11
  FlexiPage: string;
@@ -19,4 +21,80 @@ export declare const Constants: {
19
21
  GlobalAutoNumberComponentName: string;
20
22
  GlobalAutoNumberPluralName: string;
21
23
  ApexRemoteComponentName: string;
24
+ LWCComponentName: string;
25
+ ApexComponentName: string;
26
+ CustomLabelComponentName: string;
27
+ CustomLabelPluralName: string;
28
+ CustomDataModel: string;
29
+ StandardDataModel: string;
30
+ DataMapperComponentName: string;
31
+ Flyout: string;
32
+ ChildCard: string;
33
+ ChildCardPreview: string;
34
+ CustomLwc: string;
35
+ OmniFlyout: string;
36
+ DataAction: string;
37
+ CardAction: string;
38
+ CustomActionType: string;
39
+ WebPageTargetType: string;
40
+ OmniScriptUniversalPagePath: string;
41
+ OmniScriptUniversalPageToken: string;
42
+ OmniScriptTypeParam: string;
43
+ OmniScriptSubTypeParam: string;
44
+ OmniScriptLangParam: string;
45
+ OmniScriptLayoutParam: string;
46
+ OmniScriptStandardTypeParam: string;
47
+ OmniScriptStandardSubTypeParam: string;
48
+ OmniScriptStandardLanguageParam: string;
49
+ OmniScriptStandardThemeParam: string;
50
+ OmniScriptStandardPagePath: string;
51
+ IntegrationProcedureAction: string;
52
+ DataRaptorTurboAction: string;
53
+ DataRaptorTransformAction: string;
54
+ DataRaptorPostAction: string;
55
+ DataRaptorExtractAction: string;
56
+ DocuSignEnvelopeAction: string;
57
+ DocuSignSignatureAction: string;
58
+ DecisionMatrixAction: string;
59
+ ExpressionSetAction: string;
60
+ HTTPAction: string;
61
+ PDFAction: string;
62
+ RemoteAction: string;
63
+ StepElement: string;
64
+ CustomLightningWebComponent: string;
65
+ NavigateAction: string;
66
+ VlocityAction: string;
67
+ AssessmentReportsFolderName: string;
68
+ MigrationReportsFolderName: string;
69
+ CustomLabelAssessmentCsvFileName: string;
70
+ CustomLabelMigrationCsvFileName: string;
71
+ CustomLabelInvalidStatuses: string[];
72
+ CustomLabelErrorStatus: string;
73
+ CustomLabelDuplicateStatus: string;
74
+ CustomLabelSameValueMessage: string;
75
+ FoundationPackageName: string;
76
+ On: string;
77
+ Off: string;
78
+ AttachmentObjectName: string;
79
+ OmniProcessObjectName: string;
80
+ OmniUiCardObjectName: string;
81
+ OmniDataTransformObjectName: string;
82
+ OmniscriptObjectName: string;
83
+ OmniScriptInstanceObjectName: string;
84
+ OmniScriptSavedSessionObjectName: string;
85
+ OmniScriptConfigTable: string;
86
+ OmniIntegrationProcConfigTable: string;
87
+ OmniDataTransformConfigTable: string;
88
+ OmniUiCardConfigTable: string;
89
+ OmniScriptSavedSessionsDisplayName: string;
90
+ };
91
+ export declare const Status: {
92
+ Complete: string;
93
+ Failed: string;
94
+ ManualDeploymentNeeded: string;
95
+ NeedsManualIntervention: string;
96
+ ReadyForMigration: string;
97
+ Skipped: string;
98
+ SuccessfullyCompleted: string;
99
+ SuccessfullyMigrated: string;
22
100
  };
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Constants = void 0;
3
+ exports.Status = exports.Constants = void 0;
4
4
  exports.Constants = {
5
5
  // short form of the omni components
6
6
  Omniscript: 'os',
7
7
  Flexcard: 'fc',
8
8
  IntegrationProcedure: 'ip',
9
- DataMapper: 'dr',
9
+ DataMapper: 'dm',
10
10
  GlobalAutoNumber: 'autonumber',
11
+ CustomLabel: 'cl',
12
+ SaveForLater: 'sfl',
11
13
  LWC: 'lwc',
12
14
  Apex: 'apex',
13
15
  FlexiPage: 'flexipage',
@@ -16,13 +18,98 @@ exports.Constants = {
16
18
  OmniScriptComponentName: 'OmniScript',
17
19
  OmniScriptPluralName: 'OmniScripts',
18
20
  FlexCardComponentName: 'Flexcard',
19
- FlexCardPluralName: 'FlexCards',
21
+ FlexCardPluralName: 'Flexcards',
20
22
  IntegrationProcedureComponentName: 'IntegrationProcedure',
21
23
  IntegrationProcedurePluralName: 'IntegrationProcedures',
22
24
  DataRaptorComponentName: 'DataRaptor',
23
25
  DataRaptorPluralName: 'DataRaptors',
24
- GlobalAutoNumberComponentName: 'GlobalAutoNumber',
26
+ GlobalAutoNumberComponentName: 'Omni Global Auto Number',
25
27
  GlobalAutoNumberPluralName: 'GlobalAutoNumbers',
26
28
  ApexRemoteComponentName: 'ApexRemote',
29
+ LWCComponentName: 'Lightning Web Component',
30
+ ApexComponentName: 'Apex Classes',
31
+ CustomLabelComponentName: 'Custom Label',
32
+ CustomLabelPluralName: 'Custom Labels',
33
+ CustomDataModel: 'custom',
34
+ StandardDataModel: 'standard',
35
+ DataMapperComponentName: 'Data Mapper',
36
+ Flyout: 'Flyout',
37
+ ChildCard: 'childCard',
38
+ ChildCardPreview: 'childCardPreview',
39
+ CustomLwc: 'customLwc',
40
+ OmniFlyout: 'omni-flyout',
41
+ DataAction: 'DataAction',
42
+ CardAction: 'cardAction',
43
+ // FlexCard "Custom Web Page" navigation action targeting an OmniScript Universal Page
44
+ CustomActionType: 'Custom',
45
+ WebPageTargetType: 'Web Page',
46
+ OmniScriptUniversalPagePath: '/apex',
47
+ OmniScriptUniversalPageToken: 'OmniScriptUniversalPage',
48
+ OmniScriptTypeParam: 'OmniScriptType',
49
+ OmniScriptSubTypeParam: 'OmniScriptSubType',
50
+ OmniScriptLangParam: 'OmniScriptLang',
51
+ OmniScriptLayoutParam: 'layout',
52
+ OmniScriptStandardTypeParam: 'omniscript__type',
53
+ OmniScriptStandardSubTypeParam: 'omniscript__subType',
54
+ OmniScriptStandardLanguageParam: 'omniscript__language',
55
+ OmniScriptStandardThemeParam: 'omniscript__theme',
56
+ OmniScriptStandardPagePath: '/lightning/page/omnistudio/omniscript',
57
+ // OmniScript element/action type constants
58
+ IntegrationProcedureAction: 'Integration Procedure Action',
59
+ DataRaptorTurboAction: 'DataRaptor Turbo Action',
60
+ DataRaptorTransformAction: 'DataRaptor Transform Action',
61
+ DataRaptorPostAction: 'DataRaptor Post Action',
62
+ DataRaptorExtractAction: 'DataRaptor Extract Action',
63
+ DocuSignEnvelopeAction: 'DocuSign Envelope Action',
64
+ DocuSignSignatureAction: 'DocuSign Signature Action',
65
+ DecisionMatrixAction: 'Matrix Action',
66
+ ExpressionSetAction: 'Calculation Action',
67
+ HTTPAction: 'Rest Action',
68
+ PDFAction: 'PDF Action',
69
+ RemoteAction: 'Remote Action',
70
+ StepElement: 'Step',
71
+ CustomLightningWebComponent: 'Custom Lightning Web Component',
72
+ NavigateAction: 'Navigate Action',
73
+ VlocityAction: 'Vlocity Action',
74
+ // artifacts persistance folder names
75
+ AssessmentReportsFolderName: 'assessment_reports',
76
+ MigrationReportsFolderName: 'migration_report',
77
+ CustomLabelAssessmentCsvFileName: 'customlabel_assessment_export.csv',
78
+ CustomLabelMigrationCsvFileName: 'customlabel_migration_export.csv',
79
+ // custom label migration status constants
80
+ CustomLabelInvalidStatuses: ['error', 'duplicate'],
81
+ CustomLabelErrorStatus: 'error',
82
+ CustomLabelDuplicateStatus: 'duplicate',
83
+ CustomLabelSameValueMessage: 'same value',
84
+ // Package constants
85
+ FoundationPackageName: 'omnistudio',
86
+ // Generic Constants
87
+ On: 'on',
88
+ Off: 'off',
89
+ // SObject API names
90
+ AttachmentObjectName: 'Attachment',
91
+ OmniProcessObjectName: 'OmniProcess',
92
+ OmniUiCardObjectName: 'OmniUiCard',
93
+ OmniDataTransformObjectName: 'OmniDataTransform',
94
+ OmniscriptObjectName: 'OmniScript__c',
95
+ OmniScriptInstanceObjectName: 'OmniScriptInstance__c',
96
+ OmniScriptSavedSessionObjectName: 'OmniScriptSavedSession',
97
+ // Config table names
98
+ OmniScriptConfigTable: 'OmniScriptConfig',
99
+ OmniIntegrationProcConfigTable: 'OmniIntegrationProcConfig',
100
+ OmniDataTransformConfigTable: 'OmniDataTransformConfig',
101
+ OmniUiCardConfigTable: 'OmniUiCardConfig',
102
+ // Display names
103
+ OmniScriptSavedSessionsDisplayName: 'OmniScript Saved Sessions',
104
+ };
105
+ exports.Status = {
106
+ Complete: 'Complete',
107
+ Failed: 'Failed',
108
+ ManualDeploymentNeeded: 'Manual deployment needed',
109
+ NeedsManualIntervention: 'Needs manual intervention',
110
+ ReadyForMigration: 'Ready for migration',
111
+ Skipped: 'Skipped',
112
+ SuccessfullyCompleted: 'Successfully Completed',
113
+ SuccessfullyMigrated: 'Successfully migrated',
27
114
  };
28
115
  //# sourceMappingURL=stringContants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stringContants.js","sourceRoot":"","sources":["../../../src/utils/constants/stringContants.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,oCAAoC;IACpC,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,IAAI;IACd,oBAAoB,EAAE,IAAI;IAC1B,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,YAAY;IAC9B,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IAEpB,mCAAmC;IACnC,uBAAuB,EAAE,YAAY;IACrC,oBAAoB,EAAE,aAAa;IACnC,qBAAqB,EAAE,UAAU;IACjC,kBAAkB,EAAE,WAAW;IAC/B,iCAAiC,EAAE,sBAAsB;IACzD,8BAA8B,EAAE,uBAAuB;IACvD,uBAAuB,EAAE,YAAY;IACrC,oBAAoB,EAAE,aAAa;IACnC,6BAA6B,EAAE,kBAAkB;IACjD,0BAA0B,EAAE,mBAAmB;IAC/C,uBAAuB,EAAE,YAAY;CACtC,CAAC"}
1
+ {"version":3,"file":"stringContants.js","sourceRoot":"","sources":["../../../src/utils/constants/stringContants.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,oCAAoC;IACpC,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D,4BAA4B,EAAE,yBAAyB;IACvD,qBAAqB,EAAE,kBAAkB;IAEzC,gBAAgB;IAChB,kCAAkC,EAAE,2BAA2B;CAChE,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,0BAA0B;IAClD,uBAAuB,EAAE,2BAA2B;IACpD,iBAAiB,EAAE,qBAAqB;IACxC,OAAO,EAAE,SAAS;IAClB,qBAAqB,EAAE,wBAAwB;IAC/C,oBAAoB,EAAE,uBAAuB;CAC9C,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { Connection, Messages } from '@salesforce/core';
2
+ export interface ExternalStringRecord {
3
+ Id: string;
4
+ Name: string;
5
+ NamespacePrefix: string;
6
+ Value: string;
7
+ }
8
+ export interface CustomLabelAssessmentInfo {
9
+ name: string;
10
+ value: string;
11
+ id: string;
12
+ namespace: string;
13
+ assessmentStatus: string;
14
+ packageId?: string;
15
+ packageValue?: string;
16
+ coreId?: string;
17
+ coreValue?: string;
18
+ summary?: string;
19
+ }
20
+ export interface CustomLabelStatistics {
21
+ totalLabels: number;
22
+ readyForMigration: number;
23
+ needManualIntervention: number;
24
+ warnings: number;
25
+ failed: number;
26
+ }
27
+ export interface CustomLabelResult {
28
+ labels: CustomLabelAssessmentInfo[];
29
+ allLabels: CustomLabelAssessmentInfo[];
30
+ statistics: CustomLabelStatistics;
31
+ }
32
+ export declare class CustomLabelsUtil {
33
+ static fetchCustomLabels(connection: Connection, namespace: string, messages: Messages<string>): Promise<CustomLabelResult>;
34
+ private static fetchExternalStringsFromTooling;
35
+ }