@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.2 → 2.0.0-rc.4

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 (59) hide show
  1. package/lib/commands/omnistudio/migration/assess.js +1 -2
  2. package/lib/commands/omnistudio/migration/assess.js.map +1 -1
  3. package/lib/commands/omnistudio/migration/info.js +1 -2
  4. package/lib/commands/omnistudio/migration/info.js.map +1 -1
  5. package/lib/commands/omnistudio/migration/migrate.js +19 -13
  6. package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
  7. package/lib/javascripts/reportGeneratorUtility.js +1 -3
  8. package/lib/migration/dataraptor.js +4 -8
  9. package/lib/migration/dataraptor.js.map +1 -1
  10. package/lib/migration/flexcard.js +2 -7
  11. package/lib/migration/flexcard.js.map +1 -1
  12. package/lib/migration/globalautonumber.js +34 -37
  13. package/lib/migration/globalautonumber.js.map +1 -1
  14. package/lib/migration/omniscript.js +3 -7
  15. package/lib/migration/omniscript.js.map +1 -1
  16. package/lib/migration/related/ApexMigration.js +1 -5
  17. package/lib/migration/related/ApexMigration.js.map +1 -1
  18. package/lib/migration/related/LwcMigration.js +2 -6
  19. package/lib/migration/related/LwcMigration.js.map +1 -1
  20. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +2 -3
  21. package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
  22. package/lib/styles/reportGenerator.css +10 -7
  23. package/lib/templates/assessmentReport.template +13 -12
  24. package/lib/templates/dashboard.template +7 -2
  25. package/lib/templates/migrationReport.template +10 -8
  26. package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +3 -2
  27. package/lib/utils/OmniGlobalAutoNumberPrefManager.js +3 -2
  28. package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +1 -1
  29. package/lib/utils/logger.d.ts +1 -1
  30. package/lib/utils/logger.js +4 -1
  31. package/lib/utils/logger.js.map +1 -1
  32. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +59 -41
  33. package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
  34. package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +1 -1
  35. package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
  36. package/lib/utils/lwcparser/xmlParser/XmlParser.js +1 -1
  37. package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
  38. package/lib/utils/reportGenerator/reportInterfaces.d.ts +2 -0
  39. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +12 -6
  40. package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
  41. package/lib/utils/resultsbuilder/DRAssessmentReporter.js +6 -6
  42. package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
  43. package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +5 -5
  44. package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
  45. package/lib/utils/resultsbuilder/IPAssessmentReporter.js +5 -5
  46. package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
  47. package/lib/utils/resultsbuilder/OSAssessmentReporter.js +6 -6
  48. package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
  49. package/lib/utils/resultsbuilder/assessmentReporter.js +8 -7
  50. package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
  51. package/lib/utils/resultsbuilder/index.js +29 -25
  52. package/lib/utils/resultsbuilder/index.js.map +1 -1
  53. package/lib/utils/stringUtils.d.ts +1 -0
  54. package/lib/utils/stringUtils.js +22 -1
  55. package/lib/utils/stringUtils.js.map +1 -1
  56. package/messages/assess.json +16 -16
  57. package/messages/migrate.json +24 -18
  58. package/oclif.manifest.json +1 -1
  59. package/package.json +4 -3
@@ -14,7 +14,7 @@
14
14
  "onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
15
15
  "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
16
16
  "couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
17
- "couldNotTruncate": "Could not truncate {0}",
17
+ "couldNotTruncate": "Could not truncate %s",
18
18
  "couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
19
19
  "invalidNameTypeSubtypeOrLanguage": "Not a valid Name, Type, SubType or Language",
20
20
  "invalidOrRepeatingOmniscriptElementNames": "Invalid or Repeating Element Names for Same OmniScript",
@@ -64,7 +64,7 @@
64
64
  "flexCardAssessmentCompleted": "FlexCard assessment completed",
65
65
  "globalAutoNumberAssessment": "GlobalAutoNumber Assessment",
66
66
  "assessedGlobalAutoNumbersCount": "Assessed %s GlobalAutoNumbers",
67
- "globalAutoNumberAssessmentCompleted": "GlobalAutoNumber assessment completed",
67
+ "globalAutoNumberAssessmentCompleted": "The assessment for Global Auto Number is complete.",
68
68
  "omniScriptAssessment": "OmniScript and Integration Procedure Assessment",
69
69
  "assessedOmniScriptsCount": "Assessed %s OmniScripts",
70
70
  "assessedIntegrationProceduresCount": "Assessed %s Integration Procedures",
@@ -87,23 +87,23 @@
87
87
  "processingLwcsForAssessment": "Processing LWCs for assessment",
88
88
  "successfullyProcessedLwcsForAssessment": "Successfully processed %s LWCs for assessment",
89
89
  "lwcAssessmentResults": "LWC assessment results: %s",
90
- "errorReadingFiles": "Error in reading files: %s",
91
- "errorProcessingFiles": "Error in processing files: %s",
90
+ "errorReadingFiles": "Error in reading files",
91
+ "errorProcessingFiles": "Error in processing files",
92
92
  "startingProcessRelatedObjects": "Starting processRelatedObjects for %s in project path: %s",
93
93
  "errorProcessingApexFile": "Error processing Apex file: %s",
94
94
  "fileUpdatedToAllowRemoteCalls": "File will be updated to allow remote calls",
95
95
  "fileUpdatedToAllowCalls": "File will be updated to allow calls",
96
96
  "fileImplementsVlocityOpenInterface": "File %s implements VlocityOpenInterface no changes will be applied",
97
97
  "methodCallBundleNameUpdated": "Method call bundle name will be updated in %s for class %s method %s",
98
- "cardNameChangeMessage": "Card name will be changed from {0} to {1} to follow API naming standards",
99
- "authordNameChangeMessage": "Author name will be changed from {0} to {1} to follow API naming standards",
98
+ "cardNameChangeMessage": "Card name will be changed from %s to %s to follow API naming standards",
99
+ "authordNameChangeMessage": "Author name will be changed from %s to %s to follow API naming standards",
100
+ "omniScriptNameChangeMessage": "OmniScript reference part %s will be changed to %s during migration.",
101
+ "dataRaptorNameChangeMessage": "DataRaptor reference %s will be changed to %s during migration.",
102
+ "integrationProcedureNameChangeMessage": "Integration Procedure reference %s will be changed to %s during migration.",
103
+ "integrationProcedureManualUpdateMessage": "Integration Procedure reference %s may need manual updates after migration.",
104
+ "duplicateCardNameMessage": "Potential duplicate: Another card has the same name %s after name cleaning. This may cause conflicts during migration",
100
105
  "globalAutoNumberNameChangeMessage": "GlobalAutoNumber name will be changed from %s to %s to follow API naming standards",
101
106
  "duplicateGlobalAutoNumberNameMessage": "Potential duplicate: Another Global Auto Number has the same name %s after name cleaning. This may cause conflicts during migration",
102
- "omniScriptNameChangeMessage": "OmniScript reference part {0} will be changed to {1} during migration.",
103
- "dataRaptorNameChangeMessage": "DataRaptor reference {0} will be changed to {1} during migration.",
104
- "integrationProcedureNameChangeMessage": "Integration Procedure reference {0} will be changed to {1} during migration.",
105
- "integrationProcedureManualUpdateMessage": "Integration Procedure reference {0} may need manual updates after migration.",
106
- "duplicateCardNameMessage": "Potential duplicate: Another card has the same name {0} after name cleaning. This may cause conflicts during migration",
107
107
  "existingApexPrompt": "Do you have a sfdc project that already contains the APEX classes retrieved from your org? [y/n]",
108
108
  "enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes:",
109
109
  "invalidProjectFolderPath": "Provided project folder does not exist. Please provide a valid project folder path",
@@ -117,14 +117,14 @@
117
117
  "failedToGetValidProjectPath": "Failed to get valid project path",
118
118
  "errorRunningAssess": "Error running assess",
119
119
  "enableVerboseOutput": "Enable verbose output",
120
- "apexFileChangesIdentifiedNotApplied": "Changes identified for Apex class {0} but not applied (assessment mode)",
121
- "apexFileHasMultipleInterfaces": "File {0} has multiple interfaces including Callable, standardizing to System.Callable only",
122
- "apexFileImplementsVlocityOpenInterface2": "File {0} implements VlocityOpenInterface2, replacing with System.Callable",
120
+ "apexFileChangesIdentifiedNotApplied": "Changes identified for Apex class %s but not applied (assessment mode)",
121
+ "apexFileHasMultipleInterfaces": "File %s has multiple interfaces including Callable, standardizing to System.Callable only",
122
+ "apexFileImplementsVlocityOpenInterface2": "File %s implements VlocityOpenInterface2, replacing with System.Callable",
123
123
  "errorParsingHtmlTemplate": "Error while parsing template",
124
124
  "errorParsingData": "Error while parsing data for template",
125
- "errorGeneratingHTML": "Error while generating HTML from template for {} with properties {}",
125
+ "errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",
126
126
  "unexpectedError": "Unexpected Assessment error",
127
- "errorEvaluatingExpression": "Error evaluating expression: {0}, {1}",
127
+ "errorEvaluatingExpression": "Error evaluating expression: %s, %s",
128
128
  "retrievingFlexiPages": "Retrieving FlexiPages",
129
129
  "successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
130
130
  "assessingFlexiPages": "Assessing FlexiPages",
@@ -17,7 +17,7 @@
17
17
  "onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
18
18
  "invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
19
19
  "couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
20
- "couldNotTruncate": "Could not truncate {0}",
20
+ "couldNotTruncate": "Could not truncate %s",
21
21
  "couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
22
22
  "invalidNameTypeSubtypeOrLanguage": "Not a valid Name, Type, SubType or Language",
23
23
  "invalidOrRepeatingOmniscriptElementNames": "Invalid or Repeating Element Names for Same OmniScript",
@@ -66,6 +66,7 @@
66
66
  "migratingComponent": "Migrating: %s",
67
67
  "cleaningFailed": "Cleaning Failed: %s",
68
68
  "migrationCompleted": "Migration completed: %s",
69
+ "migrationFailed": "Migration failed: %s",
69
70
  "formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
70
71
  "foundDataRaptorsToMigrate": "Found %s DataRaptors to migrate",
71
72
  "foundFlexCardsToMigrate": "Found %s FlexCards to migrate",
@@ -97,22 +98,25 @@
97
98
  "packageSelectionPrompt": "Enter the number of the package to use (1-%s):",
98
99
  "invalidPackageSelection": "Invalid selection. Please enter a number between 1 and %s.",
99
100
  "selectedPackage": "Selected package: %s (Version: %s)",
100
- "dataRaptorNameChangeMessage": "DataRaptor reference {0} will be changed to {1} during migration.",
101
- "integrationProcedureNameChangeMessage": "Integration Procedure reference {0} will be changed to {1} during migration.",
102
- "integrationProcedureManualUpdateMessage": "Integration Procedure reference {0} may need manual updates after migration.",
103
- "cardAuthorNameChangeMessage": "Card author name has been modified to fit naming rules: {0}",
104
- "cardNameChangeMessage": "Card name has been modified to fit naming rules: {0}",
105
- "duplicateCardNameMessage": "Potential duplicate: Another card has the same name {0} after name cleaning. This may cause conflicts during migration",
101
+ "dataRaptorNameChangeMessage": "DataRaptor reference %s will be changed to %s during migration.",
102
+ "integrationProcedureNameChangeMessage": "Integration Procedure reference %s will be changed to %s during migration.",
103
+ "integrationProcedureManualUpdateMessage": "Integration Procedure reference %s may need manual updates after migration.",
104
+ "cardAuthorNameChangeMessage": "Card author name has been modified to fit naming rules: %s",
105
+ "cardNameChangeMessage": "Card name has been modified to fit naming rules: %s",
106
+ "duplicateCardNameMessage": "Potential duplicate: Another card has the same name %s after name cleaning. This may cause conflicts during migration",
106
107
  "angularOmniscriptWarningMessage": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript",
107
- "apexFileChangesApplied": "Applied changes to Apex class {0}",
108
+ "apexFileChangesApplied": "Applied changes to Apex class %s",
108
109
  "generatingComponentReports": "Generating report for components",
109
110
  "generatingRelatedObjectReports": "Generating report for related objects",
110
111
  "generatingMigrationReportDashboard": "Generating migration report dashboard",
111
112
  "errorParsingHtmlTemplate": "Error while parsing template",
112
113
  "errorParsingData": "Error while parsing data for template",
113
- "errorGeneratingHTML": "Error while generating HTML from template for {} with properties {}",
114
- "errorEvaluatingExpression": "Error evaluating expression: {0}, {1}",
114
+ "errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",
115
+ "errorEvaluatingExpression": "Error evaluating expression: %s, %s",
115
116
  "manuallySwitchDesignerToStandardDataModel": "To complete the setup, please manually run the required Apex code to configure OmniStudio Designers to use the Standard Data Model <br> https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_change_the_sobject_data_model_after_migration.htm&type=5",
117
+ "labelStatusSkipped": "Skipped",
118
+ "labelStatusFailed": "Failed",
119
+ "labelStatusComplete": "Complete",
116
120
  "retrievingFlexiPages": "Retrieving FlexiPages",
117
121
  "successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
118
122
  "migratingFlexiPages": "Migrating FlexiPages",
@@ -126,24 +130,26 @@
126
130
  "errorProcessingFlexiPage": "Error processing flexipage file: %s, %s",
127
131
  "flexipagesWithChanges": "Found %s flexipage files with changes",
128
132
  "omniGlobalAutoNumberPrefEnabled": "Successfully enabled OmniGlobalAutoNumberPref org preference",
129
- "errorEnablingOmniGlobalAutoNumberPref": "Error enabling OmniGlobalAutoNumberPref org preference",
133
+ "errorEnablingOmniGlobalAutoNumberPref": "We couldn’t enable the Global Auto Number setting. Turn on the Global Auto Number setting manually, and try again. See <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Set Up Omni Global Auto Number</a>.",
130
134
  "performingPreMigrationChecks": "Performing pre-migration checks for Global Auto Number...",
131
135
  "preMigrationChecksPassed": "Pre-migration checks passed. Proceeding with Global Auto Number migration.",
132
136
  "preMigrationChecksFailed": "Pre-migration checks failed. Migration cannot proceed.",
133
- "globalAutoNumberPrefEnabledError": "Global Auto Number preference (OmniGlobalAutoNumberPref) is enabled. Please disable it before proceeding with migration.",
134
- "bothRollbackFlagsEnabledError": "Both RollbackIPChanges and RollbackDRChanges flags are enabled. Please disable both flags before proceeding with Global Auto Number migration.",
135
- "rollbackIPFlagEnabledError": "RollbackIPChanges flag is enabled. Please disable this flag before proceeding with Global Auto Number migration.",
136
- "rollbackDRFlagEnabledError": "RollbackDRChanges flag is enabled. Please disable this flag before proceeding with Global Auto Number migration.",
137
+ "globalAutoNumberPrefEnabledError": "The Global Auto Number setting is enabled and global auto numbers have already been migrated.",
138
+ "bothRollbackFlagsEnabledError": "We couldn’t turn on Global Auto Number. Disable the RollBackDRChanges and RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a>, and try again.",
139
+ "rollbackIPFlagEnabledError": "We couldn’t turn on Global Auto Number. Disable the RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
140
+ "rollbackDRFlagEnabledError": "We couldn’t turn on Global Auto Number. Disable the RollBackDRChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
137
141
  "errorCheckingRollbackFlags": "Error checking rollback flags status.",
138
142
  "startingPostMigrationCleanup": "Starting post-migration cleanup for Global Auto Number...",
139
143
  "postMigrationCleanupCompleted": "Post-migration cleanup completed successfully.",
140
- "errorDuringPostMigrationCleanup": "Error during post-migration cleanup.",
144
+ "errorDuringPostMigrationCleanup": "We’ve encountered an error during the post-migration cleanup. Try again later.",
141
145
  "globalAutoNumberNameChangeMessage": "Global Auto Number name has been modified to fit naming rules: %s",
142
146
  "duplicatedGlobalAutoNumberName": "Duplicated Global Auto Number name",
143
147
  "errorWhileUploadingGlobalAutoNumber": "An error occurred while uploading Global Auto Number: ",
144
148
  "startingGlobalAutoNumberAssessment": "Starting Global Auto Number assessment...",
145
149
  "foundGlobalAutoNumbersToAssess": "Found %s Global Auto Numbers to assess",
146
150
  "unexpectedError": "An unexpected error occurred during processing",
147
- "migrationValidationFailed": "Post Migration validation failed.",
148
- "incompleteMigrationDetected": "Incomplete migration detected. Source objects: %s, Target objects: %s."
151
+ "migrationValidationFailed": "The post-migration validation has failed.",
152
+ "incompleteMigrationDetected": "We couldn’t complete the migration process",
153
+ "errorCheckingGlobalAutoNumber": "We couldn’t check whether the Global Auto Number setting is enabled: %s. Try again later.",
154
+ "errorMigrationMessage": "Error migrating object: %s"
149
155
  }
@@ -1 +1 @@
1
- {"version":"2.0.0-rc.2","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.4","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"}]}}}
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.2",
4
+ "version": "2.0.0-rc.4",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -57,6 +57,7 @@
57
57
  "nyc": "^15.1.0",
58
58
  "prettier": "^2.8.8",
59
59
  "pretty-quick": "^3.3.1",
60
+ "puppeteer": "^24.12.1",
60
61
  "sinon": "10.0.0",
61
62
  "ts-node": "^10.9.2",
62
63
  "typescript": "^4.9.5"
@@ -127,7 +128,7 @@
127
128
  }
128
129
  },
129
130
  "sfdx": {
130
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.2.crt",
131
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.2.sig"
131
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.4.crt",
132
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.4.sig"
132
133
  }
133
134
  }