@salesforce/plugin-omnistudio-migration-tool 2.0.0-beta.13 → 2.0.0-beta.15

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 CHANGED
@@ -1,27 +1,45 @@
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
- Read and follow the directions in the Omnistudio migration documentation: https://help.salesforce.com/s/articleView?id=sf.os_migrate_omnistudio_custom_objects_to_standard_objects.htm&type=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"
6
19
 
7
- ## Running SFDX plugin
20
+ For example:
21
+ `username@userdomain ~ % sf org login web --instance-url=https://usa794org-5b.my.salesforce.com`
8
22
 
9
- 1. Install SFDX 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).
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
23
+ You then see the authorization message.
24
+ Successfully authorized username@salesforce.com with org ID 00DHp000004ArLWMA0
25
+
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)>).
27
+
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
- sfdx plugins:install @salesforce/plugin-omnistudio-migration-tool
31
+ sf plugins install @salesforce/plugin-omnistudio-migration-tool@2.0.0-beta.13
15
32
  ```
16
33
 
17
- 4. To run the migration assistant, run the following command from your command line tool:
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
44
  // To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
27
45
  --only=dr
@@ -39,13 +57,13 @@ sfdx omnistudio:migration:assess -u YOUR_ORG_USERNAME@DOMAIN.COM
39
57
  --namespace=VLOCITY_PACKAGE_NAMESPACE
40
58
  ```
41
59
 
42
- 5. An HTML page will be open in your default browser with the results of your migration/assessment job.
60
+ 5. An HTML page will be open in your default browser with the results of your migration/assessment reports.
43
61
 
44
- ### Usage & parameters
62
+ ### Assess Usage & parameters
45
63
 
46
64
  ```
47
65
  USAGE
48
- $ sfdx omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
66
+ $ sf omnistudio:migration:assess [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
49
67
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
50
68
 
51
69
  OPTIONS
@@ -68,16 +86,52 @@ OPTIONS
68
86
  -a, --allversions migrate all versions and not
69
87
  and not just the active ones.
70
88
 
71
- --only=only specify components to migrate/assess:
89
+ --only=only specify components to assess:
72
90
  dr (DataRaptors), ip (Integration Procedures),
73
91
  os (OmniScripts), fc (FlexCards)
74
92
 
75
93
  --relatedobjects=relatedobjects specify related objects to assess:
76
- 'apex' for Apex classes, 'lwc' for Lightning
77
- Web Components, or 'apex,lwc' for both types
94
+ 'apex' for Apex classes
95
+ ```
96
+
97
+ ### Migrate Usage & parameters
98
+
78
99
  ```
100
+ USAGE
101
+ $ sf omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
102
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
103
+
104
+ OPTIONS
105
+ -n, --namespace=namespace the namespace of the vertical package
106
+
107
+ -u, --targetusername=targetusername username or alias for the target
108
+ org; overrides default target org
109
+
110
+ -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
111
+ org; overrides default dev hub org
112
+
113
+ --apiversion=apiversion override the api version used for
114
+ api requests made by this command
115
+
116
+ --json format output as json
117
+
118
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
119
+ this command invocation
120
+
121
+ -a, --allversions migrate all versions and not
122
+ and not just the active ones.
123
+
124
+ --only=only specify components to migrate:
125
+ dr (DataRaptors), ip (Integration Procedures),
126
+ os (OmniScripts), fc (FlexCards)
127
+
128
+ --relatedobjects=relatedobjects specify related objects to assess:
129
+ 'apex' for Apex classes
130
+ ```
131
+
132
+ > **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.
79
133
 
80
- > **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.
134
+ > Apex migration functionality remains fully available. The `--relatedobjects` flag only accepts values ('apex')
81
135
 
82
136
  Terms:
83
137
  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.
@@ -19,5 +19,4 @@ export default class Assess extends OmniStudioBaseCommand {
19
19
  private assessDataRaptors;
20
20
  private assessFlexCards;
21
21
  private assessOmniScripts;
22
- private getProjectPath;
23
22
  }
@@ -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"));
@@ -42,26 +40,9 @@ const OmnistudioRelatedObjectMigrationFacade_1 = __importDefault(require("../../
42
40
  const orgUtils_1 = require("../../../utils/orgUtils");
43
41
  const orgPreferences_1 = require("../../../utils/orgPreferences");
44
42
  const stringContants_1 = require("../../../utils/constants/stringContants");
45
- const sfProject_1 = require("../../../utils/sfcli/project/sfProject");
46
- const promptUtil_1 = require("../../../utils/promptUtil");
43
+ const projectPathUtil_1 = require("../../../utils/projectPathUtil");
47
44
  core_1.Messages.importMessagesDirectory(__dirname);
48
45
  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
46
  class Assess extends basecommand_1.default {
66
47
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
48
  async run() {
@@ -71,7 +52,7 @@ class Assess extends basecommand_1.default {
71
52
  return await this.runAssess();
72
53
  }
73
54
  catch (error) {
74
- logger_1.Logger.error('Error running assess');
55
+ logger_1.Logger.error(messages.getMessage('errorRunningAssess'));
75
56
  logger_1.Logger.error(error);
76
57
  process.exit(1);
77
58
  }
@@ -105,7 +86,7 @@ class Assess extends basecommand_1.default {
105
86
  const namespace = orgs.packageDetails.namespace;
106
87
  let projectPath = '';
107
88
  if (relatedObjects) {
108
- projectPath = await this.getProjectPath();
89
+ projectPath = await projectPathUtil_1.ProjectPathUtil.getProjectPath(messages, true);
109
90
  }
110
91
  const assesmentInfo = {
111
92
  lwcAssessmentInfos: [],
@@ -200,71 +181,6 @@ class Assess extends basecommand_1.default {
200
181
  ]));
201
182
  logger_1.Logger.log(messages.getMessage('omniScriptAssessmentCompleted'));
202
183
  }
203
- async getProjectPath() {
204
- let projectPath = '';
205
- let mode = EXISTING_MODE;
206
- // Prompt for project type
207
- const askWithTimeout = promptUtil_1.PromptUtil.askWithTimeOut(messages);
208
- // Prompt: Existing project?
209
- let response = '';
210
- let validResponse = false;
211
- while (!validResponse) {
212
- try {
213
- const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), messages.getMessage('existingApexPrompt'));
214
- response = typeof resp === 'string' ? resp.trim().toLowerCase() : '';
215
- }
216
- catch (err) {
217
- logger_1.Logger.error(messages.getMessage('requestTimedOut'));
218
- process.exit(1);
219
- }
220
- if (response === YES_SHORT || response === YES_LONG) {
221
- mode = EXISTING_MODE;
222
- validResponse = true;
223
- }
224
- else if (response === NO_SHORT || response === NO_LONG) {
225
- mode = EMPTY_MODE;
226
- validResponse = true;
227
- }
228
- else {
229
- logger_1.Logger.error(messages.getMessage('invalidYesNoResponse'));
230
- }
231
- }
232
- // Prompt for project path
233
- let gotValidPath = false;
234
- while (!gotValidPath) {
235
- let folderPath = '';
236
- try {
237
- const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), mode === EXISTING_MODE
238
- ? messages.getMessage('enterExistingProjectPath')
239
- : messages.getMessage('enterEmptyProjectPath'));
240
- folderPath = typeof resp === 'string' ? resp.trim() : '';
241
- }
242
- catch (err) {
243
- logger_1.Logger.error(messages.getMessage('requestTimedOut'));
244
- process.exit(1);
245
- }
246
- folderPath = path.resolve(folderPath);
247
- if (!fs.existsSync(folderPath) || !fs.lstatSync(folderPath).isDirectory()) {
248
- logger_1.Logger.error(messages.getMessage('invalidProjectFolderPath'));
249
- continue;
250
- }
251
- if (mode === EMPTY_MODE && fs.readdirSync(folderPath).length > 0) {
252
- logger_1.Logger.error(messages.getMessage('notEmptyProjectFolderPath'));
253
- continue;
254
- }
255
- // If empty, create SFDX project
256
- if (mode === EMPTY_MODE) {
257
- createSfdxProject(folderPath);
258
- }
259
- else if (!isSfdxProject(folderPath)) {
260
- logger_1.Logger.error(messages.getMessage('notSfdxProjectFolderPath'));
261
- continue;
262
- }
263
- projectPath = folderPath;
264
- gotValidPath = true;
265
- }
266
- return projectPath;
267
- }
268
184
  }
269
185
  exports.default = Assess;
270
186
  Assess.description = messages.getMessage('commandDescription');
@@ -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;AAEjG,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,UAAU,GAAG,OAAO,CAAC;AAC3B,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,QAAQ,GAAG,GAAG,CAAC;AACrB,MAAM,QAAQ,GAAG,KAAK,CAAC;AACvB,MAAM,OAAO,GAAG,IAAI,CAAC;AAErB,0CAA0C;AAC1C,SAAS,iBAAiB,CAAC,UAAkB;IAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,qBAAS,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,aAAa,CAAC,UAAkB;IACvC,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,UAAU,CAAC,eAAe,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7 @@ export default class Migrate extends OmniStudioBaseCommand {
19
19
  private truncateObjects;
20
20
  private migrateObjects;
21
21
  private getMigrationObjects;
22
- private getProjectPath;
23
22
  private getTargetApexNamespace;
23
+ private getGeneralConsent;
24
24
  private mergeRecordAndUploadResults;
25
25
  }
@@ -36,7 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
37
37
  */
38
38
  const os = __importStar(require("os"));
39
- const fs = __importStar(require("fs"));
40
39
  const command_1 = require("@salesforce/command");
41
40
  const core_1 = require("@salesforce/core");
42
41
  const basecommand_1 = __importDefault(require("../../basecommand"));
@@ -52,6 +51,7 @@ const orgUtils_1 = require("../../../utils/orgUtils");
52
51
  const stringContants_1 = require("../../../utils/constants/stringContants");
53
52
  const orgPreferences_1 = require("../../../utils/orgPreferences");
54
53
  const AnonymousApexRunner_1 = require("../../../utils/apex/executor/AnonymousApexRunner");
54
+ const projectPathUtil_1 = require("../../../utils/projectPathUtil");
55
55
  // Initialize Messages with the current plugin directory
56
56
  core_1.Messages.importMessagesDirectory(__dirname);
57
57
  // Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
@@ -124,14 +124,11 @@ class Migrate extends basecommand_1.default {
124
124
  process.exit(1);
125
125
  }
126
126
  }
127
- // Ask for user consent
128
- const consent = await logger_1.Logger.confirm(messages.getMessage('userConsentMessage'));
129
- if (!consent) {
130
- logger_1.Logger.error(messages.getMessage('userDeclinedConsent', [relatedObjects]));
131
- }
132
- else {
133
- logger_1.Logger.info(messages.getMessage('userConsentedToProceed'));
134
- projectPath = await this.getProjectPath(relatedObjects, projectPath);
127
+ // Check for general consent to make modifications with OMT
128
+ const generalConsent = await this.getGeneralConsent();
129
+ if (generalConsent) {
130
+ // Use ProjectPathUtil for APEX project folder selection (matches assess.ts logic)
131
+ projectPath = await projectPathUtil_1.ProjectPathUtil.getProjectPath(messages, true);
135
132
  targetApexNamespace = await this.getTargetApexNamespace(objectsToProcess, targetApexNamespace);
136
133
  }
137
134
  }
@@ -260,19 +257,6 @@ class Migrate extends basecommand_1.default {
260
257
  }
261
258
  return migrationObjects;
262
259
  }
263
- async getProjectPath(relatedObjects, projectPath) {
264
- const projectPathConfirmation = await logger_1.Logger.confirm(messages.getMessage('projectPathConfirmation', [relatedObjects]));
265
- if (projectPathConfirmation) {
266
- logger_1.Logger.info(messages.getMessage('userConsentedToProceed'));
267
- projectPath = await logger_1.Logger.prompt(messages.getMessage('enterProjectPath', [relatedObjects]));
268
- const projectJsonFile = 'sfdx-project.json';
269
- if (!fs.existsSync(projectPath + '/' + projectJsonFile)) {
270
- throw new Error(messages.getMessage('projectJsonNotFound', [projectJsonFile, projectPath]));
271
- }
272
- logger_1.Logger.log(messages.getMessage('usingProjectPath', [projectPath]));
273
- }
274
- return projectPath;
275
- }
276
260
  async getTargetApexNamespace(objectsToProcess, targetApexNamespace) {
277
261
  if (objectsToProcess.includes(stringContants_1.Constants.Apex)) {
278
262
  targetApexNamespace = await this.ux.prompt(messages.getMessage('enterTargetNamespace'));
@@ -280,6 +264,19 @@ class Migrate extends basecommand_1.default {
280
264
  }
281
265
  return targetApexNamespace;
282
266
  }
267
+ async getGeneralConsent() {
268
+ let consent = null;
269
+ while (consent === null) {
270
+ try {
271
+ consent = await logger_1.Logger.confirm(messages.getMessage('userConsentMessage'));
272
+ }
273
+ catch (error) {
274
+ logger_1.Logger.log(messages.getMessage('invalidYesNoResponse'));
275
+ consent = null;
276
+ }
277
+ }
278
+ return consent;
279
+ }
283
280
  mergeRecordAndUploadResults(migrationResults, migrationTool) {
284
281
  const mergedResults = [];
285
282
  for (const record of Array.from(migrationResults.records.values())) {
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/migrate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,+DAA+D;AAC/D,uDAAuD;A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AAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,gBAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEzD,YAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAEvB,mBAAW,GAAG;IAC7B,SAAS,EAAE,eAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KAC7D,CAAC;IACF,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,cAAc,EAAE,eAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;KAC5C,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,uBAAuB;KACrC,CAAC;CACH,CAAC"}
@@ -42,6 +42,7 @@ class OrgUtils {
42
42
  // Handle multiple packages by prompting user to select one
43
43
  if (installedOmniPackages.length > 1) {
44
44
  logger_1.Logger.log(messages.getMessage('multiplePackagesFound'));
45
+ installedOmniPackages.sort((a, b) => a.NamespacePrefix.localeCompare(b.NamespacePrefix));
45
46
  // Display available packages
46
47
  for (let i = 0; i < installedOmniPackages.length; i++) {
47
48
  const pkg = installedOmniPackages[i];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../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e;IACf,eAAe;IACf,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,WAAW;IACX,SAAS;IACT,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,YAAY;IACZ,iBAAiB;IACjB,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAA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b,aAAa;IACb,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,YAAY;IACZ,iBAAiB;IACjB,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;CACf,CAAC,CAAC;AAEH,0DAA0D;AAClC,eAAM,GAAG,CAAC,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAE7F,yDAAyD;AACjC,mBAAU,GAAG,WAAW,CAAC;AAEjD,6DAA6D;AACrC,kBAAS,GAAG,CAAC,MAAM,CAAC,CAAC;AAE7C,yDAAyD;AACjC,sBAAa,GAAG,cAAc,CAAC;AAE/B,0BAAiB,GAAG,UAAU,CAAC;AAC/B,wBAAe,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { Messages } from '@salesforce/core';
2
+ export declare const EXISTING_MODE = "existing";
3
+ export declare const EMPTY_MODE = "empty";
4
+ export declare const YES_SHORT = "y";
5
+ export declare const NO_SHORT = "n";
6
+ export declare const YES_LONG = "yes";
7
+ export declare const NO_LONG = "no";
8
+ export declare function createSfdxProject(folderPath: string): void;
9
+ export declare function isSfdxProject(folderPath: string): boolean;
10
+ export declare class ProjectPathUtil {
11
+ /**
12
+ * Gets project path with enhanced validation and user prompts
13
+ *
14
+ * @param messages - Messages object for internationalization
15
+ * @param enableRetrieval - Whether to enable the retrieval option for empty projects
16
+ * @returns Promise<string> - The validated project path
17
+ */
18
+ static getProjectPath(messages: Messages, enableRetrieval?: boolean): Promise<string>;
19
+ /**
20
+ * Prompts user to choose between existing or empty project
21
+ */
22
+ private static promptForProjectType;
23
+ /**
24
+ * Prompts user to confirm if they want to retrieve APEX classes
25
+ */
26
+ private static promptForRetrieval;
27
+ /**
28
+ * Prompts user for project path and validates it
29
+ */
30
+ private static promptForProjectPath;
31
+ /**
32
+ * Gets folder path input from user
33
+ */
34
+ private static getFolderPathFromUser;
35
+ /**
36
+ * Validates the folder path based on mode
37
+ */
38
+ private static isValidFolderPath;
39
+ }
@@ -0,0 +1,173 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ProjectPathUtil = exports.isSfdxProject = exports.createSfdxProject = exports.NO_LONG = exports.YES_LONG = exports.NO_SHORT = exports.YES_SHORT = exports.EMPTY_MODE = exports.EXISTING_MODE = void 0;
27
+ const fs = __importStar(require("fs"));
28
+ const path = __importStar(require("path"));
29
+ const logger_1 = require("./logger");
30
+ const sfProject_1 = require("./sfcli/project/sfProject");
31
+ const promptUtil_1 = require("./promptUtil");
32
+ exports.EXISTING_MODE = 'existing';
33
+ exports.EMPTY_MODE = 'empty';
34
+ exports.YES_SHORT = 'y';
35
+ exports.NO_SHORT = 'n';
36
+ exports.YES_LONG = 'yes';
37
+ exports.NO_LONG = 'no';
38
+ // Helper to create SFDX project if needed
39
+ function createSfdxProject(folderPath) {
40
+ const projectName = path.basename(folderPath);
41
+ const parentDir = path.dirname(folderPath);
42
+ sfProject_1.sfProject.create(projectName, parentDir);
43
+ }
44
+ exports.createSfdxProject = createSfdxProject;
45
+ function isSfdxProject(folderPath) {
46
+ const sfdxProjectJson = path.join(folderPath, 'sfdx-project.json');
47
+ return fs.existsSync(sfdxProjectJson);
48
+ }
49
+ exports.isSfdxProject = isSfdxProject;
50
+ class ProjectPathUtil {
51
+ /**
52
+ * Gets project path with enhanced validation and user prompts
53
+ *
54
+ * @param messages - Messages object for internationalization
55
+ * @param enableRetrieval - Whether to enable the retrieval option for empty projects
56
+ * @returns Promise<string> - The validated project path
57
+ */
58
+ static async getProjectPath(messages, enableRetrieval = true) {
59
+ const askWithTimeout = promptUtil_1.PromptUtil.askWithTimeOut(messages);
60
+ const mode = await ProjectPathUtil.promptForProjectType(messages, askWithTimeout);
61
+ if (mode === exports.EMPTY_MODE && enableRetrieval) {
62
+ await ProjectPathUtil.promptForRetrieval(messages, askWithTimeout);
63
+ }
64
+ return ProjectPathUtil.promptForProjectPath(messages, askWithTimeout, mode);
65
+ }
66
+ /**
67
+ * Prompts user to choose between existing or empty project
68
+ */
69
+ static async promptForProjectType(messages, askWithTimeout) {
70
+ let validResponse = false;
71
+ let mode = exports.EXISTING_MODE;
72
+ while (!validResponse) {
73
+ try {
74
+ const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), messages.getMessage('existingApexPrompt'));
75
+ const response = typeof resp === 'string' ? resp.trim().toLowerCase() : '';
76
+ if (response === exports.YES_SHORT || response === exports.YES_LONG) {
77
+ mode = exports.EXISTING_MODE;
78
+ validResponse = true;
79
+ }
80
+ else if (response === exports.NO_SHORT || response === exports.NO_LONG) {
81
+ mode = exports.EMPTY_MODE;
82
+ validResponse = true;
83
+ }
84
+ else {
85
+ logger_1.Logger.error(messages.getMessage('invalidYesNoResponse'));
86
+ }
87
+ }
88
+ catch (err) {
89
+ logger_1.Logger.error(messages.getMessage('requestTimedOut'));
90
+ process.exit(1);
91
+ }
92
+ }
93
+ return mode;
94
+ }
95
+ /**
96
+ * Prompts user to confirm if they want to retrieve APEX classes
97
+ */
98
+ static async promptForRetrieval(messages, askWithTimeout) {
99
+ let validResponse = false;
100
+ while (!validResponse) {
101
+ try {
102
+ const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), messages.getMessage('retrieveApexPrompt'));
103
+ const response = typeof resp === 'string' ? resp.trim().toLowerCase() : '';
104
+ if (response === exports.YES_SHORT || response === exports.YES_LONG) {
105
+ validResponse = true;
106
+ }
107
+ else if (response === exports.NO_SHORT || response === exports.NO_LONG) {
108
+ logger_1.Logger.error(messages.getMessage('operationCancelled'));
109
+ process.exit(0);
110
+ }
111
+ else {
112
+ logger_1.Logger.error(messages.getMessage('invalidYesNoResponse'));
113
+ }
114
+ }
115
+ catch (err) {
116
+ logger_1.Logger.error(messages.getMessage('requestTimedOut'));
117
+ process.exit(1);
118
+ }
119
+ }
120
+ }
121
+ /**
122
+ * Prompts user for project path and validates it
123
+ */
124
+ static async promptForProjectPath(messages, askWithTimeout, mode) {
125
+ let gotValidPath = false;
126
+ let folderPath = '';
127
+ while (!gotValidPath) {
128
+ folderPath = await ProjectPathUtil.getFolderPathFromUser(messages, askWithTimeout, mode);
129
+ if (ProjectPathUtil.isValidFolderPath(folderPath, mode, messages)) {
130
+ if (mode === exports.EMPTY_MODE) {
131
+ createSfdxProject(folderPath);
132
+ }
133
+ gotValidPath = true;
134
+ }
135
+ }
136
+ return folderPath;
137
+ }
138
+ /**
139
+ * Gets folder path input from user
140
+ */
141
+ static async getFolderPathFromUser(messages, askWithTimeout, mode) {
142
+ try {
143
+ const resp = await askWithTimeout(logger_1.Logger.prompt.bind(logger_1.Logger), mode === exports.EXISTING_MODE
144
+ ? messages.getMessage('enterExistingProjectPath')
145
+ : messages.getMessage('enterEmptyProjectPath'));
146
+ return typeof resp === 'string' ? path.resolve(resp.trim()) : '';
147
+ }
148
+ catch (err) {
149
+ logger_1.Logger.error(messages.getMessage('requestTimedOut'));
150
+ process.exit(1);
151
+ }
152
+ }
153
+ /**
154
+ * Validates the folder path based on mode
155
+ */
156
+ static isValidFolderPath(folderPath, mode, messages) {
157
+ if (!fs.existsSync(folderPath) || !fs.lstatSync(folderPath).isDirectory()) {
158
+ logger_1.Logger.error(messages.getMessage('invalidProjectFolderPath'));
159
+ return false;
160
+ }
161
+ if (mode === exports.EMPTY_MODE && fs.readdirSync(folderPath).length > 0) {
162
+ logger_1.Logger.error(messages.getMessage('notEmptyProjectFolderPath'));
163
+ return false;
164
+ }
165
+ if (mode === exports.EXISTING_MODE && !isSfdxProject(folderPath)) {
166
+ logger_1.Logger.error(messages.getMessage('notSfdxProjectFolderPath'));
167
+ return false;
168
+ }
169
+ return true;
170
+ }
171
+ }
172
+ exports.ProjectPathUtil = ProjectPathUtil;
173
+ //# sourceMappingURL=projectPathUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectPathUtil.js","sourceRoot":"","sources":["../../src/utils/projectPathUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,qCAAkC;AAClC,yDAAsD;AACtD,6CAA0C;AAE7B,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,SAAS,GAAG,GAAG,CAAC;AAChB,QAAA,QAAQ,GAAG,GAAG,CAAC;AACf,QAAA,QAAQ,GAAG,KAAK,CAAC;AACjB,QAAA,OAAO,GAAG,IAAI,CAAC;AAE5B,0CAA0C;AAC1C,SAAgB,iBAAiB,CAAC,UAAkB;IAClD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,qBAAS,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAJD,8CAIC;AAED,SAAgB,aAAa,CAAC,UAAkB;IAC9C,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AACxC,CAAC;AAHD,sCAGC;AAED,MAAa,eAAe;IAC1B;;;;;;OAM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AO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;IACH,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,iBAAiB,CAAC,UAAkB,EAAE,IAAY,EAAE,QAAkB;QACnF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,EAAE;YACzE,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC;YAC9D,OAAO,KAAK,CAAC;SACd;QAED,IAAI,IAAI,KAAK,kBAAU,IAAI,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC;YAC/D,OAAO,KAAK,CAAC;SACd;QAED,IAAI,IAAI,KAAK,qBAAa,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE;YACxD,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC;YAC9D,OAAO,KAAK,CAAC;SACd;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlJD,0CAkJC"}
@@ -104,6 +104,8 @@
104
104
  "operationCancelled": "Operation cancelled.",
105
105
  "invalidYesNoResponse": "Invalid response. Please answer y or n.",
106
106
  "notSfdxProjectFolderPath": "Provided folder is not a valid Salesforce DX project. Please select a folder containing sfdx-project.json",
107
+ "failedToGetValidProjectPath": "Failed to get valid project path",
108
+ "errorRunningAssess": "Error running assess",
107
109
  "enableVerboseOutput": "Enable verbose output",
108
110
  "apexFileChangesIdentifiedNotApplied": "Changes identified for Apex class {0} but not applied (assessment mode)",
109
111
  "apexFileHasMultipleInterfaces": "File {0} has multiple interfaces including Callable, standardizing to System.Callable only",
@@ -36,9 +36,24 @@
36
36
  "alreadyStandardModel": "The org is already on standard data model.",
37
37
  "invalidRelatedObjectsOptionGA": "Invalid option provided for -r: %s. Valid options are apex, lwc.",
38
38
  "invalidRelatedObjectsOption": "Invalid option provided for -r: %s. Valid option is apex.",
39
- "userConsentMessage": "By proceeding further, you hereby consent to the use, accept changes to your custom code, and the accompanying terms and conditions associated with the use of the OmniStudio Migration Tool. Do you want to proceed? [y/n]",
39
+ "userConsentMessage": "By proceeding further, you hereby consent to the use, accept changes to your custom code and the accompanying terms and conditions associated with the use of the OmniStudio Migration Tool. Do you want to proceed? [y/n]",
40
40
  "userDeclinedConsent": "User declined consent, will not process %s .",
41
41
  "userConsentedToProceed": "User consented to proceed",
42
+ "existingApexPrompt": "Do you have a sfdc project that already contains the APEX classes retrieved from your org? [y/n]",
43
+ "enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes:",
44
+ "invalidProjectFolderPath": "Provided project folder does not exist. Please provide a valid project folder path",
45
+ "requestTimedOut": "Request timed out",
46
+ "retrieveApexPrompt": "Omnistudio Migration Tool can connect to your org and retrieve the APEX classes. Provide an empty project folder to store the retrieved APEX classes. Would you like to proceed with the retrieval? [y/n]",
47
+ "enterEmptyProjectPath": "Enter the path to an empty project folder to retrieve to and process the APEX classes:",
48
+ "notEmptyProjectFolderPath": "Provided project folder is not empty. Please provide a valid empty project folder name and path",
49
+ "invalidYesNoResponse": "Invalid response. Please answer y or n.",
50
+ "notSfdxProjectFolderPath": "Provided folder is not a valid Salesforce DX project. Please select a folder containing sfdx-project.json",
51
+ "operationCancelled": "Operation cancelled.",
52
+ "failedToGetValidProjectPath": "Failed to get valid project path",
53
+ "errorRunningMigrate": "Error running migrate %s",
54
+ "couldNotEnableOmniPreferences": "Could not enable Omni preferences: %s",
55
+ "errorSettingDesignersToStandardDataModel": "Error occurred while setting designers to use the standard data model %s",
56
+ "exceptionSettingDesignersToStandardDataModel": "Exception occurred while setting designers to use the standard data model %s",
42
57
  "projectPathConfirmation": "Do you have a sfdc project where %s files are already retrieved from org - y\nor you want tool to create a project omnistudio_migration in current directory for processing - n ? [y/n]",
43
58
  "enterProjectPath": "Enter the project path for processing %s :",
44
59
  "projectJsonNotFound": "Could not find any %s in %s.",
@@ -1 +1 @@
1
- {"version":"2.0.0-beta.13","commands":{"basecommand":{"id":"basecommand","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"omnistudio:migration:assess":{"id":"omnistudio:migration:assess","description":"Assess migration of omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespaced of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of component to assess: 'apex' for Apex classes."},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:info":{"id":"omnistudio:migration:info","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-a] [-v <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["sfdx omnistudio:migration:info --targetusername myOrg@example.com --targetdevhubusername devhub@org.com","sfdx omnistudio:migration:info --name myname --targetusername myOrg@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"Migrate omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespace of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of components to migrate: 'apex' for Apex classes."},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]}}}
1
+ {"version":"2.0.0-beta.15","commands":{"basecommand":{"id":"basecommand","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"omnistudio:migration:assess":{"id":"omnistudio:migration:assess","description":"Assess migration of omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:assess -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespaced of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of component to assess: 'apex' for Apex classes."},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:info":{"id":"omnistudio:migration:info","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-a] [-v <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["sfdx omnistudio:migration:info --targetusername myOrg@example.com --targetdevhubusername devhub@org.com","sfdx omnistudio:migration:info --name myname --targetusername myOrg@example.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"Migrate omnistudio components from custom objects to standard objects","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-omnistudio-migration-tool","pluginType":"core","aliases":[],"examples":["omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex","omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"namespace":{"name":"namespace","type":"option","char":"n","description":"The namespace of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false},"relatedobjects":{"name":"relatedobjects","type":"option","char":"r","description":"Please select the type of components to migrate: 'apex' for Apex classes."},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-omnistudio-migration-tool",
3
3
  "description": "This SFDX plugin migrates FlexCard, OmniScript, DataRaptor, and Integration Procedure custom objects to standard objects.",
4
- "version": "2.0.0-beta.13",
4
+ "version": "2.0.0-beta.15",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -127,7 +127,7 @@
127
127
  }
128
128
  },
129
129
  "sfdx": {
130
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-beta.13.crt",
131
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-beta.13.sig"
130
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-beta.15.crt",
131
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-beta.15.sig"
132
132
  }
133
133
  }