@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.
- package/README.md +19 -5
- package/lib/commands/omnistudio/migration/__tests__/assess.test.d.ts +1 -0
- package/lib/commands/omnistudio/migration/__tests__/assess.test.js +419 -0
- package/lib/commands/omnistudio/migration/__tests__/assess.test.js.map +1 -0
- package/lib/commands/omnistudio/migration/assess.d.ts +5 -0
- package/lib/commands/omnistudio/migration/assess.js +84 -27
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +0 -1
- package/lib/commands/omnistudio/migration/migrate.js +19 -16
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/migration/dataraptor.js +3 -1
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/omniscript.js +13 -2
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/related/ApexMigration.d.ts +1 -1
- package/lib/migration/related/ApexMigration.js +7 -6
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/LwcMigration.js +6 -5
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.d.ts +12 -8
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +44 -58
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/utils/constants/stringContants.d.ts +8 -0
- package/lib/utils/constants/stringContants.js +12 -0
- package/lib/utils/constants/stringContants.js.map +1 -0
- package/lib/utils/file/{fileutil.d.ts → fileUtil.d.ts} +14 -1
- package/lib/utils/file/{fileutil.js → fileUtil.js} +44 -5
- package/lib/utils/file/{fileutil.js.map → fileUtil.js.map} +1 -1
- package/lib/utils/interfaces.d.ts +10 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.d.ts +4 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +62 -5
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.d.ts +1 -1
- package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js +4 -4
- package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.d.ts +1 -1
- package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js +3 -3
- package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/XmlFileProcessor.d.ts +1 -1
- package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js +3 -3
- package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js.map +1 -1
- package/lib/utils/orgUtils/index.d.ts +13 -1
- package/lib/utils/orgUtils/index.js +34 -10
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/reportGenerator/reportGenerator.d.ts +2 -2
- package/lib/utils/reportGenerator/reportGenerator.js +166 -46
- package/lib/utils/reportGenerator/reportGenerator.js.map +1 -1
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +57 -11
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +6 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +114 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/DRAssessmentReporter.d.ts +2 -2
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +117 -57
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/IPAssessmentReporter.d.ts +2 -2
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +101 -61
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +6 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +124 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/OSAssessmentReporter.d.ts +5 -3
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js +187 -82
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.d.ts +1 -0
- package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.js +137 -0
- package/lib/utils/resultsbuilder/__tests__/DRAssessmentReporter.test.js.map +1 -0
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +3 -7
- package/lib/utils/resultsbuilder/assessmentReporter.js +75 -132
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/index.d.ts +14 -8
- package/lib/utils/resultsbuilder/index.js +341 -208
- package/lib/utils/resultsbuilder/index.js.map +1 -1
- package/lib/utils/stringUtils.d.ts +9 -0
- package/lib/utils/stringUtils.js +25 -0
- package/lib/utils/stringUtils.js.map +1 -0
- package/messages/assess.json +4 -1
- package/messages/migrate.json +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
- package/lib/utils/prototypes.d.ts +0 -0
- package/lib/utils/prototypes.js +0 -18
- package/lib/utils/prototypes.js.map +0 -1
|
@@ -1,65 +1,125 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DRAssessmentReporter = void 0;
|
|
4
|
+
const reportGenerator_1 = require("../reportGenerator/reportGenerator");
|
|
4
5
|
const reportingHelper_1 = require("./reportingHelper");
|
|
5
6
|
class DRAssessmentReporter {
|
|
6
|
-
static generateDRAssesment(dataRaptorAssessmentInfos, instanceUrl) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
7
|
+
static generateDRAssesment(dataRaptorAssessmentInfos, instanceUrl, org) {
|
|
8
|
+
// Header Column
|
|
9
|
+
const headerColumn = [
|
|
10
|
+
{
|
|
11
|
+
label: 'In Package',
|
|
12
|
+
colspan: 2,
|
|
13
|
+
styles: 'color: purple;',
|
|
14
|
+
subColumn: [
|
|
15
|
+
{
|
|
16
|
+
label: 'Name',
|
|
17
|
+
key: 'oldName',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: 'Record ID',
|
|
21
|
+
key: 'id',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'In Core',
|
|
27
|
+
colspan: 1,
|
|
28
|
+
subColumn: [
|
|
29
|
+
{
|
|
30
|
+
label: 'Name',
|
|
31
|
+
key: 'name',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: 'Type',
|
|
37
|
+
key: 'type',
|
|
38
|
+
rowspan: 2,
|
|
39
|
+
subColumn: [],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Summary',
|
|
43
|
+
key: 'summary',
|
|
44
|
+
rowspan: 2,
|
|
45
|
+
subColumn: [],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: 'Custom Function Changes',
|
|
49
|
+
key: 'customFunctionChanges',
|
|
50
|
+
rowspan: 2,
|
|
51
|
+
subColumn: [],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Apex Dependencies',
|
|
55
|
+
key: 'apexDependencies',
|
|
56
|
+
rowspan: 2,
|
|
57
|
+
subColumn: [],
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
// Define columns
|
|
61
|
+
const columns = [
|
|
62
|
+
{
|
|
63
|
+
key: 'oldName',
|
|
64
|
+
cell: (row) => row.oldName,
|
|
65
|
+
filterValue: (row) => row.oldName,
|
|
66
|
+
title: (row) => row.oldName,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: 'id',
|
|
70
|
+
cell: (row) => row.id ? `<a href="${instanceUrl}/${row.id}">${row.id}</a>` : '',
|
|
71
|
+
filterValue: (row) => row.id,
|
|
72
|
+
title: (row) => row.id,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'name',
|
|
76
|
+
cell: (row) => row.name || '',
|
|
77
|
+
filterValue: (row) => row.name,
|
|
78
|
+
title: (row) => row.name,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'type',
|
|
82
|
+
cell: (row) => row.type,
|
|
83
|
+
filterValue: (row) => row.type,
|
|
84
|
+
title: (row) => row.type,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: 'summary',
|
|
88
|
+
cell: (row) => reportingHelper_1.reportingHelper.convertToBuletedList(row.warnings || []),
|
|
89
|
+
filterValue: (row) => (row.warnings ? row.warnings.join(', ') : ''),
|
|
90
|
+
title: (row) => (row.warnings ? row.warnings.join(', ') : ''),
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: 'customFunctionChanges',
|
|
94
|
+
cell: (row) => reportingHelper_1.reportingHelper.decorateChanges(row.formulaChanges, 'Formula') || '',
|
|
95
|
+
filterValue: (row) => row.formulaChanges,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
key: 'apexDependencies',
|
|
99
|
+
cell: (row) => reportingHelper_1.reportingHelper.convertToBuletedList(row.apexDependencies || []),
|
|
100
|
+
filterValue: (row) => row.apexDependencies,
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
const filters = [
|
|
104
|
+
{
|
|
105
|
+
label: 'Type',
|
|
106
|
+
filterOptions: Array.from(new Set(dataRaptorAssessmentInfos.map((row) => row.type))),
|
|
107
|
+
key: 'type',
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
const reportFrameworkParameters = {
|
|
111
|
+
headerColumns: headerColumn,
|
|
112
|
+
columns,
|
|
113
|
+
rows: dataRaptorAssessmentInfos,
|
|
114
|
+
orgDetails: org,
|
|
115
|
+
filters,
|
|
116
|
+
ctaSummary: [],
|
|
117
|
+
reportHeaderLabel: 'Data Mapper Assessment',
|
|
118
|
+
showMigrationBanner: true,
|
|
119
|
+
};
|
|
120
|
+
// Render table
|
|
121
|
+
const tableHtml = (0, reportGenerator_1.generateHtmlTable)(reportFrameworkParameters);
|
|
122
|
+
return `${tableHtml}`;
|
|
63
123
|
}
|
|
64
124
|
}
|
|
65
125
|
exports.DRAssessmentReporter = DRAssessmentReporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DRAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/DRAssessmentReporter.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DRAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/DRAssessmentReporter.ts"],"names":[],"mappings":";;;AAQA,wEAAuE;AACvE,uDAAoD;AAEpD,MAAa,oBAAoB;IACxB,MAAM,CAAC,mBAAmB,CAC/B,yBAAqD,EACrD,WA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../reportGenerator/reportInterfaces';
|
|
2
3
|
export declare class IPAssessmentReporter {
|
|
3
|
-
static generateIPAssesment(ipAssessmentInfos: IPAssessmentInfo[], instanceUrl: string): string;
|
|
4
|
-
private static getIPAssessmentReport;
|
|
4
|
+
static generateIPAssesment(ipAssessmentInfos: IPAssessmentInfo[], instanceUrl: string, org: ReportHeaderFormat[]): string;
|
|
5
5
|
}
|
|
@@ -1,69 +1,109 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IPAssessmentReporter = void 0;
|
|
4
|
+
const reportGenerator_1 = require("../reportGenerator/reportGenerator");
|
|
4
5
|
const reportingHelper_1 = require("./reportingHelper");
|
|
5
6
|
class IPAssessmentReporter {
|
|
6
|
-
static generateIPAssesment(ipAssessmentInfos, instanceUrl) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
7
|
+
static generateIPAssesment(ipAssessmentInfos, instanceUrl, org) {
|
|
8
|
+
// Define multi-row headers
|
|
9
|
+
const headerColumn = [
|
|
10
|
+
{
|
|
11
|
+
label: 'In Package',
|
|
12
|
+
colspan: 2,
|
|
13
|
+
subColumn: [
|
|
14
|
+
{
|
|
15
|
+
label: 'Name',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'Record ID',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'In Core',
|
|
24
|
+
colspan: 1,
|
|
25
|
+
subColumn: [
|
|
26
|
+
{
|
|
27
|
+
label: 'Name',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: 'Summary',
|
|
33
|
+
rowspan: 2,
|
|
34
|
+
subColumn: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: 'Integration Procedures Dependencies',
|
|
38
|
+
rowspan: 2,
|
|
39
|
+
subColumn: [],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Data Mapper dependencies',
|
|
43
|
+
rowspan: 2,
|
|
44
|
+
subColumn: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Remote Action Dependencies',
|
|
48
|
+
rowspan: 2,
|
|
49
|
+
subColumn: [],
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
// Define columns
|
|
53
|
+
const columns = [
|
|
54
|
+
{
|
|
55
|
+
key: 'oldName',
|
|
56
|
+
cell: (row) => row.oldName,
|
|
57
|
+
filterValue: (row) => row.oldName,
|
|
58
|
+
title: (row) => row.oldName,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'id',
|
|
62
|
+
cell: (row) => (row.id ? `<a href="${instanceUrl}/${row.id}">${row.id}</a>` : ''),
|
|
63
|
+
filterValue: (row) => row.id,
|
|
64
|
+
title: (row) => row.id,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: 'name',
|
|
68
|
+
cell: (row) => row.name || '',
|
|
69
|
+
filterValue: (row) => row.name,
|
|
70
|
+
title: (row) => row.name,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'Summary',
|
|
74
|
+
cell: (row) => reportingHelper_1.reportingHelper.convertToBuletedList(row.warnings || []),
|
|
75
|
+
filterValue: (row) => (row.warnings ? row.warnings.join(', ') : ''),
|
|
76
|
+
title: (row) => (row.warnings ? row.warnings.join(', ') : ''),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: 'dependenciesIP',
|
|
80
|
+
cell: (row) => reportingHelper_1.reportingHelper.decorate(row.dependenciesIP) || '',
|
|
81
|
+
filterValue: (row) => (row.dependenciesIP ? row.dependenciesIP.join(', ') : ''),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: 'dependenciesDR',
|
|
85
|
+
cell: (row) => reportingHelper_1.reportingHelper.decorate(row.dependenciesDR) || '',
|
|
86
|
+
filterValue: (row) => (row.dependenciesDR ? row.dependenciesDR.join(', ') : ''),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: 'dependenciesRemoteAction',
|
|
90
|
+
cell: (row) => reportingHelper_1.reportingHelper.decorate(row.dependenciesRemoteAction) || '',
|
|
91
|
+
filterValue: (row) => row.dependenciesRemoteAction ? row.dependenciesRemoteAction.join(', ') : '',
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
const reportFrameworkParameters = {
|
|
95
|
+
headerColumns: headerColumn,
|
|
96
|
+
columns,
|
|
97
|
+
rows: ipAssessmentInfos,
|
|
98
|
+
orgDetails: org,
|
|
99
|
+
filters: [],
|
|
100
|
+
ctaSummary: [],
|
|
101
|
+
reportHeaderLabel: 'Integration Procedure Assessment',
|
|
102
|
+
showMigrationBanner: true,
|
|
103
|
+
};
|
|
104
|
+
// Render table
|
|
105
|
+
const tableHtml = (0, reportGenerator_1.generateHtmlTable)(reportFrameworkParameters);
|
|
106
|
+
return `${tableHtml}`;
|
|
67
107
|
}
|
|
68
108
|
}
|
|
69
109
|
exports.IPAssessmentReporter = IPAssessmentReporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/IPAssessmentReporter.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,MAAa,oBAAoB;IACxB,MAAM,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"IPAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/IPAssessmentReporter.ts"],"names":[],"mappings":";;;AACA,wEAAuE;AAOvE,uDAAoD;AAEpD,MAAa,oBAAoB;IACxB,MAAM,CAAC,mBAAmB,CAC/B,iBAAqC,EACrC,WAAmB,EACnB,GAAyB;QAEzB,2BAA2B;QAC3B,MAAM,YAAY,GAAmB;YACnC;gBACE,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE;oBACT;wBACE,KAAK,EAAE,MAAM;qBACd;oBACD;wBACE,KAAK,EAAE,WAAW;qBACnB;iBACF;aACF;YACD;gBACE,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE;oBACT;wBACE,KAAK,EAAE,MAAM;qBACd;iBACF;aACF;YACD;gBACE,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,qCAAqC;gBAC5C,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,0BAA0B;gBACjC,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,4BAA4B;gBACnC,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;SACF,CAA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ACvB,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,EAAE;YACX,UAAU,EAAE,EAAE;YACd,iBAAiB,EAAE,kCAAkC;YACrD,mBAAmB,EAAE,IAAI;SAC1B,CAAC;QACF,eAAe;QACf,MAAM,SAAS,GAAG,IAAA,mCAAiB,EAAC,yBAAyB,CAAC,CAAC;QAC/D,OAAO,GAAG,SAAS,EAAE,CAAC;IACxB,CAAC;CACF;AA7GD,oDA6GC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LWCAssessmentInfo } from '../interfaces';
|
|
2
|
+
import { ReportHeaderFormat } from '../reportGenerator/reportInterfaces';
|
|
3
|
+
export declare class LWCAssessmentReporter {
|
|
4
|
+
static generateLwcAssesment(lwcAssessmentInfos: LWCAssessmentInfo[], instanceUrl: string, org: ReportHeaderFormat[]): string;
|
|
5
|
+
private static generateRows;
|
|
6
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LWCAssessmentReporter = void 0;
|
|
4
|
+
const FileDiffUtil_1 = require("../lwcparser/fileutils/FileDiffUtil");
|
|
5
|
+
const reportGenerator_1 = require("../reportGenerator/reportGenerator");
|
|
6
|
+
class LWCAssessmentReporter {
|
|
7
|
+
static generateLwcAssesment(lwcAssessmentInfos, instanceUrl, org) {
|
|
8
|
+
// Header Columns
|
|
9
|
+
const headerColumn = [
|
|
10
|
+
{
|
|
11
|
+
label: 'Name',
|
|
12
|
+
key: 'name',
|
|
13
|
+
colspan: 1,
|
|
14
|
+
rowspan: 1,
|
|
15
|
+
subColumn: [],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'File Path',
|
|
19
|
+
key: 'filePath',
|
|
20
|
+
colspan: 1,
|
|
21
|
+
rowspan: 1,
|
|
22
|
+
subColumn: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: 'File Diff',
|
|
26
|
+
key: 'diff',
|
|
27
|
+
colspan: 1,
|
|
28
|
+
rowspan: 1,
|
|
29
|
+
subColumn: [],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: 'Migration Status',
|
|
33
|
+
key: 'migrationStatus',
|
|
34
|
+
colspan: 1,
|
|
35
|
+
rowspan: 1,
|
|
36
|
+
subColumn: [],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'Errors',
|
|
40
|
+
key: 'errors',
|
|
41
|
+
colspan: 1,
|
|
42
|
+
rowspan: 1,
|
|
43
|
+
subColumn: [],
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
// Define columns
|
|
47
|
+
const columns = [
|
|
48
|
+
{
|
|
49
|
+
key: 'name',
|
|
50
|
+
cell: (row) => row.name,
|
|
51
|
+
filterValue: (row) => row.name,
|
|
52
|
+
title: (row) => row.name,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: 'filePath',
|
|
56
|
+
cell: (row) => `<span><a href="${row.filePath}">${row.fileName}</a></span>`,
|
|
57
|
+
filterValue: (row) => row.fileName,
|
|
58
|
+
title: (row) => row.fileName,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'diff',
|
|
62
|
+
cell: (row) => FileDiffUtil_1.FileDiffUtil.getDiffHTML(row.diff, row.name),
|
|
63
|
+
filterValue: (row) => `Diff_${row.fileName}`,
|
|
64
|
+
title: (row) => `Diff_${row.fileName}`,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: 'migrationStatus',
|
|
68
|
+
cell: (row) => row.migrationStatus,
|
|
69
|
+
filterValue: (row) => row.migrationStatus,
|
|
70
|
+
title: (row) => row.migrationStatus,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'errors',
|
|
74
|
+
cell: (row) => row.errors,
|
|
75
|
+
filterValue: (row) => row.errors,
|
|
76
|
+
title: (row) => row.errors,
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
const rows = this.generateRows(lwcAssessmentInfos);
|
|
80
|
+
const filters = [
|
|
81
|
+
{
|
|
82
|
+
label: 'Status',
|
|
83
|
+
key: 'status',
|
|
84
|
+
filterOptions: Array.from(new Set(rows.map((row) => row.migrationStatus))),
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Errors',
|
|
88
|
+
key: 'errors',
|
|
89
|
+
filterOptions: Array.from(new Set(rows.map((row) => row.errors))),
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
const reportFrameworkParameters = {
|
|
93
|
+
headerColumns: headerColumn,
|
|
94
|
+
columns,
|
|
95
|
+
rows,
|
|
96
|
+
orgDetails: org,
|
|
97
|
+
filters,
|
|
98
|
+
ctaSummary: [],
|
|
99
|
+
reportHeaderLabel: 'LWC Assessment',
|
|
100
|
+
showMigrationBanner: true,
|
|
101
|
+
};
|
|
102
|
+
// Render table
|
|
103
|
+
const tableHtml = (0, reportGenerator_1.generateHtmlTable)(reportFrameworkParameters);
|
|
104
|
+
return `${tableHtml}`;
|
|
105
|
+
}
|
|
106
|
+
static generateRows(lwcAssessmentInfos) {
|
|
107
|
+
const rows = [];
|
|
108
|
+
for (const lwcAssessmentInfo of lwcAssessmentInfos) {
|
|
109
|
+
for (const fileChangeInfo of lwcAssessmentInfo.changeInfos) {
|
|
110
|
+
rows.push({
|
|
111
|
+
name: lwcAssessmentInfo.name,
|
|
112
|
+
filePath: fileChangeInfo.path,
|
|
113
|
+
fileName: fileChangeInfo.name,
|
|
114
|
+
diff: fileChangeInfo.diff,
|
|
115
|
+
migrationStatus: '',
|
|
116
|
+
errors: lwcAssessmentInfo.errors.join(', '),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return rows;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.LWCAssessmentReporter = LWCAssessmentReporter;
|
|
124
|
+
//# sourceMappingURL=LWCAssessmentReporter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LWCAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/LWCAssessmentReporter.ts"],"names":[],"mappings":";;;AACA,sEAAmE;AACnE,wEAAuE;AAkBvE,MAAa,qBAAqB;IACzB,MAAM,CAAC,oBAAoB,CAChC,kBAAuC,EACvC,WAAmB,EACnB,GAAyB;QAEzB,iBAAiB;QACjB,MAAM,YAAY,GAAmB;YACnC;gBACE,KAAK,EAAE,MAAM;gBACb,GAAG,EAAE,MAAM;gBACX,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,WAAW;gBAClB,GAAG,EAAE,UAAU;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,WAAW;gBAClB,GAAG,EAAE,MAAM;gBACX,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,kBAAkB;gBACzB,GAAG,EAAE,iBAAiB;gBACtB,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,GAAG,EAAE,QAAQ;gBACb,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;aACd;SACF,CAAC;QAEF,iBAAiB;QACjB,MAAM,OAAO,GAAgC;YAC3C;gBACE,GAAG,EAAE,MAAM;gBACX,IAAI,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,GAAG,CAAC,IAAI;gBACxC,WAAW,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,GAAG,CAAC,IAAI;gBAC/C,KAAK,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,GAAG,CAAC,IAAI;aAC1C;YAC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;IACd,CAAC;CACF;AA7HD,sDA6HC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { OSAssessmentInfo } from '../interfaces';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ReportHeaderFormat } from '../reportGenerator/reportInterfaces';
|
|
3
|
+
export declare class OSAssessmentReporter {
|
|
4
|
+
static generateOSAssesment(osAssessmentInfos: OSAssessmentInfo[], instanceUrl: string, org: ReportHeaderFormat[]): string;
|
|
5
|
+
private static getMigrationStatusStyles;
|
|
6
|
+
private static getIconOnRow;
|
|
5
7
|
}
|