@salesforce/plugin-omnistudio-migration-tool 1.4.1-dev.13 → 1.4.1-dev.14

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
@@ -59,4 +59,11 @@ OPTIONS
59
59
  -a, --allversions migrate all versions and not
60
60
  and not just the active ones.
61
61
 
62
+ --relatedobjects=relatedobjects Please select the type of components to
63
+ migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types.
64
+
62
65
  ```
66
+
67
+ Terms:
68
+ Notwithstanding anything stated in the terms and conditions agreed between Salesforce (‘SFDC’) and you (‘Customer’), the use of the OmniStudio Migration Tool (‘Tool’) is designed to facilitate the migration and it’s going to modify your custom code and by deploying and using the Tool you hereby provide your consent to automate the migration process and enable a smooth transition. Customer shall access and use the Tool only as permitted to the Customer and shall not compromise, break or circumvent any technical processes or security measures associated with the services provided by SFDC.
69
+ The Customer agrees to hold harmless, indemnify, and defend SFDC, and its officers, directors, agents, employees, licensees, successors and assigns (collectively, the “Indemnified Parties”) against any and all damages, penalties, losses, liabilities, judgments, settlements, awards, costs, and expenses (including reasonable attorneys’ fees and expenses) to the extent arising out of or in connection with any claims related to the Customers use of the Tool or any willful misconduct, fraud or grossly negligent acts or omissions by the Customer.
@@ -11,6 +11,7 @@ export default class Migrate extends OmniStudioBaseCommand {
11
11
  namespace: flags.Discriminated<flags.String>;
12
12
  only: flags.Discriminated<flags.String>;
13
13
  allversions: flags.Discriminated<flags.Boolean<boolean>>;
14
+ relatedobjects: flags.Discriminated<flags.String>;
14
15
  };
15
16
  run(): Promise<any>;
16
17
  private mergeRecordAndUploadResults;
@@ -60,6 +60,7 @@ class Migrate extends basecommand_1.default {
60
60
  const apiVersion = (this.flags.apiversion || '55.0');
61
61
  const migrateOnly = (this.flags.only || '');
62
62
  const allVersions = this.flags.allversions || false;
63
+ const relatedObjects = (this.flags.relatedobjects || '');
63
64
  logger_1.Logger.initialiseLogger(this.ux, this.logger);
64
65
  this.logger = logger_1.Logger.logger;
65
66
  // this.org is guaranteed because requiresUsername=true, as opposed to supportsUsername
@@ -67,6 +68,30 @@ class Migrate extends basecommand_1.default {
67
68
  conn.setApiVersion(apiVersion);
68
69
  // Let's time every step
69
70
  utils_1.DebugTimer.getInstance().start();
71
+ // const includeApex = this.flags.apex
72
+ // ? await this.ux.confirm('Do you want to include Apex migration? (yes/no)')
73
+ // : false;
74
+ if (relatedObjects) {
75
+ const validOptions = ['apex', 'lwc'];
76
+ const objectsToProcess = relatedObjects.split(',').map((obj) => obj.trim());
77
+ // Validate input
78
+ for (const obj of objectsToProcess) {
79
+ if (!validOptions.includes(obj)) {
80
+ logger_1.Logger.logger.warn(`Invalid option provided for -r: ${obj}. Valid options are apex, lwc.`);
81
+ }
82
+ }
83
+ // Ask for user consent
84
+ const consent = await this.ux.confirm('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?');
85
+ if (!consent) {
86
+ this.ux.log('User declined consent. Aborting the process.');
87
+ }
88
+ else {
89
+ const projectPath = await this.ux.prompt('Enter the project path for processing:');
90
+ this.ux.log(`Using project path: ${projectPath}`);
91
+ OmnistudioRelatedObjectMigrationFacade_1.default.intializeProject(projectPath);
92
+ }
93
+ }
94
+ // const includeLwc = this.flags.lwc ? await this.ux.confirm('Do you want to include LWC migration? (yes/no)') : false;
70
95
  // Register the migration objects
71
96
  let migrationObjects = [];
72
97
  if (!migrateOnly) {
@@ -194,5 +219,9 @@ Migrate.flagsConfig = {
194
219
  description: messages.getMessage('allVersionsDescription'),
195
220
  required: false,
196
221
  }),
222
+ relatedobjects: command_1.flags.string({
223
+ char: 'r',
224
+ description: messages.getMessage('apexLwc'),
225
+ }),
197
226
  };
198
227
  //# sourceMappingURL=migrate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../../src/commands/omnistudio/migration/migrate.ts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EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;KAC5C,CAAC;CACH,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { Org } from '@salesforce/core';
2
- import { MigrationResult } from '../interfaces';
3
2
  import { File } from '../../utils/file/fileutil';
4
3
  import { ApexAssessmentInfo } from '../../utils';
5
4
  import { BaseRelatedObjectMigration } from './BaseRealtedObjectMigration';
@@ -10,8 +9,6 @@ export declare class ApexMigration extends BaseRelatedObjectMigration {
10
9
  private updatedNamespace;
11
10
  constructor(projectPath: string, namespace: string, org: Org);
12
11
  processObjectType(): string;
13
- identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]>;
14
- migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): ApexAssessmentInfo[];
15
12
  migrate(): ApexAssessmentInfo[];
16
13
  assess(): ApexAssessmentInfo[];
17
14
  processApexFiles(dir: string): ApexAssessmentInfo[];
@@ -49,12 +49,12 @@ class ApexMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrat
49
49
  processObjectType() {
50
50
  return 'apex';
51
51
  }
52
- identifyObjects(migrationResults) {
53
- throw new Error('Method not implemented.');
54
- }
55
- migrateRelatedObjects(migrationResults, migrationCandidates) {
56
- return this.migrate();
57
- }
52
+ // public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
53
+ // throw new Error('Method not implemented.');
54
+ // }
55
+ // public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): ApexAssessmentInfo[] {
56
+ // return this.migrate();
57
+ // }
58
58
  migrate() {
59
59
  const pwd = shell.pwd();
60
60
  shell.cd(this.projectPath);
@@ -1 +1 @@
1
- {"version":3,"file":"ApexMigration.js","sourceRoot":"","sources":["../../../src/migration/related/ApexMigration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,+CAAiC;AAEjC,mEAU4C;AAE5C,mEAAgE;AAChE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,CAAC,IAAI,KAAK,OAAO;oBAAE,SAAS;gBACrC,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,uBAAuB,OAAO,GAAG,CAAC,CAAC;gBACjG,eAAM,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,IAAI,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,uBAAuB,OAAO,EAAE,CAAC,CAAC;gBAC3F,YAAY,CAAC,IAAI,CAAC,IAAI,8BAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;aAC1D;SACF;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;IAEO,+BAA+B,CAAC,IAAU,EAAE,MAAqB;QACvE,MAAM,WAAW,GAAG,MAAM,CAAC,6BAA6B,CAAC;QACzD,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;QAC9C,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;YACpC,QAAQ,CAAC,IAAI,CACX,GAAG,IAAI,CAAC,IAAI,oBAAoB,UAAU,CAAC,SAAS,IAAI,UAAU,CAAC,UAAU,mGAAmG,CACjL,CAAC;SACH;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IACO,cAAc;QACpB,OAAO;;;;;;;;;KASN,CAAC;IACJ,CAAC;CAOF;AAhLD,sCAgLC"}
@@ -1,14 +1,10 @@
1
- import { MigrationResult } from '../interfaces';
2
1
  import { LWCAssessmentInfo } from '../../utils';
3
2
  import { BaseRelatedObjectMigration } from './BaseRealtedObjectMigration';
4
3
  export declare class LwcMigration extends BaseRelatedObjectMigration {
5
4
  processObjectType(): string;
6
- identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]>;
7
- migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): string[];
8
5
  assessment(): LWCAssessmentInfo[];
9
6
  migrate(): LWCAssessmentInfo[];
10
7
  private processLwcFiles;
11
8
  private processFiles;
12
9
  private isValideFile;
13
- private mapToName;
14
10
  }
@@ -37,13 +37,13 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
37
37
  processObjectType() {
38
38
  return 'lwc';
39
39
  }
40
- identifyObjects(migrationResults) {
41
- this.assessment();
42
- throw new Error('Method not implemented.');
43
- }
44
- migrateRelatedObjects(migrationResults, migrationCandidates) {
45
- return this.mapToName(this.migrate());
46
- }
40
+ // public identifyObjects(migrationResults: MigrationResult[]): Promise<JSON[]> {
41
+ // this.assessment();
42
+ // throw new Error('Method not implemented.');
43
+ // }
44
+ // public migrateRelatedObjects(migrationResults: MigrationResult[], migrationCandidates: JSON[]): string[] {
45
+ // return this.mapToName(this.migrate());
46
+ // }
47
47
  assessment() {
48
48
  const type = 'assessment';
49
49
  const pwd = shell.pwd();
@@ -123,11 +123,6 @@ class LwcMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectMigrati
123
123
  isValideFile(filename) {
124
124
  return !filename.includes('_def') && !filename.includes('styleDefinition') && !filename.includes('definition');
125
125
  }
126
- mapToName(lwcAssessmentInfos) {
127
- return lwcAssessmentInfos.map((lwcAssessmentInfo) => {
128
- return lwcAssessmentInfo.name;
129
- });
130
- }
131
126
  }
132
127
  exports.LwcMigration = LwcMigration;
133
128
  //# sourceMappingURL=LwcMigration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LwcMigration.js","sourceRoot":"","sources":["../../../src/migration/related/LwcMigration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA+D;AAC/D,+CAAiC;AAEjC,wDAA2D;AAE3D,mEAAgE;AAChE,+CAA4C;AAC5C,+FAA4F;AAE5F,6EAA0E;AAE1E,MAAM,YAAY,GAAG,6BAA6B,CAAC;AACnD,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAE3C,MAAa,YAAa,SAAQ,uDAA0B;IACnD,iBAAiB;QAC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C,CAAC;gCAC3D,IAAI,IAAI,IAAI,IAAI,EAAE;oCAChB,MAAM,QAAQ,GAAmB;wCAC/B,IAAI;wCACJ,IAAI;wCACJ,IAAI;qCACL,CAAC;oCACF,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iCAC5B;6BACF;yBACF;qBACF;oBACD,MAAM,IAAI,GAAG,GAAG,CAAC;oBACjB,MAAM,MAAM,GAAa,EAAE,CAAC;oBAC5B,MAAM,aAAa,GAAsB;wBACvC,IAAI;wBACJ,WAAW;wBACX,MAAM;qBACP,CAAC;oBACF,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBAC9B;YACH,CAAC,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;SACjB;QAAC,OAAO,KAAK,EAAE;YACd,eAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SACpC;IACH,CAAC;IAEO,YAAY,CAAC,QAAgB;QACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjH,CAAC;CACF;AA5FD,oCA4FC"}
@@ -11,7 +11,7 @@ export default class OmnistudioRelatedObjectMigrationFacade {
11
11
  protected readonly org: Org;
12
12
  constructor(namespace: string, only: string, allversions: boolean, org: Org);
13
13
  static intializeProject(projectPath?: string): string;
14
- migrateAll(migrationResult: MigratedObject[], relatedObjects: string[]): RelatedObjectAssesmentInfo;
14
+ migrateAll(migrationResult: MigratedObject[], relatedObjects: string[], projectPath?: string): RelatedObjectAssesmentInfo;
15
15
  private createLWCComponentMigrationTool;
16
16
  private createApexClassMigrationTool;
17
17
  }
@@ -29,11 +29,11 @@ class OmnistudioRelatedObjectMigrationFacade {
29
29
  return process.cwd() + '/' + defaultProjectName;
30
30
  }
31
31
  }
32
- migrateAll(migrationResult, relatedObjects) {
32
+ migrateAll(migrationResult, relatedObjects, projectPath) {
33
33
  // Start the debug timer
34
34
  utils_1.DebugTimer.getInstance().start();
35
35
  // Declare an array of MigrationTool
36
- const projectDirectory = OmnistudioRelatedObjectMigrationFacade.intializeProject();
36
+ const projectDirectory = OmnistudioRelatedObjectMigrationFacade.intializeProject(projectPath);
37
37
  const debugTimer = utils_1.DebugTimer.getInstance();
38
38
  debugTimer.start();
39
39
  // Initialize migration tools based on the relatedObjects parameter
@@ -1 +1 @@
1
- {"version":3,"file":"OmnistudioRelatedObjectMigrationFacade.js","sourceRoot":"","sources":["../../../src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts"],"names":[],"mappings":";;AAKA,kCAAgC;AAChC,uCAMqB;AACrB,mEAAgE;AAChE,+CAA4C;AAC5C,mDAAgD;AAChD,iDAA8C;AAE9C,wDAAwD;AACxD,+CAA+C;AAE/C,iGAAiG;AACjG,mFAAmF;AACnF,oHAAoH;AAEpH,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAClD,MAAqB,sCAAsC;IAUzD,YAAmB,SAAiB,EAAE,IAAY,EAAE,WAAoB,EAAE,GAAQ;QAChF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IACM,MAAM,CAAC,gBAAgB,CAAC,WAAoB;QACjD,IAAI,WAAW,EAAE;YACf,qBAAS,CAAC,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;YAClD,OAAO,WAAW,GAAG,GAAG,GAAG,kBAAkB,CAAC;SAC/C;aAAM;YACL,qBAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;YACrC,OAAO,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,kBAAkB,CAAC;SACjD;IACH,C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AmE;QACnE,OAAO,IAAI,2BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACjE,CAAC;IAEO,4BAA4B,CAAC,WAAmB;QACtD,gEAAgE;QAChE,OAAO,IAAI,6BAAa,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAClE,CAAC;;AAxEH,yDAyEC;AAxEC,yEAAyE;AACzE,0EAA0E;AAC5D,2CAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"OmnistudioRelatedObjectMigrationFacade.js","sourceRoot":"","sources":["../../../src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts"],"names":[],"mappings":";;AAKA,kCAAgC;AAChC,uCAMqB;AACrB,mEAAgE;AAChE,+CAA4C;AAC5C,mDAAgD;AAChD,iDAA8C;AAE9C,wDAAwD;AACxD,+CAA+C;AAE/C,iGAAiG;AACjG,mFAAmF;AACnF,oHAAoH;AAEpH,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAClD,MAAqB,sCAAsC;IAUzD,YAAmB,SAAiB,EAAE,IAAY,EAAE,WAAoB,EAAE,GAAQ;QAChF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IACM,MAAM,CAAC,gBAAgB,CAAC,WAAoB;QACjD,IAAI,WAAW,EAAE;YACf,qBAAS,CAAC,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;YAClD,OAAO,WAAW,GAAG,GAAG,GAAG,kBAAkB,CAAC;SAC/C;aAAM;YACL,qBAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;YACrC,OAAO,OAAO,CAAC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AAC;IACrD,CAAC;IAED,wDAAwD;IAChD,+BAA+B,CAAC,SAAiB,EAAE,WAAmB;QAC5E,mEAAmE;QACnE,OAAO,IAAI,2BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACjE,CAAC;IAEO,4BAA4B,CAAC,WAAmB;QACtD,gEAAgE;QAChE,OAAO,IAAI,6BAAa,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAClE,CAAC;;AA7EH,yDA8EC;AA7EC,yEAAyE;AACzE,0EAA0E;AAC5D,2CAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC"}
@@ -28,5 +28,6 @@
28
28
  "errorWhileCreatingElements": "An error ocurred while saving OmniScript elements: ",
29
29
  "allVersionsDescription": "Migrate all versions of a component",
30
30
  "changeMessage": " %s will be changed from %s to %s",
31
- "angularOSWarning": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript"
31
+ "angularOSWarning": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript",
32
+ "apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
32
33
  }
@@ -7,5 +7,6 @@
7
7
  "sfdx omnistudio:migration:info --targetusername myOrg@example.com --targetdevhubusername devhub@org.com",
8
8
  "sfdx omnistudio:migration:info --name myname --targetusername myOrg@example.com"
9
9
  ],
10
- "allVersionsDescription": "Migrate all versions of a component"
10
+ "allVersionsDescription": "Migrate all versions of a component",
11
+ "apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
11
12
  }
@@ -4,7 +4,10 @@
4
4
  "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=dr",
5
5
  "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=ip",
6
6
  "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=os",
7
- "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"
7
+ "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE --only=fc",
8
+ "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc",
9
+ "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r apex",
10
+ "omnistudio:migration:migrate -u orguser@domain.com --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"
8
11
  ],
9
12
  "commandDescription": "print a greeting and your org IDs",
10
13
  "namespaceFlagDescription": "The namespaced of the package",
@@ -25,5 +28,6 @@
25
28
  "errorWhileActivatingCard": "Could not activate Card: ",
26
29
  "errorWhileUploadingCard": "An error ocurred while uploading Card: ",
27
30
  "errorWhileCreatingElements": "An error ocurred while saving OmniScript elements: ",
28
- "allVersionsDescription": "Migrate all versions of a component"
31
+ "allVersionsDescription": "Migrate all versions of a component",
32
+ "apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."
29
33
  }
@@ -1 +1 @@
1
- {"version":"1.4.1-dev.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":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-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":[],"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: osip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"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>] [--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}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-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":[],"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"],"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: osip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"allowNo":false}},"args":[{"name":"file"}]}}}
1
+ {"version":"1.4.1-dev.14","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":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-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":[],"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: osip | fc | dr"},"allversions":{"name":"allversions","type":"boolean","char":"a","description":"Migrate all versions of a component","required":false,"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>] [--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}},"args":[{"name":"file"}]},"omnistudio:migration:migrate":{"id":"omnistudio:migration:migrate","description":"print a greeting and your org IDs","usage":"<%= command.id %> [-n <string>] [-o <string>] [-a] [-r <string>] [-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":[],"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 namespaced of the package"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: osip | 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, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types."}},"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": "1.4.1-dev.13",
4
+ "version": "1.4.1-dev.14",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -124,7 +124,7 @@
124
124
  }
125
125
  },
126
126
  "sfdx": {
127
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.13.crt",
128
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.13.sig"
127
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.14.crt",
128
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/1.4.1-dev.14.sig"
129
129
  }
130
130
  }