@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.2 → 2.0.0-rc.20
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 +14 -26
- package/lib/commands/omnistudio/migration/assess.d.ts +0 -1
- package/lib/commands/omnistudio/migration/assess.js +64 -30
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/info.js +2 -3
- package/lib/commands/omnistudio/migration/info.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +35 -5
- package/lib/commands/omnistudio/migration/migrate.js +250 -102
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/javascripts/reportGeneratorUtility.js +1 -3
- package/lib/migration/NameMappingRegistry.d.ts +130 -0
- package/lib/migration/NameMappingRegistry.js +376 -0
- package/lib/migration/NameMappingRegistry.js.map +1 -0
- package/lib/migration/base.d.ts +4 -2
- package/lib/migration/base.js +8 -1
- package/lib/migration/base.js.map +1 -1
- package/lib/migration/dataraptor.js +32 -13
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/deployer.d.ts +11 -0
- package/lib/migration/deployer.js +59 -0
- package/lib/migration/deployer.js.map +1 -0
- package/lib/migration/flexcard.d.ts +44 -2
- package/lib/migration/flexcard.js +680 -112
- package/lib/migration/flexcard.js.map +1 -1
- package/lib/migration/globalautonumber.js +43 -53
- package/lib/migration/globalautonumber.js.map +1 -1
- package/lib/migration/interfaces.d.ts +5 -0
- package/lib/migration/interfaces.js +7 -0
- package/lib/migration/interfaces.js.map +1 -1
- package/lib/migration/omniscript.d.ts +10 -1
- package/lib/migration/omniscript.js +399 -78
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/postMigrate.d.ts +22 -3
- package/lib/migration/postMigrate.js +146 -12
- package/lib/migration/postMigrate.js.map +1 -1
- package/lib/migration/premigrate.d.ts +16 -0
- package/lib/migration/premigrate.js +114 -0
- package/lib/migration/premigrate.js.map +1 -0
- package/lib/migration/related/ApexMigration.js +23 -15
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/ExperienceSiteMigration.d.ts +12 -4
- package/lib/migration/related/ExperienceSiteMigration.js +121 -53
- package/lib/migration/related/ExperienceSiteMigration.js.map +1 -1
- package/lib/migration/related/FlexipageMigration.js +2 -7
- package/lib/migration/related/FlexipageMigration.js.map +1 -1
- package/lib/migration/related/LwcMigration.js +13 -13
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +23 -29
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/styles/reportGenerator.css +10 -11
- package/lib/templates/assessmentReport.template +29 -17
- package/lib/templates/dashboard.template +7 -2
- package/lib/templates/migrationReport.template +14 -12
- package/lib/utils/OmnistudioSettingsPrefManager.d.ts +12 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js +82 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js.map +1 -0
- package/lib/utils/constants/documentRegistry.d.ts +1 -1
- package/lib/utils/constants/documentRegistry.js +3 -3
- package/lib/utils/constants/documentRegistry.js.map +1 -1
- package/lib/utils/constants/stringContants.d.ts +2 -0
- package/lib/utils/constants/stringContants.js +3 -1
- package/lib/utils/constants/stringContants.js.map +1 -1
- package/lib/utils/file/fileUtil.d.ts +3 -1
- package/lib/utils/file/fileUtil.js +13 -4
- package/lib/utils/file/fileUtil.js.map +1 -1
- package/lib/utils/flexipage/flexiPageTransformer.js +12 -8
- package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -1
- package/lib/utils/generatePackageXml.d.ts +4 -2
- package/lib/utils/generatePackageXml.js +20 -22
- package/lib/utils/generatePackageXml.js.map +1 -1
- package/lib/utils/interfaces.d.ts +29 -0
- package/lib/utils/logger.d.ts +1 -1
- package/lib/utils/logger.js +7 -2
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +78 -61
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
- package/lib/utils/orgPreferences.d.ts +1 -0
- package/lib/utils/orgPreferences.js +9 -6
- package/lib/utils/orgPreferences.js.map +1 -1
- package/lib/utils/orgUtils/index.d.ts +1 -1
- package/lib/utils/orgUtils/index.js +4 -14
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/promptUtil.d.ts +2 -0
- package/lib/utils/promptUtil.js +26 -1
- package/lib/utils/promptUtil.js.map +1 -1
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +2 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +27 -10
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +27 -11
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +93 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +35 -13
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +3 -2
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +31 -12
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +117 -139
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js +19 -20
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +3 -1
- package/lib/utils/resultsbuilder/assessmentReporter.js +106 -67
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/index.d.ts +5 -1
- package/lib/utils/resultsbuilder/index.js +186 -71
- package/lib/utils/resultsbuilder/index.js.map +1 -1
- package/lib/utils/resultsbuilder/reportingHelper.js +1 -1
- package/lib/utils/resultsbuilder/reportingHelper.js.map +1 -1
- package/lib/utils/sfcli/project/sfProject.d.ts +4 -0
- package/lib/utils/sfcli/project/sfProject.js +56 -1
- package/lib/utils/sfcli/project/sfProject.js.map +1 -1
- package/lib/utils/shell/cli.js +3 -7
- package/lib/utils/shell/cli.js.map +1 -1
- package/lib/utils/storageUtil.d.ts +1 -0
- package/lib/utils/storageUtil.js +3 -0
- package/lib/utils/storageUtil.js.map +1 -1
- package/lib/utils/stringUtils.d.ts +1 -0
- package/lib/utils/stringUtils.js +22 -1
- package/lib/utils/stringUtils.js.map +1 -1
- package/messages/assess.json +79 -38
- package/messages/migrate.json +117 -32
- package/oclif.manifest.json +1 -1
- package/package.json +8 -6
- package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +0 -39
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js +0 -64
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +0 -1
package/messages/migrate.json
CHANGED
|
@@ -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=
|
|
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,12 +12,11 @@
|
|
|
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 |
|
|
18
|
-
"invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc |
|
|
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
|
-
"couldNotTruncate": "Could not truncate
|
|
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.",
|
|
22
21
|
"invalidNameTypeSubtypeOrLanguage": "Not a valid Name, Type, SubType or Language",
|
|
23
22
|
"invalidOrRepeatingOmniscriptElementNames": "Invalid or Repeating Element Names for Same OmniScript",
|
|
@@ -35,23 +34,22 @@
|
|
|
35
34
|
"invalidNamespace": "The namespace you have passed is not valid namespace, the valid namespace of your org is ",
|
|
36
35
|
"noPackageInstalled": "No package installed on given org.",
|
|
37
36
|
"alreadyStandardModel": "The org is already on standard data model.",
|
|
38
|
-
"
|
|
39
|
-
"invalidRelatedObjectsOption": "Invalid option provided for -r: %s. Valid option is apex.",
|
|
37
|
+
"invalidRelatedObjectsOption": "Invalid option provided for -r: %s. Valid options are apex, lwc, expsites, flexipage.",
|
|
40
38
|
"userConsentMessage": "By proceeding further, you hereby consent to the use, accept changes to your custom code and the accompanying terms and conditions associated with the use of the OmniStudio Migration Tool. Do you want to proceed? [y/n]",
|
|
41
39
|
"userDeclinedConsent": "User declined consent, will not process %s .",
|
|
42
40
|
"userConsentedToProceed": "User consented to proceed",
|
|
43
41
|
"existingApexPrompt": "Do you have a sfdc project that already contains the APEX classes retrieved from your org? [y/n]",
|
|
44
|
-
"enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes
|
|
42
|
+
"enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes",
|
|
45
43
|
"invalidProjectFolderPath": "Provided project folder does not exist. Please provide a valid project folder path",
|
|
46
44
|
"requestTimedOut": "Request timed out",
|
|
47
45
|
"retrieveApexPrompt": "Omnistudio Migration Tool can connect to your org and retrieve the APEX classes. Provide an empty project folder to store the retrieved APEX classes. Would you like to proceed with the retrieval? [y/n]",
|
|
48
|
-
"enterEmptyProjectPath": "Enter the path to an empty project folder to retrieve to and process the APEX classes
|
|
46
|
+
"enterEmptyProjectPath": "Enter the path to an empty project folder to retrieve to and process the APEX classes",
|
|
49
47
|
"notEmptyProjectFolderPath": "Provided project folder is not empty. Please provide a valid empty project folder name and path",
|
|
50
48
|
"invalidYesNoResponse": "Invalid response. Please answer y or n.",
|
|
51
49
|
"notSfdxProjectFolderPath": "Provided folder is not a valid Salesforce DX project. Please select a folder containing sfdx-project.json",
|
|
52
50
|
"operationCancelled": "Operation cancelled.",
|
|
53
51
|
"failedToGetValidProjectPath": "Failed to get valid project path",
|
|
54
|
-
"errorRunningMigrate": "
|
|
52
|
+
"errorRunningMigrate": "Migration process failed reason : %s",
|
|
55
53
|
"couldNotEnableOmniPreferences": "Could not enable Omni preferences: %s",
|
|
56
54
|
"errorSettingDesignersToStandardDataModel": "Error occurred while setting designers to use the standard data model %s",
|
|
57
55
|
"exceptionSettingDesignersToStandardDataModel": "Exception occurred while setting designers to use the standard data model %s",
|
|
@@ -66,10 +64,11 @@
|
|
|
66
64
|
"migratingComponent": "Migrating: %s",
|
|
67
65
|
"cleaningFailed": "Cleaning Failed: %s",
|
|
68
66
|
"migrationCompleted": "Migration completed: %s",
|
|
67
|
+
"migrationFailed": "Migration failed: %s",
|
|
69
68
|
"formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
|
|
70
|
-
"foundDataRaptorsToMigrate": "Found %s
|
|
69
|
+
"foundDataRaptorsToMigrate": "Found %s DataMappers to migrate",
|
|
71
70
|
"foundFlexCardsToMigrate": "Found %s FlexCards to migrate",
|
|
72
|
-
"foundOmniScriptsToMigrate": "Found %s
|
|
71
|
+
"foundOmniScriptsToMigrate": "Found %s %s to migrate",
|
|
73
72
|
"foundGlobalAutoNumbersToMigrate": "Found %s GlobalAutoNumbers to migrate",
|
|
74
73
|
"allVersionsInfo": "allVersions : %s",
|
|
75
74
|
"migrationInitialization": "Migration Initialization: Using namespace: %s",
|
|
@@ -97,24 +96,26 @@
|
|
|
97
96
|
"packageSelectionPrompt": "Enter the number of the package to use (1-%s):",
|
|
98
97
|
"invalidPackageSelection": "Invalid selection. Please enter a number between 1 and %s.",
|
|
99
98
|
"selectedPackage": "Selected package: %s (Version: %s)",
|
|
100
|
-
"dataRaptorNameChangeMessage": "
|
|
101
|
-
"integrationProcedureNameChangeMessage": "Integration Procedure reference
|
|
102
|
-
"integrationProcedureManualUpdateMessage": "Integration Procedure reference
|
|
103
|
-
"cardAuthorNameChangeMessage": "Card author name has been modified to fit naming rules:
|
|
104
|
-
"cardNameChangeMessage": "Card name has been modified to fit naming rules:
|
|
105
|
-
"duplicateCardNameMessage": "Potential duplicate: Another card has the same name
|
|
99
|
+
"dataRaptorNameChangeMessage": "DataMapper reference %s will be changed to %s during migration.",
|
|
100
|
+
"integrationProcedureNameChangeMessage": "Integration Procedure reference %s will be changed to %s during migration.",
|
|
101
|
+
"integrationProcedureManualUpdateMessage": "Integration Procedure reference %s may need manual updates after migration.",
|
|
102
|
+
"cardAuthorNameChangeMessage": "Card author name has been modified to fit naming rules: %s",
|
|
103
|
+
"cardNameChangeMessage": "Card name has been modified to fit naming rules: %s",
|
|
104
|
+
"duplicateCardNameMessage": "Potential duplicate: Another card has the same name %s after name cleaning. This may cause conflicts during migration",
|
|
106
105
|
"angularOmniscriptWarningMessage": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript",
|
|
107
|
-
"apexFileChangesApplied": "Applied changes to Apex class
|
|
106
|
+
"apexFileChangesApplied": "Applied changes to Apex class %s",
|
|
108
107
|
"generatingComponentReports": "Generating report for components",
|
|
109
108
|
"generatingRelatedObjectReports": "Generating report for related objects",
|
|
110
109
|
"generatingMigrationReportDashboard": "Generating migration report dashboard",
|
|
111
110
|
"errorParsingHtmlTemplate": "Error while parsing template",
|
|
112
111
|
"errorParsingData": "Error while parsing data for template",
|
|
113
|
-
"errorGeneratingHTML": "Error while generating HTML from template for
|
|
114
|
-
"errorEvaluatingExpression": "Error evaluating expression:
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
112
|
+
"errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",
|
|
113
|
+
"errorEvaluatingExpression": "Error evaluating expression: %s, %s",
|
|
114
|
+
"labelStatusSkipped": "Skipped",
|
|
115
|
+
"labelStatusFailed": "Failed",
|
|
116
|
+
"labelStatusComplete": "Complete",
|
|
117
|
+
"migrationConsentNotGiven": "Couldn't confirm whether assessment errors are resolved",
|
|
118
|
+
"foundFlexiPages": "Found %s FlexiPages to migrate",
|
|
118
119
|
"migratingFlexiPages": "Migrating FlexiPages",
|
|
119
120
|
"completedProcessingAllFlexiPages": "Completed processing all flexipage files. Total processed: %s",
|
|
120
121
|
"completedProcessingFlexiPage": "Completed processing %s - Errors: %s",
|
|
@@ -126,24 +127,108 @@
|
|
|
126
127
|
"errorProcessingFlexiPage": "Error processing flexipage file: %s, %s",
|
|
127
128
|
"flexipagesWithChanges": "Found %s flexipage files with changes",
|
|
128
129
|
"omniGlobalAutoNumberPrefEnabled": "Successfully enabled OmniGlobalAutoNumberPref org preference",
|
|
129
|
-
"errorEnablingOmniGlobalAutoNumberPref": "
|
|
130
|
+
"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
131
|
"performingPreMigrationChecks": "Performing pre-migration checks for Global Auto Number...",
|
|
131
132
|
"preMigrationChecksPassed": "Pre-migration checks passed. Proceeding with Global Auto Number migration.",
|
|
132
133
|
"preMigrationChecksFailed": "Pre-migration checks failed. Migration cannot proceed.",
|
|
133
|
-
"globalAutoNumberPrefEnabledError": "Global Auto Number
|
|
134
|
-
"bothRollbackFlagsEnabledError": "
|
|
135
|
-
"rollbackIPFlagEnabledError": "
|
|
136
|
-
"rollbackDRFlagEnabledError": "
|
|
134
|
+
"globalAutoNumberPrefEnabledError": "The Global Auto Number setting is enabled and global auto numbers have already been migrated.",
|
|
135
|
+
"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.",
|
|
136
|
+
"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.",
|
|
137
|
+
"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
138
|
"errorCheckingRollbackFlags": "Error checking rollback flags status.",
|
|
138
139
|
"startingPostMigrationCleanup": "Starting post-migration cleanup for Global Auto Number...",
|
|
139
140
|
"postMigrationCleanupCompleted": "Post-migration cleanup completed successfully.",
|
|
140
|
-
"errorDuringPostMigrationCleanup": "
|
|
141
|
-
"globalAutoNumberNameChangeMessage": "Global Auto Number name has been modified to fit naming rules: %s",
|
|
141
|
+
"errorDuringPostMigrationCleanup": "We’ve encountered an error during the post-migration cleanup. Try again later.",
|
|
142
142
|
"duplicatedGlobalAutoNumberName": "Duplicated Global Auto Number name",
|
|
143
143
|
"errorWhileUploadingGlobalAutoNumber": "An error occurred while uploading Global Auto Number: ",
|
|
144
144
|
"startingGlobalAutoNumberAssessment": "Starting Global Auto Number assessment...",
|
|
145
145
|
"foundGlobalAutoNumbersToAssess": "Found %s Global Auto Numbers to assess",
|
|
146
146
|
"unexpectedError": "An unexpected error occurred during processing",
|
|
147
147
|
"migrationValidationFailed": "Post Migration validation failed.",
|
|
148
|
-
"
|
|
148
|
+
"experienceSiteMetadataConsent": "The consent for exp site is %s",
|
|
149
|
+
"experienceSiteConsentNotProvidedWarning": "Consent for experience sites is not provided. Experience sites will not be processed",
|
|
150
|
+
"relatedObjectsToProcessAfterExpSitesRemoval": "Objects to process after removing expsite are",
|
|
151
|
+
"experienceBundleMetadataAPIAlreadyEnabled": "ExperienceBundle metadata api is already enabled",
|
|
152
|
+
"enableExperienceBundleMetadataAPIProgramatically": "ExperienceBundle metadata api needs to be programatically enabled",
|
|
153
|
+
"unableToEnableExperienceBundleMetadataAPI": "Since the api could not able enabled the experience sites would not be processed",
|
|
154
|
+
"relatedObjectsToProcess": "Objects to process are",
|
|
155
|
+
"consentForExperienceSites": "'By proceeding further, you hereby consent to enable digital experience metadata api(y/n). If y sites will be processed, if n expsites will not be processed';",
|
|
156
|
+
"failedToGetConsentError": "Failed to get user consent: %s",
|
|
157
|
+
"noRelatedObjects": "No related objects to process",
|
|
158
|
+
"turnOffExperienceBundleAPI": "Since ExperienceSiteMetadata API was programatically enabled, turing it off",
|
|
159
|
+
"errorRevertingExperienceBundleMetadataAPI": "Exception occurred while reverting metadata API. Please do that manually",
|
|
160
|
+
"processingExperienceSites": "Starting experience sites processing for %s",
|
|
161
|
+
"experienceSitesProcessingStarted": "Started processing the experience sites",
|
|
162
|
+
"experienceSiteSuccessfullyProcessed": "Successfully processed experience sites for %s",
|
|
163
|
+
"readingFile": "Started reading the files",
|
|
164
|
+
"totalFileCount": "The total count of files is %s",
|
|
165
|
+
"skipNonJsonFile": "Skipping non-JSON file - %s",
|
|
166
|
+
"experienceSiteWithOmniWrapperSuccessfullyProcessed": "Successfully processed experience site file having vlocity wrapper",
|
|
167
|
+
"fileNotHavingWrapper": "File does not contain vlocity wrapper",
|
|
168
|
+
"errorProcessingExperienceSite": "Error processing experience site file",
|
|
169
|
+
"experienceSiteReportingDetails": "Only the files in which have vlocity wrapper will be shown in the assessment report",
|
|
170
|
+
"processingFile": "Processing for file",
|
|
171
|
+
"currentRegionOfExperienceSite": "The current region being processed is %s",
|
|
172
|
+
"currentComponentOfExperienceSite": "The current component being processed is %s",
|
|
173
|
+
"omniWrapperFound": "Omnistudio wrapper component found",
|
|
174
|
+
"printUpdatedObject": "Now printing the updated object %s",
|
|
175
|
+
"printDifference": "Printing the difference %s",
|
|
176
|
+
"updatingFile": "Updating the file content",
|
|
177
|
+
"processingFlexcardComponent": "Started processing FC component %s",
|
|
178
|
+
"processingOmniscriptComponent": "Started processing OS component",
|
|
179
|
+
"targetData": "The target data is %s",
|
|
180
|
+
"manualInterventionForExperienceSite": "%s needs manual intervention as the migrated key does not exist",
|
|
181
|
+
"manualInterventionForExperienceSiteAsFailure": "%s needs manual intervention as migration failed",
|
|
182
|
+
"manualInterventionForExperienceSiteAsDuplicateKey": "%s needs manual intervention as duplicated key found in storage",
|
|
183
|
+
"updatingStorageForOmniscipt": "Started updating storage for omniscript %s",
|
|
184
|
+
"keyAlreadyInStorage": "Key %s already exists in storage",
|
|
185
|
+
"flexcardStorageProcessingStarted": "Started preparing storage for flexcards",
|
|
186
|
+
"errorWhileProcessingFlexcardStorage": "Error occurred while processing key for flexcard storage",
|
|
187
|
+
"missingInfo": "Info is missing",
|
|
188
|
+
"errorCheckingGlobalAutoNumber": "We couldn’t check whether the Global Auto Number setting is enabled: %s. Try again later.",
|
|
189
|
+
"errorMigrationMessage": "Error migrating object: %s",
|
|
190
|
+
"nameMappingUndefined": "Name Mapping is undefined",
|
|
191
|
+
"autoDeployConsentMessage": "Do you want to auto deploy the related objects? [y/n]",
|
|
192
|
+
"errorDeployingComponents": "Error deploying related objects post migration",
|
|
193
|
+
"installingDependency": "Installing node dependency %s",
|
|
194
|
+
"dependencyInstalled": "Node dependency %s installed",
|
|
195
|
+
"deployingFromManifest": "Deploying from metadata packages",
|
|
196
|
+
"manifestDeployFailed": "Metadata packages deployment failed, check logs or status for more details",
|
|
197
|
+
"installingRequiredDependencies": "Installing required node dependencies",
|
|
198
|
+
"creatingNPMConfigFile": "Creating npm config file",
|
|
199
|
+
"npmConfigFileCreated": "Npm config file created",
|
|
200
|
+
"authKeyEnvVarNotSet": "OMA_AUTH_KEY environment variable is not set, LWCs will not be deployed",
|
|
201
|
+
"experienceSiteException": "Exception occurred while processing experience sites",
|
|
202
|
+
"reservedKeysFoundInPropertySet": "Reserved keys found in any of output response transformation fields: %s.",
|
|
203
|
+
"incompleteMigrationDetected": "We couldn't complete the migration process",
|
|
204
|
+
"errorComponentMapping": "Error during component pre-processing: %s",
|
|
205
|
+
"startingComponentPreProcessing": "Pre-processing components for name mapping",
|
|
206
|
+
"completeComponentMappingMessage": "Registered name mappings for %s components",
|
|
207
|
+
"componentMappingNotFound": "No registry mapping found for %s component: %s, using fallback cleaning",
|
|
208
|
+
"flexCardWithAngularOmniScriptWarning": "FlexCard has dependencies on Angular Omniscript(s) which are not migrated. Please convert OmniScript(s) to LWC before migrating this FlexCard.",
|
|
209
|
+
"angularOmniScriptDependencyWarning": "Element '%s' references Angular Omniscript '%s' which will not be migrated. Consider converting the referenced OmniScript to LWC",
|
|
210
|
+
"skipFlexcardAngularOmniScriptDependencyWarning": "Skipping FlexCard %s due to Angular Omniscript dependencies",
|
|
211
|
+
"flexCardMigrationProcessingMessage": "Processing %s FlexCards for migration (%s skipped due to Angular dependencies)",
|
|
212
|
+
"noMetadataToDeploy": "No metadata to deploy",
|
|
213
|
+
"manifestDeployementStarted": "Manifest deployment started with id: %s",
|
|
214
|
+
"migrationConsentMessage": "Make sure that all records listed in the Assessment Status column in the Assessment Report are marked as Green before proceeding with the migration. Do you want to proceed? Yes or No?",
|
|
215
|
+
"truncationFailed": "Truncation failed for %s: %s",
|
|
216
|
+
"invalidTypeMigrateErrorMessage": "We couldn't migrate your Omnistudio components in the %s namespace. Select the correct namespace and try again",
|
|
217
|
+
"errorCheckingStandardRuntime": "We couldn't check whether the Standard OmniStudio Runtime setting is enabled: %s. Try again later.",
|
|
218
|
+
"checkingStandardRuntimeStatus": "Checking Standard OmniStudio Runtime status...",
|
|
219
|
+
"standardRuntimeAlreadyEnabled": "Standard OmniStudio Runtime is already enabled, no action needed.",
|
|
220
|
+
"standardRuntimeEnabled": "Standard OmniStudio Runtime has been successfully enabled.",
|
|
221
|
+
"errorEnablingStandardRuntime": "Failed to enable Standard OmniStudio Runtime: %s",
|
|
222
|
+
"exceptionEnablingStandardRuntime": "Exception occurred while enabling Standard OmniStudio Runtime: %s",
|
|
223
|
+
"manuallyEnableStandardRuntime": "Please manually enable the Standard OmniStudio Runtime setting in your org's OmniStudio Settings.",
|
|
224
|
+
"standardDesignerAlreadyEnabled": "Standard OmniStudio designer is already enabled, no action needed for package: %s",
|
|
225
|
+
"settingDesignersToStandardModel": "Setting OmniStudio designers to use standard data model",
|
|
226
|
+
"designersSetToStandardModel": "OmniStudio designers have been successfully set to use standard data model.",
|
|
227
|
+
"errorSettingDesignersToStandardModel": "Failed to set designers to standard data model: %s",
|
|
228
|
+
"exceptionSettingDesignersToStandardModel": "Exception occurred while setting designers to standard data model: %s",
|
|
229
|
+
"manuallySwitchDesignerToStandardDataModel": "Please manually switch the OmniStudio designer to use standard data model in your org. Follow the documentation <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_change_the_sobject_data_model_after_migration.htm&type=5' target='_blank'>here</a>.",
|
|
230
|
+
"checkingStandardDesignerStatus": "Checking if standard designer is already enabled for package: %s",
|
|
231
|
+
"enableStandardRuntimeAfterDesigner": "Standard designer setup successful, proceeding with Standard Runtime enablement",
|
|
232
|
+
"skipStandardRuntimeDueToFailure": "Skipping Standard Runtime enablement due to designer setup failure",
|
|
233
|
+
"errorCheckingStandardDesigner": "Failed to check standard designer status for package %s: %s"
|
|
149
234
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.0.0-rc.
|
|
1
|
+
{"version":"2.0.0-rc.20","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.
|
|
4
|
+
"version": "2.0.0-rc.20",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,15 +15,18 @@
|
|
|
15
15
|
"@types/jsdom": "^21.1.7",
|
|
16
16
|
"@types/lodash.chunk": "^4.2.9",
|
|
17
17
|
"@types/shelljs": "^0.8.15",
|
|
18
|
+
"cli-progress": "^3.12.0",
|
|
19
|
+
"diff": "^5.1.0",
|
|
18
20
|
"jsdom": "^25.0.0",
|
|
19
21
|
"lodash.chunk": "^4.2.0",
|
|
20
22
|
"open": "^8.4.2",
|
|
21
23
|
"shelljs": "^0.8.5",
|
|
22
24
|
"tslib": "^2",
|
|
25
|
+
"@babel/parser": "^7.25.6",
|
|
26
|
+
"@babel/traverse": "^7.25.6",
|
|
23
27
|
"xmldom": "^0.6.0"
|
|
24
28
|
},
|
|
25
29
|
"devDependencies": {
|
|
26
|
-
"@babel/parser": "^7.25.6",
|
|
27
30
|
"@oclif/dev-cli": "^1",
|
|
28
31
|
"@oclif/plugin-command-snapshot": "^3.3.15",
|
|
29
32
|
"@oclif/plugin-help": "^3",
|
|
@@ -38,8 +41,6 @@
|
|
|
38
41
|
"@typescript-eslint/eslint-plugin": "^4.2.0",
|
|
39
42
|
"@typescript-eslint/parser": "^4.2.0",
|
|
40
43
|
"chai": "^4.4.1",
|
|
41
|
-
"cli-progress": "^3.12.0",
|
|
42
|
-
"diff": "^5.1.0",
|
|
43
44
|
"eslint": "^7.27.0",
|
|
44
45
|
"eslint-config-oclif": "^3.1",
|
|
45
46
|
"eslint-config-prettier": "^8",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"nyc": "^15.1.0",
|
|
58
59
|
"prettier": "^2.8.8",
|
|
59
60
|
"pretty-quick": "^3.3.1",
|
|
61
|
+
"puppeteer": "^24.12.1",
|
|
60
62
|
"sinon": "10.0.0",
|
|
61
63
|
"ts-node": "^10.9.2",
|
|
62
64
|
"typescript": "^4.9.5"
|
|
@@ -127,7 +129,7 @@
|
|
|
127
129
|
}
|
|
128
130
|
},
|
|
129
131
|
"sfdx": {
|
|
130
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.
|
|
131
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.
|
|
132
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.20.crt",
|
|
133
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-omnistudio-migration-tool/2.0.0-rc.20.sig"
|
|
132
134
|
}
|
|
133
135
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Connection } from '@salesforce/core';
|
|
2
|
-
/**
|
|
3
|
-
* Manager class for handling OmniGlobalAutoNumberPref org preference operations.
|
|
4
|
-
*
|
|
5
|
-
* Provides functionality to check and enable the Global Auto Number preference in Salesforce orgs.
|
|
6
|
-
* Uses metadata API to read and update OmniStudioSettings metadata.
|
|
7
|
-
* Controls whether the new Global Auto Number functionality is available in the org.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare class OmniGlobalAutoNumberPrefManager {
|
|
11
|
-
private connection;
|
|
12
|
-
constructor(connection: Connection);
|
|
13
|
-
/**
|
|
14
|
-
* Checks if the Global Auto Number preference is enabled in the current org.
|
|
15
|
-
*
|
|
16
|
-
* Queries the OmniStudioSettings metadata to determine the current state of the preference.
|
|
17
|
-
* Reads the enableOmniGlobalAutoNumberPref setting from metadata API.
|
|
18
|
-
* Determines whether the Global Auto Number functionality is already active.
|
|
19
|
-
*
|
|
20
|
-
* @returns {Promise<boolean>} True if the preference is enabled, false otherwise
|
|
21
|
-
*
|
|
22
|
-
* @throws {Error} When metadata read operation fails (logged and returns false)
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
isEnabled(): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Enables the Global Auto Number preference in the current org.
|
|
28
|
-
*
|
|
29
|
-
* Updates the OmniStudioSettings metadata to enable the Global Auto Number functionality.
|
|
30
|
-
* Uses metadata API to set enableOmniGlobalAutoNumberPref to 'true'.
|
|
31
|
-
* Activates the new Global Auto Number functionality after migration is complete.
|
|
32
|
-
*
|
|
33
|
-
* @returns {Promise<any>} Metadata update result containing success status and any errors
|
|
34
|
-
*
|
|
35
|
-
* @throws {Error} When metadata update operation fails
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
enable(): Promise<any>;
|
|
39
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OmniGlobalAutoNumberPrefManager = void 0;
|
|
4
|
-
const logger_1 = require("./logger");
|
|
5
|
-
/**
|
|
6
|
-
* Manager class for handling OmniGlobalAutoNumberPref org preference operations.
|
|
7
|
-
*
|
|
8
|
-
* Provides functionality to check and enable the Global Auto Number preference in Salesforce orgs.
|
|
9
|
-
* Uses metadata API to read and update OmniStudioSettings metadata.
|
|
10
|
-
* Controls whether the new Global Auto Number functionality is available in the org.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
class OmniGlobalAutoNumberPrefManager {
|
|
14
|
-
constructor(connection) {
|
|
15
|
-
this.connection = connection;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Checks if the Global Auto Number preference is enabled in the current org.
|
|
19
|
-
*
|
|
20
|
-
* Queries the OmniStudioSettings metadata to determine the current state of the preference.
|
|
21
|
-
* Reads the enableOmniGlobalAutoNumberPref setting from metadata API.
|
|
22
|
-
* Determines whether the Global Auto Number functionality is already active.
|
|
23
|
-
*
|
|
24
|
-
* @returns {Promise<boolean>} True if the preference is enabled, false otherwise
|
|
25
|
-
*
|
|
26
|
-
* @throws {Error} When metadata read operation fails (logged and returns false)
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
async isEnabled() {
|
|
30
|
-
try {
|
|
31
|
-
const result = (await this.connection.metadata.read('OmniStudioSettings', ['OmniStudio']));
|
|
32
|
-
return (result === null || result === void 0 ? void 0 : result.enableOmniGlobalAutoNumberPref) === 'true' || false;
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
const errMsg = error instanceof Error ? error.message : String(error);
|
|
36
|
-
logger_1.Logger.error(`Error checking OmniGlobalAutoNumberPref status: ${errMsg}`);
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Enables the Global Auto Number preference in the current org.
|
|
42
|
-
*
|
|
43
|
-
* Updates the OmniStudioSettings metadata to enable the Global Auto Number functionality.
|
|
44
|
-
* Uses metadata API to set enableOmniGlobalAutoNumberPref to 'true'.
|
|
45
|
-
* Activates the new Global Auto Number functionality after migration is complete.
|
|
46
|
-
*
|
|
47
|
-
* @returns {Promise<any>} Metadata update result containing success status and any errors
|
|
48
|
-
*
|
|
49
|
-
* @throws {Error} When metadata update operation fails
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
|
-
async enable() {
|
|
54
|
-
const result = await this.connection.metadata.update('OmniStudioSettings', [
|
|
55
|
-
{
|
|
56
|
-
fullName: 'OmniStudio',
|
|
57
|
-
enableOmniGlobalAutoNumberPref: 'true',
|
|
58
|
-
},
|
|
59
|
-
]);
|
|
60
|
-
return result;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.OmniGlobalAutoNumberPrefManager = OmniGlobalAutoNumberPrefManager;
|
|
64
|
-
//# sourceMappingURL=OmniGlobalAutoNumberPrefManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OmniGlobalAutoNumberPrefManager.js","sourceRoot":"","sources":["../../src/utils/OmniGlobalAutoNumberPrefManager.ts"],"names":[],"mappings":";;;AAEA,qCAAkC;AAElC;;;;;;;GAOG;AACH,MAAa,+BAA+B;IAG1C,YAAmB,UAAsB;QACvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;OAWG;IACI,KAAK,CAAC,SAAS;QACpB,IAAI;YACF,MAAM,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,YAAY,CAAC,CAAC,CAAiB,CAAC;YAC3G,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,8BAA8B,MAAK,MAAM,IAAI,KAAK,CAAC;SACnE;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACtE,eAAM,CAAC,KAAK,CAAC,mDAAmD,MAAM,EAAE,CAAC,CAAC;YAC1E,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED;;;;;;;;;;;OAWG;IACH,8DAA8D;IACvD,KAAK,CAAC,MAAM;QACjB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAAE;YACzE;gBACE,QAAQ,EAAE,YAAY;gBACtB,8BAA8B,EAAE,MAAM;aACvB;SAClB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApDD,0EAoDC"}
|