@salesforce/plugin-omnistudio-migration-tool 2.0.0-rc.6 → 2.0.0-rc.61
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 +165 -73
- package/lib/commands/omnistudio/migration/assess.d.ts +23 -15
- package/lib/commands/omnistudio/migration/assess.js +250 -89
- package/lib/commands/omnistudio/migration/assess.js.map +1 -1
- package/lib/commands/omnistudio/migration/clean.d.ts +13 -0
- package/lib/commands/omnistudio/migration/clean.js +162 -0
- package/lib/commands/omnistudio/migration/clean.js.map +1 -0
- package/lib/commands/omnistudio/migration/info.d.ts +10 -16
- package/lib/commands/omnistudio/migration/info.js +53 -35
- package/lib/commands/omnistudio/migration/info.js.map +1 -1
- package/lib/commands/omnistudio/migration/migrate.d.ts +78 -18
- package/lib/commands/omnistudio/migration/migrate.js +461 -175
- package/lib/commands/omnistudio/migration/migrate.js.map +1 -1
- package/lib/error/deploymentErrors.d.ts +15 -0
- package/lib/error/deploymentErrors.js +35 -0
- package/lib/error/deploymentErrors.js.map +1 -0
- package/lib/error/errorInterfaces.d.ts +5 -0
- package/lib/error/errorInterfaces.js +9 -1
- package/lib/error/errorInterfaces.js.map +1 -1
- package/lib/javascripts/reportGeneratorUtility.js +585 -22
- package/lib/migration/ApexNamespaceRegistry.d.ts +49 -0
- package/lib/migration/ApexNamespaceRegistry.js +130 -0
- package/lib/migration/ApexNamespaceRegistry.js.map +1 -0
- package/lib/migration/CustomCssRegistry.d.ts +117 -0
- package/lib/migration/CustomCssRegistry.js +234 -0
- package/lib/migration/CustomCssRegistry.js.map +1 -0
- package/lib/migration/NameMappingRegistry.d.ts +134 -0
- package/lib/migration/NameMappingRegistry.js +411 -0
- package/lib/migration/NameMappingRegistry.js.map +1 -0
- package/lib/migration/base.d.ts +8 -6
- package/lib/migration/base.js +25 -8
- package/lib/migration/base.js.map +1 -1
- package/lib/migration/customLabels.d.ts +70 -0
- package/lib/migration/customLabels.js +177 -0
- package/lib/migration/customLabels.js.map +1 -0
- package/lib/migration/dataraptor.d.ts +13 -0
- package/lib/migration/dataraptor.js +205 -80
- package/lib/migration/dataraptor.js.map +1 -1
- package/lib/migration/deployer.d.ts +14 -0
- package/lib/migration/deployer.js +105 -0
- package/lib/migration/deployer.js.map +1 -0
- package/lib/migration/flexcard.d.ts +256 -6
- package/lib/migration/flexcard.js +1808 -268
- package/lib/migration/flexcard.js.map +1 -1
- package/lib/migration/globalautonumber.d.ts +8 -8
- package/lib/migration/globalautonumber.js +49 -24
- package/lib/migration/globalautonumber.js.map +1 -1
- package/lib/migration/interfaces.d.ts +14 -0
- package/lib/migration/interfaces.js.map +1 -1
- package/lib/migration/metadataobjnamecheck.js.map +1 -1
- package/lib/migration/omniscript.d.ts +218 -4
- package/lib/migration/omniscript.js +1709 -247
- package/lib/migration/omniscript.js.map +1 -1
- package/lib/migration/omniscriptInstance.d.ts +90 -0
- package/lib/migration/omniscriptInstance.js +755 -0
- package/lib/migration/omniscriptInstance.js.map +1 -0
- package/lib/migration/postMigrate.d.ts +20 -4
- package/lib/migration/postMigrate.js +199 -12
- package/lib/migration/postMigrate.js.map +1 -1
- package/lib/migration/premigrate.d.ts +51 -0
- package/lib/migration/premigrate.js +325 -0
- package/lib/migration/premigrate.js.map +1 -0
- package/lib/migration/related/ApexMigration.d.ts +3 -0
- package/lib/migration/related/ApexMigration.js +222 -56
- package/lib/migration/related/ApexMigration.js.map +1 -1
- package/lib/migration/related/ExperienceSiteMigration.d.ts +30 -5
- package/lib/migration/related/ExperienceSiteMigration.js +263 -73
- package/lib/migration/related/ExperienceSiteMigration.js.map +1 -1
- package/lib/migration/related/FlexipageMigration.d.ts +5 -5
- package/lib/migration/related/FlexipageMigration.js +60 -38
- package/lib/migration/related/FlexipageMigration.js.map +1 -1
- package/lib/migration/related/LwcMigration.js +45 -26
- package/lib/migration/related/LwcMigration.js.map +1 -1
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js +48 -32
- package/lib/migration/related/OmnistudioRelatedObjectMigrationFacade.js.map +1 -1
- package/lib/styles/reportGenerator.css +241 -16
- package/lib/templates/assessmentReport.template +78 -8
- package/lib/templates/dashboard.template +86 -57
- package/lib/templates/migrationReport.template +151 -0
- package/lib/utils/OmnistudioSettingsPrefManager.d.ts +14 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js +112 -0
- package/lib/utils/OmnistudioSettingsPrefManager.js.map +1 -0
- package/lib/utils/XMLUtil.js +2 -1
- package/lib/utils/XMLUtil.js.map +1 -1
- package/lib/utils/apex/executor/AnonymousApexRunner.d.ts +1 -1
- package/lib/utils/apex/parser/apexparser.d.ts +8 -1
- package/lib/utils/apex/parser/apexparser.js +79 -13
- package/lib/utils/apex/parser/apexparser.js.map +1 -1
- package/lib/utils/config/ExistingRecordCleanupService.d.ts +30 -0
- package/lib/utils/config/ExistingRecordCleanupService.js +266 -0
- package/lib/utils/config/ExistingRecordCleanupService.js.map +1 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.d.ts +36 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.js +123 -0
- package/lib/utils/config/OmniStudioMetadataCleanupService.js.map +1 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.d.ts +17 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.js +186 -0
- package/lib/utils/config/SpecialCharacterRecordCleanupService.js.map +1 -0
- package/lib/utils/constants/documentRegistry.d.ts +9 -17
- package/lib/utils/constants/documentRegistry.js +9 -17
- package/lib/utils/constants/documentRegistry.js.map +1 -1
- package/lib/utils/constants/stringContants.d.ts +78 -0
- package/lib/utils/constants/stringContants.js +91 -4
- package/lib/utils/constants/stringContants.js.map +1 -1
- package/lib/utils/customLabels.d.ts +35 -0
- package/lib/utils/customLabels.js +100 -0
- package/lib/utils/customLabels.js.map +1 -0
- package/lib/utils/dataModelService.d.ts +18 -0
- package/lib/utils/dataModelService.js +72 -0
- package/lib/utils/dataModelService.js.map +1 -0
- package/lib/utils/file/fileUtil.d.ts +3 -1
- package/lib/utils/file/fileUtil.js +30 -13
- package/lib/utils/file/fileUtil.js.map +1 -1
- package/lib/utils/flexipage/flexiPageTransformer.js +119 -23
- package/lib/utils/flexipage/flexiPageTransformer.js.map +1 -1
- package/lib/utils/formula/FormulaUtil.d.ts +1 -1
- package/lib/utils/formula/FormulaUtil.js +17 -9
- package/lib/utils/formula/FormulaUtil.js.map +1 -1
- package/lib/utils/formula/Stack.js.map +1 -1
- package/lib/utils/generatePackageXml.d.ts +6 -2
- package/lib/utils/generatePackageXml.js +73 -33
- package/lib/utils/generatePackageXml.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/interfaces.d.ts +69 -8
- package/lib/utils/json/jsonutil.js.map +1 -1
- package/lib/utils/logger/fileLogger.js +17 -7
- package/lib/utils/logger/fileLogger.js.map +1 -1
- package/lib/utils/logger.d.ts +3 -3
- package/lib/utils/logger.js +10 -6
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/logging/debugtimer.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js +30 -22
- package/lib/utils/lwcparser/fileutils/FileDiffUtil.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/FileProcessorFactory.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/HtmlFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/JavascriptFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/fileutils/XmlFileProcessor.js.map +1 -1
- package/lib/utils/lwcparser/htmlParser/HTMLParser.js +29 -10
- package/lib/utils/lwcparser/htmlParser/HTMLParser.js.map +1 -1
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js +29 -11
- package/lib/utils/lwcparser/jsParser/JavaScriptParser.js.map +1 -1
- package/lib/utils/lwcparser/xmlParser/XmlParser.js +19 -8
- package/lib/utils/lwcparser/xmlParser/XmlParser.js.map +1 -1
- package/lib/utils/net/index.d.ts +5 -0
- package/lib/utils/net/index.js +40 -2
- package/lib/utils/net/index.js.map +1 -1
- package/lib/utils/omniscriptPackageManager.d.ts +31 -0
- package/lib/utils/omniscriptPackageManager.js +215 -0
- package/lib/utils/omniscriptPackageManager.js.map +1 -0
- package/lib/utils/orgPreferences.d.ts +25 -0
- package/lib/utils/orgPreferences.js +124 -8
- package/lib/utils/orgPreferences.js.map +1 -1
- package/lib/utils/orgUtils/index.d.ts +12 -5
- package/lib/utils/orgUtils/index.js +52 -22
- package/lib/utils/orgUtils/index.js.map +1 -1
- package/lib/utils/projectPathUtil.d.ts +1 -1
- package/lib/utils/projectPathUtil.js +27 -10
- package/lib/utils/projectPathUtil.js.map +1 -1
- package/lib/utils/promptUtil.d.ts +11 -1
- package/lib/utils/promptUtil.js +92 -0
- package/lib/utils/promptUtil.js.map +1 -1
- package/lib/utils/query/index.d.ts +1 -0
- package/lib/utils/query/index.js +18 -1
- package/lib/utils/query/index.js.map +1 -1
- package/lib/utils/recordPrioritization.d.ts +44 -0
- package/lib/utils/recordPrioritization.js +69 -0
- package/lib/utils/recordPrioritization.js.map +1 -0
- package/lib/utils/reportGenerator/reportInterfaces.d.ts +12 -0
- package/lib/utils/reportGenerator/reportUtil.d.ts +6 -1
- package/lib/utils/reportGenerator/reportUtil.js +22 -7
- package/lib/utils/reportGenerator/reportUtil.js.map +1 -1
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js +40 -17
- package/lib/utils/resultsbuilder/ApexAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.d.ts +13 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js +179 -0
- package/lib/utils/resultsbuilder/CustomLabelAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.d.ts +27 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js +262 -0
- package/lib/utils/resultsbuilder/CustomLabelMigrationReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js +38 -70
- package/lib/utils/resultsbuilder/DRAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.d.ts +14 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js +143 -0
- package/lib/utils/resultsbuilder/ExperienceSiteAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js +46 -85
- package/lib/utils/resultsbuilder/FlexcardAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.d.ts +1 -0
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js +37 -19
- package/lib/utils/resultsbuilder/FlexipageAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js +22 -14
- package/lib/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js +38 -71
- package/lib/utils/resultsbuilder/IPAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.d.ts +14 -0
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js +143 -139
- package/lib/utils/resultsbuilder/LWCAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js +41 -88
- package/lib/utils/resultsbuilder/OSAssessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.d.ts +12 -0
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js +109 -0
- package/lib/utils/resultsbuilder/SaveForLaterAssessmentReporter.js.map +1 -0
- package/lib/utils/resultsbuilder/assessmentReporter.d.ts +16 -6
- package/lib/utils/resultsbuilder/assessmentReporter.js +96 -152
- package/lib/utils/resultsbuilder/assessmentReporter.js.map +1 -1
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.d.ts +104 -0
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js +380 -0
- package/lib/utils/resultsbuilder/helpers/AssessmentReportHelper.js.map +1 -0
- package/lib/utils/resultsbuilder/index.d.ts +37 -1
- package/lib/utils/resultsbuilder/index.js +582 -151
- package/lib/utils/resultsbuilder/index.js.map +1 -1
- package/lib/utils/resultsbuilder/reportingHelper.d.ts +2 -7
- package/lib/utils/resultsbuilder/reportingHelper.js +0 -43
- package/lib/utils/resultsbuilder/reportingHelper.js.map +1 -1
- package/lib/utils/sfcli/project/sfProject.d.ts +29 -0
- package/lib/utils/sfcli/project/sfProject.js +220 -2
- package/lib/utils/sfcli/project/sfProject.js.map +1 -1
- package/lib/utils/shell/cli.js +20 -14
- package/lib/utils/shell/cli.js.map +1 -1
- package/lib/utils/storageUtil.d.ts +14 -1
- package/lib/utils/storageUtil.js +31 -1
- package/lib/utils/storageUtil.js.map +1 -1
- package/lib/utils/stringUtils.d.ts +24 -0
- package/lib/utils/stringUtils.js +76 -9
- package/lib/utils/stringUtils.js.map +1 -1
- package/lib/utils/templateParser/__tests__/test.js +1 -2
- package/lib/utils/templateParser/__tests__/test.js.map +1 -1
- package/lib/utils/templateParser/generate.d.ts +1 -1
- package/lib/utils/templateParser/generate.js.map +1 -1
- package/lib/utils/templateParser/model/elementNode.d.ts +2 -2
- package/lib/utils/templateParser/model/elementNode.js +11 -2
- package/lib/utils/templateParser/model/elementNode.js.map +1 -1
- package/lib/utils/templateParser/model/nodeTypes.js +1 -1
- package/lib/utils/templateParser/model/nodeTypes.js.map +1 -1
- package/lib/utils/templateParser/util.d.ts +2 -2
- package/lib/utils/templateParser/util.js.map +1 -1
- package/lib/utils/validatorService.d.ts +14 -0
- package/lib/utils/validatorService.js +136 -0
- package/lib/utils/validatorService.js.map +1 -0
- package/messages/assess.json +220 -103
- package/messages/clean.json +40 -0
- package/messages/info.json +2 -1
- package/messages/migrate.json +314 -102
- package/oclif.manifest.json +1 -1
- package/package.json +49 -13
- package/lib/commands/basecommand.d.ts +0 -8
- package/lib/commands/basecommand.js +0 -13
- package/lib/commands/basecommand.js.map +0 -1
- package/lib/utils/OmniGlobalAutoNumberPrefManager.d.ts +0 -40
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js +0 -65
- package/lib/utils/OmniGlobalAutoNumberPrefManager.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/migration/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/migration/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0DAA4C;AAC5C,oCAAkD;AAClD,sCAAwC;AACxC,gEAA6D;AAG7D,+DAA4D;AAU5D;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,IAAuC,EAAyB,EAAE;IAClH,0CAA0C;IAC1C,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAE7B,6CAA6C;IAC7C,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,CAAC,CAAC;IAChF,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAE/D,OAAO,IAAI,WAAW,CAAC,SAAS,CAAC;QAC/B,MAAM,EAAE,GAAG,MAAM,IAAI,IAAI,MAAM,KAAK,mDAAmD;QACvF,eAAe,EAAE,QAAQ;QACzB,iBAAiB,EAAE,QAAQ;QAC3B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;AACL,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B;AAEF,MAAa,iBAAiB;IAU5B,YAAmB,SAAiB,EAAE,UAAsB,EAAE,MAAc,EAAE,QAA0B,EAAE,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;IAES,SAAS,CAAC,IAAY,EAAE,gBAAgB,GAAG,KAAK;QACxD,OAAO,uBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACtD,CAAC;IAES,KAAK,CAAC,QAAQ,CAAC,UAAkB;QACzC,kBAAU,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,aAAa,GAAG,UAAU,CAAC,CAAC;QAEzD,MAAM,GAAG,GAAa,MAAM,kBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC7E,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAE7B,MAAM,OAAO,GAAY,MAAM,cAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QACrE,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACO,eAAe,CAAC,MAAe,EAAE,GAAG,MAAgB;QAC5D,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;;AA7EH,8CA8EC;AA7E2B,6BAAW,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Ux } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { Connection, Messages } from '@salesforce/core';
|
|
3
|
+
import { Logger } from '../utils/logger';
|
|
4
|
+
import { BaseMigrationTool } from './base';
|
|
5
|
+
import { MigrationTool, MigrationResult, ObjectMapping } from './interfaces';
|
|
6
|
+
export interface CustomLabelMigrationResult {
|
|
7
|
+
coreInfo: {
|
|
8
|
+
id: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
message: string;
|
|
12
|
+
name: string;
|
|
13
|
+
packageInfo: {
|
|
14
|
+
id: string;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
status: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CustomLabelLocalizationResult {
|
|
20
|
+
[labelName: string]: {
|
|
21
|
+
[languageCode: string]: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface CustomLabelMigrationResponse {
|
|
25
|
+
results: CustomLabelMigrationResult[];
|
|
26
|
+
}
|
|
27
|
+
export interface CustomLabelLocalizationResponse {
|
|
28
|
+
results: CustomLabelLocalizationResult;
|
|
29
|
+
}
|
|
30
|
+
export interface CustomLabelRecord {
|
|
31
|
+
labelName?: string;
|
|
32
|
+
Name?: string;
|
|
33
|
+
Id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
status?: string;
|
|
36
|
+
cloneStatus?: string;
|
|
37
|
+
message?: string;
|
|
38
|
+
coreInfo?: {
|
|
39
|
+
id: string;
|
|
40
|
+
value: string;
|
|
41
|
+
};
|
|
42
|
+
packageInfo?: {
|
|
43
|
+
id: string;
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
errors?: string[];
|
|
47
|
+
warnings?: string[];
|
|
48
|
+
}
|
|
49
|
+
export declare class CustomLabelsMigrationTool extends BaseMigrationTool implements MigrationTool {
|
|
50
|
+
constructor(namespace: string, connection: Connection, logger: Logger, messages: Messages<string>, ux: Ux);
|
|
51
|
+
getName(): string;
|
|
52
|
+
getRecordName(record: CustomLabelRecord): string;
|
|
53
|
+
getMappings(): ObjectMapping[];
|
|
54
|
+
truncate(): Promise<void>;
|
|
55
|
+
migrate(): Promise<MigrationResult[]>;
|
|
56
|
+
private callCloneCustomLabelsAPI;
|
|
57
|
+
private callCloneCustomLabelLocalizationsAPI;
|
|
58
|
+
/**
|
|
59
|
+
* Maps Custom Labels API clone status to migration status format
|
|
60
|
+
*
|
|
61
|
+
* New mapping:
|
|
62
|
+
* Successfully migrated = total - error
|
|
63
|
+
* Failed = error
|
|
64
|
+
* Skipped = duplicate
|
|
65
|
+
*
|
|
66
|
+
* @param cloneStatus - The status returned by the clone API
|
|
67
|
+
* @returns Object containing mapped status and error flag
|
|
68
|
+
*/
|
|
69
|
+
private mapCloneStatusToMigrationStatus;
|
|
70
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomLabelsMigrationTool = void 0;
|
|
4
|
+
const net_1 = require("../utils/net");
|
|
5
|
+
const logger_1 = require("../utils/logger");
|
|
6
|
+
const stringContants_1 = require("../utils/constants/stringContants");
|
|
7
|
+
const base_1 = require("./base");
|
|
8
|
+
class CustomLabelsMigrationTool extends base_1.BaseMigrationTool {
|
|
9
|
+
constructor(namespace, connection, logger, messages, ux) {
|
|
10
|
+
super(namespace, connection, logger, messages, ux);
|
|
11
|
+
}
|
|
12
|
+
getName() {
|
|
13
|
+
return 'Custom Labels';
|
|
14
|
+
}
|
|
15
|
+
getRecordName(record) {
|
|
16
|
+
return record.labelName || record.Name || 'Unknown';
|
|
17
|
+
}
|
|
18
|
+
getMappings() {
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
source: 'Custom Labels',
|
|
22
|
+
target: 'Custom Labels',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
async truncate() {
|
|
27
|
+
// Custom labels don't need truncation as they are created via API
|
|
28
|
+
logger_1.Logger.log(this.messages.getMessage('skippingCustomLabelTruncation'));
|
|
29
|
+
await Promise.resolve();
|
|
30
|
+
}
|
|
31
|
+
async migrate() {
|
|
32
|
+
try {
|
|
33
|
+
logger_1.Logger.log(this.messages.getMessage('startingCustomLabelMigration'));
|
|
34
|
+
const migrationData = new Map();
|
|
35
|
+
const allMigrationData = new Map();
|
|
36
|
+
const errors = [];
|
|
37
|
+
// Call clone-custom-labels API only
|
|
38
|
+
const cloneLabelsResponse = await this.callCloneCustomLabelsAPI();
|
|
39
|
+
// Call localizations API but ignore response (as per requirements)
|
|
40
|
+
await this.callCloneCustomLabelLocalizationsAPI();
|
|
41
|
+
// Get total count from API response
|
|
42
|
+
const totalLabels = cloneLabelsResponse.results ? cloneLabelsResponse.results.length : 0;
|
|
43
|
+
// Process results
|
|
44
|
+
if (cloneLabelsResponse.results) {
|
|
45
|
+
cloneLabelsResponse.results.forEach((labelResult) => {
|
|
46
|
+
const key = labelResult.name;
|
|
47
|
+
const { mappedStatus, hasErrors } = this.mapCloneStatusToMigrationStatus(labelResult.status);
|
|
48
|
+
// Store all records for CSV export
|
|
49
|
+
allMigrationData.set(key, {
|
|
50
|
+
labelName: labelResult.name,
|
|
51
|
+
cloneStatus: labelResult.status,
|
|
52
|
+
message: labelResult.message,
|
|
53
|
+
coreInfo: labelResult.coreInfo,
|
|
54
|
+
packageInfo: labelResult.packageInfo,
|
|
55
|
+
});
|
|
56
|
+
// Only include error and duplicate (where message is not "same value") in report table
|
|
57
|
+
if (stringContants_1.Constants.CustomLabelInvalidStatuses.includes(labelResult.status) &&
|
|
58
|
+
!(labelResult.status === 'duplicate' && labelResult.message === stringContants_1.Constants.CustomLabelSameValueMessage)) {
|
|
59
|
+
// Store consolidated data that can be used for both dashboard and detailed reporting
|
|
60
|
+
const recordData = {
|
|
61
|
+
// Properties needed for dashboard status calculation
|
|
62
|
+
id: labelResult.name,
|
|
63
|
+
name: labelResult.name,
|
|
64
|
+
status: mappedStatus,
|
|
65
|
+
errors: labelResult.status === stringContants_1.Constants.CustomLabelErrorStatus ? [labelResult.message] : [],
|
|
66
|
+
warnings: labelResult.status === stringContants_1.Constants.CustomLabelDuplicateStatus ? [labelResult.message] : [],
|
|
67
|
+
migratedId: labelResult.name,
|
|
68
|
+
migratedName: labelResult.name,
|
|
69
|
+
// Additional properties needed for detailed reporting
|
|
70
|
+
labelName: labelResult.name,
|
|
71
|
+
cloneStatus: labelResult.status,
|
|
72
|
+
message: labelResult.message,
|
|
73
|
+
coreInfo: labelResult.coreInfo,
|
|
74
|
+
packageInfo: labelResult.packageInfo,
|
|
75
|
+
// Legacy properties for compatibility
|
|
76
|
+
referenceId: key,
|
|
77
|
+
newName: labelResult.name,
|
|
78
|
+
hasErrors,
|
|
79
|
+
success: false, // We only process error and duplicate, so success is always false
|
|
80
|
+
skipped: labelResult.status === stringContants_1.Constants.CustomLabelDuplicateStatus,
|
|
81
|
+
type: stringContants_1.Constants.CustomLabelComponentName,
|
|
82
|
+
};
|
|
83
|
+
migrationData.set(key, recordData);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const processedLabels = migrationData.size;
|
|
88
|
+
logger_1.Logger.log(this.messages.getMessage('customLabelMigrationCompleted', [processedLabels, totalLabels]));
|
|
89
|
+
return [
|
|
90
|
+
{
|
|
91
|
+
name: this.getName(),
|
|
92
|
+
results: migrationData, // Use single consolidated map
|
|
93
|
+
records: migrationData, // Both point to the same data
|
|
94
|
+
errors,
|
|
95
|
+
totalCount: totalLabels, // Use totalCount instead of statistics
|
|
96
|
+
allRecords: allMigrationData, // All records for CSV export
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
logger_1.Logger.error(this.messages.getMessage('errorDuringCustomLabelMigration', [error.message]));
|
|
102
|
+
const emptyMap = new Map();
|
|
103
|
+
return [
|
|
104
|
+
{
|
|
105
|
+
name: this.getName(),
|
|
106
|
+
results: emptyMap,
|
|
107
|
+
records: emptyMap, // Both point to the same empty map
|
|
108
|
+
errors: [this.messages.getMessage('customLabelMigrationErrorMessage')],
|
|
109
|
+
allRecords: emptyMap,
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async callCloneCustomLabelsAPI() {
|
|
115
|
+
try {
|
|
116
|
+
const url = 'connect/omni-runtime/omniscript/clone-custom-labels';
|
|
117
|
+
const body = {
|
|
118
|
+
namespace: this.namespace,
|
|
119
|
+
};
|
|
120
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('callingCloneCustomLabelsAPI', [this.namespace]));
|
|
121
|
+
const response = await net_1.NetUtils.request(this.connection, url, body, net_1.RequestMethod.POST);
|
|
122
|
+
const typedResponse = response;
|
|
123
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('cloneCustomLabelsAPIResponse', [
|
|
124
|
+
typedResponse.results ? typedResponse.results.length : 0,
|
|
125
|
+
]));
|
|
126
|
+
return response;
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
logger_1.Logger.error(this.messages.getMessage('errorCallingCloneCustomLabelsAPI', [String(error)]));
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async callCloneCustomLabelLocalizationsAPI() {
|
|
134
|
+
try {
|
|
135
|
+
const url = 'connect/omni-runtime/omniscript/clone-custom-label-localizations';
|
|
136
|
+
const body = {
|
|
137
|
+
namespace: this.namespace,
|
|
138
|
+
};
|
|
139
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('callingCloneCustomLabelLocalizationsAPI', [this.namespace]));
|
|
140
|
+
const response = await net_1.NetUtils.request(this.connection, url, body, net_1.RequestMethod.POST);
|
|
141
|
+
const typedResponse = response;
|
|
142
|
+
logger_1.Logger.logVerbose(this.messages.getMessage('cloneCustomLabelLocalizationsAPIResponse', [
|
|
143
|
+
typedResponse.results ? Object.keys(typedResponse.results).length : 0,
|
|
144
|
+
]));
|
|
145
|
+
return response;
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
logger_1.Logger.error(this.messages.getMessage('errorCallingCloneCustomLabelLocalizationsAPI', [String(error)]));
|
|
149
|
+
throw error;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Maps Custom Labels API clone status to migration status format
|
|
154
|
+
*
|
|
155
|
+
* New mapping:
|
|
156
|
+
* Successfully migrated = total - error
|
|
157
|
+
* Failed = error
|
|
158
|
+
* Skipped = duplicate
|
|
159
|
+
*
|
|
160
|
+
* @param cloneStatus - The status returned by the clone API
|
|
161
|
+
* @returns Object containing mapped status and error flag
|
|
162
|
+
*/
|
|
163
|
+
mapCloneStatusToMigrationStatus(cloneStatus) {
|
|
164
|
+
switch (cloneStatus) {
|
|
165
|
+
case 'created':
|
|
166
|
+
return { mappedStatus: 'Successfully migrated', hasErrors: false };
|
|
167
|
+
case 'error':
|
|
168
|
+
return { mappedStatus: 'Failed', hasErrors: true };
|
|
169
|
+
case 'duplicate':
|
|
170
|
+
return { mappedStatus: 'Skipped', hasErrors: false };
|
|
171
|
+
default:
|
|
172
|
+
return { mappedStatus: 'Skipped', hasErrors: false };
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.CustomLabelsMigrationTool = CustomLabelsMigrationTool;
|
|
177
|
+
//# sourceMappingURL=customLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customLabels.js","sourceRoot":"","sources":["../../src/migration/customLabels.ts"],"names":[],"mappings":";;;AAMA,sCAAuD;AACvD,4CAAyC;AACzC,sEAA8D;AAC9D,iCAA2C;AAmD3C,MAAa,yBAA0B,SAAQ,wBAAiB;IAC9D,YAAmB,SAAiB,EAAE,UAAsB,EAAE,MAAc,EAAE,QAA0B,EAAE,EAAM;QAC9G,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,OAAO;QACZ,OAAO,eAAe,CAAC;IACzB,CAAC;IAEM,aAAa,CAAC,MAAyB;QAC5C,OAAO,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,IAAI,SAAS,CAAC;IACtD,CAAC;IAEM,WAAW;QAChB,OAAO;YACL;gBACE,MAAM,EAAE,eAAe;gBACvB,MAAM,EAAE,eAAe;aACxB;SACF,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,kEAAkE;QAClE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;gBACnE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aACtE,CAAC,CACH,CAAC;YAEF,OAAO,QAA2C,CAAC;QACrD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,8CAA8C,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACxG,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;;;;;;;;OAUG;IACK,+BAA+B,CAAC,WAAmB;QACzD,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,SAAS;gBACZ,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;YACrE,KAAK,OAAO;gBACV,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;YACrD,KAAK,WAAW;gBACd,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;YACvD;gBACE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QACzD,CAAC;IACH,CAAC;CACF;AAtMD,8DAsMC"}
|
|
@@ -7,6 +7,7 @@ export declare class DataRaptorMigrationTool extends BaseMigrationTool implement
|
|
|
7
7
|
static readonly DRMAPITEM_NAME = "DRMapItem__c";
|
|
8
8
|
static readonly OMNIDATATRANSFORM_NAME = "OmniDataTransform";
|
|
9
9
|
static readonly OMNIDATATRANSFORMITEM_NAME = "OmniDataTransformItem";
|
|
10
|
+
private IS_STANDARD_DATA_MODEL;
|
|
10
11
|
getName(): string;
|
|
11
12
|
getRecordName(record: string): any;
|
|
12
13
|
getMappings(): ObjectMapping[];
|
|
@@ -34,4 +35,16 @@ export declare class DataRaptorMigrationTool extends BaseMigrationTool implement
|
|
|
34
35
|
private mapDataRaptorItemData;
|
|
35
36
|
private getDRBundleFields;
|
|
36
37
|
private getDRMapItemFields;
|
|
38
|
+
private getBundleFieldKey;
|
|
39
|
+
private getItemFieldKey;
|
|
40
|
+
private getQueryNamespace;
|
|
41
|
+
private getBundleObjectName;
|
|
42
|
+
private getItemObjectName;
|
|
43
|
+
/**
|
|
44
|
+
* Prioritizes DataRaptors by name characteristics:
|
|
45
|
+
* - Clean names (alphanumeric only) are processed first
|
|
46
|
+
* - Names with special characters are processed after
|
|
47
|
+
* This avoids naming conflicts during migration when special characters are cleaned
|
|
48
|
+
*/
|
|
49
|
+
private prioritizeDataRaptorsWithoutSpecialCharacters;
|
|
37
50
|
}
|