@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
@@ -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
- let tableBody = '';
8
- tableBody += '<div class="slds-text-heading_large">Data Mapper Components Assessment</div>';
9
- for (const dr of dataRaptorAssessmentInfos) {
10
- const row = `
11
- <tr class="slds-hint_parent">
12
- <td style="word-wrap: break-word; white-space: normal; max-width: 200px;">
13
- <div class="slds-truncate" title="${dr.name}">${dr.name}</div>
14
- </td>
15
- <td style="word-wrap: break-word; white-space: normal; max-width: 100px;">
16
- <div class="slds-truncate" title="${dr.id}">
17
- <a href="${instanceUrl}/${dr.id}">${dr.id}</div>
18
- </td>
19
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
20
- ${reportingHelper_1.reportingHelper.convertToBuletedList(dr.warnings)}
21
- </td>
22
- <td style="word-wrap: break-word; white-space: normal; max-width: 200px;">
23
- <div> ${reportingHelper_1.reportingHelper.decorateChanges(dr.formulaChanges, 'Formula')} </div>
24
- </td>
25
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
26
- ${reportingHelper_1.reportingHelper.convertToBuletedList(dr.apexDependencies)}
27
- </td>
28
-
29
- </tr>`;
30
- tableBody += row;
31
- }
32
- return DRAssessmentReporter.getDRAssessmentReport(tableBody);
33
- }
34
- static getDRAssessmentReport(tableContent) {
35
- const tableBody = `
36
- <div style="margin-block:15px">
37
- <table style="width: 100%; table-layout: auto;" class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_striped slds-table_col-bordered" aria-label="Results for Data Mapper updates">
38
- <thead>
39
- <tr class="slds-line-height_reset">
40
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
41
- <div class="slds-truncate" title="Name">Name</div>
42
- </th>
43
- <th class="" scope="col" style="width: 10%; word-wrap: break-word; white-space: normal; text-align: left;">
44
- <div class="slds-truncate" title="ID">ID</div>
45
- </th>
46
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
47
- <div class="slds-truncate" title="Summary">Summary</div>
48
- </th>
49
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
50
- <div class="slds-truncate" title="Custom Function Change">Custom Function Changes</div>
51
- </th>
52
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
53
- <div class="slds-truncate" title="Apex dependencies">Apex dependencies</div>
54
- </th>
55
- </tr>
56
- </thead>
57
- <tbody>
58
- ${tableContent}
59
- </tbody>
60
- </table>
61
- </div>`;
62
- return tableBody;
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":";;;AACA,uDAAoD;AAEpD,MAAa,oBAAoB;IACxB,MAAM,CAAC,mBAAmB,CAC/B,yBAAqD,EACrD,WAAmB;QAEnB,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,SAAS,IAAI,8EAA8E,CAAC;QAC5F,KAAK,MAAM,EAAE,IAAI,yBAAyB,EAAE;YAC1C,MAAM,GAAG,GAAG;;;0DAGwC,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI;;;0DAGnB,EAAE,CAAC,EAAE;+BAChC,WAAW,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;;;yBAGpC,iCAAe,CAAC,oBAAoB,CAAC,EAAE,CAAC,QAAQ,CAAC;;;8BAG5C,iCAAe,CAAC,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC;;;yBAGlE,iCAAe,CAAC,oBAAoB,CAAC,EAAE,CAAC,gBAAgB,CAAC;;;oBAG9D,CAAC;YACf,SAAS,IAAI,GAAG,CAAC;SAClB;QAED,OAAO,oBAAoB,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;IAEO,MAAM,CAAC,qBAAqB,CAAC,YAAoB;QACvD,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;cAuBR,YAAY;;;eAGX,CAAC;QACZ,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAhED,oDAgEC"}
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,WAAmB,EACnB,GAAyB;QAEzB,gBAAgB;QAChB,MAAM,YAAY,GAAmB;YACnC;gBACE,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,CAAC;gBACV,MAAM,EAAE,gBAAgB;gBACxB,SAAS,EAAE;oBACT;wBACE,KAAK,EAAE,MAAM;wBACb,GAAG,EAAE,SAAS;qBACf;oBACD;wBACE,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GAA6B,EAA6B,EAAE,CAAC,GAAG,CAAC,cAAc;aAC9F;YACD;gBACE,GAAG,EAAE,kBAAkB;gBACvB,IAAI,EAAE,CAAC,GAA6B,EAAU,EAAE,CAC9C,iCAAe,CAAC,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;gBAClE,WAAW,EAAE,CAAC,GAA6B,EAAY,EAAE,CAAC,GAAG,CAAC,gBAAgB;aAC/E;SACF,CAAC;QAEF,MAAM,OAAO,GAAa;YACxB;gBACE,KAAK,EAAE,MAAM;gBACb,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,GAA6B,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC9G,GAAG,EAAE,MAAM;aACZ;SACF,CAAC;QAEF,MAAM,yBAAyB,GAAoD;YACjF,aAAa,EAAE,YAAY;YAC3B,OAAO;YACP,IAAI,EAAE,yBAAyB;YAC/B,UAAU,EAAE,GAAG;YACf,OAAO;YACP,UAAU,EAAE,EAAE;YACd,iBAAiB,EAAE,wBAAwB;YAC3C,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;AAhID,oDAgIC"}
@@ -1,5 +1,5 @@
1
1
  import { IPAssessmentInfo } from '../interfaces';
2
+ import { ReportHeaderFormat } from '../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
- let tableBody = '';
8
- tableBody += '<div class="slds-text-heading_large">Integration Procedure Components Assessment</div>';
9
- for (const ipAssessmentInfo of ipAssessmentInfos) {
10
- const row = `
11
- <tr class="slds-hint_parent">
12
- <td style="word-wrap: break-word; white-space: normal; max-width: 200px;">
13
- <div class="slds-truncate" title="${ipAssessmentInfo.name}">${ipAssessmentInfo.name}</div>
14
- </td>
15
- <td style="word-wrap: break-word; white-space: normal; max-width: 100px;">
16
- <div class="slds-truncate" title="${ipAssessmentInfo.id}"><a href="${instanceUrl}/${ipAssessmentInfo.id}">${ipAssessmentInfo.id}</div>
17
- </td>
18
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
19
- ${reportingHelper_1.reportingHelper.convertToBuletedList(ipAssessmentInfo.warnings)}
20
- </td>
21
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
22
- ${reportingHelper_1.reportingHelper.decorate(ipAssessmentInfo.dependenciesIP)}
23
- </td>
24
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
25
- ${reportingHelper_1.reportingHelper.decorate(ipAssessmentInfo.dependenciesDR)}
26
- </td>
27
- <td style="word-wrap: break-word; white-space: normal; max-width: 60%; overflow: hidden;">
28
- ${reportingHelper_1.reportingHelper.decorate(ipAssessmentInfo.dependenciesRemoteAction)}
29
- </td>
30
- </tr>`;
31
- tableBody += row;
32
- }
33
- return this.getIPAssessmentReport(tableBody);
34
- }
35
- static getIPAssessmentReport(tableContent) {
36
- const tableBody = `
37
- <div style="margin-block:15px">
38
- <table style="width: 100%; table-layout: auto;" class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_striped slds-table_col-bordered" aria-label="Results for Integration Procedure updates">
39
- <thead>
40
- <tr class="slds-line-height_reset">
41
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
42
- <div class="slds-truncate" title="Name">Name</div>
43
- </th>
44
- <th class="" scope="col" style="width: 10%; word-wrap: break-word; white-space: normal; text-align: left;">
45
- <div class="slds-truncate" title="ID">ID</div>
46
- </th>
47
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
48
- <div title="Warnings"> Summary </div>
49
- </th>
50
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
51
- <div title="Dependencies">Integration Procedures Dependencies</div>
52
- </th>
53
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
54
- <div title="Dependencies">Data Mapper dependencies</div>
55
- </th>
56
- <th class="" scope="col" style="width: 20%; word-wrap: break-word; white-space: normal; text-align: left;">
57
- <div title="Dependencies">Remote Action Dependencies</div>
58
- </th>
59
- </tr>
60
- </thead>
61
- <tbody>
62
- ${tableContent}
63
- </tbody>
64
- </table>
65
- </div>`;
66
- return tableBody;
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,CAAC,iBAAqC,EAAE,WAAmB;QAC1F,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,SAAS,IAAI,wFAAwF,CAAC;QAEtG,KAAK,MAAM,gBAAgB,IAAI,iBAAiB,EAAE;YAChD,MAAM,GAAG,GAAG;;;sDAGoC,gBAAgB,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI;;;sDAG/C,gBAAgB,CAAC,EAAE,cAAc,WAAW,IAC1F,gBAAgB,CAAC,EACnB,KAAK,gBAAgB,CAAC,EAAE;;;oBAGV,iCAAe,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,QAAQ,CAAC;;;oBAG/D,iCAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC;;;mBAG1D,iCAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC;;;mBAGzD,iCAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,wBAAwB,CAAC;;gBAEtE,CAAC;YACX,SAAS,IAAI,GAAG,CAAC;SAClB;QAED,OAAO,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC;IACO,MAAM,CAAC,qBAAqB,CAAC,YAAoB;QACvD,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;UA0BZ,YAAY;;;WAGX,CAAC;QACR,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAnED,oDAmEC"}
1
+ {"version":3,"file":"IPAssessmentReporter.js","sourceRoot":"","sources":["../../../src/utils/resultsbuilder/IPAssessment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AC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aAC1G;YACD;gBACE,GAAG,EAAE,gBAAgB;gBACrB,IAAI,EAAE,CAAC,GAAqB,EAAU,EAAE,CAAC,iCAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE;gBAC3F,WAAW,EAAE,CAAC,GAAqB,EAAU,EAAE,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aAC1G;YACD;gBACE,GAAG,EAAE,0BAA0B;gBAC/B,IAAI,EAAE,CAAC,GAAqB,EAAU,EAAE,CAAC,iCAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,EAAE;gBACrG,WAAW,EAAE,CAAC,GAAqB,EAAU,EAAE,CAC7C,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;aAC9E;SACF,CAAC;QAEF,MAAM,yBAAyB,GAAgD;YAC7E,aAAa,EAAE,YAAY;YAC3B,OAAO;YACP,IAAI,EAAE,iBAAiB;YACvB,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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AC,CAAC;aACpF;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,GAAG,EAAE,QAAQ;gBACb,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;aAC3E;SACF,CAAC;QAEF,MAAM,yBAAyB,GAAuC;YACpE,aAAa,EAAE,YAAY;YAC3B,OAAO;YACP,IAAI;YACJ,UAAU,EAAE,GAAG;YACf,OAAO;YACP,UAAU,EAAE,EAAE;YACd,iBAAiB,EAAE,gBAAgB;YACnC,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;IAEO,MAAM,CAAC,YAAY,CAAC,kBAAuC;QACjE,MAAM,IAAI,GAAc,EAAE,CAAC;QAC3B,KAAK,MAAM,iBAAiB,IAAI,kBAAkB,EAAE;YAClD,KAAK,MAAM,cAAc,IAAI,iBAAiB,CAAC,WAAW,EAAE;gBAC1D,IAAI,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,iBAAiB,CAAC,IAAI;oBAC5B,QAAQ,EAAE,cAAc,CAAC,IAAI;oBAC7B,QAAQ,EAAE,cAAc,CAAC,IAAI;oBAC7B,IAAI,EAAE,cAAc,CAAC,IAAI;oBACzB,eAAe,EAAE,EAAE;oBACnB,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC5C,CAAC,CAAC;aACJ;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA7HD,sDA6HC"}
@@ -1,5 +1,7 @@
1
1
  import { OSAssessmentInfo } from '../interfaces';
2
- export declare class OSAssesmentReporter {
3
- static generateOSAssesment(osAssessmentInfos: OSAssessmentInfo[], instanceUrl: string): string;
4
- private static getOSAssessmentReport;
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
  }