@salesforce/plugin-omnistudio-migration-tool 1.4.1-dev.21 → 1.4.1-dev.22

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 (82) hide show
  1. package/README.md +19 -5
  2. package/lib/commands/omnistudio/migration/__tests__/assess.test.d.ts +1 -0
  3. package/lib/commands/omnistudio/migration/__tests__/assess.test.js +419 -0
  4. package/lib/commands/omnistudio/migration/__tests__/assess.test.js.map +1 -0
  5. package/lib/commands/omnistudio/migration/assess.d.ts +5 -0
  6. package/lib/commands/omnistudio/migration/assess.js +84 -27
  7. package/lib/commands/omnistudio/migration/assess.js.map +1 -1
  8. package/lib/commands/omnistudio/migration/migrate.d.ts +0 -1
  9. package/lib/commands/omnistudio/migration/migrate.js +19 -16
  10. package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
  11. package/lib/migration/dataraptor.js +3 -1
  12. package/lib/migration/dataraptor.js.map +1 -1
  13. package/lib/migration/omniscript.js +13 -2
  14. package/lib/migration/omniscript.js.map +1 -1
  15. package/lib/migration/related/ApexMigration.d.ts +1 -1
  16. package/lib/migration/related/ApexMigration.js +7 -6
  17. package/lib/migration/related/ApexMigration.js.map +1 -1
  18. package/lib/migration/related/LwcMigration.js +6 -5
  19. package/lib/migration/related/LwcMigration.js.map +1 -1
  20. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.d.ts +12 -8
  21. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +44 -58
  22. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
  23. package/lib/utils/constants/stringContants.d.ts +8 -0
  24. package/lib/utils/constants/stringContants.js +12 -0
  25. package/lib/utils/constants/stringContants.js.map +1 -0
  26. package/lib/utils/file/{fileutil.d.ts → fileUtil.d.ts} +14 -1
  27. package/lib/utils/file/{fileutil.js → fileUtil.js} +44 -5
  28. package/lib/utils/file/{fileutil.js.map → fileUtil.js.map} +1 -1
  29. package/lib/utils/interfaces.d.ts +10 -1
  30. package/lib/utils/lwcparser/fileutils/FileDiffUtil.d.ts +4 -1
  31. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +62 -5
  32. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
  33. package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.d.ts +1 -1
  34. package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js +4 -4
  35. package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js.map +1 -1
  36. package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.d.ts +1 -1
  37. package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js +3 -3
  38. package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js.map +1 -1
  39. package/lib/utils/lwcparser/fileutils/XmlFileProcessor.d.ts +1 -1
  40. package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js +3 -3
  41. package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js.map +1 -1
  42. package/lib/utils/orgUtils/index.d.ts +13 -1
  43. package/lib/utils/orgUtils/index.js +34 -10
  44. package/lib/utils/orgUtils/index.js.map +1 -1
  45. package/lib/utils/reportGenerator/reportGenerator.d.ts +2 -2
  46. package/lib/utils/reportGenerator/reportGenerator.js +166 -46
  47. package/lib/utils/reportGenerator/reportGenerator.js.map +1 -1
  48. package/lib/utils/reportGenerator/reportInterfaces.d.ts +57 -11
  49. package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +6 -0
  50. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +114 -0
  51. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -0
  52. package/lib/utils/resultsbuilder/DRAssessmentReporter.d.ts +2 -2
  53. package/lib/utils/resultsbuilder/DRAssessmentReporter.js +117 -57
  54. package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
  55. package/lib/utils/resultsbuilder/IPAssessmentReporter.d.ts +2 -2
  56. package/lib/utils/resultsbuilder/IPAssessmentReporter.js +101 -61
  57. package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
  58. package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +6 -0
  59. package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +124 -0
  60. package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -0
  61. package/lib/utils/resultsbuilder/OSAssessmentReporter.d.ts +5 -3
  62. package/lib/utils/resultsbuilder/OSAssessmentReporter.js +187 -82
  63. package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
  64. package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.d.ts +1 -0
  65. package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.js +137 -0
  66. package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.js.map +1 -0
  67. package/lib/utils/resultsbuilder/assessmentReporter.d.ts +3 -7
  68. package/lib/utils/resultsbuilder/assessmentReporter.js +75 -132
  69. package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
  70. package/lib/utils/resultsbuilder/index.d.ts +14 -8
  71. package/lib/utils/resultsbuilder/index.js +341 -208
  72. package/lib/utils/resultsbuilder/index.js.map +1 -1
  73. package/lib/utils/stringUtils.d.ts +9 -0
  74. package/lib/utils/stringUtils.js +25 -0
  75. package/lib/utils/stringUtils.js.map +1 -0
  76. package/messages/assess.json +4 -1
  77. package/messages/migrate.json +4 -1
  78. package/oclif.manifest.json +1 -1
  79. package/package.json +3 -3
  80. package/lib/utils/prototypes.d.ts +0 -0
  81. package/lib/utils/prototypes.js +0 -18
  82. package/lib/utils/prototypes.js.map +0 -1
package/README.md CHANGED
@@ -20,17 +20,25 @@ sfdx plugins:install @salesforce/plugin-omnistudio-migration-tool
20
20
  // To migrate everything
21
21
  sfdx omnistudio:migration:migrate -u YOUR_ORG_USERNAME@DOMAIN.COM --namespace=VLOCITY_PACKAGE_NAMESPACE
22
22
 
23
- //to migrate specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
23
+ // To assess everything without migrating
24
+ sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM --namespace=VLOCITY_PACKAGE_NAMESPACE
25
+
26
+ // To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
24
27
  --only=dr
25
28
  --only=ip
26
29
  --only=os
27
30
  --only=fc
28
31
 
29
- //to migrate all versions of the components and not just the active ones:
32
+ // To migrate all versions of the components and not just the active ones:
30
33
  --allversions
34
+
35
+ // To assess specific related objects:
36
+ --relatedobjects=apex // for Apex classes only
37
+ --relatedobjects=lwc // for Lightning Web Components only
38
+ --relatedobjects=apex,lwc // for both Apex and LWC
31
39
  ```
32
40
 
33
- 5. An HTML page will be open in your default browser with the results of your migration job.
41
+ 5. An HTML page will be open in your default browser with the results of your migration/assessment job.
34
42
 
35
43
  ### Usage & parameters
36
44
 
@@ -59,11 +67,17 @@ OPTIONS
59
67
  -a, --allversions migrate all versions and not
60
68
  and not just the active ones.
61
69
 
62
- --relatedobjects=relatedobjects Please select the type of components to
63
- migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types.
70
+ --only=only specify components to migrate/assess:
71
+ dr (DataRaptors), ip (Integration Procedures),
72
+ os (OmniScripts), fc (FlexCards)
64
73
 
74
+ --relatedobjects=relatedobjects specify related objects to assess:
75
+ 'apex' for Apex classes, 'lwc' for Lightning
76
+ Web Components, or 'apex,lwc' for both types
65
77
  ```
66
78
 
79
+ > **Note:** LWC (Lightning Web Components) migration functionality is temporarily disabled in the current version. This includes LWC migration, assessment, and report generation features. These features will be re-enabled in a future release. Apex migration functionality remains fully available. The `--relatedobjects` flag accepts all values ('apex', 'lwc', 'apex,lwc'), but LWC-related operations will not be executed.
80
+
67
81
  Terms:
68
82
  Notwithstanding anything stated in the terms and conditions agreed between Salesforce (‘SFDC’) and you (‘Customer’), the use of the OmniStudio Migration Tool (‘Tool’) is designed to facilitate the migration and it’s going to modify your custom code and by deploying and using the Tool you hereby provide your consent to automate the migration process and enable a smooth transition. Customer shall access and use the Tool only as permitted to the Customer and shall not compromise, break or circumvent any technical processes or security measures associated with the services provided by SFDC.
69
83
  The Customer agrees to hold harmless, indemnify, and defend SFDC, and its officers, directors, agents, employees, licensees, successors and assigns (collectively, the “Indemnified Parties”) against any and all damages, penalties, losses, liabilities, judgments, settlements, awards, costs, and expenses (including reasonable attorneys’ fees and expenses) to the extent arising out of or in connection with any claims related to the Customers use of the Tool or any willful misconduct, fraud or grossly negligent acts or omissions by the Customer.
@@ -0,0 +1,419 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const fs = __importStar(require("fs"));
30
+ const path = __importStar(require("path"));
31
+ const test_1 = require("@salesforce/command/lib/test");
32
+ const ts_sinon_1 = require("@salesforce/ts-sinon");
33
+ const sinon = __importStar(require("sinon"));
34
+ const chai_1 = require("chai");
35
+ const dataraptor_1 = require("../../../../migration/dataraptor");
36
+ const flexcard_1 = require("../../../../migration/flexcard");
37
+ const omniscript_1 = require("../../../../migration/omniscript");
38
+ const OmnistudioRelatedObjectMigrationFacade_1 = __importDefault(require("../../../../migration/related/OmnistudioRelatedObjectMigrationFacade"));
39
+ const orgUtils_1 = require("../../../../utils/orgUtils");
40
+ const stringContants_1 = require("../../../../utils/constants/stringContants");
41
+ // Helper function to normalize paths for comparison
42
+ describe('omnistudio:migration:assess', () => {
43
+ let sandbox;
44
+ const assessmentReportsDir = path.join(process.cwd(), 'assessment_reports');
45
+ // Mock org details
46
+ const mockOrgDetailsStandardModel = {
47
+ packageDetails: {
48
+ version: '1.0.0',
49
+ namespace: 'vlocity_ins',
50
+ },
51
+ omniStudioOrgPermissionEnabled: false,
52
+ orgDetails: {
53
+ Name: 'Test Org',
54
+ Id: '00D000000000001',
55
+ },
56
+ dataModel: 'Standard',
57
+ hasValidNamespace: true,
58
+ };
59
+ // Sample data for DataRaptor assessment
60
+ const sampleDataRaptorAssessment = [
61
+ {
62
+ oldName: 'DR_Test_Extract',
63
+ name: 'DR_Test_Extract',
64
+ id: 'a0B1x0000000001',
65
+ type: 'Extract',
66
+ formulaChanges: [
67
+ {
68
+ old: 'vlocity_ins:DRGlobal.process',
69
+ new: 'omnistudio:DRGlobal.process',
70
+ },
71
+ ],
72
+ infos: ['Using standard objects'],
73
+ warnings: ['Consider using standard objects instead of custom objects'],
74
+ apexDependencies: ['TestApexClass'],
75
+ },
76
+ {
77
+ oldName: 'DR_Test_Transform',
78
+ name: 'DR_Test_Transform',
79
+ id: 'a0B1x0000000002',
80
+ type: 'Transform',
81
+ formulaChanges: [
82
+ {
83
+ old: 'vlocity_ins:DRGlobal.processObjectsJSON',
84
+ new: 'omnistudio:DRGlobal.processObjectsJSON',
85
+ },
86
+ ],
87
+ infos: ['Using new API methods'],
88
+ warnings: ['Uses deprecated functions'],
89
+ apexDependencies: [],
90
+ },
91
+ ];
92
+ // Sample data for FlexCard assessment
93
+ const sampleFlexCardAssessment = [
94
+ {
95
+ name: 'FC_Test_Card',
96
+ id: 'a0B1x0000000003',
97
+ dependenciesIP: ['IP_Test_Procedure'],
98
+ dependenciesDR: ['DR_Test_Extract'],
99
+ dependenciesOS: ['OS_Test_Script'],
100
+ infos: ['Using Lightning Web Components'],
101
+ warnings: ['Consider using Lightning Web Components'],
102
+ },
103
+ {
104
+ name: 'FC_Test_Form',
105
+ id: 'a0B1x0000000004',
106
+ dependenciesIP: [],
107
+ dependenciesDR: [],
108
+ dependenciesOS: [],
109
+ infos: ['Using new Lightning components'],
110
+ warnings: ['Uses deprecated components'],
111
+ },
112
+ ];
113
+ // Sample data for OmniScript assessment
114
+ const sampleOmniScriptAssessment = {
115
+ osAssessmentInfos: [
116
+ {
117
+ name: 'OS_Test_Script',
118
+ id: 'a0B1x0000000005',
119
+ oldName: 'Old_OS_Test_Script',
120
+ type: 'LWC',
121
+ dependenciesIP: [{ name: 'IP_Test_Procedure', location: '/path/to/ip' }],
122
+ missingIP: [],
123
+ dependenciesDR: [{ name: 'DR_Test_Extract', location: '/path/to/dr' }],
124
+ missingDR: [],
125
+ dependenciesOS: [],
126
+ missingOS: [],
127
+ dependenciesRemoteAction: [],
128
+ dependenciesLWC: [],
129
+ infos: ['Using Lightning Web Components'],
130
+ warnings: ['Consider using Lightning Web Components'],
131
+ errors: [],
132
+ migrationStatus: 'Can be Automated',
133
+ },
134
+ ],
135
+ ipAssessmentInfos: [
136
+ {
137
+ name: 'IP_Test_Procedure',
138
+ id: 'a0B1x0000000006',
139
+ oldName: 'Old_IP_Test_Procedure',
140
+ dependenciesIP: [],
141
+ dependenciesDR: [{ name: 'DR_Test_Transform', location: '/path/to/dr' }],
142
+ dependenciesOS: [{ name: 'OS_Test_Script', location: '/path/to/os' }],
143
+ dependenciesRemoteAction: [],
144
+ infos: ['Using new API methods'],
145
+ warnings: ['Uses deprecated methods'],
146
+ errors: [],
147
+ path: '/path/to/ip',
148
+ },
149
+ ],
150
+ };
151
+ // Sample data for Apex assessment
152
+ const sampleApexAssessment = [
153
+ {
154
+ name: 'TestApexClass',
155
+ path: '/path/to/TestApexClass.cls',
156
+ diff: 'Updated to use new API methods',
157
+ warnings: ['Consider using Lightning Web Components'],
158
+ infos: ['File has been updated to allow calls to Omnistudio components'],
159
+ },
160
+ {
161
+ name: 'AnotherApexClass',
162
+ path: '/path/to/AnotherApexClass.cls',
163
+ diff: 'Updated namespace references',
164
+ warnings: ['Uses deprecated methods'],
165
+ infos: ['Updated to use new namespace'],
166
+ },
167
+ ];
168
+ // Sample data for LWC assessment
169
+ const sampleLwcAssessment = [
170
+ {
171
+ name: 'testLwcComponent',
172
+ changeInfos: [
173
+ {
174
+ name: 'testLwcComponent.js',
175
+ path: '/path/to/testLwcComponent.js',
176
+ diff: 'Updated import statements',
177
+ },
178
+ {
179
+ name: 'testLwcComponent.html',
180
+ path: '/path/to/testLwcComponent.html',
181
+ diff: 'Updated template syntax',
182
+ },
183
+ ],
184
+ errors: ['Uses deprecated methods'],
185
+ },
186
+ {
187
+ name: 'anotherLwcComponent',
188
+ changeInfos: [
189
+ {
190
+ name: 'anotherLwcComponent.js',
191
+ path: '/path/to/anotherLwcComponent.js',
192
+ diff: 'Updated namespace references',
193
+ },
194
+ ],
195
+ errors: [],
196
+ },
197
+ ];
198
+ beforeEach(() => {
199
+ sandbox = sinon.createSandbox();
200
+ // Mock the assessment tools with sample data
201
+ (0, ts_sinon_1.stubMethod)(sandbox, dataraptor_1.DataRaptorMigrationTool.prototype, 'assess').resolves(sampleDataRaptorAssessment);
202
+ (0, ts_sinon_1.stubMethod)(sandbox, flexcard_1.CardMigrationTool.prototype, 'assess').resolves(sampleFlexCardAssessment);
203
+ (0, ts_sinon_1.stubMethod)(sandbox, omniscript_1.OmniScriptMigrationTool.prototype, 'assess').resolves(sampleOmniScriptAssessment);
204
+ // Mock the facade to use our stubbed methods
205
+ (0, ts_sinon_1.stubMethod)(sandbox, OmnistudioRelatedObjectMigrationFacade_1.default.prototype, 'assessAll').callsFake((relatedObjects) => {
206
+ const result = {
207
+ apexAssessmentInfos: relatedObjects.includes(stringContants_1.Constants.Apex) ? sampleApexAssessment : [],
208
+ lwcAssessmentInfos: relatedObjects.includes(stringContants_1.Constants.LWC) ? sampleLwcAssessment : [],
209
+ };
210
+ return result;
211
+ });
212
+ // Mock OrgUtils.getOrgDetails
213
+ (0, ts_sinon_1.stubMethod)(sandbox, orgUtils_1.OrgUtils, 'getOrgDetails').resolves(mockOrgDetailsStandardModel);
214
+ });
215
+ afterEach(() => {
216
+ if (sandbox) {
217
+ sandbox.restore();
218
+ }
219
+ // Clean up assessment reports directory if it exists
220
+ if (fs.existsSync(assessmentReportsDir)) {
221
+ fs.rmSync(assessmentReportsDir, { recursive: true, force: true });
222
+ }
223
+ });
224
+ test_1.test
225
+ .withOrg({ username: 'test@org.com' }, true)
226
+ .stdout()
227
+ .stderr()
228
+ .command(['omnistudio:migration:assess'])
229
+ .it('generates all assessment files with content for all components', () => {
230
+ // File content assertions (for both Linux and Windows)
231
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
232
+ (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Extract');
233
+ (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Transform');
234
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
235
+ (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Card');
236
+ (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Form');
237
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
238
+ (0, chai_1.expect)(omniScriptContent).to.include('OS_Test_Script');
239
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
240
+ (0, chai_1.expect)(ipContent).to.include('IP_Test_Procedure');
241
+ });
242
+ test_1.test
243
+ .withOrg({ username: 'test@org.com' }, true)
244
+ .stdout()
245
+ .stderr()
246
+ .command(['omnistudio:migration:assess', '-o', stringContants_1.Constants.DataMapper])
247
+ .it('generates assessment files with content only for DataRaptor components', () => {
248
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
249
+ (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Extract');
250
+ (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Transform');
251
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
252
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Card');
253
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Form');
254
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
255
+ (0, chai_1.expect)(omniScriptContent).to.not.include('OS_Test_Script');
256
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
257
+ (0, chai_1.expect)(ipContent).to.not.include('IP_Test_Procedure');
258
+ });
259
+ test_1.test
260
+ .withOrg({ username: 'test@org.com' }, true)
261
+ .stdout()
262
+ .stderr()
263
+ .command(['omnistudio:migration:assess', '-o', stringContants_1.Constants.Flexcard])
264
+ .it('generates assessment files with content only for FlexCard components', () => {
265
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
266
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Extract');
267
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Transform');
268
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
269
+ (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Card');
270
+ (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Form');
271
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
272
+ (0, chai_1.expect)(omniScriptContent).to.not.include('OS_Test_Script');
273
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
274
+ (0, chai_1.expect)(ipContent).to.not.include('IP_Test_Procedure');
275
+ });
276
+ test_1.test
277
+ .withOrg({ username: 'test@org.com' }, true)
278
+ .stdout()
279
+ .stderr()
280
+ .command(['omnistudio:migration:assess', '-o', stringContants_1.Constants.Omniscript])
281
+ .it('generates assessment files with content only for OmniScript components', () => {
282
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
283
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Extract');
284
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Transform');
285
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
286
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Card');
287
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Form');
288
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
289
+ (0, chai_1.expect)(omniScriptContent).to.include('OS_Test_Script');
290
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
291
+ (0, chai_1.expect)(ipContent).to.include('IP_Test_Procedure');
292
+ });
293
+ test_1.test
294
+ .withOrg({ username: 'test@org.com' }, true)
295
+ .stdout()
296
+ .stderr()
297
+ .command(['omnistudio:migration:assess', '-o', stringContants_1.Constants.IntegrationProcedure])
298
+ .it('generates assessment files with content only for Integration Procedure components', () => {
299
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
300
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Extract');
301
+ (0, chai_1.expect)(dataRaptorContent).to.not.include('DR_Test_Transform');
302
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
303
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Card');
304
+ (0, chai_1.expect)(flexCardContent).to.not.include('FC_Test_Form');
305
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
306
+ (0, chai_1.expect)(omniScriptContent).to.include('OS_Test_Script');
307
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
308
+ (0, chai_1.expect)(ipContent).to.include('IP_Test_Procedure');
309
+ });
310
+ test_1.test
311
+ .withOrg({ username: 'test@org.com' }, true)
312
+ .stdout()
313
+ .stderr()
314
+ .command(['omnistudio:migration:assess', '-o', 'ro'])
315
+ .it('does not generate any assessment files when ro option is passed', () => {
316
+ // Optionally, you can check that the files do not exist
317
+ const files = [
318
+ 'datamapper_assessment.html',
319
+ 'flexcard_assessment.html',
320
+ 'omniscript_assessment.html',
321
+ 'integration_procedure_assessment.html',
322
+ ];
323
+ files.forEach((file) => {
324
+ const filePath = path.join(process.cwd(), 'assessment_reports', file);
325
+ void (0, chai_1.expect)(fs.existsSync(filePath)).to.be.false;
326
+ });
327
+ });
328
+ // test
329
+ // .withOrg({ username: 'test@org.com' }, true)
330
+ // .stdout()
331
+ // .stderr()
332
+ // .command(['omnistudio:migration:assess', '-r', ''])
333
+ // .it('generates assessment files with content only for Apex components', () => {
334
+ // const apexContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/apex_assessment.html'), 'utf8');
335
+ // void expect(apexContent).to.include('TestApexClass');
336
+ // // LWC assessment file should not exist since LWC functionality is disabled
337
+ // const lwcFilePath = path.join(process.cwd(), 'assessment_reports/lwc_assessment.html');
338
+ // void expect(fs.existsSync(lwcFilePath)).to.be.false;
339
+ // const dataRaptorContent = fs.readFileSync(
340
+ // path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'),
341
+ // 'utf8'
342
+ // );
343
+ // void expect(dataRaptorContent).to.include('DR_Test_Extract');
344
+ // void expect(dataRaptorContent).to.include('DR_Test_Transform');
345
+ // const flexCardContent = fs.readFileSync(
346
+ // path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'),
347
+ // 'utf8'
348
+ // );
349
+ // void expect(flexCardContent).to.include('FC_Test_Card');
350
+ // void expect(flexCardContent).to.include('FC_Test_Form');
351
+ // const omniScriptContent = fs.readFileSync(
352
+ // path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'),
353
+ // 'utf8'
354
+ // );
355
+ // void expect(omniScriptContent).to.include('OS_Test_Script');
356
+ // const ipContent = fs.readFileSync(
357
+ // path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'),
358
+ // 'utf8'
359
+ // );
360
+ // void expect(ipContent).to.include('IP_Test_Procedure');
361
+ // });
362
+ test_1.test
363
+ .withOrg({ username: 'test@org.com' }, true)
364
+ .stdout()
365
+ .stderr()
366
+ .command(['omnistudio:migration:assess', '-r', stringContants_1.Constants.LWC])
367
+ .it('does not generate LWC assessment file when lwc option is passed since functionality is disabled', () => {
368
+ // LWC assessment file should not exist since LWC functionality is disabled
369
+ const lwcFilePath = path.join(process.cwd(), 'assessment_reports/lwc_assessment.html');
370
+ void (0, chai_1.expect)(fs.existsSync(lwcFilePath)).to.be.false;
371
+ const apexContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/apex_assessment.html'), 'utf8');
372
+ void (0, chai_1.expect)(apexContent).to.not.include('TestApexClass');
373
+ const dataRaptorContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'), 'utf8');
374
+ void (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Extract');
375
+ void (0, chai_1.expect)(dataRaptorContent).to.include('DR_Test_Transform');
376
+ const flexCardContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'), 'utf8');
377
+ void (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Card');
378
+ void (0, chai_1.expect)(flexCardContent).to.include('FC_Test_Form');
379
+ const omniScriptContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'), 'utf8');
380
+ void (0, chai_1.expect)(omniScriptContent).to.include('OS_Test_Script');
381
+ const ipContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'), 'utf8');
382
+ void (0, chai_1.expect)(ipContent).to.include('IP_Test_Procedure');
383
+ });
384
+ // test
385
+ // .withOrg({ username: 'test@org.com' }, true)
386
+ // .stdout()
387
+ // .stderr()
388
+ // .command(['omnistudio:migration:assess', '-r', 'apex,lwc'])
389
+ // .it('generates assessment files with content only for Apex components when both apex and lwc are specified', () => {
390
+ // const apexContent = fs.readFileSync(path.join(process.cwd(), 'assessment_reports/apex_assessment.html'), 'utf8');
391
+ // void expect(apexContent).to.include('TestApexClass');
392
+ // // LWC assessment file should not exist since LWC functionality is disabled
393
+ // const lwcFilePath = path.join(process.cwd(), 'assessment_reports/lwc_assessment.html');
394
+ // void expect(fs.existsSync(lwcFilePath)).to.be.false;
395
+ // const dataRaptorContent = fs.readFileSync(
396
+ // path.join(process.cwd(), 'assessment_reports/datamapper_assessment.html'),
397
+ // 'utf8'
398
+ // );
399
+ // void expect(dataRaptorContent).to.include('DR_Test_Extract');
400
+ // void expect(dataRaptorContent).to.include('DR_Test_Transform');
401
+ // const flexCardContent = fs.readFileSync(
402
+ // path.join(process.cwd(), 'assessment_reports/flexcard_assessment.html'),
403
+ // 'utf8'
404
+ // );
405
+ // void expect(flexCardContent).to.include('FC_Test_Card');
406
+ // void expect(flexCardContent).to.include('FC_Test_Form');
407
+ // const omniScriptContent = fs.readFileSync(
408
+ // path.join(process.cwd(), 'assessment_reports/omniscript_assessment.html'),
409
+ // 'utf8'
410
+ // );
411
+ // void expect(omniScriptContent).to.include('OS_Test_Script');
412
+ // const ipContent = fs.readFileSync(
413
+ // path.join(process.cwd(), 'assessment_reports/integration_procedure_assessment.html'),
414
+ // 'utf8'
415
+ // );
416
+ // void expect(ipContent).to.include('IP_Test_Procedure');
417
+ // });
418
+ });
419
+ //# sourceMappingURL=assess.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assess.test.js","sourceRoot":"","sources":["../../../../../src/commands/omnistudio/migration/__tests__/assess.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,uDAAoD;AACpD,mDAAkD;AAClD,6CAA+B;AAC/B,+BAA8B;AAC9B,iEAA2E;AAC3E,6DAAmE;AACnE,iEAA2E;AAC3E,kJAA0H;AAC1H,yDAAsD;AAEtD,+EAAuE;AAEvE,oDAAoD;AAEpD,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,IAAI,OAA2B,CAAC;IAChC,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAE5E,mBAAmB;IACnB,MAAM,2BAA2B,GAAyB;QACxD,cAAc,EAAE;YACd,OAAO,EAAE,OAAO;YAChB,SAAS,EAAE,aAAa;SACzB;QACD,8BAA8B,EAAE,KAAK;QACrC,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,EAAE,EAAE,iBAAiB;SACtB;QACD,SAAS,EAAE,UAAU;QACrB,iBAAiB,EAAE,IAAI;KACxB,CAAC;IAEF,wCAAwC;IACxC,MAAM,0BAA0B,GAAG;QACjC;YACE,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,iBAAiB;YACvB,EAAE,EAAE,iBAAiB;YACrB,IAAI,EAAE,SAAS;YACf,cAAc,EAAE;gBACd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8D;IAC9D,QAAQ;AACV,CAAC,CAAC,CAAC"}
@@ -10,6 +10,11 @@ export default class Assess extends OmniStudioBaseCommand {
10
10
  namespace: flags.Discriminated<flags.String>;
11
11
  only: flags.Discriminated<flags.String>;
12
12
  allversions: flags.Discriminated<flags.Boolean<boolean>>;
13
+ relatedobjects: flags.Discriminated<flags.String>;
13
14
  };
14
15
  run(): Promise<any>;
16
+ private assessOmniStudioComponents;
17
+ private assessDataRaptors;
18
+ private assessFlexCards;
19
+ private assessOmniScripts;
15
20
  }