@salesforce/source-deploy-retrieve 5.12.1 → 5.12.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [5.12.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.3...v5.12.4) (2022-03-11)
6
+
7
+ ### [5.12.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.2...v5.12.3) (2022-03-02)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **metadata registry:** update directory name for flowtest in registry ([#589](https://github.com/forcedotcom/source-deploy-retrieve/issues/589)) ([d6112a7](https://github.com/forcedotcom/source-deploy-retrieve/commit/d6112a7325289fb55d3aee343cf77bcd2f68eb7f))
12
+
13
+ ### [5.12.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.1...v5.12.2) (2022-03-01)
14
+
15
+ ### Bug Fixes
16
+
17
+ - add ComponentSetBuilder from plugin-source ([#576](https://github.com/forcedotcom/source-deploy-retrieve/issues/576)) ([16c02d6](https://github.com/forcedotcom/source-deploy-retrieve/commit/16c02d611d442cc9efadc5fba51b8db8293ea7f5))
18
+
5
19
  ### [5.12.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.0...v5.12.1) (2022-03-01)
6
20
 
7
21
  ## [5.12.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.11.0...v5.12.0) (2022-02-22)
@@ -0,0 +1,35 @@
1
+ import { ComponentSet } from '../collections';
2
+ export declare type ManifestOption = {
3
+ manifestPath: string;
4
+ directoryPaths: string[];
5
+ destructiveChangesPre?: string;
6
+ destructiveChangesPost?: string;
7
+ };
8
+ export declare type MetadataOption = {
9
+ metadataEntries: string[];
10
+ directoryPaths: string[];
11
+ };
12
+ export declare type OrgOption = {
13
+ username: string;
14
+ exclude: string[];
15
+ };
16
+ export declare type ComponentSetOptions = {
17
+ packagenames?: string[];
18
+ sourcepath?: string[];
19
+ manifest?: ManifestOption;
20
+ metadata?: MetadataOption;
21
+ apiversion?: string;
22
+ sourceapiversion?: string;
23
+ org?: OrgOption;
24
+ };
25
+ export declare class ComponentSetBuilder {
26
+ /**
27
+ * Builds a ComponentSet that can be used for source conversion,
28
+ * deployment, or retrieval, using all specified options.
29
+ *
30
+ * @see https://github.com/forcedotcom/source-deploy-retrieve/blob/develop/src/collections/componentSet.ts
31
+ *
32
+ * @param options: options for creating a ComponentSet
33
+ */
34
+ static build(options: ComponentSetOptions): Promise<ComponentSet>;
35
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2020, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ComponentSetBuilder = void 0;
10
+ /* eslint complexity: ["error", 22] */
11
+ const path = require("path");
12
+ const core_1 = require("@salesforce/core");
13
+ const fs = require("graceful-fs");
14
+ const collections_1 = require("../collections");
15
+ const registry_1 = require("../registry");
16
+ class ComponentSetBuilder {
17
+ /**
18
+ * Builds a ComponentSet that can be used for source conversion,
19
+ * deployment, or retrieval, using all specified options.
20
+ *
21
+ * @see https://github.com/forcedotcom/source-deploy-retrieve/blob/develop/src/collections/componentSet.ts
22
+ *
23
+ * @param options: options for creating a ComponentSet
24
+ */
25
+ static async build(options) {
26
+ var _a, _b;
27
+ const logger = core_1.Logger.childFromRoot('componentSetBuilder');
28
+ let componentSet;
29
+ const { sourcepath, manifest, metadata, packagenames, apiversion, sourceapiversion, org } = options;
30
+ try {
31
+ if (sourcepath) {
32
+ logger.debug(`Building ComponentSet from sourcepath: ${sourcepath.join(', ')}`);
33
+ const fsPaths = sourcepath.map((filepath) => {
34
+ if (!fs.existsSync(filepath)) {
35
+ throw new core_1.SfdxError(`The sourcepath "${filepath}" is not a valid source file path.`);
36
+ }
37
+ return path.resolve(filepath);
38
+ });
39
+ componentSet = collections_1.ComponentSet.fromSource({ fsPaths });
40
+ }
41
+ // Return empty ComponentSet and use packageNames in the connection via `.retrieve` options
42
+ if (packagenames) {
43
+ logger.debug(`Building ComponentSet for packagenames: ${packagenames.toString()}`);
44
+ componentSet !== null && componentSet !== void 0 ? componentSet : (componentSet = new collections_1.ComponentSet());
45
+ }
46
+ // Resolve manifest with source in package directories.
47
+ if (manifest) {
48
+ logger.debug(`Building ComponentSet from manifest: ${manifest.manifestPath}`);
49
+ const directoryPaths = options.manifest.directoryPaths;
50
+ logger.debug(`Searching in packageDir: ${directoryPaths.join(', ')} for matching metadata`);
51
+ componentSet = await collections_1.ComponentSet.fromManifest({
52
+ manifestPath: manifest.manifestPath,
53
+ resolveSourcePaths: directoryPaths,
54
+ forceAddWildcards: true,
55
+ destructivePre: options.manifest.destructiveChangesPre,
56
+ destructivePost: options.manifest.destructiveChangesPost,
57
+ });
58
+ }
59
+ // Resolve metadata entries with source in package directories.
60
+ if (metadata) {
61
+ logger.debug(`Building ComponentSet from metadata: ${metadata.metadataEntries.toString()}`);
62
+ const registry = new registry_1.RegistryAccess();
63
+ const compSetFilter = new collections_1.ComponentSet();
64
+ componentSet !== null && componentSet !== void 0 ? componentSet : (componentSet = new collections_1.ComponentSet());
65
+ // Build a Set of metadata entries
66
+ metadata.metadataEntries.forEach((rawEntry) => {
67
+ const splitEntry = rawEntry.split(':').map((entry) => entry.trim());
68
+ // The registry will throw if it doesn't know what this type is.
69
+ registry.getTypeByName(splitEntry[0]);
70
+ const entry = {
71
+ type: splitEntry[0],
72
+ fullName: splitEntry.length === 1 ? '*' : splitEntry[1],
73
+ };
74
+ // Add to the filtered ComponentSet for resolved source paths,
75
+ // and the unfiltered ComponentSet to build the correct manifest.
76
+ compSetFilter.add(entry);
77
+ componentSet.add(entry);
78
+ });
79
+ const directoryPaths = options.metadata.directoryPaths;
80
+ logger.debug(`Searching for matching metadata in directories: ${directoryPaths.join(', ')}`);
81
+ const resolvedComponents = collections_1.ComponentSet.fromSource({ fsPaths: directoryPaths, include: compSetFilter });
82
+ componentSet.forceIgnoredPaths = resolvedComponents.forceIgnoredPaths;
83
+ for (const comp of resolvedComponents) {
84
+ componentSet.add(comp);
85
+ }
86
+ }
87
+ // Resolve metadata entries with an org connection
88
+ if (org) {
89
+ componentSet !== null && componentSet !== void 0 ? componentSet : (componentSet = new collections_1.ComponentSet());
90
+ logger.debug(`Building ComponentSet from targetUsername: ${org.username}`);
91
+ const fromConnection = await collections_1.ComponentSet.fromConnection({
92
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment
93
+ usernameOrConnection: (await core_1.Aliases.fetch(org.username)) || org.username,
94
+ // exclude components based on the results of componentFilter function
95
+ // components with namespacePrefix where org.exclude includes manageableState (to exclude managed packages)
96
+ // components with namespacePrefix where manageableState equals undefined (to exclude components e.g. InstalledPackage)
97
+ // components where org.exclude includes manageableState (to exclude packages without namespacePrefix e.g. unlocked packages)
98
+ componentFilter: (component) => !(org.exclude && org.exclude.includes(component === null || component === void 0 ? void 0 : component.manageableState)),
99
+ });
100
+ for (const comp of fromConnection) {
101
+ componentSet.add(comp);
102
+ }
103
+ }
104
+ }
105
+ catch (e) {
106
+ if (e.message.includes('Missing metadata type definition in registry for id')) {
107
+ // to remain generic to catch missing metadata types regardless of parameters, split on '
108
+ // example message : Missing metadata type definition in registry for id 'NonExistentType'
109
+ const issueType = e.message.split("'")[1];
110
+ throw new core_1.SfdxError(`The specified metadata type is unsupported: [${issueType}]`);
111
+ }
112
+ else {
113
+ throw e;
114
+ }
115
+ }
116
+ // This is only for debug output of matched files based on the command flags.
117
+ // It will log up to 20 file matches.
118
+ if (logger.debugEnabled && componentSet.size) {
119
+ logger.debug(`Matching metadata files (${componentSet.size}):`);
120
+ const components = componentSet.getSourceComponents().toArray();
121
+ for (let i = 0; i < componentSet.size; i++) {
122
+ if ((_a = components[i]) === null || _a === void 0 ? void 0 : _a.content) {
123
+ logger.debug(components[i].content);
124
+ }
125
+ else if ((_b = components[i]) === null || _b === void 0 ? void 0 : _b.xml) {
126
+ logger.debug(components[i].xml);
127
+ }
128
+ if (i > 18) {
129
+ logger.debug(`(showing 20 of ${componentSet.size} matches)`);
130
+ break;
131
+ }
132
+ }
133
+ }
134
+ if (apiversion) {
135
+ componentSet.apiVersion = apiversion;
136
+ }
137
+ if (sourceapiversion) {
138
+ componentSet.sourceApiVersion = sourceapiversion;
139
+ }
140
+ return componentSet;
141
+ }
142
+ }
143
+ exports.ComponentSetBuilder = ComponentSetBuilder;
144
+ //# sourceMappingURL=componentSetBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentSetBuilder.js","sourceRoot":"","sources":["../../../src/collections/componentSetBuilder.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sCAAsC;AAEtC,6BAA6B;AAC7B,2CAA8D;AAC9D,kCAAkC;AAClC,gDAA8C;AAC9C,0CAA6C;AA6B7C,MAAa,mBAAmB;IAC9B;;;;;;;OAOG;IACI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAA4B;;QACpD,MAAM,MAAM,GAAG,aAAM,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;QAC3D,IAAI,YAA0B,CAAC;QAE/B,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QACpG,IAAI;YACF,IAAI,UAAU,EAAE;gBACd,MAAM,CAAC,KAAK,CAAC,0CAA0C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAChF,MAAM,OAAO,GAAa,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ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AAI,EAAE;YAC5C,MAAM,CAAC,KAAK,CAAC,4BAA4B,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC;YAChE,MAAM,UAAU,GAAG,YAAY,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,CAAC;YAChE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;gBAC1C,IAAI,MAAA,UAAU,CAAC,CAAC,CAAC,0CAAE,OAAO,EAAE;oBAC1B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;iBACrC;qBAAM,IAAI,MAAA,UAAU,CAAC,CAAC,CAAC,0CAAE,GAAG,EAAE;oBAC7B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;iBACjC;gBAED,IAAI,CAAC,GAAG,EAAE,EAAE;oBACV,MAAM,CAAC,KAAK,CAAC,kBAAkB,YAAY,CAAC,IAAI,WAAW,CAAC,CAAC;oBAC7D,MAAM;iBACP;aACF;SACF;QAED,IAAI,UAAU,EAAE;YACd,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC;SACtC;QAED,IAAI,gBAAgB,EAAE;YACpB,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;SAClD;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF;AAvID,kDAuIC"}
@@ -1,3 +1,4 @@
1
1
  export { LazyCollection } from './lazyCollection';
2
2
  export { ComponentSet, DeploySetOptions, RetrieveSetOptions } from './componentSet';
3
3
  export { PackageTypeMembers, PackageManifestObject, DestructiveChangesType, FromSourceOptions, FromManifestOptions, } from './types';
4
+ export { ComponentSetBuilder, ComponentSetOptions } from './componentSetBuilder';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DestructiveChangesType = exports.ComponentSet = exports.LazyCollection = void 0;
3
+ exports.ComponentSetBuilder = exports.DestructiveChangesType = exports.ComponentSet = exports.LazyCollection = void 0;
4
4
  /*
5
5
  * Copyright (c) 2020, salesforce.com, inc.
6
6
  * All rights reserved.
@@ -13,4 +13,6 @@ var componentSet_1 = require("./componentSet");
13
13
  Object.defineProperty(exports, "ComponentSet", { enumerable: true, get: function () { return componentSet_1.ComponentSet; } });
14
14
  var types_1 = require("./types");
15
15
  Object.defineProperty(exports, "DestructiveChangesType", { enumerable: true, get: function () { return types_1.DestructiveChangesType; } });
16
+ var componentSetBuilder_1 = require("./componentSetBuilder");
17
+ Object.defineProperty(exports, "ComponentSetBuilder", { enumerable: true, get: function () { return componentSetBuilder_1.ComponentSetBuilder; } });
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collections/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,+CAAoF;AAA3E,4GAAA,YAAY,OAAA;AACrB,iCAMiB;AAHf,+GAAA,sBAAsB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collections/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,+CAAoF;AAA3E,4GAAA,YAAY,OAAA;AACrB,iCAMiB;AAHf,+GAAA,sBAAsB,OAAA;AAIxB,6DAAiF;AAAxE,0HAAA,mBAAmB,OAAA"}
@@ -2,5 +2,5 @@ export { MetadataApiDeploy, MetadataApiDeployOptions, DeployResult, MetadataApiR
2
2
  export { MetadataConverter, WriteInfo, WriterFormat, DirectoryConfig, ZipConfig, MergeConfig, MetadataTransformer, SfdxFileFormat, ConvertOutputConfig, ConvertResult, } from './convert';
3
3
  export { MetadataResolver, ManifestResolver, ConnectionResolver, TreeContainer, NodeFSTreeContainer, VirtualTreeContainer, ZipTreeContainer, SourceComponent, MetadataComponent, MetadataMember, ComponentLike, MetadataXml, VirtualFile, VirtualDirectory, SourceAdapter, ForceIgnore, } from './resolve';
4
4
  export { SourcePath, TreeOptions, OptionalTreeRegistryOptions, RegistryOptions } from './common';
5
- export { LazyCollection, ComponentSet, DeploySetOptions, RetrieveSetOptions, PackageTypeMembers, PackageManifestObject, DestructiveChangesType, FromSourceOptions, FromManifestOptions, } from './collections';
5
+ export { LazyCollection, ComponentSet, ComponentSetBuilder, ComponentSetOptions, DeploySetOptions, RetrieveSetOptions, PackageTypeMembers, PackageManifestObject, DestructiveChangesType, FromSourceOptions, FromManifestOptions, } from './collections';
6
6
  export { RegistryAccess, registry, MetadataRegistry, MetadataType, DecompositionStrategy, RecompositionStrategy, TransformerStrategy, } from './registry';
package/lib/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registry = exports.RegistryAccess = exports.DestructiveChangesType = exports.ComponentSet = exports.LazyCollection = exports.ForceIgnore = exports.SourceComponent = exports.ZipTreeContainer = exports.VirtualTreeContainer = exports.NodeFSTreeContainer = exports.TreeContainer = exports.ConnectionResolver = exports.ManifestResolver = exports.MetadataResolver = exports.MetadataConverter = exports.ComponentStatus = exports.RequestStatus = exports.ToolingApi = exports.RetrieveResult = exports.MetadataApiRetrieve = exports.DeployResult = exports.MetadataApiDeploy = void 0;
3
+ exports.registry = exports.RegistryAccess = exports.DestructiveChangesType = exports.ComponentSetBuilder = exports.ComponentSet = exports.LazyCollection = exports.ForceIgnore = exports.SourceComponent = exports.ZipTreeContainer = exports.VirtualTreeContainer = exports.NodeFSTreeContainer = exports.TreeContainer = exports.ConnectionResolver = exports.ManifestResolver = exports.MetadataResolver = exports.MetadataConverter = exports.ComponentStatus = exports.RequestStatus = exports.ToolingApi = exports.RetrieveResult = exports.MetadataApiRetrieve = exports.DeployResult = exports.MetadataApiDeploy = void 0;
4
4
  /*
5
5
  * Copyright (c) 2020, salesforce.com, inc.
6
6
  * All rights reserved.
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "ForceIgnore", { enumerable: true, get: function
30
30
  var collections_1 = require("./collections");
31
31
  Object.defineProperty(exports, "LazyCollection", { enumerable: true, get: function () { return collections_1.LazyCollection; } });
32
32
  Object.defineProperty(exports, "ComponentSet", { enumerable: true, get: function () { return collections_1.ComponentSet; } });
33
+ Object.defineProperty(exports, "ComponentSetBuilder", { enumerable: true, get: function () { return collections_1.ComponentSetBuilder; } });
33
34
  Object.defineProperty(exports, "DestructiveChangesType", { enumerable: true, get: function () { return collections_1.DestructiveChangesType; } });
34
35
  var registry_1 = require("./registry");
35
36
  Object.defineProperty(exports, "RegistryAccess", { enumerable: true, get: function () { return registry_1.RegistryAccess; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mCAiDkB;AAhDhB,2GAAA,iBAAiB,OAAA;AAEjB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AAEnB,wGAAA,cAAc,OAAA;AACd,oGAAA,UAAU,OAAA;AAUV,uGAAA,aAAa,OAAA;AAiBb,yGAAA,eAAe,OAAA;AAgBjB,qCAWmB;AAVjB,4GAAA,iBAAiB,OAAA;AAWnB,qCAiBmB;AAhBjB,2GAAA,gBAAgB,OAAA;AAChB,2GAAA,gBAAgB,OAAA;AAChB,6GAAA,kBAAkB,OAAA;AAClB,wGAAA,aAAa,OAAA;AACb,8GAAA,mBAAmB,OAAA;AACnB,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,0GAAA,eAAe,OAAA;AAQf,sGAAA,WAAW,OAAA;AAGb,6CAUuB;AATrB,6GAAA,cAAc,OAAA;AACd,2GAAA,YAAY,OAAA;AAKZ,qHAAA,sBAAsB,OAAA;AAIxB,uCAQoB;AAPlB,0GAAA,cAAc,OAAA;AACd,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mCAiDkB;AAhDhB,2GAAA,iBAAiB,OAAA;AAEjB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AAEnB,wGAAA,cAAc,OAAA;AACd,oGAAA,UAAU,OAAA;AAUV,uGAAA,aAAa,OAAA;AAiBb,yGAAA,eAAe,OAAA;AAgBjB,qCAWmB;AAVjB,4GAAA,iBAAiB,OAAA;AAWnB,qCAiBmB;AAhBjB,2GAAA,gBAAgB,OAAA;AAChB,2GAAA,gBAAgB,OAAA;AAChB,6GAAA,kBAAkB,OAAA;AAClB,wGAAA,aAAa,OAAA;AACb,8GAAA,mBAAmB,OAAA;AACnB,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,0GAAA,eAAe,OAAA;AAQf,sGAAA,WAAW,OAAA;AAGb,6CAYuB;AAXrB,6GAAA,cAAc,OAAA;AACd,2GAAA,YAAY,OAAA;AACZ,kHAAA,mBAAmB,OAAA;AAMnB,qHAAA,sBAAsB,OAAA;AAIxB,uCAQoB;AAPlB,0GAAA,cAAc,OAAA;AACd,oGAAA,QAAQ,OAAA"}
@@ -622,7 +622,7 @@
622
622
  "id": "flowtest",
623
623
  "name": "FlowTest",
624
624
  "suffix": "flowtest",
625
- "directoryName": "flowTest",
625
+ "directoryName": "flowtests",
626
626
  "inFolder": false,
627
627
  "strictDirectoryName": false
628
628
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/source-deploy-retrieve",
3
- "version": "5.12.1",
3
+ "version": "5.12.4",
4
4
  "description": "JavaScript library to run Salesforce metadata deploys and retrieves",
5
5
  "main": "lib/src/index.js",
6
6
  "author": "Salesforce",