@salesforce/plugin-omnistudio-migration-tool 2.0.0-beta.7 → 2.0.0-rc.10
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 +116 -20
- package/lib/commands/omnistudio/migration/assess.d.ts +1 -1
- package/lib/commands/omnistudio/migration/assess.js +46 -96
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/info.js +2 -3
- package/lib/commands/omnistudio/migration/info.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +3 -1
- package/lib/commands/omnistudio/migration/migrate.js +126 -42
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/error/errorInterfaces.d.ts +14 -0
- package/lib/error/errorInterfaces.js +27 -0
- package/lib/error/errorInterfaces.js.map +1 -0
- package/lib/javascripts/reportGeneratorUtility.js +1 -3
- package/lib/mappings/GlobalAutoNumber.d.ts +10 -0
- package/lib/mappings/GlobalAutoNumber.js +14 -0
- package/lib/mappings/GlobalAutoNumber.js.map +1 -0
- package/lib/migration/base.d.ts +5 -4
- package/lib/migration/base.js +28 -7
- package/lib/migration/base.js.map +1 -1
- package/lib/migration/dataraptor.js +26 -11
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/flexcard.d.ts +3 -0
- package/lib/migration/flexcard.js +161 -35
- package/lib/migration/flexcard.js.map +1 -1
- package/lib/migration/globalautonumber.d.ts +60 -0
- package/lib/migration/globalautonumber.js +318 -0
- package/lib/migration/globalautonumber.js.map +1 -0
- package/lib/migration/interfaces.d.ts +89 -0
- package/lib/migration/interfaces.js +7 -0
- package/lib/migration/interfaces.js.map +1 -1
- package/lib/migration/omniscript.d.ts +3 -0
- package/lib/migration/omniscript.js +204 -33
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/postMigrate.d.ts +13 -0
- package/lib/migration/postMigrate.js +58 -0
- package/lib/migration/postMigrate.js.map +1 -0
- package/lib/migration/premigrate.d.ts +12 -0
- package/lib/migration/premigrate.js +75 -0
- package/lib/migration/premigrate.js.map +1 -0
- package/lib/migration/related/ApexMigration.js +23 -15
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/ExperienceSiteMigration.d.ts +25 -0
- package/lib/migration/related/ExperienceSiteMigration.js +286 -0
- package/lib/migration/related/ExperienceSiteMigration.js.map +1 -0
- package/lib/migration/related/FlexipageMigration.d.ts +84 -0
- package/lib/migration/related/FlexipageMigration.js +215 -0
- package/lib/migration/related/FlexipageMigration.js.map +1 -0
- package/lib/migration/related/LwcMigration.js +13 -13
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.d.ts +4 -0
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +34 -27
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/styles/reportGenerator.css +46 -7
- package/lib/templates/assessmentReport.template +53 -33
- package/lib/templates/dashboard.template +22 -2
- package/lib/templates/migrationReport.template +37 -27
- package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +40 -0
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js +65 -0
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +1 -0
- package/lib/utils/XMLUtil.d.ts +34 -0
- package/lib/utils/XMLUtil.js +171 -0
- package/lib/utils/XMLUtil.js.map +1 -0
- package/lib/utils/constants/{callToActionMessages.d.ts → documentRegistry.d.ts} +2 -1
- package/lib/utils/constants/{callToActionMessages.js → documentRegistry.js} +6 -5
- package/lib/utils/constants/documentRegistry.js.map +1 -0
- package/lib/utils/constants/stringContants.d.ts +8 -0
- package/lib/utils/constants/stringContants.js +8 -0
- package/lib/utils/constants/stringContants.js.map +1 -1
- package/lib/utils/file/fileUtil.d.ts +3 -0
- package/lib/utils/file/fileUtil.js +36 -0
- package/lib/utils/file/fileUtil.js.map +1 -1
- package/lib/utils/flexipage/flexiPageTransformer.d.ts +17 -0
- package/lib/utils/flexipage/flexiPageTransformer.js +138 -0
- package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -0
- package/lib/utils/generatePackageXml.d.ts +4 -2
- package/lib/utils/generatePackageXml.js +23 -1
- package/lib/utils/generatePackageXml.js.map +1 -1
- package/lib/utils/interfaces.d.ts +71 -0
- package/lib/utils/logger.d.ts +2 -2
- package/lib/utils/logger.js +4 -3
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.d.ts +2 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +92 -47
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
- package/lib/utils/net/index.js +13 -16
- package/lib/utils/net/index.js.map +1 -1
- package/lib/utils/orgPreferences.d.ts +23 -0
- package/lib/utils/orgPreferences.js +73 -0
- package/lib/utils/orgPreferences.js.map +1 -1
- package/lib/utils/orgUtils/index.js +1 -2
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/projectPathUtil.d.ts +39 -0
- package/lib/utils/projectPathUtil.js +173 -0
- package/lib/utils/projectPathUtil.js.map +1 -0
- package/lib/utils/promptUtil.d.ts +2 -0
- package/lib/utils/promptUtil.js +26 -1
- package/lib/utils/promptUtil.js.map +1 -1
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +3 -0
- package/lib/utils/reportGenerator/reportUtil.d.ts +1 -1
- package/lib/utils/reportGenerator/reportUtil.js +5 -1
- package/lib/utils/reportGenerator/reportUtil.js.map +1 -1
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +24 -10
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +34 -11
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +93 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +46 -10
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +55 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +137 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.d.ts +14 -0
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js +148 -0
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +31 -11
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +114 -139
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js +25 -16
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +5 -1
- package/lib/utils/resultsbuilder/assessmentReporter.js +120 -53
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/index.d.ts +7 -1
- package/lib/utils/resultsbuilder/index.js +318 -48
- package/lib/utils/resultsbuilder/index.js.map +1 -1
- package/lib/utils/resultsbuilder/reportingHelper.d.ts +4 -2
- package/lib/utils/resultsbuilder/reportingHelper.js +22 -4
- package/lib/utils/resultsbuilder/reportingHelper.js.map +1 -1
- package/lib/utils/storageUtil.d.ts +10 -0
- package/lib/utils/storageUtil.js +61 -0
- package/lib/utils/storageUtil.js.map +1 -0
- package/lib/utils/stringUtils.d.ts +1 -0
- package/lib/utils/stringUtils.js +22 -1
- package/lib/utils/stringUtils.js.map +1 -1
- package/messages/assess.json +102 -28
- package/messages/migrate.json +130 -23
- package/oclif.manifest.json +1 -1
- package/package.json +6 -5
- package/lib/utils/constants/callToActionMessages.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,33 +1,52 @@
|
|
|
1
1
|
# OmniStudio Migration Assistant
|
|
2
2
|
|
|
3
|
+
The Omnistudio Migration Assistant is a command-line interface (CLI) plugin that you install via Salesforce CLI. It creates records for your omnistudio components on the Salesforce standard objects.
|
|
4
|
+
|
|
3
5
|
### Before You Begin
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
- Review the migration phases in [Migration Process from Omnistudio for Managed Packages to Omnistudio](https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_omnistudio_custom_objects_to_standard_objects.htm&language=en_US&type=5)
|
|
8
|
+
|
|
9
|
+
- Install Salesforce CLI on your computer. See : [Install Salesforce CLI](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
|
|
10
|
+
|
|
11
|
+
## Install and Run the Omnistudio Migration Assistant
|
|
12
|
+
|
|
13
|
+
1. Install SF cli using the official documentation located [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
|
|
14
|
+
2. Authenticate Salesforce CLI in your migration sandbox (the org you are going to use for development) using the `sf org login web` command and then enter your username and password in the new browser tab that appears. See [Salesforce CLI Command Reference org login Commands](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm).
|
|
15
|
+
|
|
16
|
+
`sf org login web --instance-url=<Org URL>`
|
|
17
|
+
|
|
18
|
+
When prompted, enter your username and password, and connect. The command-line interface shows the message "Authentication Successful"
|
|
19
|
+
|
|
20
|
+
For example:
|
|
21
|
+
`username@userdomain ~ % sf org login web --instance-url=https://usa794org-5b.my.salesforce.com`
|
|
22
|
+
|
|
23
|
+
You then see the authorization message.
|
|
24
|
+
Successfully authorized username@salesforce.com with org ID 00DHp000004ArLWMA0
|
|
6
25
|
|
|
7
|
-
|
|
26
|
+
You can also authenticate using a consumer key (client ID) and secret key through connected apps. See [Authorization Through Connected Apps and OAuth 2.0](<[text](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_oauth_and_connected_apps.htm)>).
|
|
8
27
|
|
|
9
|
-
|
|
10
|
-
2. Authenticate your SFDX cli into the org you are going to use for development. You can follow authentication steps [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_auth_web.htm).
|
|
11
|
-
3. In a new terminal session, install the plugin using the following command
|
|
28
|
+
3. In a new terminal session, Install the Omnistudio Migration Assistant by running the `sf plugins install` command. For example
|
|
12
29
|
|
|
13
30
|
```
|
|
14
|
-
|
|
31
|
+
sf plugins install @salesforce/plugin-omnistudio-migration-tool@2.0.0-beta.13
|
|
15
32
|
```
|
|
16
33
|
|
|
17
|
-
4.
|
|
34
|
+
4. Run the Omnistudio Migration Assistant from the Salesforce CLI:
|
|
18
35
|
|
|
19
36
|
```
|
|
37
|
+
// To assess everything without migrating
|
|
38
|
+
sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM
|
|
39
|
+
|
|
20
40
|
// To migrate everything
|
|
21
41
|
sfdx omnistudio:migration:migrate -u YOUR_ORG_USERNAME@DOMAIN.COM
|
|
22
42
|
|
|
23
|
-
// To assess everything without migrating
|
|
24
|
-
sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM
|
|
25
43
|
|
|
26
|
-
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or
|
|
27
|
-
--only=dr
|
|
28
|
-
--only=ip
|
|
29
|
-
--only=os
|
|
30
|
-
--only=fc
|
|
44
|
+
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, OmniScripts, or Global Auto Numbers, add the following parameters:
|
|
45
|
+
--only=dr // DataMappers (DataRaptors)
|
|
46
|
+
--only=ip // Integration Procedures
|
|
47
|
+
--only=os // OmniScripts
|
|
48
|
+
--only=fc // FlexCards
|
|
49
|
+
--only=autonumber // Global Auto Numbers
|
|
31
50
|
|
|
32
51
|
// To migrate all versions of the components and not just the active ones:
|
|
33
52
|
--allversions
|
|
@@ -39,13 +58,89 @@ sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM
|
|
|
39
58
|
--namespace=VLOCITY_PACKAGE_NAMESPACE
|
|
40
59
|
```
|
|
41
60
|
|
|
61
|
+
5. An HTML page will be open in your default browser with the results of your migration/assessment reports.
|
|
62
|
+
|
|
63
|
+
## Global Auto Number Migration
|
|
64
|
+
|
|
65
|
+
Global Auto Numbers are components that generate sequential numbers across your Omnistudio org. The migration tool supports both assessment and migration of these components.
|
|
66
|
+
|
|
67
|
+
### Prerequisites for Global Auto Number Migration
|
|
68
|
+
|
|
69
|
+
Before migrating Global Auto Numbers, ensure that:
|
|
70
|
+
|
|
71
|
+
1. **Org Preference is Disabled**: The `OmniGlobalAutoNumberPref` org preference must be disabled before migration
|
|
72
|
+
2. **Rollback Flags are Disabled**: Both `RollbackIPChanges` and `RollbackDRChanges` flags must be disabled
|
|
73
|
+
3. **Namespace is Specified**: Provide the correct namespace for your OmniStudio package
|
|
74
|
+
|
|
75
|
+
### Global Auto Number Migration Process
|
|
76
|
+
|
|
77
|
+
The migration process for Global Auto Numbers includes:
|
|
78
|
+
|
|
79
|
+
1. **Pre-migration Checks**: Validates that org preferences and rollback flags are properly configured
|
|
80
|
+
2. **Data Migration**: Transforms Global Auto Number settings from custom objects to standard Business Process Objects (BPO)
|
|
81
|
+
3. **Post-migration Cleanup**: Removes source objects and enables the `OmniGlobalAutoNumberPref` org preference
|
|
82
|
+
4. **Validation**: Ensures all records are successfully migrated before cleanup
|
|
83
|
+
|
|
84
|
+
### Global Auto Number Assessment
|
|
85
|
+
|
|
86
|
+
Assessment provides detailed information about:
|
|
87
|
+
|
|
88
|
+
- **Name Changes**: Identifies any naming modifications required to comply with API naming standards
|
|
89
|
+
- **Migration Readiness**: Determines if components can be automatically migrated or require manual intervention
|
|
90
|
+
- **Warnings**: Highlights potential issues that may affect migration success
|
|
91
|
+
|
|
92
|
+
### Usage Examples for Global Auto Numbers
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Assess Global Auto Numbers only
|
|
96
|
+
sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM --only=autonumber
|
|
97
|
+
|
|
98
|
+
# Migrate Global Auto Numbers only
|
|
99
|
+
sfdx omnistudio:migration:migrate -u YOUR_ORG_USERNAME@DOMAIN.COM --only=autonumber
|
|
100
|
+
```
|
|
101
|
+
|
|
42
102
|
5. An HTML page will be open in your default browser with the results of your migration/assessment job.
|
|
43
103
|
|
|
44
|
-
### Usage & parameters
|
|
104
|
+
### Assess Usage & parameters
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
USAGE
|
|
108
|
+
$ sf omnistudio:migration:assess [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
109
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
110
|
+
|
|
111
|
+
OPTIONS
|
|
112
|
+
-n, --namespace=namespace the namespace of the vertical package
|
|
113
|
+
|
|
114
|
+
-u, --targetusername=targetusername username or alias for the target
|
|
115
|
+
org; overrides default target org
|
|
116
|
+
|
|
117
|
+
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
|
|
118
|
+
org; overrides default dev hub org
|
|
119
|
+
|
|
120
|
+
--apiversion=apiversion override the api version used for
|
|
121
|
+
api requests made by this command
|
|
122
|
+
|
|
123
|
+
--json format output as json
|
|
124
|
+
|
|
125
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
126
|
+
this command invocation
|
|
127
|
+
|
|
128
|
+
-a, --allversions migrate all versions and not
|
|
129
|
+
and not just the active ones.
|
|
130
|
+
|
|
131
|
+
--only=only specify components to assess:
|
|
132
|
+
dr (DataRaptors), ip (Integration Procedures),
|
|
133
|
+
os (OmniScripts), fc (FlexCards), autonumber (Global Auto Numbers)
|
|
134
|
+
|
|
135
|
+
--relatedobjects=relatedobjects specify related objects to assess:
|
|
136
|
+
'apex' for Apex classes
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Migrate Usage & parameters
|
|
45
140
|
|
|
46
141
|
```
|
|
47
142
|
USAGE
|
|
48
|
-
$
|
|
143
|
+
$ sf omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
49
144
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
50
145
|
|
|
51
146
|
OPTIONS
|
|
@@ -68,16 +163,17 @@ OPTIONS
|
|
|
68
163
|
-a, --allversions migrate all versions and not
|
|
69
164
|
and not just the active ones.
|
|
70
165
|
|
|
71
|
-
--only=only specify components to migrate
|
|
166
|
+
--only=only specify components to migrate:
|
|
72
167
|
dr (DataRaptors), ip (Integration Procedures),
|
|
73
168
|
os (OmniScripts), fc (FlexCards)
|
|
74
169
|
|
|
75
170
|
--relatedobjects=relatedobjects specify related objects to assess:
|
|
76
|
-
'apex' for Apex classes
|
|
77
|
-
Web Components, or 'apex,lwc' for both types
|
|
171
|
+
'apex' for Apex classes
|
|
78
172
|
```
|
|
79
173
|
|
|
80
|
-
> **Note:** LWC (Lightning Web Components) migration functionality is temporarily disabled in the current version.
|
|
174
|
+
> **Note:** LWC (Lightning Web Components) assessment/migration functionality is temporarily disabled in the current version. LWC features will be re-enabled in a future releases.
|
|
175
|
+
|
|
176
|
+
> Apex migration functionality remains fully available. The `--relatedobjects` flag only accepts values ('apex')
|
|
81
177
|
|
|
82
178
|
Terms:
|
|
83
179
|
Notwithstanding anything stated in the terms and conditions agreed between Salesforce (‘SFDC’) and you (‘Customer’), the use of the OmniStudio Migration Assistant (‘Assistant’) is designed to facilitate the migration and it’s going to modify your custom code and by deploying and using the Assistant you hereby provide your consent to automate the migration process and enable a smooth transition. Customer shall access and use the Assistant 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.
|
|
@@ -27,8 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const os = __importStar(require("os"));
|
|
30
|
-
const path = __importStar(require("path"));
|
|
31
|
-
const fs = __importStar(require("fs"));
|
|
32
30
|
const command_1 = require("@salesforce/command");
|
|
33
31
|
const core_1 = require("@salesforce/core");
|
|
34
32
|
const basecommand_1 = __importDefault(require("../../basecommand"));
|
|
@@ -36,32 +34,18 @@ const assessmentReporter_1 = require("../../../utils/resultsbuilder/assessmentRe
|
|
|
36
34
|
const omniscript_1 = require("../../../migration/omniscript");
|
|
37
35
|
const flexcard_1 = require("../../../migration/flexcard");
|
|
38
36
|
const dataraptor_1 = require("../../../migration/dataraptor");
|
|
37
|
+
const globalautonumber_1 = require("../../../migration/globalautonumber");
|
|
39
38
|
const utils_1 = require("../../../utils");
|
|
40
39
|
const logger_1 = require("../../../utils/logger");
|
|
41
40
|
const OmnistudioRelatedObjectMigrationFacade_1 = __importDefault(require("../../../migration/related/OmnistudioRelatedObjectMigrationFacade"));
|
|
42
41
|
const orgUtils_1 = require("../../../utils/orgUtils");
|
|
43
42
|
const orgPreferences_1 = require("../../../utils/orgPreferences");
|
|
44
43
|
const stringContants_1 = require("../../../utils/constants/stringContants");
|
|
45
|
-
const
|
|
46
|
-
const
|
|
44
|
+
const projectPathUtil_1 = require("../../../utils/projectPathUtil");
|
|
45
|
+
const premigrate_1 = require("../../../migration/premigrate");
|
|
46
|
+
const postMigrate_1 = require("../../../migration/postMigrate");
|
|
47
47
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
48
48
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-omnistudio-migration-tool', 'assess');
|
|
49
|
-
const EXISTING_MODE = 'existing';
|
|
50
|
-
const EMPTY_MODE = 'empty';
|
|
51
|
-
const YES_SHORT = 'y';
|
|
52
|
-
const NO_SHORT = 'n';
|
|
53
|
-
const YES_LONG = 'yes';
|
|
54
|
-
const NO_LONG = 'no';
|
|
55
|
-
// Helper to create SFDX project if needed
|
|
56
|
-
function createSfdxProject(folderPath) {
|
|
57
|
-
const projectName = path.basename(folderPath);
|
|
58
|
-
const parentDir = path.dirname(folderPath);
|
|
59
|
-
sfProject_1.sfProject.create(projectName, parentDir);
|
|
60
|
-
}
|
|
61
|
-
function isSfdxProject(folderPath) {
|
|
62
|
-
const sfdxProjectJson = path.join(folderPath, 'sfdx-project.json');
|
|
63
|
-
return fs.existsSync(sfdxProjectJson);
|
|
64
|
-
}
|
|
65
49
|
class Assess extends basecommand_1.default {
|
|
66
50
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
51
|
async run() {
|
|
@@ -71,8 +55,7 @@ class Assess extends basecommand_1.default {
|
|
|
71
55
|
return await this.runAssess();
|
|
72
56
|
}
|
|
73
57
|
catch (error) {
|
|
74
|
-
logger_1.Logger.error('
|
|
75
|
-
logger_1.Logger.error(error);
|
|
58
|
+
logger_1.Logger.error(messages.getMessage('errorRunningAssess'), error);
|
|
76
59
|
process.exit(1);
|
|
77
60
|
}
|
|
78
61
|
}
|
|
@@ -83,7 +66,11 @@ class Assess extends basecommand_1.default {
|
|
|
83
66
|
const allVersions = (this.flags.allversions || false);
|
|
84
67
|
const assessOnly = (this.flags.only || '');
|
|
85
68
|
const relatedObjects = (this.flags.relatedobjects || '');
|
|
69
|
+
const isExperienceBundleMetadataAPIProgramaticallyEnabled = { value: false };
|
|
86
70
|
const conn = this.org.getConnection();
|
|
71
|
+
let objectsToProcess;
|
|
72
|
+
// To-Do: Add LWC to valid options when GA is released
|
|
73
|
+
const validOptions = [stringContants_1.Constants.Apex, stringContants_1.Constants.ExpSites, stringContants_1.Constants.FlexiPage, stringContants_1.Constants.LWC];
|
|
87
74
|
if (apiVersion) {
|
|
88
75
|
conn.setApiVersion(apiVersion);
|
|
89
76
|
}
|
|
@@ -91,7 +78,7 @@ class Assess extends basecommand_1.default {
|
|
|
91
78
|
apiVersion = conn.getApiVersion();
|
|
92
79
|
}
|
|
93
80
|
const orgs = await orgUtils_1.OrgUtils.getOrgDetails(conn, this.flags.namespace);
|
|
94
|
-
if (!orgs.hasValidNamespace) {
|
|
81
|
+
if (!orgs.hasValidNamespace && this.flags.namespace) {
|
|
95
82
|
logger_1.Logger.warn(messages.getMessage('invalidNamespace') + orgs.packageDetails.namespace);
|
|
96
83
|
}
|
|
97
84
|
if (!orgs.packageDetails) {
|
|
@@ -104,41 +91,54 @@ class Assess extends basecommand_1.default {
|
|
|
104
91
|
}
|
|
105
92
|
const namespace = orgs.packageDetails.namespace;
|
|
106
93
|
let projectPath = '';
|
|
94
|
+
const preMigrate = new premigrate_1.PreMigrate(namespace, conn, this.logger, messages, this.ux);
|
|
107
95
|
if (relatedObjects) {
|
|
108
|
-
|
|
96
|
+
objectsToProcess = relatedObjects.split(',').map((obj) => obj.trim());
|
|
97
|
+
projectPath = await projectPathUtil_1.ProjectPathUtil.getProjectPath(messages, true);
|
|
98
|
+
await preMigrate.handleExperienceSitePrerequisites(objectsToProcess, conn, isExperienceBundleMetadataAPIProgramaticallyEnabled);
|
|
109
99
|
}
|
|
110
100
|
const assesmentInfo = {
|
|
111
101
|
lwcAssessmentInfos: [],
|
|
112
102
|
apexAssessmentInfos: [],
|
|
113
103
|
dataRaptorAssessmentInfos: [],
|
|
114
104
|
flexCardAssessmentInfos: [],
|
|
105
|
+
globalAutoNumberAssessmentInfos: [],
|
|
115
106
|
omniAssessmentInfo: {
|
|
116
107
|
osAssessmentInfos: [],
|
|
117
108
|
ipAssessmentInfos: [],
|
|
118
109
|
},
|
|
110
|
+
flexipageAssessmentInfos: [],
|
|
111
|
+
experienceSiteAssessmentInfos: [],
|
|
119
112
|
};
|
|
120
113
|
logger_1.Logger.log(messages.getMessage('assessmentInitialization', [String(namespace)]));
|
|
121
|
-
logger_1.Logger.
|
|
114
|
+
logger_1.Logger.log(messages.getMessage('apiVersionInfo', [String(apiVersion)]));
|
|
122
115
|
logger_1.Logger.logVerbose(messages.getMessage('assessmentTargets', [String(this.flags.only || 'all')]));
|
|
123
116
|
logger_1.Logger.logVerbose(messages.getMessage('relatedObjectsInfo', [relatedObjects || 'none']));
|
|
124
117
|
logger_1.Logger.logVerbose(messages.getMessage('allVersionsFlagInfo', [String(allVersions)]));
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
118
|
+
try {
|
|
119
|
+
// Assess OmniStudio components
|
|
120
|
+
await this.assessOmniStudioComponents(assesmentInfo, assessOnly, namespace, conn, allVersions);
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
logger_1.Logger.error(`Cannot assess OmniStudio components within ${namespace}`);
|
|
124
|
+
process.exit(1);
|
|
125
|
+
}
|
|
128
126
|
// Assess related objects if specified
|
|
129
127
|
if (relatedObjects) {
|
|
130
|
-
const validOptions = [stringContants_1.Constants.Apex, stringContants_1.Constants.LWC];
|
|
131
128
|
objectsToProcess = relatedObjects.split(',').map((obj) => obj.trim());
|
|
132
129
|
// Validate input
|
|
133
130
|
for (const obj of objectsToProcess) {
|
|
134
131
|
if (!validOptions.includes(obj)) {
|
|
135
|
-
logger_1.Logger.
|
|
132
|
+
logger_1.Logger.error(messages.getMessage('invalidRelatedObjectsOption', [String(obj)]));
|
|
133
|
+
process.exit(1);
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
const omnistudioRelatedObjectsMigration = new OmnistudioRelatedObjectMigrationFacade_1.default(namespace, assessOnly, allVersions, this.org, projectPath);
|
|
139
137
|
const relatedObjectAssessmentResult = omnistudioRelatedObjectsMigration.assessAll(objectsToProcess);
|
|
140
138
|
assesmentInfo.lwcAssessmentInfos = relatedObjectAssessmentResult.lwcAssessmentInfos;
|
|
141
139
|
assesmentInfo.apexAssessmentInfos = relatedObjectAssessmentResult.apexAssessmentInfos;
|
|
140
|
+
assesmentInfo.flexipageAssessmentInfos = relatedObjectAssessmentResult.flexipageAssessmentInfos;
|
|
141
|
+
assesmentInfo.experienceSiteAssessmentInfos = relatedObjectAssessmentResult.experienceSiteAssessmentInfos;
|
|
142
142
|
}
|
|
143
143
|
try {
|
|
144
144
|
orgs.rollbackFlags = await orgPreferences_1.OrgPreferences.checkRollbackFlags(conn);
|
|
@@ -147,7 +147,11 @@ class Assess extends basecommand_1.default {
|
|
|
147
147
|
logger_1.Logger.log(error.message);
|
|
148
148
|
logger_1.Logger.log(error.stack);
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
// Post Assessment tasks
|
|
151
|
+
const postMigrate = new postMigrate_1.PostMigrate(this.org, namespace, conn, this.logger, messages, this.ux, objectsToProcess);
|
|
152
|
+
const userActionMessages = [];
|
|
153
|
+
await postMigrate.restoreExperienceAPIMetadataSettings(isExperienceBundleMetadataAPIProgramaticallyEnabled, userActionMessages);
|
|
154
|
+
await assessmentReporter_1.AssessmentReporter.generate(assesmentInfo, conn.instanceUrl, orgs, assessOnly, objectsToProcess, messages, userActionMessages);
|
|
151
155
|
return assesmentInfo;
|
|
152
156
|
}
|
|
153
157
|
async assessOmniStudioComponents(assesmentInfo, assessOnly, namespace, conn, allVersions) {
|
|
@@ -156,6 +160,7 @@ class Assess extends basecommand_1.default {
|
|
|
156
160
|
await this.assessDataRaptors(assesmentInfo, namespace, conn);
|
|
157
161
|
await this.assessFlexCards(assesmentInfo, namespace, conn, allVersions);
|
|
158
162
|
await this.assessOmniScripts(assesmentInfo, namespace, conn, allVersions, omniscript_1.OmniScriptExportType.All);
|
|
163
|
+
await this.assessGlobalAutoNumbers(assesmentInfo, namespace, conn);
|
|
159
164
|
return;
|
|
160
165
|
}
|
|
161
166
|
switch (assessOnly) {
|
|
@@ -171,6 +176,9 @@ class Assess extends basecommand_1.default {
|
|
|
171
176
|
case stringContants_1.Constants.IntegrationProcedure:
|
|
172
177
|
await this.assessOmniScripts(assesmentInfo, namespace, conn, allVersions, omniscript_1.OmniScriptExportType.IP);
|
|
173
178
|
break;
|
|
179
|
+
case stringContants_1.Constants.GlobalAutoNumber:
|
|
180
|
+
await this.assessGlobalAutoNumbers(assesmentInfo, namespace, conn);
|
|
181
|
+
break;
|
|
174
182
|
default:
|
|
175
183
|
throw new Error(messages.getMessage('invalidOnlyFlag'));
|
|
176
184
|
}
|
|
@@ -198,70 +206,12 @@ class Assess extends basecommand_1.default {
|
|
|
198
206
|
]));
|
|
199
207
|
logger_1.Logger.log(messages.getMessage('omniScriptAssessmentCompleted'));
|
|
200
208
|
}
|
|
201
|
-
async
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
let response = '';
|
|
208
|
-
let validResponse = false;
|
|
209
|
-
while (!validResponse) {
|
|
210
|
-
try {
|
|
211
|
-
const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), messages.getMessage('existingApexPrompt'));
|
|
212
|
-
response = typeof resp === 'string' ? resp.trim().toLowerCase() : '';
|
|
213
|
-
}
|
|
214
|
-
catch (err) {
|
|
215
|
-
logger_1.Logger.error(messages.getMessage('requestTimedOut'));
|
|
216
|
-
process.exit(1);
|
|
217
|
-
}
|
|
218
|
-
if (response === YES_SHORT || response === YES_LONG) {
|
|
219
|
-
mode = EXISTING_MODE;
|
|
220
|
-
validResponse = true;
|
|
221
|
-
}
|
|
222
|
-
else if (response === NO_SHORT || response === NO_LONG) {
|
|
223
|
-
mode = EMPTY_MODE;
|
|
224
|
-
validResponse = true;
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
logger_1.Logger.error(messages.getMessage('invalidYesNoResponse'));
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
// Prompt for project path
|
|
231
|
-
let gotValidPath = false;
|
|
232
|
-
while (!gotValidPath) {
|
|
233
|
-
let folderPath = '';
|
|
234
|
-
try {
|
|
235
|
-
const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), mode === EXISTING_MODE
|
|
236
|
-
? messages.getMessage('enterExistingProjectPath')
|
|
237
|
-
: messages.getMessage('enterEmptyProjectPath'));
|
|
238
|
-
folderPath = typeof resp === 'string' ? resp.trim() : '';
|
|
239
|
-
}
|
|
240
|
-
catch (err) {
|
|
241
|
-
logger_1.Logger.error(messages.getMessage('requestTimedOut'));
|
|
242
|
-
process.exit(1);
|
|
243
|
-
}
|
|
244
|
-
folderPath = path.resolve(folderPath);
|
|
245
|
-
if (!fs.existsSync(folderPath) || !fs.lstatSync(folderPath).isDirectory()) {
|
|
246
|
-
logger_1.Logger.error(messages.getMessage('invalidProjectFolderPath'));
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
if (mode === EMPTY_MODE && fs.readdirSync(folderPath).length > 0) {
|
|
250
|
-
logger_1.Logger.error(messages.getMessage('notEmptyProjectFolderPath'));
|
|
251
|
-
continue;
|
|
252
|
-
}
|
|
253
|
-
// If empty, create SFDX project
|
|
254
|
-
if (mode === EMPTY_MODE) {
|
|
255
|
-
createSfdxProject(folderPath);
|
|
256
|
-
}
|
|
257
|
-
else if (!isSfdxProject(folderPath)) {
|
|
258
|
-
logger_1.Logger.error(messages.getMessage('notSfdxProjectFolderPath'));
|
|
259
|
-
continue;
|
|
260
|
-
}
|
|
261
|
-
projectPath = folderPath;
|
|
262
|
-
gotValidPath = true;
|
|
263
|
-
}
|
|
264
|
-
return projectPath;
|
|
209
|
+
async assessGlobalAutoNumbers(assesmentInfo, namespace, conn) {
|
|
210
|
+
logger_1.Logger.logVerbose(messages.getMessage('startingGlobalAutoNumberAssessment'));
|
|
211
|
+
const globalAutoNumberMigrationTool = new globalautonumber_1.GlobalAutoNumberMigrationTool(namespace, conn, logger_1.Logger, messages, this.ux);
|
|
212
|
+
assesmentInfo.globalAutoNumberAssessmentInfos = await globalAutoNumberMigrationTool.assess();
|
|
213
|
+
logger_1.Logger.logVerbose(messages.getMessage('assessedGlobalAutoNumbersCount', [assesmentInfo.globalAutoNumberAssessmentInfos.length]));
|
|
214
|
+
logger_1.Logger.log(messages.getMessage('globalAutoNumberAssessmentCompleted'));
|
|
265
215
|
}
|
|
266
216
|
}
|
|
267
217
|
exports.default = Assess;
|
|
@@ -284,7 +234,7 @@ Assess.flagsConfig = {
|
|
|
284
234
|
}),
|
|
285
235
|
relatedobjects: command_1.flags.string({
|
|
286
236
|
char: 'r',
|
|
287
|
-
description: messages.getMessage('
|
|
237
|
+
description: messages.getMessage('relatedObjectGA'),
|
|
288
238
|
}),
|
|
289
239
|
verbose: command_1.flags.builtin({
|
|
290
240
|
type: 'builtin',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assess.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/assess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,uCAAyB;AACzB,iDAA4C;AAC5C,2CAAwD;AACxD,oEAAsD;AAEtD,yFAAsF;AACtF,8DAA8F;AAC9F,0DAAgE;AAChE,8DAAwE;AACxE,0CAA4C;AAC5C,kDAA+C;AAC/C,+IAAuH;AACvH,sDAAyE;AACzE,kEAA+D;AAC/D,4EAAoE;AACpE,sEAAmE;AACnE,0DAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8CAA8C,EAAE,QAAQ,CAAC,CAAC;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AAC,UAAU,CAAC,qBAAqB,CAAC;KACxD,CAAC;CACH,CAAC"}
|
|
@@ -44,8 +44,7 @@ class Org extends command_1.SfdxCommand {
|
|
|
44
44
|
return await this.runInfo();
|
|
45
45
|
}
|
|
46
46
|
catch (error) {
|
|
47
|
-
logger_1.Logger.error('
|
|
48
|
-
logger_1.Logger.error(error);
|
|
47
|
+
logger_1.Logger.error(messages.getMessage('errorRunningInfo'), error);
|
|
49
48
|
process.exit(1);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
@@ -68,7 +67,7 @@ class Org extends command_1.SfdxCommand {
|
|
|
68
67
|
const trialExpirationDate = result.records[0].TrialExpirationDate;
|
|
69
68
|
let outputString = '';
|
|
70
69
|
if (trialExpirationDate) {
|
|
71
|
-
const date = new Date(trialExpirationDate).
|
|
70
|
+
const date = new Date(trialExpirationDate).toLocaleString();
|
|
72
71
|
outputString = messages.getMessage('greetingOrgInfoWithDate', [name, orgName, date]);
|
|
73
72
|
}
|
|
74
73
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/info.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,uCAAyB;AACzB,iDAAyD;AACzD,2CAAuD;AAEvD,kDAA+C;AAE/C,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8CAA8C,EAAE,MAAM,CAAC,CAAC;AAE/F,MAAqB,GAAI,SAAQ,qBAAW;IAiCnC,KAAK,CAAC,GAAG;QACd,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;SAC7B;QAAC,OAAO,KAAK,EAAE;YACd,eAAM,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":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AAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,QAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,eAAW,GAAG;IAC7B,uCAAuC;IACvC,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;KACxD,CAAC;IACF,WAAW,EAAE,eAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,QAAQ,EAAE,KAAK;KAChB,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,uBAAuB;KACrC,CAAC;CACH,CAAC;AAEF,oEAAoE;AACnD,oBAAgB,GAAG,IAAI,CAAC;AAEzC,uEAAuE;AACtD,0BAAsB,GAAG,IAAI,CAAC;AAE/C,uGAAuG;AACtF,mBAAe,GAAG,KAAK,CAAC"}
|
|
@@ -15,10 +15,12 @@ export default class Migrate extends OmniStudioBaseCommand {
|
|
|
15
15
|
};
|
|
16
16
|
run(): Promise<any>;
|
|
17
17
|
runMigration(): Promise<any>;
|
|
18
|
+
private getMigrationConsent;
|
|
19
|
+
private collectActionItems;
|
|
18
20
|
private truncateObjects;
|
|
19
21
|
private migrateObjects;
|
|
20
22
|
private getMigrationObjects;
|
|
21
|
-
private getProjectPath;
|
|
22
23
|
private getTargetApexNamespace;
|
|
24
|
+
private getGeneralConsent;
|
|
23
25
|
private mergeRecordAndUploadResults;
|
|
24
26
|
}
|