@salesforce/source-deploy-retrieve 12.1.8 → 12.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/src/client/metadataApiDeploy.js +22 -14
  2. package/lib/src/client/metadataApiDeploy.js.map +1 -1
  3. package/lib/src/client/metadataApiRetrieve.js +12 -2
  4. package/lib/src/client/metadataApiRetrieve.js.map +1 -1
  5. package/lib/src/client/metadataTransfer.js +9 -3
  6. package/lib/src/client/metadataTransfer.js.map +1 -1
  7. package/lib/src/collections/componentSet.js +76 -55
  8. package/lib/src/collections/componentSet.js.map +1 -1
  9. package/lib/src/collections/componentSetBuilder.js +91 -108
  10. package/lib/src/collections/componentSetBuilder.js.map +1 -1
  11. package/lib/src/collections/decodeableMap.js +7 -0
  12. package/lib/src/collections/decodeableMap.js.map +1 -1
  13. package/lib/src/collections/lazyCollection.js +1 -0
  14. package/lib/src/collections/lazyCollection.js.map +1 -1
  15. package/lib/src/convert/convertContext/convertContext.js +3 -5
  16. package/lib/src/convert/convertContext/convertContext.js.map +1 -1
  17. package/lib/src/convert/convertContext/decompositionFinalizer.js +1 -4
  18. package/lib/src/convert/convertContext/decompositionFinalizer.js.map +1 -1
  19. package/lib/src/convert/convertContext/nonDecompositionFinalizer.js +9 -11
  20. package/lib/src/convert/convertContext/nonDecompositionFinalizer.js.map +1 -1
  21. package/lib/src/convert/convertContext/recompositionFinalizer.d.ts +0 -3
  22. package/lib/src/convert/convertContext/recompositionFinalizer.js +6 -17
  23. package/lib/src/convert/convertContext/recompositionFinalizer.js.map +1 -1
  24. package/lib/src/convert/metadataConverter.js +6 -5
  25. package/lib/src/convert/metadataConverter.js.map +1 -1
  26. package/lib/src/convert/replacements.js +3 -1
  27. package/lib/src/convert/replacements.js.map +1 -1
  28. package/lib/src/convert/streams.js +15 -6
  29. package/lib/src/convert/streams.js.map +1 -1
  30. package/lib/src/convert/transformers/baseMetadataTransformer.js +3 -0
  31. package/lib/src/convert/transformers/baseMetadataTransformer.js.map +1 -1
  32. package/lib/src/convert/transformers/decomposedMetadataTransformer.js +5 -7
  33. package/lib/src/convert/transformers/decomposedMetadataTransformer.js.map +1 -1
  34. package/lib/src/convert/transformers/defaultMetadataTransformer.js +1 -1
  35. package/lib/src/convert/transformers/defaultMetadataTransformer.js.map +1 -1
  36. package/lib/src/convert/transformers/metadataTransformerFactory.js +3 -1
  37. package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
  38. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js +1 -1
  39. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js.map +1 -1
  40. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js +6 -6
  41. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js.map +1 -1
  42. package/lib/src/convert/types.d.ts +7 -0
  43. package/lib/src/convert/types.js +1 -0
  44. package/lib/src/convert/types.js.map +1 -1
  45. package/lib/src/registry/levenshtein.d.ts +4 -0
  46. package/lib/src/registry/levenshtein.js +68 -0
  47. package/lib/src/registry/levenshtein.js.map +1 -0
  48. package/lib/src/registry/presets/decomposeWorkflowBeta.json +7 -0
  49. package/lib/src/registry/registryAccess.js +18 -45
  50. package/lib/src/registry/registryAccess.js.map +1 -1
  51. package/lib/src/resolve/adapters/baseSourceAdapter.js +11 -7
  52. package/lib/src/resolve/adapters/baseSourceAdapter.js.map +1 -1
  53. package/lib/src/resolve/adapters/bundleSourceAdapter.js +1 -4
  54. package/lib/src/resolve/adapters/bundleSourceAdapter.js.map +1 -1
  55. package/lib/src/resolve/adapters/decomposedSourceAdapter.js +3 -6
  56. package/lib/src/resolve/adapters/decomposedSourceAdapter.js.map +1 -1
  57. package/lib/src/resolve/adapters/defaultSourceAdapter.js +1 -4
  58. package/lib/src/resolve/adapters/defaultSourceAdapter.js.map +1 -1
  59. package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js +1 -1
  60. package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js.map +1 -1
  61. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js +1 -1
  62. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js.map +1 -1
  63. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js +1 -1
  64. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js.map +1 -1
  65. package/lib/src/resolve/adapters/sourceAdapterFactory.js +3 -1
  66. package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
  67. package/lib/src/resolve/connectionResolver.js +6 -1
  68. package/lib/src/resolve/connectionResolver.js.map +1 -1
  69. package/lib/src/resolve/forceIgnore.js +4 -2
  70. package/lib/src/resolve/forceIgnore.js.map +1 -1
  71. package/lib/src/resolve/manifestResolver.js +2 -0
  72. package/lib/src/resolve/manifestResolver.js.map +1 -1
  73. package/lib/src/resolve/metadataResolver.js +6 -1
  74. package/lib/src/resolve/metadataResolver.js.map +1 -1
  75. package/lib/src/resolve/sourceComponent.js +12 -2
  76. package/lib/src/resolve/sourceComponent.js.map +1 -1
  77. package/lib/src/resolve/treeContainers.js +4 -3
  78. package/lib/src/resolve/treeContainers.js.map +1 -1
  79. package/lib/src/utils/decomposed.d.ts +5 -0
  80. package/lib/src/utils/decomposed.js +13 -1
  81. package/lib/src/utils/decomposed.js.map +1 -1
  82. package/lib/src/utils/filePathGenerator.js +1 -1
  83. package/lib/src/utils/filePathGenerator.js.map +1 -1
  84. package/messages/sdr.md +13 -0
  85. package/package.json +8 -8
@@ -23,9 +23,13 @@ const metadataTransfer_1 = require("./metadataTransfer");
23
23
  const types_1 = require("./types");
24
24
  const deployMessages_1 = require("./deployMessages");
25
25
  ;
26
- const messages = new core_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>"]]));
26
+ const messages = new core_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>"]]));
27
27
  // TODO: (NEXT MAJOR) this should just be a readonly object and not a class.
28
28
  class DeployResult {
29
+ response;
30
+ components;
31
+ replacements;
32
+ fileResponses;
29
33
  constructor(response, components, replacements = new Map()) {
30
34
  this.response = response;
31
35
  this.components = components;
@@ -46,9 +50,24 @@ class DeployResult {
46
50
  }
47
51
  exports.DeployResult = DeployResult;
48
52
  class MetadataApiDeploy extends metadataTransfer_1.MetadataTransfer {
53
+ static DEFAULT_OPTIONS = {
54
+ apiOptions: {
55
+ rollbackOnError: true,
56
+ ignoreWarnings: false,
57
+ checkOnly: false,
58
+ singlePackage: true,
59
+ rest: false,
60
+ },
61
+ };
62
+ options;
63
+ replacements = new Map();
64
+ orgId;
65
+ // Keep track of rest deploys separately since Connection.deploy() removes it
66
+ // from the apiOptions and we need it for telemetry.
67
+ isRestDeploy;
68
+ registry;
49
69
  constructor(options) {
50
70
  super(options);
51
- this.replacements = new Map();
52
71
  options.apiOptions = { ...MetadataApiDeploy.DEFAULT_OPTIONS.apiOptions, ...options.apiOptions };
53
72
  this.options = Object.assign({}, options);
54
73
  this.isRestDeploy = !!options.apiOptions?.rest;
@@ -108,9 +127,7 @@ class MetadataApiDeploy extends metadataTransfer_1.MetadataTransfer {
108
127
  throw new core_1.SfError(messages.getMessage('error_no_job_id', ['deploy']), 'MissingJobIdError');
109
128
  }
110
129
  const connection = await this.getConnection();
111
- // jsforce has an <any> on this
112
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,no-underscore-dangle
113
- await connection.metadata._invoke('cancelDeploy', { id: this.id });
130
+ await connection.metadata.cancelDeploy(this.id);
114
131
  }
115
132
  async pre() {
116
133
  const LifecycleInstance = core_1.Lifecycle.getInstance();
@@ -268,15 +285,6 @@ class MetadataApiDeploy extends metadataTransfer_1.MetadataTransfer {
268
285
  }
269
286
  }
270
287
  exports.MetadataApiDeploy = MetadataApiDeploy;
271
- MetadataApiDeploy.DEFAULT_OPTIONS = {
272
- apiOptions: {
273
- rollbackOnError: true,
274
- ignoreWarnings: false,
275
- checkOnly: false,
276
- singlePackage: true,
277
- rest: false,
278
- },
279
- };
280
288
  /**
281
289
  * If a component fails to delete because it doesn't exist in the org, you get a message like
282
290
  * key: 'ApexClass#destructiveChanges.xml'
@@ -1 +1 @@
1
- {"version":3,"file":"metadataApiDeploy.js","sourceRoot":"","sources":["../../../src/client/metadataApiDeploy.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;GAKG;AACH,yCAAwE;AACxE,yCAAmC;AACnC,mDAAgD;AAChD,kDAA0B;AAC1B,8DAA6B;AAC7B,2CAAgE;AAChE,yCAA8C;AAC9C,+DAA4D;AAE5D,oEAAiE;AAEjE,yDAA+E;AAC/E,mCAQiB;AACjB,qDAM0B;;AAG1B,MAAM,QAAQ,OAAG,eAAQ,CAAc,oCAAoC,EAAE,KAAK,6pKAAC,CAAC;AAEpF,4EAA4E;AAC5E,MAAa,YAAY;IAGvB,YACkB,QAAiC,EACjC,UAAyB,EACzB,eAAe,IAAI,GAAG,EAAoB;QAF1C,aAAQ,GAAR,QAAQ,CAAyB;QACjC,eAAU,GAAV,UAAU,CAAe;QACzB,iBAAY,GAAZ,YAAY,CAA8B;IACzD,CAAC;IAEG,gBAAgB;QACrB,qDAAqD;QACrD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG;gBACnB,6GAA6G;gBAC7G,GAAG,IAAI,GAAG,CACR,CAAC,IAAI,CAAC,UAAU;oBACd,CAAC,CAAC,kCAAkC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACpE,CAAC,CAAC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AC;IAErD,MAAM,aAAa,GAAG,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC;SAC7D,OAAO,CAAC,CAAC,iBAAiB,EAAE,EAAE,CAC7B,IAAA,gCAAe,EAAC,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,IAAA,sBAAK,EAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAC7F,iBAAiB,CAAC,IAAI,CAAC,QAAQ;QAC7B,CAAC,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAChD,MAAM,aAAa,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAA,sBAAK,EAAC,KAAK,CAAC,CAAC,CAAC;YACzD,OAAO,aAAa,CAAC,CAAC,CAAC,IAAA,gCAAe,EAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpE,CAAC,CAAC;QACJ,CAAC,CAAC,EAAE,CACP,CACF;SACA,MAAM,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAE/D,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QACZ,2BAA2B,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"}
@@ -22,8 +22,16 @@ const types_1 = require("./types");
22
22
  const retrieveExtract_1 = require("./retrieveExtract");
23
23
  const retrieveExtract_2 = require("./retrieveExtract");
24
24
  ;
25
- const messages = new core_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>"]]));
25
+ const messages = new core_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 RetrieveResult {
27
+ response;
28
+ components;
29
+ partialDeleteFileResponses;
30
+ // This ComponentSet is most likely just the components on the local file
31
+ // system and is used to set the state of a SourceComponent to "Created"
32
+ // rather than "Changed".
33
+ localComponents;
34
+ fileResponses;
27
35
  /**
28
36
  * @param response The metadata retrieve response from the server
29
37
  * @param components The ComponentSet of retrieved source components
@@ -92,6 +100,9 @@ class RetrieveResult {
92
100
  }
93
101
  exports.RetrieveResult = RetrieveResult;
94
102
  class MetadataApiRetrieve extends metadataTransfer_1.MetadataTransfer {
103
+ static DEFAULT_OPTIONS = { merge: false };
104
+ options;
105
+ orgId;
95
106
  constructor(options) {
96
107
  super(options);
97
108
  this.options = Object.assign({}, MetadataApiRetrieve.DEFAULT_OPTIONS, options);
@@ -219,7 +230,6 @@ class MetadataApiRetrieve extends metadataTransfer_1.MetadataTransfer {
219
230
  }
220
231
  }
221
232
  exports.MetadataApiRetrieve = MetadataApiRetrieve;
222
- MetadataApiRetrieve.DEFAULT_OPTIONS = { merge: false };
223
233
  const handleMdapiResponse = async (options, zipFileContents) => {
224
234
  const name = options.zipFileName ?? 'unpackaged.zip';
225
235
  const zipFilePath = (0, node_path_1.join)(options.output, name);
@@ -1 +1 @@
1
- {"version":3,"file":"metadataApiRetrieve.js","sourceRoot":"","sources":["../../../src/client/metadataApiRetrieve.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;GAKG;AACH,yCAAwC;AACxC,8DAA6B;AAC7B,kDAA0B;AAC1B,mDAA2D;AAC3D,2CAAgE;AAChE,yCAA8C;AAC9C,8DAA2D;AAC3D,yDAAsD;AACtD,mCAUiB;AACjB,uDAA4C;AAC5C,uDAAsD;;AAItD,MAAM,QAAQ,OAA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AK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9C,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,IAAI,CAAC,MAAM,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC;gBAC3B,qBAAE,CAAC,SAAS,CAAC,IAAA,gBAAI,EAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACjE,CAAC;iBAAM,CAAC;gBACN,4CAA4C;gBAC5C,MAAM,OAAO,GAAG,MAAM,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;gBAClD,IAAI,OAAO,EAAE,CAAC;oBACZ,qBAAE,CAAC,aAAa,CAAC,IAAA,gBAAI,EAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;gBACzD,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,KAAc,EAAW,EAAE;IAChD,IAAI,IAAA,mBAAQ,EAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,KAAK,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;IACxC,CAAC;IACD,OAAO,IAAA,oBAAS,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,cAA+B,EAAY,EAAE,CACpE,IAAA,mCAAiB,EAAC,cAAc,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC"}
@@ -20,11 +20,17 @@ const metadataConverter_1 = require("../convert/metadataConverter");
20
20
  const componentSet_1 = require("../collections/componentSet");
21
21
  const types_1 = require("./types");
22
22
  ;
23
- const messages = new core_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>"]]));
23
+ const messages = new core_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>"]]));
24
24
  class MetadataTransfer {
25
+ components;
26
+ logger;
27
+ canceled = false;
28
+ mdapiTempDir;
29
+ transferId;
30
+ event = new node_events_1.EventEmitter();
31
+ usernameOrConnection;
32
+ apiVersion;
25
33
  constructor({ usernameOrConnection, components, apiVersion, id }) {
26
- this.canceled = false;
27
- this.event = new node_events_1.EventEmitter();
28
34
  this.usernameOrConnection = usernameOrConnection;
29
35
  this.components = components;
30
36
  this.apiVersion = apiVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"metadataTransfer.js","sourceRoot":"","sources":["../../../src/client/metadataTransfer.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;GAKG;AACH,6CAA2C;AAC3C,yCAAiC;AACjC,2CAS0B;AAC1B,yCAA2C;AAC3C,mDAAyD;AACzD,8DAA6B;AAE7B,oEAAiE;AACjE,8DAA2D;AAC3D,mCAAoG;;AAGpG,MAAM,QAAQ,OAAG,eAAQ,CAAc,oCAAoC,EAAE,KAAK,6pKAAC,CAAC;AASpF,MAAsB,gBAAgB;IAcpC,YAAmB,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAW;QAPtE,aAAQ,GAAG,KAAK,CAAC;QAGnB,UAAK,GAAG,IAAI,0BAAY,EAAE,CAAC;QAKjC,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAA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  const ts_types_1 = require("@salesforce/ts-types");
14
+ const decomposed_1 = require("../utils/decomposed");
14
15
  const metadataApiDeploy_1 = require("../client/metadataApiDeploy");
15
16
  const metadataApiRetrieve_1 = require("../client/metadataApiRetrieve");
16
17
  const constants_1 = require("../common/constants");
@@ -24,7 +25,7 @@ const types_1 = require("./types");
24
25
  const lazyCollection_1 = require("./lazyCollection");
25
26
  const decodeableMap_1 = require("./decodeableMap");
26
27
  ;
27
- const messages = new core_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>"]]));
28
+ const messages = new core_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>"]]));
28
29
  const KEY_DELIMITER = '#';
29
30
  /**
30
31
  * A collection containing no duplicate metadata members (`fullName` and `type` pairs). `ComponentSets`
@@ -37,18 +38,37 @@ const KEY_DELIMITER = '#';
37
38
  * scenario.
38
39
  */
39
40
  class ComponentSet extends lazyCollection_1.LazyCollection {
41
+ static WILDCARD = '*';
42
+ /**
43
+ * The metadata API version to use. E.g., 52.0
44
+ */
45
+ apiVersion;
46
+ /**
47
+ * The metadata API version of the deployed/retrieved source.
48
+ * This is used as the value for the `version` field in the manifest.
49
+ */
50
+ sourceApiVersion;
51
+ /**
52
+ * Used to explicitly set the project directory for the component set.
53
+ * When not present, sfdx-core's SfProject will use the current working directory.
54
+ */
55
+ projectDirectory;
56
+ fullName;
57
+ forceIgnoredPaths;
58
+ logger;
59
+ registry;
60
+ // all components stored here, regardless of what manifest they belong to
61
+ components = new decodeableMap_1.DecodeableMap();
62
+ // internal component maps used by this.getObject() when building manifests.
63
+ destructiveComponents = {
64
+ [types_1.DestructiveChangesType.PRE]: new decodeableMap_1.DecodeableMap(),
65
+ [types_1.DestructiveChangesType.POST]: new decodeableMap_1.DecodeableMap(),
66
+ };
67
+ // used to store components meant for a "constructive" (not destructive) manifest
68
+ manifestComponents = new decodeableMap_1.DecodeableMap();
69
+ destructiveChangesType = types_1.DestructiveChangesType.POST;
40
70
  constructor(components = [], registry = new registryAccess_1.RegistryAccess()) {
41
71
  super();
42
- // all components stored here, regardless of what manifest they belong to
43
- this.components = new decodeableMap_1.DecodeableMap();
44
- // internal component maps used by this.getObject() when building manifests.
45
- this.destructiveComponents = {
46
- [types_1.DestructiveChangesType.PRE]: new decodeableMap_1.DecodeableMap(),
47
- [types_1.DestructiveChangesType.POST]: new decodeableMap_1.DecodeableMap(),
48
- };
49
- // used to store components meant for a "constructive" (not destructive) manifest
50
- this.manifestComponents = new decodeableMap_1.DecodeableMap();
51
- this.destructiveChangesType = types_1.DestructiveChangesType.POST;
52
72
  this.registry = registry;
53
73
  this.logger = core_1.Logger.childFromRoot(this.constructor.name);
54
74
  for (const component of components) {
@@ -258,63 +278,50 @@ class ComponentSet extends lazyCollection_1.LazyCollection {
258
278
  * @returns Object representation of a package manifest
259
279
  */
260
280
  async getObject(destructiveType) {
261
- const version = await this.getApiVersion();
262
281
  // If this ComponentSet has components marked for delete, we need to
263
282
  // only include those components in a destructiveChanges.xml and
264
283
  // all other components in the regular manifest.
265
- let components = this.components;
266
- if (this.getTypesOfDestructiveChanges().length) {
267
- components = destructiveType ? this.destructiveComponents[destructiveType] : this.manifestComponents;
268
- }
284
+ const components = this.getTypesOfDestructiveChanges().length
285
+ ? destructiveType
286
+ ? this.destructiveComponents[destructiveType]
287
+ : this.manifestComponents
288
+ : this.components;
269
289
  const typeMap = new Map();
270
- const addToTypeMap = (type, fullName) => {
271
- if (type.isAddressable !== false) {
272
- const typeName = type.name;
273
- if (!typeMap.has(typeName)) {
274
- typeMap.set(typeName, []);
275
- }
276
- const typeEntry = typeMap.get(typeName);
277
- if (fullName === ComponentSet.WILDCARD && !type.supportsWildcardAndName && !destructiveType) {
278
- // if the type doesn't support mixed wildcards and specific names, overwrite the names to be a wildcard
279
- typeMap.set(typeName, [fullName]);
280
- }
281
- else if (typeEntry &&
282
- !typeEntry.includes(fullName) &&
283
- (!typeEntry.includes(ComponentSet.WILDCARD) || type.supportsWildcardAndName)) {
284
- // if the type supports both wildcards and names, add them regardless
285
- typeMap.get(typeName)?.push(fullName);
286
- }
287
- }
288
- };
289
- for (const key of components.keys()) {
290
+ [...components.entries()].map(([key, cmpMap]) => {
290
291
  const [typeId, fullName] = splitOnFirstDelimiter(key);
291
- let type = this.registry.getTypeByName(typeId);
292
- if (type.folderContentType) {
293
- type = this.registry.getTypeByName(type.folderContentType);
294
- }
295
- addToTypeMap(type,
296
- // they're reassembled like CustomLabels.MyLabel
297
- this.registry.getParentType(type.name)?.strategies?.recomposition === 'startEmpty' && fullName.includes('.')
298
- ? fullName.split('.')[1]
299
- : fullName);
292
+ const type = this.registry.getTypeByName(typeId);
300
293
  // Add children
301
- const componentMap = components.get(key);
302
- if (componentMap) {
303
- for (const comp of componentMap.values()) {
304
- for (const child of comp.getChildren()) {
305
- addToTypeMap(child.type, child.fullName);
306
- }
294
+ [...(cmpMap?.values() ?? [])]
295
+ .flatMap((c) => c.getChildren())
296
+ .map((child) => addToTypeMap({ typeMap, type: child.type, fullName: child.fullName, destructiveType }));
297
+ // logic: if this is a decomposed type, skip its inclusion in the manifest if the parent is "empty"
298
+ if (type.strategies?.transformer === 'decomposed' &&
299
+ // exclude (ex: CustomObjectTranslation) where there are no addressable children
300
+ Object.values(type.children?.types ?? {}).some((t) => t.unaddressableWithoutParent !== true) &&
301
+ Object.values(type.children?.types ?? {}).some((t) => t.isAddressable !== false)) {
302
+ const parentComp = [...(cmpMap?.values() ?? [])].find((c) => c.fullName === fullName);
303
+ if (parentComp?.xml && !(0, decomposed_1.objectHasSomeRealValues)(type)(parentComp.parseXmlSync())) {
304
+ return;
307
305
  }
308
306
  }
309
- }
307
+ addToTypeMap({
308
+ typeMap,
309
+ type: type.folderContentType ? this.registry.getTypeByName(type.folderContentType) : type,
310
+ fullName: this.registry.getParentType(type.name)?.strategies?.recomposition === 'startEmpty' && fullName.includes('.')
311
+ ? // they're reassembled like CustomLabels.MyLabel
312
+ fullName.split('.')[1]
313
+ : fullName,
314
+ destructiveType,
315
+ });
316
+ });
310
317
  const typeMembers = Array.from(typeMap.entries())
311
- .map(([typeName, members]) => ({ members: members.sort(), name: typeName }))
318
+ .map(([typeName, members]) => ({ members: [...members].sort(), name: typeName }))
312
319
  .sort((a, b) => (a.name > b.name ? 1 : -1));
313
320
  return {
314
321
  Package: {
315
322
  ...{
316
323
  types: typeMembers,
317
- version,
324
+ version: await this.getApiVersion(),
318
325
  },
319
326
  ...(this.fullName ? { fullName: this.fullName } : {}),
320
327
  },
@@ -561,7 +568,6 @@ class ComponentSet extends lazyCollection_1.LazyCollection {
561
568
  }
562
569
  }
563
570
  exports.ComponentSet = ComponentSet;
564
- ComponentSet.WILDCARD = '*';
565
571
  const sourceKey = (component) => {
566
572
  const { fullName, type, xml, content } = component;
567
573
  return `${type.name}${fullName}${xml ?? ''}${content ?? ''}`;
@@ -574,4 +580,19 @@ const splitOnFirstDelimiter = (input) => {
574
580
  const indexOfSplitChar = input.indexOf(KEY_DELIMITER);
575
581
  return [input.substring(0, indexOfSplitChar), input.substring(indexOfSplitChar + 1)];
576
582
  };
583
+ /** side effect: mutates the typeMap property */
584
+ const addToTypeMap = ({ typeMap, type, fullName, destructiveType, }) => {
585
+ if (type.isAddressable === false)
586
+ return;
587
+ if (fullName === ComponentSet.WILDCARD && !type.supportsWildcardAndName && !destructiveType) {
588
+ // if the type doesn't support mixed wildcards and specific names, overwrite the names to be a wildcard
589
+ typeMap.set(type.name, new Set([fullName]));
590
+ return;
591
+ }
592
+ const existing = typeMap.get(type.name) ?? new Set();
593
+ if (!existing.has(ComponentSet.WILDCARD) || type.supportsWildcardAndName) {
594
+ // if the type supports both wildcards and names, add them regardless
595
+ typeMap.set(type.name, existing.add(fullName));
596
+ }
597
+ };
577
598
  //# sourceMappingURL=componentSet.js.map