@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.13 → 2.0.0-rc.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.
Files changed (35) hide show
  1. package/README.md +13 -25
  2. package/lib/commands/omnistudio/migration/assess.d.ts +0 -1
  3. package/lib/commands/omnistudio/migration/assess.js +1 -11
  4. package/lib/commands/omnistudio/migration/assess.js.map +1 -1
  5. package/lib/commands/omnistudio/migration/migrate.d.ts +0 -1
  6. package/lib/commands/omnistudio/migration/migrate.js +45 -42
  7. package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
  8. package/lib/migration/deployer.d.ts +11 -0
  9. package/lib/migration/deployer.js +59 -0
  10. package/lib/migration/deployer.js.map +1 -0
  11. package/lib/migration/postMigrate.d.ts +7 -1
  12. package/lib/migration/postMigrate.js +41 -1
  13. package/lib/migration/postMigrate.js.map +1 -1
  14. package/lib/migration/premigrate.d.ts +4 -0
  15. package/lib/migration/premigrate.js +39 -0
  16. package/lib/migration/premigrate.js.map +1 -1
  17. package/lib/migration/related/FlexipageMigration.js +1 -6
  18. package/lib/migration/related/FlexipageMigration.js.map +1 -1
  19. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +3 -0
  20. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
  21. package/lib/utils/constants/stringContants.js +1 -1
  22. package/lib/utils/generatePackageXml.d.ts +2 -1
  23. package/lib/utils/generatePackageXml.js +9 -22
  24. package/lib/utils/generatePackageXml.js.map +1 -1
  25. package/lib/utils/logger.js +3 -0
  26. package/lib/utils/logger.js.map +1 -1
  27. package/lib/utils/sfcli/project/sfProject.d.ts +4 -0
  28. package/lib/utils/sfcli/project/sfProject.js +56 -1
  29. package/lib/utils/sfcli/project/sfProject.js.map +1 -1
  30. package/lib/utils/shell/cli.js +3 -7
  31. package/lib/utils/shell/cli.js.map +1 -1
  32. package/messages/assess.json +4 -7
  33. package/messages/migrate.json +19 -9
  34. package/oclif.manifest.json +1 -1
  35. package/package.json +3 -3
@@ -7,6 +7,7 @@ const orgPreferences_1 = require("../utils/orgPreferences");
7
7
  const promptUtil_1 = require("../utils/promptUtil");
8
8
  const projectPathUtil_1 = require("../utils/projectPathUtil");
9
9
  const base_1 = require("./base");
10
+ const authEnvKey = 'OMA_AUTH_KEY';
10
11
  class PreMigrate extends base_1.BaseMigrationTool {
11
12
  // Source Custom Object Names
12
13
  constructor(namespace, connection, logger, messages, ux) {
@@ -36,6 +37,44 @@ class PreMigrate extends base_1.BaseMigrationTool {
36
37
  logger_1.Logger.logVerbose(this.messages.getMessage('relatedObjectsToProcess', [JSON.stringify(objectsToProcess)]));
37
38
  }
38
39
  }
40
+ async getAutoDeployConsent(includeLwc, actionItems) {
41
+ const askWithTimeOut = promptUtil_1.PromptUtil.askWithTimeOut(this.messages);
42
+ let validResponse = false;
43
+ let consent = false;
44
+ while (!validResponse) {
45
+ try {
46
+ const resp = await askWithTimeOut(logger_1.Logger.prompt.bind(logger_1.Logger), this.messages.getMessage('autoDeployConsentMessage'));
47
+ const response = typeof resp === 'string' ? resp.trim().toLowerCase() : '';
48
+ if (response === projectPathUtil_1.YES_SHORT || response === projectPathUtil_1.YES_LONG) {
49
+ consent = true;
50
+ validResponse = true;
51
+ }
52
+ else if (response === projectPathUtil_1.NO_SHORT || response === projectPathUtil_1.NO_LONG) {
53
+ consent = false;
54
+ validResponse = true;
55
+ }
56
+ else {
57
+ logger_1.Logger.error(this.messages.getMessage('invalidYesNoResponse'));
58
+ }
59
+ }
60
+ catch (err) {
61
+ logger_1.Logger.error(this.messages.getMessage('requestTimedOut'));
62
+ process.exit(1);
63
+ }
64
+ }
65
+ const deploymentConfig = {
66
+ autoDeploy: consent,
67
+ authKey: undefined,
68
+ };
69
+ if (consent && includeLwc) {
70
+ deploymentConfig.authKey = process.env[authEnvKey];
71
+ if (!deploymentConfig.authKey) {
72
+ logger_1.Logger.warn(this.messages.getMessage('authKeyEnvVarNotSet'));
73
+ actionItems.push(this.messages.getMessage('authKeyEnvVarNotSet'));
74
+ }
75
+ }
76
+ return deploymentConfig;
77
+ }
39
78
  // This needs to be behind timeout
40
79
  async getExpSiteMetadataEnableConsent() {
41
80
  const question = this.messages.getMessage('consentForExperienceSites');
@@ -1 +1 @@
1
- {"version":3,"file":"premigrate.js","sourceRoot":"","sources":["../../src/migration/premigrate.ts"],"names":[],"mappings":";;;AAEA,4CAAyC;AACzC,sEAA8D;AAC9D,4DAAyD;AACzD,oDAA2D;AAC3D,8DAAkF;AAClF,iCAA2C;AAE3C,MAAa,UAAW,SAAQ,wBAAiB;IAC/C,6BAA6B;IAC7B,YAAmB,SAAiB,EAAE,UAAsB,EAAE,MAAc,EAAE,QAAkB,EAAE,EAAM;QACtG,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,iCAAiC,CAC5C,gBAA0B,EAC1B,IAAgB,EAChB,mDAAuE;QAEvE,IAAI,gBAAgB,CAAC,QAAQ,CAAC,0BAAS,CAAC,QAAQ,CAAC,EAAE;YACjD,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,+BAA+B,EAAE,CAAC;YAC3E,eAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAEtG,IAAI,qBAAqB,KAAK,KAAK,EAAE;gBACnC,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC,CAAC;gBACjF,IAAI,CAAC,oCAAoC,CAAC,0BAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;gBAChF,eAAM,CAAC,UAAU,CACf,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,6CAA6C,EAAE,CAAC,IAAI,CAAC,SAAS,C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AG,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;gBAEvD,IAAI,eAAe,KAAK,2BAAS,IAAI,eAAe,KAAK,0BAAQ,EAAE;oBACjE,OAAO,IAAI,CAAC;iBACb;qBAAM,IAAI,eAAe,KAAK,0BAAQ,IAAI,eAAe,KAAK,yBAAO,EAAE;oBACtE,OAAO,KAAK,CAAC;iBACd;qBAAM;oBACL,4DAA4D;oBAC5D,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;iBAChE;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,iCAAiC;gBACjC,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC1D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;SACF;IACH,CAAC;IAEO,oCAAoC,CAAC,WAAmB,EAAE,cAAwB;QACxF,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;QACzD,IAAI,KAAK,GAAG,CAAC,CAAC,EAAE;YACd,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SACjC;IACH,CAAC;CACF;AAjID,gCAiIC"}
@@ -32,8 +32,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.FlexipageMigration = void 0;
33
33
  const fs = __importStar(require("fs"));
34
34
  const path = __importStar(require("path"));
35
- const shell = __importStar(require("shelljs"));
36
- const sfProject_1 = require("../../utils/sfcli/project/sfProject");
37
35
  const logger_1 = require("../../utils/logger");
38
36
  const stringContants_1 = require("../../utils/constants/stringContants");
39
37
  const base_1 = require("../base");
@@ -114,12 +112,9 @@ class FlexipageMigration extends BaseRealtedObjectMigration_1.BaseRelatedObjectM
114
112
  * @returns Array of FlexiPage assessment information
115
113
  */
116
114
  process(mode) {
117
- logger_1.Logger.logVerbose(this.messages.getMessage('retrievingFlexiPages'));
118
- shell.cd(this.projectPath);
119
- sfProject_1.sfProject.retrieve(stringContants_1.Constants.FlexiPage, this.org.getUsername());
120
115
  const flexiPageDir = path.join(this.projectPath, 'force-app', 'main', 'default', 'flexipages');
121
116
  const files = fs.readdirSync(flexiPageDir).filter((file) => file.endsWith('.xml'));
122
- logger_1.Logger.logVerbose(this.messages.getMessage('successfullyRetrievedFlexiPages', [files.length]));
117
+ logger_1.Logger.logVerbose(this.messages.getMessage('foundFlexiPages', [files.length]));
123
118
  const progressBar = (0, base_1.createProgressBar)('Migrating', 'Flexipage');
124
119
  progressBar.setTotal(files.length);
125
120
  const flexPageAssessmentInfos = [];
@@ -1 +1 @@
1
- {"version":3,"file":"FlexipageMigration.js","sourceRoot":"","sources":["../../../src/migration/related/FlexipageMigration.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2CAA6B;AAC7B,+CAAiC;AAEjC,mEAAgE;AAChE,+CAA4C;AAC5C,yEAAiE;AAEjE,kCAA4C;AAC5C,iDAA8C;AAC9C,+EAA4E;AAC5E,qFAAsF;AAEtF,iEAAwH;AACxH,6EAA0E;AAE1E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,kBAAmB,SAAQ,uDAA0B;IAKhE;;;;;;;OAOG;IACH,YAAmB,WAAmB,EAAE,SAAiB,EAAE,GAAQ,EAAE,QAAkB;QACrF,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,CAAC,kBAAkB,EAAE,eAAe,EAAE,6BAA6B,CAAC,CAAC,CAAC;IACnG,CAAC;IAED;;;;OAIG;IACI,iBAAiB;QACtB,OAAO,0BAAS,CAAC,SAAS,CAAC;IAC7B,CAAC;IA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AI,GAAG,IAAI,2BAAY,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QACzE,eAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEhF,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU;SAC5D,CAAC;IACJ,CAAC;CACF;AAjKD,gDAiKC"}
@@ -70,6 +70,9 @@ class OmnistudioRelatedObjectMigrationFacade {
70
70
  if (relatedObjects.includes(stringContants_1.Constants.Apex)) {
71
71
  sfProject_1.sfProject.retrieve(APEXCLASS, this.org.getUsername());
72
72
  }
73
+ if (relatedObjects.includes(stringContants_1.Constants.FlexiPage)) {
74
+ sfProject_1.sfProject.retrieve(stringContants_1.Constants.FlexiPage, this.org.getUsername());
75
+ }
73
76
  if (relatedObjects.includes(stringContants_1.Constants.ExpSites)) {
74
77
  logger_1.Logger.logVerbose(EXPERIENCEBUNDLE);
75
78
  sfProject_1.sfProject.retrieve(EXPERIENCEBUNDLE, this.org.getUsername());
@@ -1 +1 @@
1
- {"version":3,"file":"OmnistudioRelatedObjectMigrationFacade.js","sourceRoot":"","sources":["../../../src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,4DAA4D;AAC5D,+DAA+D;AAC/D,uDAAuD;AACvD,2CAAiD;AACjD,+CAAiC;AACjC,uCAOqB;AACrB,mEAAgE;AAChE,+CAA4C;AAC5C,yEAAiE;AACjE,mDAAgD;AAChD,uEAAoE;AACpE,iDAA8C;AAC9C,6DAA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,kBAAkB,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;aACjG;SACF;QAAC,OAAO,KAAK,EAAE;YACd,gBAAgB;YAChB,eAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;SACzD;QAED,uBAAuB;QACvB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;QAEhC,6BAA6B;QAC7B,eAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE/B,wCAAwC;QACxC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,CAAC;IAC9G,CAAC;IAEM,UAAU,CAAC,cAAwB;QACxC,OAAO,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,SAAS,CAAC,cAAwB;QACvC,OAAO,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;;AAzHH,yDA0HC;AAzHC,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":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,4DAA4D;AAC5D,+DAA+D;AAC/D,uDAAuD;AACvD,2CAAiD;AACjD,+CAAiC;AACjC,uCAOqB;AACrB,mEAAgE;AAChE,+CAA4C;AAC5C,yEAAiE;AACjE,mDAAgD;AAChD,uEAAoE;AACpE,iDAA8C;AAC9C,6DAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC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AC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC;aAC/G;YACD,IAAI,cAAc,CAAC,QAAQ,CAAC,0BAAS,CAAC,GAAG,CAAC,EAAE;gBAC1C,kBAAkB,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;aACjG;SACF;QAAC,OAAO,KAAK,EAAE;YACd,gBAAgB;YAChB,eAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;SACzD;QAED,uBAAuB;QACvB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;QAEhC,6BAA6B;QAC7B,eAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE/B,wCAAwC;QACxC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,CAAC;IAC9G,CAAC;IAEM,UAAU,CAAC,cAAwB;QACxC,OAAO,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,SAAS,CAAC,cAAwB;QACvC,OAAO,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;;AA7HH,yDA8HC;AA7HC,yEAAyE;AACzE,0EAA0E;AAC5D,2CAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC"}
@@ -6,7 +6,7 @@ exports.Constants = {
6
6
  Omniscript: 'os',
7
7
  Flexcard: 'fc',
8
8
  IntegrationProcedure: 'ip',
9
- DataMapper: 'dr',
9
+ DataMapper: 'dm',
10
10
  GlobalAutoNumber: 'autonumber',
11
11
  LWC: 'lwc',
12
12
  Apex: 'apex',
@@ -1,6 +1,7 @@
1
+ import { Messages } from '@salesforce/core';
1
2
  import { ApexAssessmentInfo, ExperienceSiteAssessmentInfo, FlexiPageAssessmentInfo, LWCAssessmentInfo } from './interfaces';
2
3
  export declare class generatePackageXml {
3
- static createChangeList(apexAssementInfos: ApexAssessmentInfo[], lwcAssessmentInfos: LWCAssessmentInfo[], experienceSiteAssessmentInfo: ExperienceSiteAssessmentInfo[], flexipageAssessmentInfos: FlexiPageAssessmentInfo[]): void;
4
+ static createChangeList(apexAssementInfos: ApexAssessmentInfo[], lwcAssessmentInfos: LWCAssessmentInfo[], experienceSiteAssessmentInfo: ExperienceSiteAssessmentInfo[], flexipageAssessmentInfos: FlexiPageAssessmentInfo[], version: string, messages: Messages): void;
4
5
  static backupChangeList(apexClasses: string[], lwcComponents: string[]): void;
5
6
  private static getXmlElementforMembers;
6
7
  private static getExperienceSiteXml;
@@ -26,31 +26,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.generatePackageXml = void 0;
27
27
  const fs = __importStar(require("fs"));
28
28
  const path = __importStar(require("path"));
29
+ const logger_1 = require("./logger");
29
30
  class generatePackageXml {
30
31
  // Method to generate package.xml with additional types
31
- static createChangeList(apexAssementInfos, lwcAssessmentInfos, experienceSiteAssessmentInfo, flexipageAssessmentInfos) {
32
+ static createChangeList(apexAssementInfos, lwcAssessmentInfos, experienceSiteAssessmentInfo, flexipageAssessmentInfos, version, messages) {
33
+ fs.rmSync(path.join(process.cwd(), 'package.xml'), { force: true });
32
34
  const apexXml = generatePackageXml.getXmlElementforMembers(this.getApexclasses(apexAssementInfos), 'ApexClass');
33
35
  const lwcXml = generatePackageXml.getXmlElementforMembers(this.getLwcs(lwcAssessmentInfos), 'LightningComponentBundle');
34
36
  const expsiteXml = generatePackageXml.getXmlElementforMembers(this.getExperienceSiteXml(experienceSiteAssessmentInfo), 'ExperienceSite');
35
37
  const flexipageXml = generatePackageXml.getXmlElementforMembers(this.getFlexipageXml(flexipageAssessmentInfos), 'FlexiPage');
36
- const additionalTypes = `
37
- <types>
38
- <members>*</members>
39
- <name>OmniDataTransform</name>
40
- </types>
41
- <types>
42
- <members>*</members>
43
- <name>OmniIntegrationProcedure</name>
44
- </types>
45
- <types>
46
- <members>*</members>
47
- <name>OmniScript</name>
48
- </types>
49
- <types>
50
- <members>*</members>
51
- <name>OmniUiCard</name>
52
- </types>
53
- `;
38
+ if (!apexXml && !lwcXml && !expsiteXml && !flexipageXml) {
39
+ logger_1.Logger.warn(messages.getMessage('noMetadataToDeploy'));
40
+ return;
41
+ }
54
42
  const packageXmlContent = `
55
43
  <?xml version="1.0" encoding="UTF-8"?>
56
44
  <Package xmlns="http://soap.sforce.com/2006/04/metadata">
@@ -58,11 +46,10 @@ class generatePackageXml {
58
46
  ${lwcXml}
59
47
  ${expsiteXml}
60
48
  ${flexipageXml}
61
- ${additionalTypes}
62
- <version>57.0</version>
49
+ <version>${version}</version>
63
50
  </Package>
64
51
  `;
65
- const filePath = path.join(__dirname, 'package.xml');
52
+ const filePath = path.join(process.cwd(), 'package.xml');
66
53
  fs.writeFileSync(filePath, packageXmlContent.trim());
67
54
  }
68
55
  // Backup method without additional types
@@ -1 +1 @@
1
- {"version":3,"file":"generatePackageXml.js","sourceRoot":"","sources":["../../src/utils/generatePackageXml.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAQ7B,MAAa,kBAAkB;IAC7B,uDAAuD;IAChD,MAAM,CAAC,gBAAgB,CAC5B,iBAAuC,EACvC,kBAAuC,EACvC,4BAA4D,EAC5D,wBAAmD;QAEnD,MAAM,OAAO,GAAG,kBAAkB,CAAC,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,CAAC;QAChH,MAAM,MAAM,GAAG,kBAAkB,CAAC,uBAAuB,CACvD,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAChC,0BAA0B,CAC3B,CAAC;QAEF,MAAM,UAAU,GAAG,kBAAkB,CAAC,uB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IACL,CAAC;CACF;AA1GD,gDA0GC"}
@@ -54,6 +54,9 @@ class Logger {
54
54
  if (error) {
55
55
  Logger.sfUX.error(`\x1b[31m${error.message}\n${error.stack}\x1b[0m`);
56
56
  }
57
+ else {
58
+ Logger.sfUX.error(`\x1b[31m${message}\x1b[0m`);
59
+ }
57
60
  }
58
61
  }
59
62
  fileLogger_1.FileLogger.writeLog('ERROR', message instanceof Error ? `${message.message}\n${message.stack}` : message);
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":";;;AAEA,oDAAiD;AAEjD,MAAa,MAAM;IAKV,MAAM,CAAC,gBAAgB,CAAC,EAAM,EAAE,MAAgB,EAAE,OAAgB,EAAE,OAAiB;QAC1F,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC;QACzB,MAAM,CAAC,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC;QAClC,uBAAU,CAAC,UAAU,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,SAAkB;QACzC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,UAAU;QACtB,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,OAAe;QACtC,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SAC1B;QACD,uBAAU,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,kBAAkB,CAAC,OAAe,EAAE,IAAa;QAC7D,IAAI,MAAM,CAAC,OAAO,EAAE;YAClB,uBAAU,CAAC,QAA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uBAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,OAAe;QACnC,IAAI,MAAM,CAAC,IAAI,EAAE;YACf,uBAAU,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YACxC,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACrC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,OAAe;QAClC,IAAI,MAAM,CAAC,IAAI,EAAE;YACf,uBAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SACpC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC;;AAnGH,wBAoGC;AAjGgB,cAAO,GAAG,KAAK,CAAC"}
@@ -2,5 +2,9 @@ export declare class sfProject {
2
2
  static create(name: string, outputDir?: string): void;
3
3
  static retrieve(metadataName: string, username: string): void;
4
4
  static deploy(metadataName: string, username: string): void;
5
+ static installDependency(dependency?: string): void;
6
+ static deployFromManifest(manifestPath: string, username: string): void;
7
+ static createNPMConfigFile(authKey: string): void;
8
+ private static processOutput;
5
9
  private static executeCommand;
6
10
  }
@@ -1,6 +1,30 @@
1
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
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.sfProject = void 0;
27
+ const fs = __importStar(require("fs"));
4
28
  const core_1 = require("@salesforce/core");
5
29
  const logger_1 = require("../../logger");
6
30
  const cli_1 = require("../../shell/cli");
@@ -25,9 +49,40 @@ class sfProject {
25
49
  sfProject.executeCommand(cmd);
26
50
  logger_1.Logger.log(messages.getMessage('metadataDeployed', [metadataName, username]));
27
51
  }
52
+ static installDependency(dependency) {
53
+ logger_1.Logger.logVerbose(messages.getMessage('installingDependency', [dependency]));
54
+ const cmd = `npm install ${dependency || ''}`;
55
+ sfProject.executeCommand(cmd);
56
+ logger_1.Logger.logVerbose(messages.getMessage('dependencyInstalled', [dependency]));
57
+ }
58
+ static deployFromManifest(manifestPath, username) {
59
+ logger_1.Logger.log(messages.getMessage('deployingFromManifest'));
60
+ const cmd = `sf project deploy start --manifest "${manifestPath}" --target-org "${username}" --async`;
61
+ logger_1.Logger.log(cmd);
62
+ const cmdOutput = sfProject.executeCommand(cmd);
63
+ logger_1.Logger.logVerbose(`Deploy output: ${cmdOutput}`);
64
+ sfProject.processOutput(cmdOutput);
65
+ }
66
+ static createNPMConfigFile(authKey) {
67
+ logger_1.Logger.logVerbose(messages.getMessage('creatingNPMConfigFile'));
68
+ fs.writeFileSync('.npmrc', `always-auth=true\nregistry=https://repo.vlocity.com/repository/npm-public/\n//repo.vlocity.com/repository/npm-public/:_auth="${authKey}"`);
69
+ logger_1.Logger.logVerbose(messages.getMessage('npmConfigFileCreated'));
70
+ }
71
+ static processOutput(cmdOutput) {
72
+ var _a;
73
+ try {
74
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
75
+ const jsonOutput = JSON.parse(cmdOutput);
76
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
77
+ logger_1.Logger.log(messages.getMessage('manifestDeployementStarted', [(_a = jsonOutput.result) === null || _a === void 0 ? void 0 : _a.id]));
78
+ }
79
+ catch (error) {
80
+ logger_1.Logger.error(messages.getMessage('manifestDeployFailed'));
81
+ }
82
+ }
28
83
  static executeCommand(cmd) {
29
84
  try {
30
- cli_1.cli.exec(`${cmd} --json > /dev/null 2>&1`);
85
+ return cli_1.cli.exec(`${cmd} --json`);
31
86
  }
32
87
  catch (error) {
33
88
  logger_1.Logger.error(messages.getMessage('sfProjectCommandError', [String(error)]));
@@ -1 +1 @@
1
- {"version":3,"file":"sfProject.js","sourceRoot":"","sources":["../../../../src/utils/sfcli/project/sfProject.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,yCAAsC;AACtC,yCAAsC;AAEtC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8CAA8C,EAAE,SAAS,CAAC,CAAC;AAElG,MAAa,SAAS;IACb,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,SAAkB;QACnD,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3D,MAAM,GAAG,GAAG,8BAA8B,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,iBAAiB,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACjG,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QAC9B,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC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mB,CAAC,OAAe;QAC/C,eAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC;QAChE,EAAE,CAAC,aAAa,CACd,QAAQ,EACR,gIAAgI,OAAO,GAAG,CAC3I,CAAC;QACF,eAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACjE,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,SAAiB;;QAC5C,IAAI;YACF,mEAAmE;YACnE,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACzC,sEAAsE;YACtE,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,EAAE,CAAC,MAAA,UAAU,CAAC,MAAM,0CAAE,EAAE,CAAC,CAAC,CAAC,CAAC;SACxF;QAAC,OAAO,KAAK,EAAE;YACd,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;SAC3D;IACH,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,GAAW;QACvC,IAAI;YACF,OAAO,SAAG,CAAC,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC;SAClC;QAAC,OAAO,KAAK,EAAE;YACd,eAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5E,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF;AAlED,8BAkEC"}
@@ -31,15 +31,11 @@ exports.cli = void 0;
31
31
  const shell = __importStar(require("shelljs"));
32
32
  class cli {
33
33
  static exec(cmd) {
34
- const exec = shell.exec(cmd);
35
- let stdout;
34
+ const exec = shell.exec(cmd, { silent: true });
36
35
  if (exec.code !== 0) {
37
- stdout = exec.stderr;
36
+ throw new Error(`Command failed with exit code ${exec.code}: ${exec.stderr || exec.stdout}`);
38
37
  }
39
- else {
40
- stdout = exec.stdout;
41
- }
42
- return stdout;
38
+ return exec.stdout;
43
39
  }
44
40
  }
45
41
  exports.cli = cli;
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/utils/shell/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,sCAAsC;AACtC,4DAA4D;AAC5D,+CAAiC;AAEjC,MAAa,GAAG;IACP,MAAM,CAAC,IAAI,CAAC,GAAW;QAC5B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,MAAc,CAAC;QACnB,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,EAAE;YACnB,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SACtB;aAAM;YACL,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;SACtB;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAZD,kBAYC"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/utils/shell/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,sCAAsC;AACtC,4DAA4D;AAC5D,+CAAiC;AAEjC,MAAa,GAAG;IACP,MAAM,CAAC,IAAI,CAAC,GAAW;QAC5B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/C,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;SAC9F;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AARD,kBAQC"}
@@ -1,18 +1,16 @@
1
1
  {
2
2
  "examples": [
3
3
  "omnistudio:migration:assess -u orguser@domain.com ",
4
- "omnistudio:migration:assess -u orguser@domain.com --only=dr",
4
+ "omnistudio:migration:assess -u orguser@domain.com --only=dm",
5
5
  "omnistudio:migration:assess -u orguser@domain.com --only=ip",
6
6
  "omnistudio:migration:assess -u orguser@domain.com --only=os",
7
7
  "omnistudio:migration:assess -u orguser@domain.com --only=fc",
8
8
  "omnistudio:migration:assess -u orguser@domain.com --only=autonumber"
9
9
  ],
10
10
  "commandDescription": "Assess migration of omnistudio components from custom objects to standard objects",
11
- "namespaceFlagDescription": "The namespaced of the package",
12
- "apiVersionFlagDescription": "The Salesforce API version to use",
13
11
  "errorNoOrgResults": "No results found for the org '%s'.",
14
- "onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
15
- "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
12
+ "onlyFlagDescription": "Migrate a single element: os | ip | fc | dm | autonumber",
13
+ "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dm | autonumber",
16
14
  "couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
17
15
  "couldNotTruncate": "Could not truncate %s",
18
16
  "couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
@@ -124,8 +122,7 @@
124
122
  "errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",
125
123
  "unexpectedError": "Unexpected Assessment error",
126
124
  "errorEvaluatingExpression": "Error evaluating expression: %s, %s",
127
- "retrievingFlexiPages": "Retrieving FlexiPages",
128
- "successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
125
+ "foundFlexiPages": "Found %s FlexiPages to assess",
129
126
  "assessingFlexiPages": "Assessing FlexiPages",
130
127
  "completedProcessingAllFlexiPages": "Completed processing all flexipage files. Total processed: %s",
131
128
  "completedProcessingFlexiPage": "Completed processing %s - Errors: %s",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "examples": [
3
3
  "omnistudio:migration:migrate -u orguser@domain.com ",
4
- "omnistudio:migration:migrate -u orguser@domain.com --only=dr",
4
+ "omnistudio:migration:migrate -u orguser@domain.com --only=dm",
5
5
  "omnistudio:migration:migrate -u orguser@domain.com --only=ip",
6
6
  "omnistudio:migration:migrate -u orguser@domain.com --only=os",
7
7
  "omnistudio:migration:migrate -u orguser@domain.com --only=fc",
@@ -12,10 +12,9 @@
12
12
  ],
13
13
  "commandDescription": "Migrate omnistudio components from custom objects to standard objects",
14
14
  "namespaceFlagDescription": "The namespace of the package",
15
- "apiVersionFlagDescription": "The Salesforce API version to use",
16
15
  "errorNoOrgResults": "No results found for the org '%s'.",
17
- "onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
18
- "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
16
+ "onlyFlagDescription": "Migrate a single element: os | ip | fc | dm | autonumber",
17
+ "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dm | autonumber",
19
18
  "couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
20
19
  "couldNotTruncate": "Could not truncate %s",
21
20
  "couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
@@ -119,8 +118,7 @@
119
118
  "labelStatusComplete": "Complete",
120
119
  "migrationConsentNotGiven": "Couldn't confirm whether assessment errors are resolved",
121
120
  "migrationConsentMessage": "Ensure that all items in the assessment report are marked as Green before proceeding with the migration. Do you want to proceed?",
122
- "retrievingFlexiPages": "Retrieving FlexiPages",
123
- "successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
121
+ "foundFlexiPages": "Found %s FlexiPages to migrate",
124
122
  "migratingFlexiPages": "Migrating FlexiPages",
125
123
  "completedProcessingAllFlexiPages": "Completed processing all flexipage files. Total processed: %s",
126
124
  "completedProcessingFlexiPage": "Completed processing %s - Errors: %s",
@@ -196,10 +194,20 @@
196
194
  "missingInfo": "Info is missing",
197
195
  "errorCheckingGlobalAutoNumber": "We couldn’t check whether the Global Auto Number setting is enabled: %s. Try again later.",
198
196
  "errorMigrationMessage": "Error migrating object: %s",
197
+ "nameMappingUndefined": "Name Mapping is undefined",
198
+ "autoDeployConsentMessage": "Do you want to auto deploy the related objects? [y/n]",
199
+ "errorDeployingComponents": "Error deploying related objects post migration",
200
+ "installingDependency": "Installing node dependency %s",
201
+ "dependencyInstalled": "Node dependency %s installed",
202
+ "deployingFromManifest": "Deploying from metadata packages",
203
+ "manifestDeployFailed": "Metadata packages deployment failed, check logs or status for more details",
204
+ "installingRequiredDependencies": "Installing required node dependencies",
205
+ "creatingNPMConfigFile": "Creating npm config file",
206
+ "npmConfigFileCreated": "Npm config file created",
207
+ "authKeyEnvVarNotSet": "OMA_AUTH_KEY environment variable is not set, LWCs will not be deployed",
199
208
  "experienceSiteException": "Exception occurred while processing experience sites",
200
209
  "reservedKeysFoundInPropertySet": "Reserved keys found in any of output response transformation fields: %s.",
201
210
  "incompleteMigrationDetected": "We couldn't complete the migration process",
202
- "nameMappingUndefined": "Name Mapping is undefined",
203
211
  "errorComponentMapping": "Error during component pre-processing: %s",
204
212
  "startingComponentPreProcessing": "Pre-processing components for name mapping",
205
213
  "completeComponentMappingMessage": "Registered name mappings for %s components",
@@ -207,5 +215,7 @@
207
215
  "flexCardWithAngularOmniScriptWarning": "FlexCard has dependencies on Angular OmniScript(s) which are not migrated. Please convert OmniScript(s) to LWC before migrating this FlexCard.",
208
216
  "angularOmniScriptDependencyWarning": "Element '%s' references Angular OmniScript '%s' which will not be migrated. Consider converting the referenced OmniScript to LWC",
209
217
  "skipFlexcardAngularOmniScriptDependencyWarning": "Skipping FlexCard %s due to Angular OmniScript dependencies",
210
- "flexCardMigrationProcessingMessage": "Processing %s FlexCards for migration (%s skipped due to Angular dependencies)"
211
- }
218
+ "flexCardMigrationProcessingMessage": "Processing %s FlexCards for migration (%s skipped due to Angular dependencies)",
219
+ "noMetadataToDeploy": "No metadata to deploy",
220
+ "manifestDeployementStarted": "Manifest deployment started with id: %s"
221
+ }
@@ -1 +1 @@
1
- {"version":"2.0.0-rc.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 ","omnistudio:migration:assess -u orguser@domain.com --only=dr","omnistudio:migration:assess -u orguser@domain.com --only=ip","omnistudio:migration:assess -u orguser@domain.com --only=os","omnistudio:migration:assess -u orguser@domain.com --only=fc","omnistudio:migration:assess -u orguser@domain.com --only=autonumber"],"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 | autonumber"},"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, 'lwc' for Lightning Web Components, 'flexipage' for FlexiPages, or 'apex,lwc,flexipage' if you want to include all types."},"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 ","omnistudio:migration:migrate -u orguser@domain.com --only=dr","omnistudio:migration:migrate -u orguser@domain.com --only=ip","omnistudio:migration:migrate -u orguser@domain.com --only=os","omnistudio:migration:migrate -u orguser@domain.com --only=fc","omnistudio:migration:migrate -u orguser@domain.com --only=autonumber","omnistudio:migration:migrate -u orguser@domain.com -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com -r apex","omnistudio:migration:migrate -u orguser@domain.com -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 | autonumber"},"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, 'flexipage' for FlexiPages, 'expsites' for Experience Sites, or 'apex,lwc,flexipage,expsites' if you want to include all types."},"verbose":{"name":"verbose","type":"boolean","description":"Enable verbose output","allowNo":false}},"args":[{"name":"file"}]}}}
1
+ {"version":"2.0.0-rc.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 %> [-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 ","omnistudio:migration:assess -u orguser@domain.com --only=dm","omnistudio:migration:assess -u orguser@domain.com --only=ip","omnistudio:migration:assess -u orguser@domain.com --only=os","omnistudio:migration:assess -u orguser@domain.com --only=fc","omnistudio:migration:assess -u orguser@domain.com --only=autonumber"],"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"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dm | autonumber"},"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, 'lwc' for Lightning Web Components, 'flexipage' for FlexiPages, or 'apex,lwc,flexipage' if you want to include all types."},"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 %> [-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 ","omnistudio:migration:migrate -u orguser@domain.com --only=dm","omnistudio:migration:migrate -u orguser@domain.com --only=ip","omnistudio:migration:migrate -u orguser@domain.com --only=os","omnistudio:migration:migrate -u orguser@domain.com --only=fc","omnistudio:migration:migrate -u orguser@domain.com --only=autonumber","omnistudio:migration:migrate -u orguser@domain.com -r apex,lwc","omnistudio:migration:migrate -u orguser@domain.com -r apex","omnistudio:migration:migrate -u orguser@domain.com -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"},"only":{"name":"only","type":"option","char":"o","description":"Migrate a single element: os | ip | fc | dm | autonumber"},"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, 'flexipage' for FlexiPages, 'expsites' for Experience Sites, or 'apex,lwc,flexipage,expsites' if you want to include all types."},"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-rc.13",
4
+ "version": "2.0.0-rc.15",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -128,7 +128,7 @@
128
128
  }
129
129
  },
130
130
  "sfdx": {
131
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.13.crt",
132
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.13.sig"
131
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.15.crt",
132
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.15.sig"
133
133
  }
134
134
  }