@salesforce/source-deploy-retrieve 12.22.7 → 12.22.8
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/lib/src/client/deployMessages.js +2 -2
- package/lib/src/client/deployMessages.js.map +1 -1
- package/lib/src/client/diagnosticUtil.js +3 -3
- package/lib/src/client/diagnosticUtil.js.map +1 -1
- package/lib/src/client/metadataApiDeploy.js +16 -13
- package/lib/src/client/metadataApiDeploy.js.map +1 -1
- package/lib/src/client/metadataApiRetrieve.d.ts +2 -1
- package/lib/src/client/metadataApiRetrieve.js +15 -11
- package/lib/src/client/metadataApiRetrieve.js.map +1 -1
- package/lib/src/client/retrieveExtract.d.ts +1 -1
- package/lib/src/collections/decodeableMap.js +2 -2
- package/lib/src/collections/decodeableMap.js.map +1 -1
- package/lib/src/convert/convertContext/nonDecompositionFinalizer.js +2 -2
- package/lib/src/convert/convertContext/nonDecompositionFinalizer.js.map +1 -1
- package/lib/src/convert/convertContext/recompositionFinalizer.js +2 -2
- package/lib/src/convert/convertContext/recompositionFinalizer.js.map +1 -1
- package/lib/src/convert/metadataConverter.js +13 -7
- package/lib/src/convert/metadataConverter.js.map +1 -1
- package/lib/src/convert/streams.d.ts +1 -1
- package/lib/src/convert/streams.js +8 -7
- package/lib/src/convert/streams.js.map +1 -1
- package/lib/src/convert/transformers/decomposedMetadataTransformer.js +2 -2
- package/lib/src/convert/transformers/decomposedMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/metadataTransformerFactory.js +2 -2
- package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
- package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js +2 -2
- package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/staticResourceMetadataTransformer.js +11 -9
- package/lib/src/convert/transformers/staticResourceMetadataTransformer.js.map +1 -1
- package/lib/src/registry/coverage.js +3 -3
- package/lib/src/registry/coverage.js.map +1 -1
- package/lib/src/registry/registry.d.ts +3 -0
- package/lib/src/registry/registry.js +4 -4
- package/lib/src/registry/registry.js.map +1 -1
- package/lib/src/registry/registryAccess.js +5 -4
- package/lib/src/registry/registryAccess.js.map +1 -1
- package/lib/src/registry/standardvalueset.d.ts +5 -3
- package/lib/src/registry/standardvalueset.js +4 -4
- package/lib/src/registry/standardvalueset.js.map +1 -1
- package/lib/src/registry/variants.d.ts +1 -1
- package/lib/src/registry/variants.js +1 -2
- package/lib/src/registry/variants.js.map +1 -1
- package/lib/src/resolve/adapters/baseSourceAdapter.js +4 -3
- package/lib/src/resolve/adapters/baseSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/decomposedSourceAdapter.js +4 -3
- package/lib/src/resolve/adapters/decomposedSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js +2 -2
- package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/matchingContentSourceAdapter.js +4 -3
- package/lib/src/resolve/adapters/matchingContentSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/mixedContentSourceAdapter.js +4 -3
- package/lib/src/resolve/adapters/mixedContentSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/sourceAdapterFactory.js +4 -3
- package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
- package/lib/src/resolve/forceIgnore.js +3 -3
- package/lib/src/resolve/forceIgnore.js.map +1 -1
- package/lib/src/resolve/manifestResolver.js +2 -2
- package/lib/src/resolve/manifestResolver.js.map +1 -1
- package/lib/src/resolve/metadataResolver.js +10 -7
- package/lib/src/resolve/metadataResolver.js.map +1 -1
- package/lib/src/resolve/treeContainers.js +14 -13
- package/lib/src/resolve/treeContainers.js.map +1 -1
- package/lib/src/utils/filePathGenerator.js +2 -2
- package/lib/src/utils/filePathGenerator.js.map +1 -1
- package/lib/src/utils/fileSystemHandler.d.ts +1 -1
- package/lib/src/utils/fileSystemHandler.js +5 -5
- package/lib/src/utils/fileSystemHandler.js.map +1 -1
- package/lib/src/utils/index.d.ts +0 -1
- package/lib/src/utils/index.js +1 -3
- package/lib/src/utils/index.js.map +1 -1
- package/lib/src/utils/metadata.js +2 -2
- package/lib/src/utils/metadata.js.map +1 -1
- package/package.json +1 -1
- package/lib/src/utils/collections.d.ts +0 -7
- package/lib/src/utils/collections.js +0 -24
- package/lib/src/utils/collections.js.map +0 -1
|
@@ -8,14 +8,14 @@ exports.RecompositionFinalizer = void 0;
|
|
|
8
8
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
9
|
*/
|
|
10
10
|
const node_path_1 = require("node:path");
|
|
11
|
-
const
|
|
11
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
12
12
|
const decomposed_1 = require("../../utils/decomposed");
|
|
13
13
|
const constants_1 = require("../../common/constants");
|
|
14
14
|
const sourceComponent_1 = require("../../resolve/sourceComponent");
|
|
15
15
|
const streams_1 = require("../streams");
|
|
16
16
|
const transactionFinalizer_1 = require("./transactionFinalizer");
|
|
17
17
|
;
|
|
18
|
-
const messages = new
|
|
18
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
19
19
|
/**
|
|
20
20
|
* Merges child components that share the same parent in the conversion pipeline into a single file.
|
|
21
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recompositionFinalizer.js","sourceRoot":"","sources":["../../../../src/convert/convertContext/recompositionFinalizer.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yCAAiC;AAEjC,
|
|
1
|
+
{"version":3,"file":"recompositionFinalizer.js","sourceRoot":"","sources":["../../../../src/convert/convertContext/recompositionFinalizer.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yCAAiC;AAEjC,wDAAqD;AACrD,uDAAmG;AAEnG,sDAAgE;AAEhE,mEAAgE;AAChE,wCAAqC;AAErC,iEAAqE;;AAGrE,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAiBpF;;;;;GAKG;AACH,MAAa,sBAAuB,SAAQ,kDAA+C;IAClF,gBAAgB,GAAuB,IAAI,GAAG,EAA4C,CAAC;IAC1F,QAAQ,GAAa,IAAI,GAAG,EAAE,CAAC;IAEhC,KAAK,CAAC,QAAQ;QACnB,OAAO,OAAO,CAAC,GAAG,CAChB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;aAChC,MAAM,CAAC,0BAA0B,CAAC;aAClC,GAAG,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAChD,CAAC;IACJ,CAAC;CACF;AAXD,wDAWC;AAED,MAAM,wBAAwB,GAC5B,CAAC,KAAe,EAAE,EAAE,CACpB,KAAK,EAAE,UAA6C,EAAyB,EAAE,CAAC,CAAC;IAC/E,SAAS,EAAE,UAAU,CAAC,SAAS;IAC/B,UAAU,EAAE;QACV;YACE,MAAM,EAAE,IAAI,iBAAO,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;YACvD,MAAM,EAAE,IAAA,gBAAI,EACV,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,EACvC,GAAG,UAAU,CAAC,SAAS,CAAC,QAAQ,IAAI,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAC7E;SACF;KACF;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,gGAAgG;AAChG,MAAM,eAAe,GACnB,CAAC,QAAkB,EAAE,EAAE,CACvB,KAAK,EAAE,GAAoB,EAAoB,EAAE;IAC/C,IAAI,CAAC,GAAG,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACxB,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,MAAM,GACV,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,KAAK,eAAe;YAC1D,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACjG,CAAC,CAAC,IAAA,4BAAe,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;QACjE,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC,CAAC"}
|
|
@@ -9,9 +9,11 @@ exports.MetadataConverter = void 0;
|
|
|
9
9
|
*/
|
|
10
10
|
const node_stream_1 = require("node:stream");
|
|
11
11
|
const node_path_1 = require("node:path");
|
|
12
|
-
const
|
|
12
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
13
|
+
const sfError_1 = require("@salesforce/core/sfError");
|
|
13
14
|
const graceful_fs_1 = require("graceful-fs");
|
|
14
15
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
16
|
+
const core_1 = require("@salesforce/core");
|
|
15
17
|
const metadataResolver_1 = require("../resolve/metadataResolver");
|
|
16
18
|
const componentSet_1 = require("../collections/componentSet");
|
|
17
19
|
const types_1 = require("../collections/types");
|
|
@@ -19,7 +21,7 @@ const registryAccess_1 = require("../registry/registryAccess");
|
|
|
19
21
|
const streams_1 = require("./streams");
|
|
20
22
|
const replacements_1 = require("./replacements");
|
|
21
23
|
;
|
|
22
|
-
const messages = new
|
|
24
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
23
25
|
class MetadataConverter {
|
|
24
26
|
static PACKAGE_XML_FILE = 'package.xml';
|
|
25
27
|
static DESTRUCTIVE_CHANGES_POST_XML_FILE = 'destructiveChangesPost.xml';
|
|
@@ -31,6 +33,10 @@ class MetadataConverter {
|
|
|
31
33
|
}
|
|
32
34
|
async convert(comps, targetFormat, output) {
|
|
33
35
|
try {
|
|
36
|
+
// jszip does not behave well in web environments when retrieving multiple files.
|
|
37
|
+
// it has a minified `browser` target which has a v3 ReadableStream, but the extensions are using polyfilles of v4.
|
|
38
|
+
// Setting the highWaterMark to 1 seems to fix the issue.
|
|
39
|
+
const streamOptions = core_1.Global.isWeb ? { highWaterMark: 1 } : {};
|
|
34
40
|
const cs = comps instanceof componentSet_1.ComponentSet ? comps : new componentSet_1.ComponentSet(comps, this.registry);
|
|
35
41
|
const components = (comps instanceof componentSet_1.ComponentSet ? Array.from(comps.getSourceComponents()) : comps).filter((comp) => comp.type.isAddressable !== false);
|
|
36
42
|
if (output.type !== 'merge' && output.packageName) {
|
|
@@ -38,9 +44,9 @@ class MetadataConverter {
|
|
|
38
44
|
}
|
|
39
45
|
const targetFormatIsSource = targetFormat === 'source';
|
|
40
46
|
const { packagePath, defaultDirectory, writer, mergeSet, tasks = [], } = await getConvertIngredients(output, cs, targetFormatIsSource, this.registry);
|
|
41
|
-
const conversionPipeline = (0, streams_1.getPipeline)()(node_stream_1.Readable.from(components), !targetFormatIsSource && (process.env.SF_APPLY_REPLACEMENTS_ON_CONVERT === 'true' || output.type === 'zip')
|
|
47
|
+
const conversionPipeline = (0, streams_1.getPipeline)()(node_stream_1.Readable.from(components, streamOptions), !targetFormatIsSource && (process.env.SF_APPLY_REPLACEMENTS_ON_CONVERT === 'true' || output.type === 'zip')
|
|
42
48
|
? (await (0, replacements_1.getReplacementMarkingStream)(cs.projectDirectory)) ?? new node_stream_1.PassThrough({ objectMode: true })
|
|
43
|
-
: new node_stream_1.PassThrough({ objectMode: true }), new streams_1.ComponentConverter(targetFormat, this.registry, mergeSet, defaultDirectory), writer);
|
|
49
|
+
: new node_stream_1.PassThrough({ objectMode: true, ...streamOptions }), new streams_1.ComponentConverter(targetFormat, this.registry, mergeSet, defaultDirectory), writer);
|
|
44
50
|
await Promise.all([conversionPipeline, ...tasks]);
|
|
45
51
|
return await getResult(this.registry)(packagePath)(writer);
|
|
46
52
|
}
|
|
@@ -50,11 +56,11 @@ class MetadataConverter {
|
|
|
50
56
|
}
|
|
51
57
|
// if the error is already somewhat descriptive, use that
|
|
52
58
|
// the allows better error messages to be passed through instead of "failed convert"
|
|
53
|
-
if (err instanceof
|
|
59
|
+
if (err instanceof sfError_1.SfError && (err.name !== 'SfError' || err.actions)) {
|
|
54
60
|
throw err;
|
|
55
61
|
}
|
|
56
62
|
const error = (0, ts_types_1.isString)(err) ? new Error(err) : err;
|
|
57
|
-
throw new
|
|
63
|
+
throw new sfError_1.SfError(messages.getMessage('error_failed_convert', [error.message]), 'ConversionError', [], error);
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
}
|
|
@@ -124,7 +130,7 @@ async function getConvertIngredients(output, cs, targetFormatIsSource, registry)
|
|
|
124
130
|
}
|
|
125
131
|
function getMergeConfigOutputs(output, targetFormatIsSource, registry) {
|
|
126
132
|
if (!targetFormatIsSource) {
|
|
127
|
-
throw new
|
|
133
|
+
throw new sfError_1.SfError(messages.getMessage('error_merge_metadata_target_unsupported'));
|
|
128
134
|
}
|
|
129
135
|
const defaultDirectory = output.defaultDirectory;
|
|
130
136
|
const mergeSet = new componentSet_1.ComponentSet(undefined, registry);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataConverter.js","sourceRoot":"","sources":["../../../src/convert/metadataConverter.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6CAAoD;AACpD,yCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"metadataConverter.js","sourceRoot":"","sources":["../../../src/convert/metadataConverter.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6CAAoD;AACpD,yCAAqD;AACrD,wDAAqD;AACrD,sDAAmD;AACnD,6CAAkD;AAClD,mDAAgD;AAChD,2CAA0C;AAE1C,kEAA+D;AAE/D,8DAA2D;AAC3D,gDAA8D;AAC9D,+DAA4D;AAC5D,uCAAuF;AAEvF,iDAA6D;;AAG7D,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAEpF,MAAa,iBAAiB;IACrB,MAAM,CAAU,gBAAgB,GAAG,aAAa,CAAC;IACjD,MAAM,CAAU,iCAAiC,GAAG,4BAA4B,CAAC;IACjF,MAAM,CAAU,gCAAgC,GAAG,2BAA2B,CAAC;IAC/E,MAAM,CAAU,sBAAsB,GAAG,iBAAiB,CAAC;IAE1D,QAAQ,CAAiB;IAEjC,YAAmB,QAAQ,GAAG,IAAI,+BAAc,EAAE;QAChD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,KAAK,CAAC,OAAO,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
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Readable, Transform, Writable, Stream } from 'node:stream';
|
|
2
2
|
import { JsonMap } from '@salesforce/ts-types';
|
|
3
|
-
import { Logger } from '@salesforce/core';
|
|
3
|
+
import { Logger } from '@salesforce/core/logger';
|
|
4
4
|
import { SourceComponent } from '../resolve/sourceComponent';
|
|
5
5
|
import { SourcePath } from '../common/types';
|
|
6
6
|
import { ComponentSet } from '../collections/componentSet';
|
|
@@ -13,11 +13,12 @@ exports.JsToXml = exports.ZipWriter = exports.StandardWriter = exports.Component
|
|
|
13
13
|
const node_path_1 = require("node:path");
|
|
14
14
|
const node_stream_1 = require("node:stream");
|
|
15
15
|
const node_util_1 = require("node:util");
|
|
16
|
-
const
|
|
16
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
17
|
+
const sfError_1 = require("@salesforce/core/sfError");
|
|
17
18
|
const jszip_1 = __importDefault(require("jszip"));
|
|
18
19
|
const graceful_fs_1 = require("graceful-fs");
|
|
19
20
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
20
|
-
const
|
|
21
|
+
const logger_1 = require("@salesforce/core/logger");
|
|
21
22
|
const constants_1 = require("../common/constants");
|
|
22
23
|
const fileSystemHandler_1 = require("../utils/fileSystemHandler");
|
|
23
24
|
const types_1 = require("../client/types");
|
|
@@ -25,7 +26,7 @@ const resolve_1 = require("../resolve");
|
|
|
25
26
|
const metadataTransformerFactory_1 = require("./transformers/metadataTransformerFactory");
|
|
26
27
|
const convertContext_1 = require("./convertContext/convertContext");
|
|
27
28
|
;
|
|
28
|
-
const messages = new
|
|
29
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
29
30
|
let promisifiedPipeline; // store it so we don't have to promisify every time
|
|
30
31
|
const getPipeline = () => {
|
|
31
32
|
promisifiedPipeline ??= (0, node_util_1.promisify)(node_stream_1.pipeline);
|
|
@@ -78,7 +79,7 @@ class ComponentConverter extends node_stream_1.Transform {
|
|
|
78
79
|
converts.push(transformer.toMetadataFormat(chunk));
|
|
79
80
|
break;
|
|
80
81
|
default:
|
|
81
|
-
throw new
|
|
82
|
+
throw new sfError_1.SfError(messages.getMessage('error_convert_invalid_format', [this.targetFormat]), 'LibraryError');
|
|
82
83
|
}
|
|
83
84
|
// could maybe improve all this with lazy async collections...
|
|
84
85
|
(await Promise.all(converts)).forEach((infos) => writeInfos.push(...infos));
|
|
@@ -113,7 +114,7 @@ class ComponentWriter extends node_stream_1.Writable {
|
|
|
113
114
|
constructor(rootDestination) {
|
|
114
115
|
super({ objectMode: true });
|
|
115
116
|
this.rootDestination = rootDestination;
|
|
116
|
-
this.logger =
|
|
117
|
+
this.logger = logger_1.Logger.childFromRoot(this.constructor.name);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
exports.ComponentWriter = ComponentWriter;
|
|
@@ -137,7 +138,7 @@ class StandardWriter extends ComponentWriter {
|
|
|
137
138
|
await Promise.all(chunk.writeInfos
|
|
138
139
|
.map(makeWriteInfoAbsolute(this.rootDestination))
|
|
139
140
|
.filter(existsOrDoesntMatchIgnored(this.forceignore, this.logger)) // Skip files matched by default ignore
|
|
140
|
-
.map((info) => {
|
|
141
|
+
.map(async (info) => {
|
|
141
142
|
if (info.shouldDelete) {
|
|
142
143
|
this.deleted.push({
|
|
143
144
|
filePath: info.output,
|
|
@@ -161,7 +162,7 @@ class StandardWriter extends ComponentWriter {
|
|
|
161
162
|
}
|
|
162
163
|
toResolve.add(info.output);
|
|
163
164
|
}
|
|
164
|
-
(0, fileSystemHandler_1.ensureFileExists)(info.output);
|
|
165
|
+
await (0, fileSystemHandler_1.ensureFileExists)(info.output);
|
|
165
166
|
return (0, exports.getPipeline)()(info.source, (0, graceful_fs_1.createWriteStream)(info.output));
|
|
166
167
|
}));
|
|
167
168
|
this.converted.push(...toResolve);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../../src/convert/streams.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;GAKG;AACH,yCAA6C;AAC7C,6CAA4F;AAC5F,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../../src/convert/streams.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;GAKG;AACH,yCAA6C;AAC7C,6CAA4F;AAC5F,yCAAsC;AACtC,wDAAqD;AACrD,sDAAmD;AACnD,kDAA0B;AAC1B,6CAAoF;AAEpF,qDAA6C;AAC7C,oDAAiD;AAGjD,mDAAsE;AAGtE,kEAA8D;AAC9D,2CAAuE;AACvE,wCAAyC;AACzC,0FAAuF;AACvF,oEAAiE;;AAIjE,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAOpF,IAAI,mBAAoD,CAAC,CAAC,oDAAoD;AAEvG,MAAM,WAAW,GAAG,GAAwB,EAAE;IACnD,mBAAmB,KAAK,IAAA,qBAAS,EAAC,sBAAU,CAAC,CAAC;IAC9C,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC;AAHW,QAAA,WAAW,eAGtB;AAEK,MAAM,aAAa,GAAG,KAAK,EAAE,MAAc,EAAmB,EAAE,CACrE,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IACtC,8DAA8D;IAC9D,MAAM,GAAG,GAAG,KAAK,EAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAA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AE,CACpG,SAAS,CAAC,MAAM,KAAK,SAAS,CAAC;AAEjC,MAAM,qBAAqB,GACzB,CAAC,eAAe,GAAG,EAAE,EAAE,EAAE,CACzB,CAAC,SAAoB,EAAa,EAAE,CAAC,CAAC;IACpC,GAAG,SAAS;IACZ,MAAM,EAAE,IAAA,sBAAU,EAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,gBAAI,EAAC,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC;CAClG,CAAC,CAAC;AAEL,MAAM,0BAA0B,GAC9B,CAAC,WAAwB,EAAE,MAAc,EAAE,EAAE,CAC7C,CAAC,SAAoB,EAAW,EAAE;IAChC,MAAM,MAAM,GAAG,IAAA,wBAAU,EAAC,SAAS,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAErF,sDAAsD;IACtD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,CAAC,KAAK,CAAC,QAAQ,SAAS,CAAC,MAAM,4BAA4B,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ const node_path_1 = require("node:path");
|
|
|
14
14
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
15
15
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
16
16
|
const kit_1 = require("@salesforce/kit");
|
|
17
|
-
const
|
|
17
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
18
18
|
const path_1 = require("../../utils/path");
|
|
19
19
|
const decomposed_1 = require("../../utils/decomposed");
|
|
20
20
|
const streams_1 = require("../streams");
|
|
@@ -22,7 +22,7 @@ const constants_1 = require("../../common/constants");
|
|
|
22
22
|
const componentSet_1 = require("../../collections/componentSet");
|
|
23
23
|
const baseMetadataTransformer_1 = require("./baseMetadataTransformer");
|
|
24
24
|
;
|
|
25
|
-
const messages = new
|
|
25
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
26
26
|
class DecomposedMetadataTransformer extends baseMetadataTransformer_1.BaseMetadataTransformer {
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
28
28
|
async toMetadataFormat(component) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decomposedMetadataTransformer.js","sourceRoot":"","sources":["../../../../src/convert/transformers/decomposedMetadataTransformer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,yCAA0C;AAC1C,sDAAyB;AACzB,mDAAiF;AACjF,yCAA8C;AAC9C,2CAA4C;AAC5C,2CAAyD;AAEzD,uDAA4F;AAI5F,wCAAqC;AAErC,sDAAiF;AAEjF,iEAAyE;AAEzE,uEAAoE;;AAMpE,MAAM,QAAQ,OAAG,eAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAEpF,MAAa,6BAA8B,SAAQ,iDAAuB;IACxE,4DAA4D;IACrD,KAAK,CAAC,gBAAgB,CAAC,SAA0B;QACtD,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;YACrB,MAAM,GAAG,GAAG,IAAA,wBAAS,EAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACxC,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;gBAC7E,SAAS,EAAE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AE,CAC1B,CAAC,GAAY,EAAW,EAAE,CACxB,IAAI,iBAAO,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,sBAAU,CAAC,EAAE,sBAAU,EAAE,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC;AAE3E,iEAAiE;AACjE,MAAM,cAAc,GAClB,CAAC,UAAwB,EAAE,EAAE,CAC7B,CAAC,CAAqB,EAAU,EAAE,CAAC,CAAC;IAClC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QACjB,CAAC,sBAAU,CAAC,EAAE,sBAAU;QACxB,GAAG,MAAM,CAAC,WAAW,CACnB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAC/F;KACF;CACF,CAAC,CAAC;AAEE,MAAM,aAAa,GAAG,CAAC,SAA0B,EAAE,SAA2B,EAAU,EAAE,CAC/F,SAAS,EAAE,GAAG,IAAI,gBAAgB,CAAC,SAAS,CAAC,CAAC;AADnC,QAAA,aAAa,iBACsB"}
|
|
1
|
+
{"version":3,"file":"decomposedMetadataTransformer.js","sourceRoot":"","sources":["../../../../src/convert/transformers/decomposedMetadataTransformer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,yCAA0C;AAC1C,sDAAyB;AACzB,mDAAiF;AACjF,yCAA8C;AAC9C,wDAAqD;AACrD,2CAAyD;AAEzD,uDAA4F;AAI5F,wCAAqC;AAErC,sDAAiF;AAEjF,iEAAyE;AAEzE,uEAAoE;;AAMpE,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAEpF,MAAa,6BAA8B,SAAQ,iDAAuB;IACxE,4DAA4D;IACrD,KAAK,CAAC,gBAAgB,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MAAM,0BAA0B,GACrC,CAAC,WAAwB,EAAE,EAAE,CAC7B,CAAC,EAAiB,EAAW,EAAE,CAC7B,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;AAHhD,QAAA,0BAA0B,8BAGsB;AAE7D,8DAA8D;AAC9D,MAAM,cAAc,GAClB,CAAC,aAAqB,EAAE,EAAE,CAC1B,CAAC,GAAY,EAAW,EAAE,CACxB,IAAI,iBAAO,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,sBAAU,CAAC,EAAE,sBAAU,EAAE,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC;AAE3E,iEAAiE;AACjE,MAAM,cAAc,GAClB,CAAC,UAAwB,EAAE,EAAE,CAC7B,CAAC,CAAqB,EAAU,EAAE,CAAC,CAAC;IAClC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QACjB,CAAC,sBAAU,CAAC,EAAE,sBAAU;QACxB,GAAG,MAAM,CAAC,WAAW,CACnB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAC/F;KACF;CACF,CAAC,CAAC;AAEE,MAAM,aAAa,GAAG,CAAC,SAA0B,EAAE,SAA2B,EAAU,EAAE,CAC/F,SAAS,EAAE,GAAG,IAAI,gBAAgB,CAAC,SAAS,CAAC,CAAC;AADnC,QAAA,aAAa,iBACsB"}
|
|
@@ -7,7 +7,7 @@ exports.MetadataTransformerFactory = void 0;
|
|
|
7
7
|
* Licensed under the BSD 3-Clause license.
|
|
8
8
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
11
11
|
const convertContext_1 = require("../convertContext/convertContext");
|
|
12
12
|
const defaultMetadataTransformer_1 = require("./defaultMetadataTransformer");
|
|
13
13
|
const decomposedMetadataTransformer_1 = require("./decomposedMetadataTransformer");
|
|
@@ -17,7 +17,7 @@ const decomposeLabelsTransformer_1 = require("./decomposeLabelsTransformer");
|
|
|
17
17
|
const decomposedPermissionSetTransformer_1 = require("./decomposedPermissionSetTransformer");
|
|
18
18
|
const decomposeExternalServiceRegistrationTransformer_1 = require("./decomposeExternalServiceRegistrationTransformer");
|
|
19
19
|
;
|
|
20
|
-
const messages = new
|
|
20
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
21
21
|
class MetadataTransformerFactory {
|
|
22
22
|
registry;
|
|
23
23
|
context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataTransformerFactory.js","sourceRoot":"","sources":["../../../../src/convert/transformers/metadataTransformerFactory.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"metadataTransformerFactory.js","sourceRoot":"","sources":["../../../../src/convert/transformers/metadataTransformerFactory.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,wDAAqD;AAGrD,qEAAkE;AAElE,6EAA0E;AAC1E,mFAAgF;AAChF,2FAAwF;AACxF,yFAAsF;AACtF,6EAAmG;AACnG,6FAA0F;AAC1F,uHAAoH;;AAGpH,MAAM,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C,CAAC,CAAC,IAAI,sDAAyB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC;oBAC5D,CAAC,CAAC,IAAI,qDAAwB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAChE,KAAK,sCAAsC;gBACzC,OAAO,IAAI,iGAA+C,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC1F;gBACE,MAAM,QAAQ,CAAC,WAAW,CAAC,2BAA2B,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;QACxF,CAAC;IACH,CAAC;CACF;AAhCD,gEAgCC"}
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.NonDecomposedMetadataTransformer = void 0;
|
|
10
10
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
11
11
|
const kit_1 = require("@salesforce/kit");
|
|
12
|
-
const
|
|
12
|
+
const messages_1 = require("@salesforce/core/messages");
|
|
13
13
|
const decomposedMetadataTransformer_1 = require("./decomposedMetadataTransformer");
|
|
14
14
|
;
|
|
15
|
-
const messages = new
|
|
15
|
+
const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_convert_invalid_format", "Invalid conversion format '%s'"], ["error_could_not_infer_type", "%s: Could not infer a metadata type"], ["error_unexpected_child_type", "Unexpected child metadata [%s] found for parent type [%s]"], ["noParent", "Could not find parent type for %s (%s)"], ["error_expected_source_files", "%s: Expected source files for type '%s'"], ["error_failed_convert", "Component conversion failed: %s"], ["error_merge_metadata_target_unsupported", "Merge convert for metadata target format currently unsupported"], ["error_missing_adapter", "Missing adapter '%s' for metadata type '%s'"], ["error_missing_transformer", "Missing transformer '%s' for metadata type '%s'"], ["error_missing_type_definition", "Missing metadata type definition in registry for id '%s'."], ["error_missing_child_type_definition", "Type %s does not have a child type definition %s."], ["noChildTypes", "No child types found in registry for %s (reading %s at %s)"], ["error_no_metadata_xml_ignore", "Metadata xml file %s is forceignored but is required for %s."], ["noSourceIgnore", "%s metadata types require source files, but %s is forceignored."], ["noSourceIgnore.actions", "- Metadata types with content are composed of two files: a content file (ie MyApexClass.cls) and a -meta.xml file (i.e MyApexClass.cls-meta.xml). You must include both files in your .forceignore file. Or try appending \u201C\\*\u201D to your existing .forceignore entry.\n\nSee <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm> for examples"], ["error_path_not_found", "%s: File or folder not found"], ["noContentFound", "SourceComponent %s (metadata type = %s) is missing its content file."], ["noContentFound.actions", ["Ensure the content file exists in the expected location.", "If the content file is in your .forceignore file, ensure the meta-xml file is also ignored to completely exclude it."]], ["error_parsing_xml", "SourceComponent %s (metadata type = %s) does not have an associated metadata xml to parse"], ["error_expected_file_path", "%s: path is to a directory, expected a file"], ["error_expected_directory_path", "%s: path is to a file, expected a directory"], ["error_directory_not_found_or_not_directory", "%s: path is not a directory"], ["error_no_directory_stream", "%s doesn't support readable streams on directories."], ["error_no_source_to_deploy", "No source-backed components present in the package."], ["error_no_components_to_retrieve", "No components in the package to retrieve."], ["error_static_resource_expected_archive_type", "A StaticResource directory must have a content type of application/zip or application/jar - found %s for %s."], ["error_static_resource_missing_resource_file", "A StaticResource must have an associated .resource file, missing %s.resource-meta.xml"], ["error_no_job_id", "The %s operation is missing a job ID. Initialize an operation with an ID, or start a new job."], ["missingApiVersion", "Could not determine an API version to use for the generated manifest. Tried looking for sourceApiVersion in sfdx-project.json, apiVersion from config vars, and the highest apiVersion from the APEX REST endpoint. Using API version 58.0 as a last resort."], ["invalid_xml_parsing", "error parsing %s due to:\\n message: %s\\n line: %s\\n code: %s"], ["zipBufferError", "Zip buffer was not created during conversion"], ["undefinedComponentSet", "Unable to construct a componentSet. Check the logs for more information."], ["replacementsFileNotRead", "The file \"%s\" specified in the \"replacements\" property of sfdx-project.json could not be read."], ["unsupportedBundleType", "Unsupported Bundle Type: %s"], ["filePathGeneratorNoTypeSupport", "Type not supported for filepath generation: %s"], ["missingFolderType", "The registry has %s as is inFolder but it does not have a folderType"], ["tooManyFiles", "Multiple files found for path: %s."], ["cantGetName", "Unable to calculate fullName from path: %s (%s)"], ["missingMetaFileSuffix", "The metadata registry is configured incorrectly for %s. Expected a metaFileSuffix."], ["uniqueIdElementNotInRegistry", "No uniqueIdElement found in registry for %s (reading %s at %s)."], ["uniqueIdElementNotInChild", "The uniqueIdElement %s was not found the child (reading %s at %s)."], ["suggest_type_header", "A metadata type lookup for \"%s\" found the following close matches:"], ["suggest_type_did_you_mean", "-- Did you mean \".%s%s\" instead for the \"%s\" metadata type?"], ["suggest_type_more_suggestions", "Additional suggestions:\nConfirm the file name, extension, and directory names are correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"], ["type_name_suggestions", "Confirm the metadata type name is correct. Validate against the registry at:\n<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n\nIf the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n<https://developer.salesforce.com/docs/metadata-coverage>\n\nIf the type is available via Metadata API but not in the registry\n\n- Open an issue <https://github.com/forcedotcom/cli/issues>\n- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>"]]));
|
|
16
16
|
/**
|
|
17
17
|
* Metadata Transformer for metadata types with children types that are NOT decomposed into separate files.
|
|
18
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nonDecomposedMetadataTransformer.js","sourceRoot":"","sources":["../../../../src/convert/transformers/nonDecomposedMetadataTransformer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mDAA+D;AAC/D,yCAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"nonDecomposedMetadataTransformer.js","sourceRoot":"","sources":["../../../../src/convert/transformers/nonDecomposedMetadataTransformer.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,mDAA+D;AAC/D,yCAA8C;AAC9C,wDAAqD;AAErD,mFAAgF;;AAEhF,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AACpF;;;;;GAKG;AACH,MAAa,gCAAiC,SAAQ,6DAA6B;IACjF,+EAA+E;IAC/E,6DAA6D;IACtD,KAAK,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,SAAS,EAAuB;QACvE,6EAA6E;QAC7E,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC7C,MAAM,iBAAiB,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnF,MAAM,mBAAmB,GAAG,IAAA,iBAAW,EAAC,IAAA,cAAG,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAc,CAAC;QACxF,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,QAAQ,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACvG,CAAC;QACD,mCAAmC;QACnC,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACjE,MA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