@salesforce/source-deploy-retrieve 13.14.4 → 13.14.6-d360.0

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 (91) hide show
  1. package/lib/src/client/metadataApiDeploy.js +1 -1
  2. package/lib/src/client/metadataApiDeploy.js.map +1 -1
  3. package/lib/src/client/metadataApiRetrieve.js +1 -1
  4. package/lib/src/client/metadataApiRetrieve.js.map +1 -1
  5. package/lib/src/client/metadataTransfer.js +1 -1
  6. package/lib/src/client/metadataTransfer.js.map +1 -1
  7. package/lib/src/client/transports/transportPipeline.js +1 -1
  8. package/lib/src/client/transports/transportPipeline.js.map +1 -1
  9. package/lib/src/collections/componentSet.d.ts +27 -0
  10. package/lib/src/collections/componentSet.js +50 -2
  11. package/lib/src/collections/componentSet.js.map +1 -1
  12. package/lib/src/collections/componentSetBuilder.d.ts +5 -0
  13. package/lib/src/collections/componentSetBuilder.js +8 -1
  14. package/lib/src/collections/componentSetBuilder.js.map +1 -1
  15. package/lib/src/collections/d360Dependencies.d.ts +55 -0
  16. package/lib/src/collections/d360Dependencies.js +445 -0
  17. package/lib/src/collections/d360Dependencies.js.map +1 -0
  18. package/lib/src/collections/index.d.ts +1 -0
  19. package/lib/src/collections/index.js +3 -1
  20. package/lib/src/collections/index.js.map +1 -1
  21. package/lib/src/convert/convertContext/profileMetadataFinalizer.js +1 -1
  22. package/lib/src/convert/convertContext/profileMetadataFinalizer.js.map +1 -1
  23. package/lib/src/convert/convertContext/recompositionFinalizer.js +1 -1
  24. package/lib/src/convert/convertContext/recompositionFinalizer.js.map +1 -1
  25. package/lib/src/convert/metadataConverter.js +1 -1
  26. package/lib/src/convert/metadataConverter.js.map +1 -1
  27. package/lib/src/convert/replacements.js +1 -1
  28. package/lib/src/convert/replacements.js.map +1 -1
  29. package/lib/src/convert/streams.js +1 -1
  30. package/lib/src/convert/streams.js.map +1 -1
  31. package/lib/src/convert/transformers/computeAppMetadataTransformer.js +1 -1
  32. package/lib/src/convert/transformers/computeAppMetadataTransformer.js.map +1 -1
  33. package/lib/src/convert/transformers/d360MetadataTransformer.d.ts +37 -0
  34. package/lib/src/convert/transformers/d360MetadataTransformer.js +213 -0
  35. package/lib/src/convert/transformers/d360MetadataTransformer.js.map +1 -0
  36. package/lib/src/convert/transformers/decomposedMetadataTransformer.js +1 -1
  37. package/lib/src/convert/transformers/decomposedMetadataTransformer.js.map +1 -1
  38. package/lib/src/convert/transformers/defaultMetadataTransformer.js +1 -1
  39. package/lib/src/convert/transformers/defaultMetadataTransformer.js.map +1 -1
  40. package/lib/src/convert/transformers/metadataTransformerFactory.js +4 -1
  41. package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
  42. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js +1 -1
  43. package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js.map +1 -1
  44. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js +1 -1
  45. package/lib/src/convert/transformers/staticResourceMetadataTransformer.js.map +1 -1
  46. package/lib/src/index.d.ts +1 -1
  47. package/lib/src/index.js +2 -1
  48. package/lib/src/index.js.map +1 -1
  49. package/lib/src/registry/levenshtein.js +1 -1
  50. package/lib/src/registry/levenshtein.js.map +1 -1
  51. package/lib/src/registry/metadataRegistry.json +238 -12
  52. package/lib/src/registry/registryAccess.js +1 -1
  53. package/lib/src/registry/registryAccess.js.map +1 -1
  54. package/lib/src/registry/types.d.ts +7 -2
  55. package/lib/src/registry/types.js.map +1 -1
  56. package/lib/src/registry/variants.js +1 -1
  57. package/lib/src/registry/variants.js.map +1 -1
  58. package/lib/src/resolve/adapters/baseSourceAdapter.js +1 -1
  59. package/lib/src/resolve/adapters/baseSourceAdapter.js.map +1 -1
  60. package/lib/src/resolve/adapters/d360SourceAdapter.d.ts +86 -0
  61. package/lib/src/resolve/adapters/d360SourceAdapter.js +180 -0
  62. package/lib/src/resolve/adapters/d360SourceAdapter.js.map +1 -0
  63. package/lib/src/resolve/adapters/decomposedSourceAdapter.js +1 -1
  64. package/lib/src/resolve/adapters/decomposedSourceAdapter.js.map +1 -1
  65. package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js +1 -1
  66. package/lib/src/resolve/adapters/digitalExperienceSourceAdapter.js.map +1 -1
  67. package/lib/src/resolve/adapters/index.d.ts +1 -0
  68. package/lib/src/resolve/adapters/index.js +3 -1
  69. package/lib/src/resolve/adapters/index.js.map +1 -1
  70. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js +1 -1
  71. package/lib/src/resolve/adapters/matchingContentSourceAdapter.js.map +1 -1
  72. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js +1 -1
  73. package/lib/src/resolve/adapters/mixedContentSourceAdapter.js.map +1 -1
  74. package/lib/src/resolve/adapters/sourceAdapterFactory.js +4 -1
  75. package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
  76. package/lib/src/resolve/adapters/uiBundlesSourceAdapter.js +1 -1
  77. package/lib/src/resolve/adapters/uiBundlesSourceAdapter.js.map +1 -1
  78. package/lib/src/resolve/connectionResolver.js +1 -1
  79. package/lib/src/resolve/connectionResolver.js.map +1 -1
  80. package/lib/src/resolve/metadataResolver.js +1 -1
  81. package/lib/src/resolve/metadataResolver.js.map +1 -1
  82. package/lib/src/resolve/sourceComponent.js +1 -1
  83. package/lib/src/resolve/sourceComponent.js.map +1 -1
  84. package/lib/src/resolve/treeContainers.js +1 -1
  85. package/lib/src/resolve/treeContainers.js.map +1 -1
  86. package/lib/src/utils/filePathGenerator.js +1 -1
  87. package/lib/src/utils/filePathGenerator.js.map +1 -1
  88. package/lib/src/utils/path.js +1 -1
  89. package/lib/src/utils/path.js.map +1 -1
  90. package/messages/sdr.md +28 -0
  91. package/package.json +2 -2
@@ -0,0 +1,445 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listComponentsToDeploy = exports.expandD360ComponentSet = exports.getD360ComponentsToDelete = exports.resolveDataspaceQualifiedComponents = void 0;
4
+ /*
5
+ * Copyright 2026, Salesforce, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ const node_stream_1 = require("node:stream");
20
+ const lifecycle_1 = require("@salesforce/core/lifecycle");
21
+ const logger_1 = require("@salesforce/core/logger");
22
+ const messages_1 = require("@salesforce/core/messages");
23
+ const sfError_1 = require("@salesforce/core/sfError");
24
+ const metadataResolver_1 = require("../resolve/metadataResolver");
25
+ const sourceComponent_1 = require("../resolve/sourceComponent");
26
+ const treeContainers_1 = require("../resolve/treeContainers");
27
+ const d360SourceAdapter_1 = require("../resolve/adapters/d360SourceAdapter");
28
+ const componentSet_1 = require("./componentSet");
29
+ ;
30
+ const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_retry_limit_exceeded", "Exceeded maximum of %s consecutive retryable errors. Last error: %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_profile_singleton_conflict", "Profile %s has conflicting values for singleton tag %s in source paths %s and %s."], ["error_invalid_test_level", "TestLevel cannot be '%s' unless API version is %s or later"], ["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_transport_provider", "No transport provider is registered for '%s' required by %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_attempting_zip_slip", "Entry '%s' in static resource '%s' resolves to a location outside the extraction directory ('%s')."], ["error_static_resource_symlink", "Entry '%s' in static resource '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed because it can place files outside the extraction directory ('%s')."], ["error_retrieve_symlink", "File '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed during retrieve because it can place files outside the project directory ('%s')."], ["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>"], ["error_directory_name_path_traversal", "The directoryName '%s' for metadata type '%s' contains path segments that resolve outside the project root. Verify your registryCustomizations in sfdx-project.json do not contain directory traversal sequences."], ["error_write_path_outside_root", "The write path '%s' resolves outside the root destination '%s'. This may indicate a path traversal attempt via registryCustomizations."], ["warning_jwt_api_version", "This org uses JWT-based access tokens, which require API version 68.0 or later for SOAP metadata operations. The current API version is %s, so metadata listing may return empty or incomplete results. To resolve, update sourceApiVersion in sfdx-project.json to 68.0 or higher."], ["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>"], ["warning_d360_outside_root", "%s was skipped. A %s is only read from a d360 folder, as d360/%s/<name>.json or d360/dataspace/<dataspace>/%s/<name>.json"], ["warning_d360_peer_not_found", "%s deploys together with %s, but that component wasn't found in %s, so the deploy doesn't include it. Components that deploy together are only looked up in the same d360 folder."], ["warning_d360_peer_ignored", "%s deploys together with %s, but .forceignore excludes %s, so the deploy doesn't include it."], ["error_d360_outside_root", "%s: A %s must be stored under a d360 folder, as d360/%s/<name>.json or d360/dataspace/<dataspace>/%s/<name>.json"], ["error_d360_delete_unsupported", "D360 components can't be deleted: %s. Leave them out of the delete and try again."], ["error_d360_invalid_sidecar", "%s: The sidecar %s isn't valid JSON, so the components it deploys together with can't be read. Retrieve the component again to restore it."], ["error_d360_missing_sidecar", "%s: The %s sidecar %s is missing. A D360 component deploys as its .json file together with its .meta.json sidecar. Retrieve the component again to restore it."]]));
31
+ /**
32
+ * Every D360 component is stored as a PAIR of files: a payload `<name>.json` carrying the
33
+ * component's definition, and a `<name>.meta.json` sidecar carrying
34
+ * `{ componentType, componentName, dataspaceName, requires, deploysWith, dependsOn }`. This module is
35
+ * type-agnostic — it works off the sidecar convention alone, so it covers every D360 type
36
+ * without per-type logic.
37
+ *
38
+ * The sidecar declares TWO distinct relationships, and they mean different things.
39
+ * `deploysWith` is the list of components that travel together with this one as a single deployable
40
+ * unit — the deploy closure that {@link expandD360ComponentSet} walks. `dependsOn` is informational
41
+ * metadata about what this component references and is NOT used to build the closure.
42
+ *
43
+ * Each `deploysWith` entry names its target as `{ componentType, name, dataspaceName? }`, where
44
+ * `dataspaceName` is present only for a target inside a dataspace. Resolution matches it against the
45
+ * target's own sidecar, which every type carries regardless of how its payload is shaped. Some types
46
+ * (e.g. Data Lake Objects) live outside any dataspace, under `d360/<typeDir>/`, and are named without one.
47
+ *
48
+ * A component outside any dataspace can still be requested for one dataspace as `<dataspace>.<name>`,
49
+ * the same name retrieve accepts. Its closure is then limited to that dataspace.
50
+ */
51
+ /** The adapter strategy id shared by every D360 type. */
52
+ const D360_ADAPTER = 'd360';
53
+ const isD360Type = (type) => type.strategies?.adapter === D360_ADAPTER;
54
+ const isD360 = (component) => isD360Type(component.type);
55
+ /** A requested name with no local source behind it, e.g. one that still has to be resolved. */
56
+ const isNameOnly = (component) => !(component instanceof sourceComponent_1.SourceComponent);
57
+ /**
58
+ * Reads a JSON file next to a component. A missing file reads as undefined. A file that isn't valid JSON
59
+ * stops the deploy, since the components the sidecar names can't be known and would be left out.
60
+ */
61
+ const readJson = (component, path) => {
62
+ if (!path || !component.tree.exists(path)) {
63
+ return undefined;
64
+ }
65
+ try {
66
+ return JSON.parse(component.tree.readFileSync(path).toString());
67
+ }
68
+ catch {
69
+ throw new sfError_1.SfError(messages.getMessage('error_d360_invalid_sidecar', [`${component.type.name}:${component.fullName}`, path]), 'D360SidecarError');
70
+ }
71
+ };
72
+ /** The `<name>.meta.json` sidecar sitting next to the payload content file. */
73
+ const getSidecarPath = (component) => component.content?.replace(/\.json$/, d360SourceAdapter_1.METADATA_SIDECAR_SUFFIX);
74
+ const readSidecar = (component) => readJson(component, getSidecarPath(component));
75
+ /** Identifies a component across sets; the same component resolved into two sets is two objects. */
76
+ const memberKey = (component) => `${component.type.name}|${component.fullName}`;
77
+ /**
78
+ * The dataspaces a component outside any dataspace was requested for. A request of
79
+ * `DataLakeObject:default.myDlo__dll` for the local `myDlo__dll` yields `default`.
80
+ */
81
+ const getRequestedDataspaces = (requested, component) => [...requested]
82
+ .filter((member) => isNameOnly(member) && member.type.name === component.type.name)
83
+ .map((member) => (0, d360SourceAdapter_1.parseDataspaceQualifiedName)(member.fullName))
84
+ .filter((parsed) => parsed?.name === component.fullName)
85
+ .map((parsed) => parsed.dataspace);
86
+ /**
87
+ * Resolve `<dataspace>.<name>` requests for components stored outside any dataspace.
88
+ *
89
+ * Retrieve accepts such a name because the org resolves it. Locally the component is stored once,
90
+ * under its bare `<name>`, so the requested name matches no source. This adds the local component for
91
+ * each such request, without a manifest entry of its own, so the manifest keeps the requested name.
92
+ *
93
+ * @param componentSet The set being built; it already holds the requested names.
94
+ * @param fsPaths Package directories to resolve from.
95
+ * @param registry RegistryAccess used to resolve the components.
96
+ */
97
+ const resolveDataspaceQualifiedComponents = (componentSet, fsPaths, registry) => {
98
+ const include = new componentSet_1.ComponentSet(undefined, registry);
99
+ for (const member of componentSet) {
100
+ const parsed = isD360(member) && isNameOnly(member) ? (0, d360SourceAdapter_1.parseDataspaceQualifiedName)(member.fullName) : undefined;
101
+ if (parsed && componentSet.getSourceComponents(member).toArray().length === 0) {
102
+ include.add({ type: member.type, fullName: parsed.name });
103
+ }
104
+ }
105
+ if (include.size === 0) {
106
+ return;
107
+ }
108
+ for (const component of componentSet_1.ComponentSet.fromSource({ fsPaths, include, registry }).getSourceComponents()) {
109
+ // Requested by its bare name too: it is already in the set, with the manifest entry that name needs.
110
+ if (!componentSet.has(component)) {
111
+ componentSet.addWithoutManifestEntry(component);
112
+ }
113
+ }
114
+ };
115
+ exports.resolveDataspaceQualifiedComponents = resolveDataspaceQualifiedComponents;
116
+ /** Serves one file from memory and reads everything else from the tree it wraps. */
117
+ class OverlayTreeContainer extends treeContainers_1.TreeContainer {
118
+ base;
119
+ path;
120
+ data;
121
+ constructor(base, path, data) {
122
+ super();
123
+ this.base = base;
124
+ this.path = path;
125
+ this.data = data;
126
+ }
127
+ exists(fsPath) {
128
+ return fsPath === this.path || this.base.exists(fsPath);
129
+ }
130
+ isDirectory(fsPath) {
131
+ return fsPath !== this.path && this.base.isDirectory(fsPath);
132
+ }
133
+ readDirectory(fsPath) {
134
+ return this.base.readDirectory(fsPath);
135
+ }
136
+ readFile(fsPath) {
137
+ return fsPath === this.path ? Promise.resolve(this.data) : this.base.readFile(fsPath);
138
+ }
139
+ readFileSync(fsPath) {
140
+ return fsPath === this.path ? this.data : this.base.readFileSync(fsPath);
141
+ }
142
+ stream(fsPath) {
143
+ return fsPath === this.path ? node_stream_1.Readable.from([this.data]) : this.base.stream(fsPath);
144
+ }
145
+ }
146
+ /**
147
+ * A component outside every dataspace keeps one sidecar for all the dataspaces it was retrieved from,
148
+ * and its `deploysWith` mixes their peers. Deploying it for some of them sends a copy of the sidecar
149
+ * listing only the peers in those dataspaces or outside every dataspace, so the org isn't asked for
150
+ * peers the deploy doesn't include. The local file is left as is.
151
+ */
152
+ const withSidecarFor = (component, dataspaces) => {
153
+ // Not walked, or walked outside any dataspace too, so every peer is part of the deploy.
154
+ if (!dataspaces || dataspaces.has(undefined)) {
155
+ return component;
156
+ }
157
+ const path = getSidecarPath(component);
158
+ const sidecar = readSidecar(component);
159
+ if (!path || sidecar?.dataspaceName || !Array.isArray(sidecar?.deploysWith)) {
160
+ return component;
161
+ }
162
+ const deploysWith = sidecar.deploysWith.filter((ref) => !ref.dataspaceName || dataspaces.has(ref.dataspaceName));
163
+ if (deploysWith.length === sidecar.deploysWith.length) {
164
+ return component;
165
+ }
166
+ const data = Buffer.from(`${JSON.stringify({ ...sidecar, deploysWith }, null, 2)}\n`);
167
+ const { name, type, xml, parent, content, parentType } = component;
168
+ const copy = new sourceComponent_1.SourceComponent({ name, type, xml, parent, content, parentType }, new OverlayTreeContainer(component.tree, path, data));
169
+ copy.replacements = component.replacements;
170
+ return copy;
171
+ };
172
+ /** The dataspace a D360 component is stored in, from its path. Undefined outside every dataspace. */
173
+ const getDataspace = (component) => component.content ? (0, d360SourceAdapter_1.getD360Location)(component.content, component.type.directoryName)?.dataspace : undefined;
174
+ /**
175
+ * Finds the components a `deploysWith` entry points at, by path. The layout under a `d360` folder is
176
+ * fixed, so an entry's type, name and dataspace give the path of each candidate directly, and only those
177
+ * paths are checked. Peers are looked up in the same `d360` folder as the component that names them.
178
+ *
179
+ * A candidate is a peer when its sidecar names the same type and component as the entry, so a file
180
+ * without a matching sidecar is never pulled in.
181
+ *
182
+ * Returns undefined when the entry doesn't apply to the dataspace being walked. Otherwise returns the
183
+ * peers found, which is empty when the entry names nothing in the `d360` folder, and the candidate paths
184
+ * that `.forceignore` excludes, so a peer left out on purpose is reported as such.
185
+ */
186
+ const createPeerFinder = (registry) => {
187
+ const types = new Map();
188
+ const getType = (name) => {
189
+ if (!types.has(name)) {
190
+ types.set(name, registry.findType((type) => type.name === name && isD360Type(type)));
191
+ }
192
+ return types.get(name);
193
+ };
194
+ const resolved = new Map();
195
+ const ignored = new Set();
196
+ const resolveAt = (tree, path) => {
197
+ if (!resolved.has(path)) {
198
+ const resolver = new metadataResolver_1.MetadataResolver(registry, tree);
199
+ resolved.set(path, tree.exists(path) ? resolver.getComponentsFromPath(path).find(isD360) : undefined);
200
+ if (resolver.forceIgnoredPaths.has(path)) {
201
+ ignored.add(path);
202
+ }
203
+ }
204
+ return resolved.get(path);
205
+ };
206
+ // A reference that names its dataspace matches a peer in that dataspace, and also one outside every
207
+ // dataspace (a bare component serves every dataspace), but is skipped while walking another dataspace.
208
+ // Otherwise, while walking a dataspace, only peers in it or outside every dataspace qualify; with no
209
+ // dataspace to walk, all of them do.
210
+ return (from, ref, dataspace) => {
211
+ const { componentType, name, dataspaceName } = ref;
212
+ if (dataspace && dataspaceName && dataspaceName !== dataspace) {
213
+ return undefined;
214
+ }
215
+ const type = componentType ? getType(componentType) : undefined;
216
+ const location = from.content ? (0, d360SourceAdapter_1.getD360Location)(from.content, from.type.directoryName) : undefined;
217
+ if (!type || !name || !location) {
218
+ return { peers: [], ignored: [] };
219
+ }
220
+ const dataspaces = dataspaceName ?? dataspace;
221
+ const paths = [undefined, ...(dataspaces ? [dataspaces] : (0, d360SourceAdapter_1.getD360Dataspaces)(from.tree, location.root))].map((ds) => (0, d360SourceAdapter_1.getD360ContentPath)(location.root, type, name, ds));
222
+ return {
223
+ peers: paths
224
+ .map((path) => resolveAt(from.tree, path))
225
+ .filter((peer) => {
226
+ const sidecar = peer ? readSidecar(peer) : undefined;
227
+ return sidecar?.componentType === componentType && sidecar?.componentName === name;
228
+ }),
229
+ ignored: paths.filter((path) => ignored.has(path)),
230
+ };
231
+ };
232
+ };
233
+ /**
234
+ * A `deploysWith` entry the deploy leaves out, keyed so each is reported once, with its warning. Either
235
+ * `.forceignore` excludes the peer, or the entry names nothing next to the component. Peers are only
236
+ * looked up in the component's own `d360` folder, so one in another package directory isn't found either.
237
+ */
238
+ const missingPeer = (component, ref, ignored) => {
239
+ const location = component.content ? (0, d360SourceAdapter_1.getD360Location)(component.content, component.type.directoryName) : undefined;
240
+ const peer = `${ref.componentType ?? ''}:${[ref.dataspaceName, ref.name].filter(Boolean).join('.')}`;
241
+ const requester = `${component.type.name}:${component.fullName}`;
242
+ return [
243
+ `${requester}|${peer}`,
244
+ ignored.length
245
+ ? messages.getMessage('warning_d360_peer_ignored', [requester, peer, ignored.join(', ')])
246
+ : messages.getMessage('warning_d360_peer_not_found', [
247
+ requester,
248
+ peer,
249
+ location?.root ?? component.content ?? component.fullName,
250
+ ]),
251
+ ];
252
+ };
253
+ /** The missing peers already reported for a set, since a deploy can expand the same set more than once. */
254
+ const reported = new WeakMap();
255
+ const warnMissingPeers = (set, missing) => {
256
+ const done = reported.get(set) ?? new Set();
257
+ reported.set(set, done);
258
+ for (const [key, warning] of missing) {
259
+ if (!done.has(key)) {
260
+ done.add(key);
261
+ void lifecycle_1.Lifecycle.getInstance().emitWarning(warning);
262
+ }
263
+ }
264
+ };
265
+ /**
266
+ * The D360 components a set marks for delete, as `<type>:<fullName>`. D360 components can't be
267
+ * deleted through the Metadata API, so a deploy that would delete any of them is refused before it is sent.
268
+ */
269
+ const getD360ComponentsToDelete = (set) => [set.destructiveChangesPre, set.destructiveChangesPost]
270
+ .flatMap((byKey) => [...byKey.values()].flatMap((byPath) => [...byPath.values()]))
271
+ .filter(isD360)
272
+ .map((component) => `${component.type.name}:${component.fullName}`);
273
+ exports.getD360ComponentsToDelete = getD360ComponentsToDelete;
274
+ /** What the walked members add to the set, each with the sidecar for the dataspaces it was walked in. */
275
+ const toAdditions = (members, walkedIn) => {
276
+ const peers = [...members.keys()].filter((key) => !members.get(key)?.requested);
277
+ if (peers.length) {
278
+ logger_1.Logger.childFromRoot('expandD360ComponentSet').debug(`D360 deploy peers: ${peers.join(', ')}`);
279
+ }
280
+ const additions = [];
281
+ for (const [key, { component, inManifest, requested }] of members) {
282
+ const sent = withSidecarFor(component, walkedIn.get(key));
283
+ // A requested component is already in the set; it is only replaced when its sidecar is narrowed.
284
+ if (!requested || sent !== component) {
285
+ additions.push({ component: sent, inManifest });
286
+ }
287
+ }
288
+ return additions;
289
+ };
290
+ /**
291
+ * What a deploy adds to a set for its D360 components, without changing the set: the peers of the
292
+ * closure, and the requested components whose sidecar is narrowed to the dataspaces they are deployed for.
293
+ */
294
+ const getD360Additions = (requested, registry) => {
295
+ const findPeers = createPeerFinder(registry);
296
+ const inSet = new Set(requested.getSourceComponents().toArray().map(memberKey));
297
+ // Members are collected first and written once the walk is done, since how a component outside every
298
+ // dataspace is sent depends on all the dataspaces it was walked in.
299
+ const members = new Map();
300
+ const walkedIn = new Map();
301
+ const worklist = [];
302
+ // A component is walked once per dataspace, since it can be requested for several of them.
303
+ const visit = (component, dataspace) => {
304
+ const dataspaces = walkedIn.get(memberKey(component)) ?? new Set();
305
+ if (!dataspaces.has(dataspace)) {
306
+ walkedIn.set(memberKey(component), dataspaces.add(dataspace));
307
+ worklist.push({ component, dataspace });
308
+ }
309
+ };
310
+ // Seed with the D360 components to deploy.
311
+ for (const component of requested.getSourceComponents()) {
312
+ if (!isD360(component) || component.isMarkedForDelete() || members.has(memberKey(component))) {
313
+ continue;
314
+ }
315
+ const dataspaces = getDataspace(component) ? [] : getRequestedDataspaces(requested, component);
316
+ // Without a manifest entry and not requested for a dataspace, it is a peer an earlier expansion added.
317
+ // Its closure is already in the set, and walking it again could reach dataspaces it wasn't reached in.
318
+ if (!dataspaces.length && requested.isWithoutManifestEntry(component)) {
319
+ continue;
320
+ }
321
+ // Requested as `<dataspace>.<name>`: that name is in the manifest, so walk only those dataspaces.
322
+ members.set(memberKey(component), { component, inManifest: !dataspaces.length, requested: true });
323
+ dataspaces.forEach((dataspace) => visit(component, dataspace));
324
+ if (!dataspaces.length) {
325
+ visit(component, getDataspace(component));
326
+ }
327
+ }
328
+ // A `deploysWith` entry that names nothing in the `d360` folder, reported once the walk is done.
329
+ const missing = new Map();
330
+ // Walk deploysWith transitively, pulling in only the referenced D360 components.
331
+ while (worklist.length) {
332
+ const { component, dataspace } = worklist.pop();
333
+ for (const ref of readSidecar(component)?.deploysWith ?? []) {
334
+ const lookup = findPeers(component, ref, dataspace);
335
+ if (!lookup) {
336
+ continue;
337
+ }
338
+ const { peers, ignored } = lookup;
339
+ if (!peers.length) {
340
+ missing.set(...missingPeer(component, ref, ignored));
341
+ }
342
+ for (const peer of peers) {
343
+ const key = memberKey(peer);
344
+ // A peer the set already has (to deploy or to delete) keeps what the caller asked for it.
345
+ if (inSet.has(key) && !members.has(key)) {
346
+ continue;
347
+ }
348
+ if (!members.has(key)) {
349
+ // Peers travel as files only. The Metadata API deploys them as part of the requested
350
+ // component, so package.xml lists just what the user asked for, the same as on retrieve.
351
+ members.set(key, { component: peer, inManifest: false, requested: false });
352
+ }
353
+ // A peer outside every dataspace keeps walking in the dataspace it was reached from.
354
+ visit(peer, getDataspace(peer) ?? dataspace);
355
+ }
356
+ }
357
+ }
358
+ warnMissingPeers(requested, missing);
359
+ return toAdditions(members, walkedIn);
360
+ };
361
+ /**
362
+ * Add the deploy closure of the D360 components in a set to that set.
363
+ *
364
+ * The closure is the transitive closure of the requested components' `deploysWith` peers (resolved via
365
+ * `deploysWith` -> sidecar `componentType` + `componentName`). A peer named with a dataspace is pulled
366
+ * from that dataspace. Otherwise a peer that exists in several dataspaces is pulled from the requester's
367
+ * dataspace. A component outside any dataspace pulls peers from the dataspaces it was requested for, or
368
+ * from all of them when requested by its bare name.
369
+ *
370
+ * The set is changed in place, so everything else about it is kept: other components, components marked
371
+ * for delete, wildcards, and its API versions. Components marked for delete are not walked, and a peer
372
+ * already in the set is left as it is. Expanding a set that was already expanded adds nothing.
373
+ *
374
+ * Peers are found by path, in the same `d360` folder as the component that names them, so the project
375
+ * is not resolved as a whole.
376
+ *
377
+ * @param requested The components to deploy. The closure peers are added to it.
378
+ * @param registry RegistryAccess used to resolve the peers.
379
+ * @returns The same set, with the closure peers added. They are sent as files, without package.xml entries.
380
+ */
381
+ const expandD360ComponentSet = (requested, registry) => {
382
+ for (const { component, inManifest } of getD360Additions(requested, registry)) {
383
+ if (inManifest) {
384
+ requested.add(component);
385
+ }
386
+ else {
387
+ requested.addWithoutManifestEntry(component);
388
+ }
389
+ }
390
+ return requested;
391
+ };
392
+ exports.expandD360ComponentSet = expandD360ComponentSet;
393
+ /** Gives a component the name a deploy sends it under, keeping its files. */
394
+ const withFullName = (component, fullName) => {
395
+ const { type, xml, parent, content, parentType } = component;
396
+ const renamed = new sourceComponent_1.SourceComponent({ name: fullName, type, xml, parent, content, parentType }, component.tree);
397
+ renamed.replacements = component.replacements;
398
+ return renamed;
399
+ };
400
+ /**
401
+ * The components a deploy of a set sends, as it sends them. The set isn't changed.
402
+ *
403
+ * - D360 components come with the peers they deploy together with, as {@link expandD360ComponentSet} adds them.
404
+ * - A D360 component requested as `<dataspace>.<name>` is listed under that name, with the local file the
405
+ * deploy sends for it. That file isn't listed again under its bare name, unless the bare name was requested too.
406
+ *
407
+ * Every other member is listed as the set iterates it, so a set without D360 components lists the same.
408
+ *
409
+ * @param set The set to deploy.
410
+ * @param registry RegistryAccess used to resolve the peers.
411
+ * @returns The members of the set, with the additions and names a deploy uses.
412
+ */
413
+ const listComponentsToDeploy = (set, registry) => {
414
+ const additions = getD360Additions(set, registry);
415
+ const replaced = new Map(additions.map((addition) => [memberKey(addition.component), addition]));
416
+ const sent = [];
417
+ for (const member of set) {
418
+ const addition = replaced.get(memberKey(member));
419
+ sent.push(addition && member instanceof sourceComponent_1.SourceComponent ? addition.component : member);
420
+ replaced.delete(memberKey(member));
421
+ }
422
+ sent.push(...[...replaced.values()].map(({ component }) => component));
423
+ const withoutManifestEntry = new Set(additions.filter((addition) => !addition.inManifest).map((addition) => memberKey(addition.component)));
424
+ const hasNoManifestEntry = (component) => withoutManifestEntry.has(memberKey(component)) || set.isWithoutManifestEntry(component);
425
+ // A `<dataspace>.<name>` request is sent as the local file of `<name>`.
426
+ const servingRequest = new Set();
427
+ const named = sent.map((member) => {
428
+ const parsed = isD360(member) && isNameOnly(member) ? (0, d360SourceAdapter_1.parseDataspaceQualifiedName)(member.fullName) : undefined;
429
+ const local = parsed
430
+ ? sent.find((candidate) => candidate instanceof sourceComponent_1.SourceComponent &&
431
+ candidate.type.name === member.type.name &&
432
+ candidate.fullName === parsed.name)
433
+ : undefined;
434
+ if (!local) {
435
+ return member;
436
+ }
437
+ if (hasNoManifestEntry(local)) {
438
+ servingRequest.add(memberKey(local));
439
+ }
440
+ return withFullName(local, member.fullName);
441
+ });
442
+ return named.filter((member) => !(member instanceof sourceComponent_1.SourceComponent && servingRequest.has(memberKey(member))));
443
+ };
444
+ exports.listComponentsToDeploy = listComponentsToDeploy;
445
+ //# sourceMappingURL=d360Dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d360Dependencies.js","sourceRoot":"","sources":["../../../src/collections/d360Dependencies.ts"],"names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,CAAC;AACjH,CAAC,CAAC;AAtCW,QAAA,sBAAsB,0BAsCjC"}
@@ -2,3 +2,4 @@ export { LazyCollection } from './lazyCollection';
2
2
  export { ComponentSet, DeploySetOptions, RetrieveSetOptions } from './componentSet';
3
3
  export { PackageTypeMembers, PackageManifestObject, DestructiveChangesType, FromSourceOptions, FromManifestOptions, } from './types';
4
4
  export { ComponentSetBuilder, ComponentSetOptions } from './componentSetBuilder';
5
+ export { expandD360ComponentSet } from './d360Dependencies';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentSetBuilder = exports.DestructiveChangesType = exports.ComponentSet = exports.LazyCollection = void 0;
3
+ exports.expandD360ComponentSet = exports.ComponentSetBuilder = exports.DestructiveChangesType = exports.ComponentSet = exports.LazyCollection = void 0;
4
4
  /*
5
5
  * Copyright 2026, Salesforce, Inc.
6
6
  *
@@ -24,4 +24,6 @@ var types_1 = require("./types");
24
24
  Object.defineProperty(exports, "DestructiveChangesType", { enumerable: true, get: function () { return types_1.DestructiveChangesType; } });
25
25
  var componentSetBuilder_1 = require("./componentSetBuilder");
26
26
  Object.defineProperty(exports, "ComponentSetBuilder", { enumerable: true, get: function () { return componentSetBuilder_1.ComponentSetBuilder; } });
27
+ var d360Dependencies_1 = require("./d360Dependencies");
28
+ Object.defineProperty(exports, "expandD360ComponentSet", { enumerable: true, get: function () { return d360Dependencies_1.expandD360ComponentSet; } });
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collections/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,+CAAoF;AAA3E,4GAAA,YAAY,OAAA;AACrB,iCAMiB;AAHf,+GAAA,sBAAsB,OAAA;AAIxB,6DAAiF;AAAxE,0HAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collections/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,+CAAoF;AAA3E,4GAAA,YAAY,OAAA;AACrB,iCAMiB;AAHf,+GAAA,sBAAsB,OAAA;AAIxB,6DAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAC5B,uDAA4D;AAAnD,0HAAA,sBAAsB,OAAA"}
@@ -27,7 +27,7 @@ const defaultMetadataTransformer_1 = require("../transformers/defaultMetadataTra
27
27
  const streams_1 = require("../streams");
28
28
  const transactionFinalizer_1 = require("./transactionFinalizer");
29
29
  ;
30
- const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_retry_limit_exceeded", "Exceeded maximum of %s consecutive retryable errors. Last error: %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_profile_singleton_conflict", "Profile %s has conflicting values for singleton tag %s in source paths %s and %s."], ["error_invalid_test_level", "TestLevel cannot be '%s' unless API version is %s or later"], ["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_transport_provider", "No transport provider is registered for '%s' required by %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_attempting_zip_slip", "Entry '%s' in static resource '%s' resolves to a location outside the extraction directory ('%s')."], ["error_static_resource_symlink", "Entry '%s' in static resource '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed because it can place files outside the extraction directory ('%s')."], ["error_retrieve_symlink", "File '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed during retrieve because it can place files outside the project directory ('%s')."], ["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>"], ["error_directory_name_path_traversal", "The directoryName '%s' for metadata type '%s' contains path segments that resolve outside the project root. Verify your registryCustomizations in sfdx-project.json do not contain directory traversal sequences."], ["error_write_path_outside_root", "The write path '%s' resolves outside the root destination '%s'. This may indicate a path traversal attempt via registryCustomizations."], ["warning_jwt_api_version", "This org uses JWT-based access tokens, which require API version 68.0 or later for SOAP metadata operations. The current API version is %s, so metadata listing may return empty or incomplete results. To resolve, update sourceApiVersion in sfdx-project.json to 68.0 or higher."], ["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>"]]));
30
+ const messages = new messages_1.Messages('@salesforce/source-deploy-retrieve', 'sdr', new Map([["md_request_fail", "Metadata API request failed: %s"], ["error_retry_limit_exceeded", "Exceeded maximum of %s consecutive retryable errors. Last error: %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_profile_singleton_conflict", "Profile %s has conflicting values for singleton tag %s in source paths %s and %s."], ["error_invalid_test_level", "TestLevel cannot be '%s' unless API version is %s or later"], ["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_transport_provider", "No transport provider is registered for '%s' required by %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_attempting_zip_slip", "Entry '%s' in static resource '%s' resolves to a location outside the extraction directory ('%s')."], ["error_static_resource_symlink", "Entry '%s' in static resource '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed because it can place files outside the extraction directory ('%s')."], ["error_retrieve_symlink", "File '%s' would be written through a symbolic link ('%s'). Writing through symbolic links is not allowed during retrieve because it can place files outside the project directory ('%s')."], ["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>"], ["error_directory_name_path_traversal", "The directoryName '%s' for metadata type '%s' contains path segments that resolve outside the project root. Verify your registryCustomizations in sfdx-project.json do not contain directory traversal sequences."], ["error_write_path_outside_root", "The write path '%s' resolves outside the root destination '%s'. This may indicate a path traversal attempt via registryCustomizations."], ["warning_jwt_api_version", "This org uses JWT-based access tokens, which require API version 68.0 or later for SOAP metadata operations. The current API version is %s, so metadata listing may return empty or incomplete results. To resolve, update sourceApiVersion in sfdx-project.json to 68.0 or higher."], ["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>"], ["warning_d360_outside_root", "%s was skipped. A %s is only read from a d360 folder, as d360/%s/<name>.json or d360/dataspace/<dataspace>/%s/<name>.json"], ["warning_d360_peer_not_found", "%s deploys together with %s, but that component wasn't found in %s, so the deploy doesn't include it. Components that deploy together are only looked up in the same d360 folder."], ["warning_d360_peer_ignored", "%s deploys together with %s, but .forceignore excludes %s, so the deploy doesn't include it."], ["error_d360_outside_root", "%s: A %s must be stored under a d360 folder, as d360/%s/<name>.json or d360/dataspace/<dataspace>/%s/<name>.json"], ["error_d360_delete_unsupported", "D360 components can't be deleted: %s. Leave them out of the delete and try again."], ["error_d360_invalid_sidecar", "%s: The sidecar %s isn't valid JSON, so the components it deploys together with can't be read. Retrieve the component again to restore it."], ["error_d360_missing_sidecar", "%s: The %s sidecar %s is missing. A D360 component deploys as its .json file together with its .meta.json sidecar. Retrieve the component again to restore it."]]));
31
31
  class ProfileMetadataFinalizer extends transactionFinalizer_1.ConvertTransactionFinalizer {
32
32
  transactionState = new Map();
33
33
  sourceProfiles = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"profileMetadataFinalizer.js","sourceRoot":"","sources":["../../../../src/convert/convertContext/profileMetadataFinalizer.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,qCAAqC;AACrC,yCAAoC;AACpC,yCAA8C;AAC9C,wDAAqD;AACrD,sDAAmD;AAEnD,yCAAsD;AACtD,2CAAgD;AAChD,2FAA+E;AAC/E,wCAAqC;AAErC,iEAAqE;;AAGrE,MAAM,QAAQ,OAAG,mBAAQ,CAAc,oCAAoC,EAAE,KAAK,87OAAC,CAAC;AAYpF,MAAa,wBAAyB,SAAQ,kDAAyC;IAC9E,gBAAgB,GAAiB,IAAI,GAAG,EAAE,CAAC;IAC1C,cAAc,GAAG,IAAI,GAAG,EAA8B,CAAC;IAExD,KAAK,CAAC,G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