@salesforce/source-deploy-retrieve 12.10.4-dev-17431548.0 → 12.10.4

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.
@@ -8,18 +8,8 @@ export type ManifestOption = {
8
8
  destructiveChangesPost?: string;
9
9
  };
10
10
  type MetadataOption = {
11
- /**
12
- * Array of metadata type:name pairs to include in the ComponentSet.
13
- */
14
11
  metadataEntries: string[];
15
- /**
16
- * Array of filesystem directory paths to search for local metadata to include in the ComponentSet.
17
- */
18
12
  directoryPaths: string[];
19
- /**
20
- * Array of metadata type:name pairs to exclude from the ComponentSet.
21
- */
22
- excludedEntries?: string[];
23
13
  /**
24
14
  * Array of metadata type:name pairs to delete before the deploy. Use of wildcards is not allowed.
25
15
  */
@@ -54,7 +44,6 @@ export declare class ComponentSetBuilder {
54
44
  * @param options: options for creating a ComponentSet
55
45
  */
56
46
  static build(options: ComponentSetOptions): Promise<ComponentSet>;
57
- private static resolveOrgComponents;
58
47
  }
59
48
  type MetadataTypeAndMetadataName = {
60
49
  type: MetadataType;
@@ -44,13 +44,6 @@ const resolve_1 = require("../resolve");
44
44
  const types_1 = require("./types");
45
45
  ;
46
46
  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>"]]));
47
- let logger;
48
- const getLogger = () => {
49
- if (!logger) {
50
- logger = core_1.Logger.childFromRoot('ComponentSetBuilder');
51
- }
52
- return logger;
53
- };
54
47
  class ComponentSetBuilder {
55
48
  /**
56
49
  * Builds a ComponentSet that can be used for source conversion,
@@ -61,11 +54,12 @@ class ComponentSetBuilder {
61
54
  * @param options: options for creating a ComponentSet
62
55
  */
63
56
  static async build(options) {
57
+ const logger = core_1.Logger.childFromRoot('componentSetBuilder');
64
58
  let componentSet;
65
59
  const { sourcepath, manifest, metadata, packagenames, org } = options;
66
60
  const registry = new registryAccess_1.RegistryAccess(undefined, options.projectDir);
67
61
  if (sourcepath) {
68
- getLogger().debug(`Building ComponentSet from sourcepath: ${sourcepath.join(', ')}`);
62
+ logger.debug(`Building ComponentSet from sourcepath: ${sourcepath.join(', ')}`);
69
63
  const fsPaths = sourcepath.map(validateAndResolvePath);
70
64
  componentSet = componentSet_1.ComponentSet.fromSource({
71
65
  fsPaths,
@@ -74,14 +68,14 @@ class ComponentSetBuilder {
74
68
  }
75
69
  // Return empty ComponentSet and use packageNames in the connection via `.retrieve` options
76
70
  if (packagenames) {
77
- getLogger().debug(`Building ComponentSet for packagenames: ${packagenames.toString()}`);
71
+ logger.debug(`Building ComponentSet for packagenames: ${packagenames.toString()}`);
78
72
  componentSet ??= new componentSet_1.ComponentSet(undefined, registry);
79
73
  }
80
74
  // Resolve manifest with source in package directories.
81
75
  if (manifest) {
82
- getLogger().debug(`Building ComponentSet from manifest: ${manifest.manifestPath}`);
76
+ logger.debug(`Building ComponentSet from manifest: ${manifest.manifestPath}`);
83
77
  assertFileExists(manifest.manifestPath);
84
- getLogger().debug(`Searching in packageDir: ${manifest.directoryPaths.join(', ')} for matching metadata`);
78
+ logger.debug(`Searching in packageDir: ${manifest.directoryPaths.join(', ')} for matching metadata`);
85
79
  componentSet = await componentSet_1.ComponentSet.fromManifest({
86
80
  manifestPath: manifest.manifestPath,
87
81
  resolveSourcePaths: manifest.directoryPaths,
@@ -91,10 +85,9 @@ class ComponentSetBuilder {
91
85
  registry,
92
86
  });
93
87
  }
94
- // Resolve metadata entries with source in package directories, unless we are building a ComponentSet
95
- // from metadata in an org.
96
- if (metadata && !org) {
97
- getLogger().debug(`Building ComponentSet from metadata: ${metadata.metadataEntries.toString()}`);
88
+ // Resolve metadata entries with source in package directories.
89
+ if (metadata) {
90
+ logger.debug(`Building ComponentSet from metadata: ${metadata.metadataEntries.toString()}`);
98
91
  const directoryPaths = metadata.directoryPaths;
99
92
  componentSet ??= new componentSet_1.ComponentSet(undefined, registry);
100
93
  const componentSetFilter = new componentSet_1.ComponentSet(undefined, registry);
@@ -104,7 +97,7 @@ class ComponentSetBuilder {
104
97
  .flatMap(typeAndNameToMetadataComponents({ directoryPaths, registry }))
105
98
  .map(addToComponentSet(componentSet))
106
99
  .map(addToComponentSet(componentSetFilter));
107
- getLogger().debug(`Searching for matching metadata in directories: ${directoryPaths.join(', ')}`);
100
+ logger.debug(`Searching for matching metadata in directories: ${directoryPaths.join(', ')}`);
108
101
  // add destructive changes if defined. Because these are deletes, all entries
109
102
  // are resolved to SourceComponents
110
103
  if (metadata.destructiveEntriesPre) {
@@ -144,37 +137,26 @@ class ComponentSetBuilder {
144
137
  // Resolve metadata entries with an org connection
145
138
  if (org) {
146
139
  componentSet ??= new componentSet_1.ComponentSet(undefined, registry);
147
- const orgComponentSet = await this.resolveOrgComponents(registry, org, metadata);
148
- orgComponentSet.toArray().map(addToComponentSet(componentSet));
140
+ logger.debug(`Building ComponentSet from targetUsername: ${org.username} ${metadata ? `filtered by metadata: ${metadata.metadataEntries.toString()}` : ''}`);
141
+ const mdMap = metadata
142
+ ? buildMapFromComponents(metadata.metadataEntries.map((0, exports.entryToTypeAndName)(registry)))
143
+ : new Map();
144
+ const fromConnection = await componentSet_1.ComponentSet.fromConnection({
145
+ usernameOrConnection: (await core_1.StateAggregator.getInstance()).aliases.getUsername(org.username) ?? org.username,
146
+ componentFilter: getOrgComponentFilter(org, mdMap, metadata),
147
+ metadataTypes: mdMap.size ? Array.from(mdMap.keys()) : undefined,
148
+ registry,
149
+ });
150
+ fromConnection.toArray().map(addToComponentSet(componentSet));
149
151
  }
150
152
  // there should have been a componentSet created by this point.
151
153
  componentSet = assertComponentSetIsNotUndefined(componentSet);
152
154
  componentSet.apiVersion ??= options.apiversion;
153
155
  componentSet.sourceApiVersion ??= options.sourceapiversion;
154
156
  componentSet.projectDirectory = options.projectDir;
155
- logComponents(componentSet);
157
+ logComponents(logger, componentSet);
156
158
  return componentSet;
157
159
  }
158
- static async resolveOrgComponents(registry, org, metadata) {
159
- let mdMap = new Map();
160
- let debugMsg = `Building ComponentSet from metadata in an org using targetUsername: ${org.username}`;
161
- if (metadata) {
162
- if (metadata.metadataEntries?.length) {
163
- debugMsg += ` filtering on metadata: ${metadata.metadataEntries.toString()}`;
164
- }
165
- if (metadata.excludedEntries?.length) {
166
- debugMsg += ` excluding metadata: ${metadata.excludedEntries.toString()}`;
167
- }
168
- mdMap = buildMapFromMetadata(metadata, registry);
169
- }
170
- getLogger().debug(debugMsg);
171
- return componentSet_1.ComponentSet.fromConnection({
172
- usernameOrConnection: (await core_1.StateAggregator.getInstance()).aliases.getUsername(org.username) ?? org.username,
173
- componentFilter: getOrgComponentFilter(org, mdMap, metadata),
174
- metadataTypes: mdMap.size ? Array.from(mdMap.keys()) : undefined,
175
- registry,
176
- });
177
- }
178
160
  }
179
161
  exports.ComponentSetBuilder = ComponentSetBuilder;
180
162
  const addToComponentSet = (cs, deletionType) => (cmp) => {
@@ -202,19 +184,19 @@ const assertNoWildcardInDestructiveEntries = (mdEntry) => {
202
184
  };
203
185
  /** This is only for debug output of matched files based on the command flags.
204
186
  * It will log up to 20 file matches. */
205
- const logComponents = (componentSet) => {
206
- getLogger().debug(`Matching metadata files (${componentSet.size}):`);
187
+ const logComponents = (logger, componentSet) => {
188
+ logger.debug(`Matching metadata files (${componentSet.size}):`);
207
189
  const components = componentSet.getSourceComponents().toArray();
208
190
  components
209
191
  .slice(0, 20)
210
192
  .map((cmp) => cmp.content ?? cmp.xml ?? cmp.fullName)
211
- .map((m) => getLogger().debug(m));
193
+ .map((m) => logger.debug(m));
212
194
  if (components.length > 20)
213
- getLogger().debug(`(showing 20 of ${componentSet.size} matches)`);
214
- getLogger().debug(`ComponentSet apiVersion = ${componentSet.apiVersion ?? '<not set>'}`);
215
- getLogger().debug(`ComponentSet sourceApiVersion = ${componentSet.sourceApiVersion ?? '<not set>'}`);
195
+ logger.debug(`(showing 20 of ${componentSet.size} matches)`);
196
+ logger.debug(`ComponentSet apiVersion = ${componentSet.apiVersion ?? '<not set>'}`);
197
+ logger.debug(`ComponentSet sourceApiVersion = ${componentSet.sourceApiVersion ?? '<not set>'}`);
216
198
  };
217
- const getOrgComponentFilter = (org, mdMap, metadata) => metadata?.metadataEntries?.length
199
+ const getOrgComponentFilter = (org, mdMap, metadata) => metadata
218
200
  ? (component) => {
219
201
  if (component.type && component.fullName) {
220
202
  const mdMapEntry = mdMap.get(component.type);
@@ -259,31 +241,12 @@ metadataName?.includes('*') && metadataName.length > 1 && !metadataName.includes
259
241
  // using minimatch versus RegExp provides better (more expected) matching results
260
242
  .filter((cs) => (0, minimatch_1.minimatch)(cs.fullName, metadataName))
261
243
  : [{ type, fullName: metadataName }];
262
- const buildMapFromMetadata = (mdOption, registry) => {
244
+ // TODO: use Map.groupBy when it's available
245
+ const buildMapFromComponents = (components) => {
263
246
  const mdMap = new Map();
264
- // Add metadata type entries we were told to include
265
- if (mdOption.metadataEntries?.length) {
266
- mdOption.metadataEntries.map((0, exports.entryToTypeAndName)(registry)).map((cmp) => {
267
- mdMap.set(cmp.type.name, [...(mdMap.get(cmp.type.name) ?? []), cmp.metadataName]);
268
- });
269
- }
270
- // Build an array of excluded types from the options
271
- if (mdOption.excludedEntries?.length) {
272
- const excludedTypes = [];
273
- mdOption.excludedEntries.map((0, exports.entryToTypeAndName)(registry)).map((cmp) => {
274
- if (cmp.metadataName === '*') {
275
- excludedTypes.push(cmp.type.name);
276
- }
277
- });
278
- if (mdMap.size === 0) {
279
- // we are excluding specific metadata types from all supported types
280
- Object.values(registry.getRegistry().types).map((t) => {
281
- if (!excludedTypes.includes(t.name)) {
282
- mdMap.set(t.name, []);
283
- }
284
- });
285
- }
286
- }
247
+ components.map((cmp) => {
248
+ mdMap.set(cmp.type.name, [...(mdMap.get(cmp.type.name) ?? []), cmp.metadataName]);
249
+ });
287
250
  return mdMap;
288
251
  };
289
252
  //# sourceMappingURL=componentSetBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentSetBuilder.js","sourceRoot":"","sources":["../../../src/collections/componentSetBuilder.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,2CAA8E;AAC9E,8DAA6B;AAC7B,yCAAsC;AAEtC,gEAA6D;AAC7D,8DAA2D;AAC3D,+DAA4D;AAG5D,wCAA8C;AAC9C,mCAAwE;;AAGxE,MAAM,QAAQ,OAAG,eAAQ,CAAc,oCAAoC,EAAE,KAAK,qyLAAC,CAAC;AAmDpF,IAAI,MAAc,CAAC;AACnB,MAAM,SAAS,GAAG,GAAW,EAAE;IAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,GAAG,aAAM,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAa,mBAAmB;IAC9B;;;;;;;OAOG;IAEI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAA4B;QACpD,IAAI,YAAsC,CAAC;QAE3C,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QACtE,MAAM,QAAQ,GAAG,IAAI,+BAAc,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,UAAU,EAAE,CAAC;YACf,SAAS,EAAE,CAAC,KAAK,CAAC,0CAA0C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrF,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAA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B,GAAG,CAAC,UAAyC,EAAe,EAAE;IACxF,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAoB,CAAC;IACvD,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACrB,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACpF,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
@@ -7,17 +7,12 @@ export type ResolveConnectionResult = {
7
7
  apiVersion: string;
8
8
  };
9
9
  /**
10
- * Resolve MetadataComponents from an org connection by making listMetadata API calls
11
- * for the specified metadata types (`mdTypes` arg) or all supported metadata types
12
- * in the registry.
10
+ * Resolve MetadataComponents from an org connection
13
11
  */
14
12
  export declare class ConnectionResolver {
15
13
  private connection;
16
14
  private registry;
17
15
  private mdTypeNames;
18
- private requestBatchSize;
19
16
  constructor(connection: Connection, registry?: RegistryAccess, mdTypes?: string[]);
20
17
  resolve(componentFilter?: (component: Partial<FileProperties>) => boolean): Promise<ResolveConnectionResult>;
21
- private sendBatchedRequests;
22
- private sendBatchedQueries;
23
18
  }
@@ -7,36 +7,15 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ConnectionResolver = void 0;
10
- const node_util_1 = require("node:util");
11
10
  const core_1 = require("@salesforce/core");
12
11
  const ts_types_1 = require("@salesforce/ts-types");
13
- const kit_1 = require("@salesforce/kit");
14
12
  const registryAccess_1 = require("../registry/registryAccess");
15
13
  const standardvalueset_1 = require("../registry/standardvalueset");
16
14
  const path_1 = require("../utils/path");
17
15
  ;
18
16
  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>"]]));
19
- let requestCount = 0;
20
- let shouldQueryStandardValueSets = false;
21
- let logger;
22
- const getLogger = () => {
23
- if (!logger) {
24
- logger = core_1.Logger.childFromRoot('ConnectionResolver');
25
- }
26
- return logger;
27
- };
28
- // *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
29
- //
30
- // NOTE: The `listMetadata` API supports passing 3 metadata types per call but we
31
- // can't do this because if 1 of the 3 types is not supported by the org (or
32
- // errors in some way) we don't get any data back about the other types. This
33
- // means we are forced to make listMetadata calls for individual metadata types.
34
- //
35
- // *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
36
17
  /**
37
- * Resolve MetadataComponents from an org connection by making listMetadata API calls
38
- * for the specified metadata types (`mdTypes` arg) or all supported metadata types
39
- * in the registry.
18
+ * Resolve MetadataComponents from an org connection
40
19
  */
41
20
  class ConnectionResolver {
42
21
  connection;
@@ -44,7 +23,6 @@ class ConnectionResolver {
44
23
  // Array of metadata type names to use for listMembers. By default it includes
45
24
  // all types defined in the registry.
46
25
  mdTypeNames;
47
- requestBatchSize;
48
26
  constructor(connection, registry = new registryAccess_1.RegistryAccess(), mdTypes) {
49
27
  this.connection = connection;
50
28
  this.registry = registry;
@@ -52,21 +30,14 @@ class ConnectionResolver {
52
30
  ? // ensure the types passed in are valid per the registry
53
31
  mdTypes.filter((t) => this.registry.getTypeByName(t))
54
32
  : Object.values(this.registry.getRegistry().types).map((t) => t.name);
55
- // To limit the number of concurrent requests, batch them per an env var.
56
- // By default there is no batching.
57
- this.requestBatchSize = kit_1.env.getNumber('SF_LIST_METADATA_BATCH_SIZE', -1);
58
33
  }
59
34
  async resolve(componentFilter = (component) => (0, ts_types_1.isPlainObject)(component)) {
60
- // Aggregate array of metadata records in the org
61
35
  const Aggregator = [];
62
- // Folder component type names. Each array value has the form [type::folder]
63
- const folderComponentTypes = [];
64
- // Child component type names
65
- const childComponentTypes = new Set();
36
+ const childrenPromises = [];
37
+ const componentTypes = new Set();
66
38
  const lifecycle = core_1.Lifecycle.getInstance();
67
- // Make batched listMetadata requests for top level metadata
68
- const listMetadataResponses = await this.sendBatchedRequests(this.mdTypeNames);
69
- for (const component of listMetadataResponses) {
39
+ const componentFromDescribe = (await Promise.all(this.mdTypeNames.map((type) => listMembers(this.registry)(this.connection)({ type })))).flat();
40
+ for (const component of componentFromDescribe) {
70
41
  let componentType;
71
42
  if (isNonEmptyString(component.type)) {
72
43
  componentType = this.registry.getTypeByName(component.type);
@@ -91,28 +62,25 @@ class ConnectionResolver {
91
62
  throw new core_1.SfError(messages.getMessage('error_could_not_infer_type', [component.fullName]), 'TypeInferenceError', [messages.getMessage('suggest_type_more_suggestions')]);
92
63
  }
93
64
  Aggregator.push(component);
65
+ componentTypes.add(componentType);
94
66
  if (componentType.folderContentType) {
95
- const type = this.registry.getTypeByName(componentType.folderContentType).name;
96
- const folder = component.fullName;
97
- folderComponentTypes.push(`${type}::${folder}`);
67
+ childrenPromises.push(listMembers(this.registry)(this.connection)({
68
+ type: this.registry.getTypeByName(componentType.folderContentType).name,
69
+ folder: component.fullName,
70
+ }));
98
71
  }
72
+ }
73
+ for (const componentType of componentTypes) {
99
74
  const childTypes = componentType.children?.types;
100
75
  if (childTypes) {
101
- Object.values(childTypes).map((childType) => childComponentTypes.add(childType.name));
76
+ Object.values(childTypes).map((childType) => {
77
+ childrenPromises.push(listMembers(this.registry)(this.connection)({ type: childType.name }));
78
+ });
102
79
  }
103
80
  }
104
- if (folderComponentTypes.length) {
105
- Aggregator.push(...(await this.sendBatchedRequests(folderComponentTypes)));
106
- }
107
- if (childComponentTypes.size > 0) {
108
- Aggregator.push(...(await this.sendBatchedRequests(Array.from(childComponentTypes))));
81
+ for await (const childrenResult of childrenPromises) {
82
+ Aggregator.push(...childrenResult);
109
83
  }
110
- // If we need to query the list of StandardValueSets (i.e., it's included in this.mdTypeNames)
111
- // make those requests now.
112
- if (shouldQueryStandardValueSets) {
113
- Aggregator.push(...(await this.sendBatchedQueries()));
114
- }
115
- getLogger().debug(`https request count = ${requestCount}`);
116
84
  return {
117
85
  components: Aggregator.filter(componentFilter).map((component) => ({
118
86
  fullName: (0, ts_types_1.ensureString)(component.fullName, `Component fullName was not set for ${component.fileName ?? '<missing filename>'}`),
@@ -121,109 +89,40 @@ class ConnectionResolver {
121
89
  apiVersion: this.connection.getApiVersion(),
122
90
  };
123
91
  }
124
- // Send batched listMetadata requests based on the SF_LIST_METADATA_BATCH_SIZE env var.
125
- async sendBatchedRequests(listMdQueries) {
126
- const listMetadataResponses = [];
127
- let listMetadataRequests = [];
128
- const sendIt = async () => {
129
- const requestBatch = (await Promise.all(listMetadataRequests)).flat();
130
- listMetadataResponses.push(...requestBatch);
131
- };
132
- // Make batched listMetadata requests
133
- for (let i = 0; i < listMdQueries.length; i++) {
134
- const q = listMdQueries[i].split('::');
135
- const listMdQuery = { type: q[0] };
136
- if (q[1]) {
137
- listMdQuery.folder = q[1];
138
- }
139
- listMetadataRequests.push(listMembers(this.registry)(this.connection)(listMdQuery));
140
- if (this.requestBatchSize > 0 && i !== 0 && i % this.requestBatchSize === 0) {
141
- getLogger().debug(`Awaiting listMetadata requests ${i - this.requestBatchSize + 1} - ${i}`);
142
- // We are deliberately awaiting the results of batches to throttle requests.
143
- // eslint-disable-next-line no-await-in-loop
144
- await sendIt();
145
- // Reset the requests for the next batch
146
- listMetadataRequests = [];
147
- }
148
- // Always flush the last batch; or send non-batched requests
149
- if (i === listMdQueries.length - 1) {
150
- getLogger().debug('Awaiting listMetadata requests');
151
- // We are deliberately awaiting the results of batches to throttle requests.
152
- // eslint-disable-next-line no-await-in-loop
153
- await sendIt();
154
- }
155
- }
156
- return listMetadataResponses;
157
- }
158
- // Send batched queries for a known subset of StandardValueSets based on the
159
- // SF_LIST_METADATA_BATCH_SIZE env var.
160
- async sendBatchedQueries() {
161
- const mdType = this.registry.getTypeByName('StandardValueSet');
162
- const queryResponses = [];
163
- let queryRequests = [];
164
- const sendIt = async () => {
165
- const requestBatch = (await Promise.all(queryRequests)).flat();
166
- queryResponses.push(...requestBatch.filter((rb) => !!rb));
167
- };
168
- // Make batched query requests
169
- const svsNames = standardvalueset_1.standardValueSet.fullnames;
170
- for (let i = 0; i < svsNames.length; i++) {
171
- const svsFullName = svsNames[i];
172
- queryRequests.push(querySvs(this.connection)(svsFullName, mdType));
173
- if (this.requestBatchSize > 0 && i !== 0 && i % this.requestBatchSize === 0) {
174
- getLogger().debug(`Awaiting StandardValueSet queries ${i - this.requestBatchSize + 1} - ${i}`);
175
- // We are deliberately awaiting the results of batches to throttle requests.
176
- // eslint-disable-next-line no-await-in-loop
177
- await sendIt();
178
- // Reset the requests for the next batch
179
- queryRequests = [];
180
- }
181
- // Always flush the last batch; or send non-batched requests
182
- if (i === svsNames.length - 1) {
183
- getLogger().debug('Awaiting StandardValueSet queries');
184
- // We are deliberately awaiting the results of batches to throttle requests.
185
- // eslint-disable-next-line no-await-in-loop
186
- await sendIt();
187
- }
188
- }
189
- return queryResponses;
190
- }
191
92
  }
192
93
  exports.ConnectionResolver = ConnectionResolver;
193
- const querySvs = (connection) => async (svsFullName, svsType) => {
194
- try {
195
- requestCount++;
196
- getLogger().debug(`StandardValueSet query for ${svsFullName}`);
197
- const standardValueSetRecord = await connection.singleRecordQuery(`SELECT Id, MasterLabel, Metadata FROM StandardValueSet WHERE MasterLabel = '${svsFullName}'`, { tooling: true });
198
- if (standardValueSetRecord.Metadata.standardValue.length) {
199
- return {
200
- fullName: standardValueSetRecord.MasterLabel,
201
- fileName: `${svsType.directoryName}/${standardValueSetRecord.MasterLabel}.${svsType.suffix ?? ''}`,
202
- type: svsType.name,
203
- };
204
- }
205
- }
206
- catch (error) {
207
- const err = core_1.SfError.wrap(error);
208
- getLogger().debug(`[${svsFullName}] ${err.message}`);
209
- }
210
- };
211
94
  const listMembers = (registry) => (connection) => async (query) => {
212
95
  const mdType = registry.getTypeByName(query.type);
213
- // Workaround because metadata.list({ type: 'StandardValueSet' }) returns [].
214
- // Query for a subset of known StandardValueSets after all listMetadata calls.
96
+ // Workaround because metadata.list({ type: 'StandardValueSet' }) returns []
215
97
  if (mdType.name === registry.getRegistry().types.standardvalueset.name) {
216
- shouldQueryStandardValueSets = true;
217
- return [];
98
+ const members = [];
99
+ const standardValueSetPromises = standardvalueset_1.standardValueSet.fullnames.map(async (standardValueSetFullName) => {
100
+ try {
101
+ const standardValueSetRecord = await connection.singleRecordQuery(`SELECT Id, MasterLabel, Metadata FROM StandardValueSet WHERE MasterLabel = '${standardValueSetFullName}'`, { tooling: true });
102
+ return (standardValueSetRecord.Metadata.standardValue.length && {
103
+ fullName: standardValueSetRecord.MasterLabel,
104
+ fileName: `${mdType.directoryName}/${standardValueSetRecord.MasterLabel}.${mdType.suffix ?? ''}`,
105
+ type: mdType.name,
106
+ });
107
+ }
108
+ catch (err) {
109
+ const logger = core_1.Logger.childFromRoot('ConnectionResolver.listMembers');
110
+ logger.debug(err);
111
+ }
112
+ });
113
+ for await (const standardValueSetResult of standardValueSetPromises) {
114
+ if (standardValueSetResult) {
115
+ members.push(standardValueSetResult);
116
+ }
117
+ }
118
+ return members;
218
119
  }
219
120
  try {
220
- requestCount++;
221
- getLogger().debug(`listMetadata for ${(0, node_util_1.inspect)(query)}`);
222
121
  return (await connection.metadata.list(query)).map(inferFilenamesFromType(mdType));
223
122
  }
224
123
  catch (error) {
225
- const err = core_1.SfError.wrap(error);
226
- getLogger().debug(`[${mdType.name}] ${err.message}`);
124
+ const logger = core_1.Logger.childFromRoot('ConnectionResolver.listMembers');
125
+ logger.debug(error.message);
227
126
  return [];
228
127
  }
229
128
  };
@@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AAE,CAAC;QACf,MAAM,MAAM,GAAG,aAAM,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;QACtE,MAAM,CAAC,KAAK,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAEJ,6EAA6E;AAC7E,MAAM,sBAAsB,GAC1B,CAAC,YAA0B,EAAE,EAAE,CAC/B,CAAC,MAA8B,EAA0B,EAAE,CACzD,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,IAAI,YAAY,CAAC,MAAM;IACxD,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,aAAa,IAAI,MAAM,CAAC,QAAQ,IAAI,YAAY,CAAC,MAAM,EAAE,EAAE;IACpG,CAAC,CAAC,MAAM,CAAC;AAEf,MAAM,gBAAgB,GAAG,CAAC,KAAyB,EAAW,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/source-deploy-retrieve",
3
- "version": "12.10.4-dev-17431548.0",
3
+ "version": "12.10.4",
4
4
  "description": "JavaScript library to run Salesforce metadata deploys and retrieves",
5
5
  "main": "lib/src/index.js",
6
6
  "author": "Salesforce",
@@ -29,7 +29,7 @@
29
29
  "@salesforce/kit": "^3.2.2",
30
30
  "@salesforce/ts-types": "^2.0.12",
31
31
  "fast-levenshtein": "^3.0.0",
32
- "fast-xml-parser": "^4.5.0",
32
+ "fast-xml-parser": "^4.5.1",
33
33
  "got": "^11.8.6",
34
34
  "graceful-fs": "^4.2.11",
35
35
  "ignore": "^5.3.2",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jsforce/jsforce-node": "^3.6.3",
44
- "@salesforce/cli-plugins-testkit": "^5.3.38",
44
+ "@salesforce/cli-plugins-testkit": "^5.3.39",
45
45
  "@salesforce/dev-scripts": "^10.2.11",
46
46
  "@types/deep-equal-in-any-order": "^1.0.1",
47
47
  "@types/fast-levenshtein": "^0.0.4",
@@ -49,7 +49,7 @@
49
49
  "@types/mime": "2.0.3",
50
50
  "@types/minimatch": "^5.1.2",
51
51
  "deep-equal-in-any-order": "^1.1.19",
52
- "esbuild": "^0.24.0",
52
+ "esbuild": "^0.24.2",
53
53
  "eslint-plugin-sf-plugin": "^1.20.13",
54
54
  "mocha-junit-reporter": "^1.23.3",
55
55
  "mocha-snap": "^5.0.0",