@salesforce/source-deploy-retrieve 5.12.0 → 5.12.3
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 +14 -0
- package/lib/src/collections/componentSetBuilder.d.ts +35 -0
- package/lib/src/collections/componentSetBuilder.js +144 -0
- package/lib/src/collections/componentSetBuilder.js.map +1 -0
- package/lib/src/collections/index.d.ts +1 -0
- package/lib/src/collections/index.js +3 -1
- package/lib/src/collections/index.js.map +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/registry/coverage.d.ts +3 -0
- package/lib/src/registry/coverage.js +20 -0
- package/lib/src/registry/coverage.js.map +1 -0
- package/lib/src/registry/metadataRegistry.json +195 -5
- package/lib/src/registry/nonSupportedTypes.js +10 -8
- package/lib/src/registry/nonSupportedTypes.js.map +1 -1
- package/lib/src/registry/registry.d.ts +190 -0
- package/lib/src/resolve/treeContainers.js +16 -2
- package/lib/src/resolve/treeContainers.js.map +1 -1
- package/package.json +4 -2
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.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.2...v5.12.3) (2022-03-02)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **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))
|
|
10
|
+
|
|
11
|
+
### [5.12.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.1...v5.12.2) (2022-03-01)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- 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))
|
|
16
|
+
|
|
17
|
+
### [5.12.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.0...v5.12.1) (2022-03-01)
|
|
18
|
+
|
|
5
19
|
## [5.12.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.11.0...v5.12.0) (2022-02-22)
|
|
6
20
|
|
|
7
21
|
### Features
|
|
@@ -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
|
|
@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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"}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -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; } });
|
package/lib/src/index.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCoverage = exports.getCurrentApiVersion = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const got_1 = require("got");
|
|
11
|
+
const getCurrentApiVersion = async () => {
|
|
12
|
+
return JSON.parse((await (0, got_1.default)('https://mdcoverage.secure.force.com/services/apexrest/report')).body).versions.selected;
|
|
13
|
+
};
|
|
14
|
+
exports.getCurrentApiVersion = getCurrentApiVersion;
|
|
15
|
+
const getCoverage = async (apiVersion) => JSON.parse(
|
|
16
|
+
// this is a constant offset between each apiVersion and the url.
|
|
17
|
+
// ex: v55=na46, v54=na45, etc.
|
|
18
|
+
(await (0, got_1.default)(`https://na${apiVersion - 9}.test1.pc-rnd.salesforce.com/mdcoverage/api.jsp`)).body);
|
|
19
|
+
exports.getCoverage = getCoverage;
|
|
20
|
+
//# sourceMappingURL=coverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../src/registry/coverage.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6BAAsB;AAGf,MAAM,oBAAoB,GAAG,KAAK,IAAqB,EAAE;IAC9D,OACE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAA,aAAG,EAAC,8DAA8D,CAAC,CAAC,CAAC,IAAI,CAG5F,CAAC,QAAQ,CAAC,QAAQ,CAAC;AACtB,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEK,MAAM,WAAW,GAAG,KAAK,EAAE,UAAkB,EAA2B,EAAE,CAC/E,IAAI,CAAC,KAAK;AACR,iEAAiE;AACjE,+BAA+B;AAC/B,CAAC,MAAM,IAAA,aAAG,EAAC,aAAa,UAAU,GAAG,CAAC,iDAAiD,CAAC,CAAC,CAAC,IAAI,CAC7E,CAAC;AALT,QAAA,WAAW,eAKF"}
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
"id": "flowtest",
|
|
623
623
|
"name": "FlowTest",
|
|
624
624
|
"suffix": "flowtest",
|
|
625
|
-
"directoryName": "
|
|
625
|
+
"directoryName": "flowtests",
|
|
626
626
|
"inFolder": false,
|
|
627
627
|
"strictDirectoryName": false
|
|
628
628
|
},
|
|
@@ -2028,7 +2028,7 @@
|
|
|
2028
2028
|
"suffix": "policy",
|
|
2029
2029
|
"directoryName": "appointmentSchedulingPolicies",
|
|
2030
2030
|
"inFolder": false,
|
|
2031
|
-
"strictDirectoryName":
|
|
2031
|
+
"strictDirectoryName": true
|
|
2032
2032
|
},
|
|
2033
2033
|
"notificationtypeconfig": {
|
|
2034
2034
|
"id": "notificationtypeconfig",
|
|
@@ -2789,6 +2789,174 @@
|
|
|
2789
2789
|
"strategies": {
|
|
2790
2790
|
"adapter": "matchingContentFile"
|
|
2791
2791
|
}
|
|
2792
|
+
},
|
|
2793
|
+
"productattributeset": {
|
|
2794
|
+
"id": "productattributeset",
|
|
2795
|
+
"name": "ProductAttributeSet",
|
|
2796
|
+
"suffix": "productAttributeSet",
|
|
2797
|
+
"directoryName": "productAttributeSets",
|
|
2798
|
+
"inFolder": false,
|
|
2799
|
+
"strictDirectoryName": false
|
|
2800
|
+
},
|
|
2801
|
+
"recordalertcategory": {
|
|
2802
|
+
"id": "recordalertcategory",
|
|
2803
|
+
"name": "RecordAlertCategory",
|
|
2804
|
+
"suffix": "recordAlertCategory",
|
|
2805
|
+
"directoryName": "recordAlertCategories",
|
|
2806
|
+
"inFolder": false,
|
|
2807
|
+
"strictDirectoryName": false
|
|
2808
|
+
},
|
|
2809
|
+
"recordalertdatasource": {
|
|
2810
|
+
"id": "recordalertdatasource",
|
|
2811
|
+
"name": "RecordAlertDataSource",
|
|
2812
|
+
"suffix": "recordAlertDataSource",
|
|
2813
|
+
"directoryName": "recordAlertDataSources",
|
|
2814
|
+
"inFolder": false,
|
|
2815
|
+
"strictDirectoryName": false
|
|
2816
|
+
},
|
|
2817
|
+
"activationplatform": {
|
|
2818
|
+
"id": "activationplatform",
|
|
2819
|
+
"name": "ActivationPlatform",
|
|
2820
|
+
"suffix": "activationPlatform",
|
|
2821
|
+
"directoryName": "activationPlatforms",
|
|
2822
|
+
"inFolder": false,
|
|
2823
|
+
"strictDirectoryName": false
|
|
2824
|
+
},
|
|
2825
|
+
"dataconnectoringestapi": {
|
|
2826
|
+
"id": "dataconnectoringestapi",
|
|
2827
|
+
"name": "DataConnectorIngestApi",
|
|
2828
|
+
"suffix": "dataConnectorIngestApi",
|
|
2829
|
+
"directoryName": "dataConnectorIngestApis",
|
|
2830
|
+
"inFolder": false,
|
|
2831
|
+
"strictDirectoryName": false
|
|
2832
|
+
},
|
|
2833
|
+
"datasourcetenant": {
|
|
2834
|
+
"id": "datasourcetenant",
|
|
2835
|
+
"name": "DataSourceTenant",
|
|
2836
|
+
"suffix": "dataSourceTenant",
|
|
2837
|
+
"directoryName": "dataSourceTenants",
|
|
2838
|
+
"inFolder": false,
|
|
2839
|
+
"strictDirectoryName": false
|
|
2840
|
+
},
|
|
2841
|
+
"esignatureconfig": {
|
|
2842
|
+
"id": "esignatureconfig",
|
|
2843
|
+
"name": "ESignatureConfig",
|
|
2844
|
+
"suffix": "eSignatureConfig",
|
|
2845
|
+
"directoryName": "eSignatureConfigs",
|
|
2846
|
+
"inFolder": false,
|
|
2847
|
+
"strictDirectoryName": false
|
|
2848
|
+
},
|
|
2849
|
+
"esignatureenvelopeconfig": {
|
|
2850
|
+
"id": "esignatureenvelopeconfig",
|
|
2851
|
+
"name": "ESignatureEnvelopeConfig",
|
|
2852
|
+
"suffix": "eSignatureEnvelopeConfig",
|
|
2853
|
+
"directoryName": "eSignatureEnvelopeConfigs",
|
|
2854
|
+
"inFolder": false,
|
|
2855
|
+
"strictDirectoryName": false
|
|
2856
|
+
},
|
|
2857
|
+
"internaldataconnector": {
|
|
2858
|
+
"id": "internaldataconnector",
|
|
2859
|
+
"name": "InternalDataConnector",
|
|
2860
|
+
"suffix": "internalDataConnector",
|
|
2861
|
+
"directoryName": "internalDataConnectors",
|
|
2862
|
+
"inFolder": false,
|
|
2863
|
+
"strictDirectoryName": false
|
|
2864
|
+
},
|
|
2865
|
+
"mobsecuritycertpinconfig": {
|
|
2866
|
+
"id": "mobsecuritycertpinconfig",
|
|
2867
|
+
"name": "MobSecurityCertPinConfig",
|
|
2868
|
+
"suffix": "mobSecurityCertPinConfig",
|
|
2869
|
+
"directoryName": "mobSecurityCertPinConfigs",
|
|
2870
|
+
"inFolder": false,
|
|
2871
|
+
"strictDirectoryName": false
|
|
2872
|
+
},
|
|
2873
|
+
"mobilesecurityassignment": {
|
|
2874
|
+
"id": "mobilesecurityassignment",
|
|
2875
|
+
"name": "MobileSecurityAssignment",
|
|
2876
|
+
"suffix": "mobileSecurityAssignment",
|
|
2877
|
+
"directoryName": "mobileSecurityAssignments",
|
|
2878
|
+
"inFolder": false,
|
|
2879
|
+
"strictDirectoryName": false
|
|
2880
|
+
},
|
|
2881
|
+
"mobilesecuritypolicy": {
|
|
2882
|
+
"id": "mobilesecuritypolicy",
|
|
2883
|
+
"name": "MobileSecurityPolicy",
|
|
2884
|
+
"suffix": "mobileSecurityPolicy",
|
|
2885
|
+
"directoryName": "mobileSecurityPolicies",
|
|
2886
|
+
"inFolder": false,
|
|
2887
|
+
"strictDirectoryName": false
|
|
2888
|
+
},
|
|
2889
|
+
"mobilesecuritypolicyset": {
|
|
2890
|
+
"id": "mobilesecuritypolicyset",
|
|
2891
|
+
"name": "MobileSecurityPolicySet",
|
|
2892
|
+
"suffix": "mobileSecurityPolicySet",
|
|
2893
|
+
"directoryName": "mobileSecurityPolicySets",
|
|
2894
|
+
"inFolder": false,
|
|
2895
|
+
"strictDirectoryName": false
|
|
2896
|
+
},
|
|
2897
|
+
"applicationsubtypedefinition": {
|
|
2898
|
+
"id": "applicationsubtypedefinition",
|
|
2899
|
+
"name": "ApplicationSubtypeDefinition",
|
|
2900
|
+
"suffix": "applicationSubtypeDefinition",
|
|
2901
|
+
"directoryName": "ApplicationSubtypeDefinitions",
|
|
2902
|
+
"inFolder": false,
|
|
2903
|
+
"strictDirectoryName": false
|
|
2904
|
+
},
|
|
2905
|
+
"businessprocesstypedefinition": {
|
|
2906
|
+
"id": "businessprocesstypedefinition",
|
|
2907
|
+
"name": "BusinessProcessTypeDefinition",
|
|
2908
|
+
"suffix": "businessProcessTypeDefinition",
|
|
2909
|
+
"directoryName": "BusinessProcessTypeDefinitions",
|
|
2910
|
+
"inFolder": false,
|
|
2911
|
+
"strictDirectoryName": false
|
|
2912
|
+
},
|
|
2913
|
+
"explainabilityactiondefinition": {
|
|
2914
|
+
"id": "explainabilityactiondefinition",
|
|
2915
|
+
"name": "ExplainabilityActionDefinition",
|
|
2916
|
+
"suffix": "explainabilityActionDefinition",
|
|
2917
|
+
"directoryName": "ExplainabilityActionDefinitions",
|
|
2918
|
+
"inFolder": false,
|
|
2919
|
+
"strictDirectoryName": false
|
|
2920
|
+
},
|
|
2921
|
+
"explainabilityactionversion": {
|
|
2922
|
+
"id": "explainabilityactionversion",
|
|
2923
|
+
"name": "ExplainabilityActionVersion",
|
|
2924
|
+
"suffix": "explainabilityActionVersion",
|
|
2925
|
+
"directoryName": "ExplainabilityActionVersions",
|
|
2926
|
+
"inFolder": false,
|
|
2927
|
+
"strictDirectoryName": false
|
|
2928
|
+
},
|
|
2929
|
+
"advacctforecastdimsource": {
|
|
2930
|
+
"id": "advacctforecastdimsource",
|
|
2931
|
+
"name": "AdvAcctForecastDimSource",
|
|
2932
|
+
"suffix": "advAcctForecastDimSource",
|
|
2933
|
+
"directoryName": "AdvAcctForecastDimSource",
|
|
2934
|
+
"inFolder": false,
|
|
2935
|
+
"strictDirectoryName": false
|
|
2936
|
+
},
|
|
2937
|
+
"appointmentassignmentpolicy": {
|
|
2938
|
+
"id": "appointmentassignmentpolicy",
|
|
2939
|
+
"name": "AppointmentAssignmentPolicy",
|
|
2940
|
+
"suffix": "policy",
|
|
2941
|
+
"directoryName": "appointmentAssignmentPolicies",
|
|
2942
|
+
"inFolder": false,
|
|
2943
|
+
"strictDirectoryName": true
|
|
2944
|
+
},
|
|
2945
|
+
"carelimittype": {
|
|
2946
|
+
"id": "carelimittype",
|
|
2947
|
+
"name": "CareLimitType",
|
|
2948
|
+
"suffix": "careLimitType",
|
|
2949
|
+
"directoryName": "careLimitTypes",
|
|
2950
|
+
"inFolder": false,
|
|
2951
|
+
"strictDirectoryName": false
|
|
2952
|
+
},
|
|
2953
|
+
"omniinteractionaccessconfig": {
|
|
2954
|
+
"id": "omniinteractionaccessconfig",
|
|
2955
|
+
"name": "OmniInteractionAccessConfig",
|
|
2956
|
+
"suffix": "omniInteractionAccessConfig",
|
|
2957
|
+
"directoryName": "OmniInteractionAccessConfig",
|
|
2958
|
+
"inFolder": false,
|
|
2959
|
+
"strictDirectoryName": false
|
|
2792
2960
|
}
|
|
2793
2961
|
},
|
|
2794
2962
|
"suffixes": {
|
|
@@ -2956,7 +3124,7 @@
|
|
|
2956
3124
|
"actionLinkGroupTemplate": "actionlinkgrouptemplate",
|
|
2957
3125
|
"licenseDefinition": "licensedefinition",
|
|
2958
3126
|
"transactionSecurityPolicy": "transactionsecuritypolicy",
|
|
2959
|
-
"policy": "
|
|
3127
|
+
"policy": "appointmentassignmentpolicy",
|
|
2960
3128
|
"skill": "skill",
|
|
2961
3129
|
"liveChatDeployment": "livechatdeployment",
|
|
2962
3130
|
"liveChatButton": "livechatbutton",
|
|
@@ -3093,7 +3261,27 @@
|
|
|
3093
3261
|
"stationaryAssetEnvSourceConfig": "stnryassetenvsrccnfg",
|
|
3094
3262
|
"vehicleAssetEmssnSourceConfig": "vehicleassetemssnsrccnfg",
|
|
3095
3263
|
"omniInteractionConfig": "omniinteractionconfig",
|
|
3096
|
-
"uiview": "uiviewdefinition"
|
|
3264
|
+
"uiview": "uiviewdefinition",
|
|
3265
|
+
"productAttributeSet": "productattributeset",
|
|
3266
|
+
"recordAlertCategory": "recordalertcategory",
|
|
3267
|
+
"recordAlertDataSource": "recordalertdatasource",
|
|
3268
|
+
"activationPlatform": "activationplatform",
|
|
3269
|
+
"dataConnectorIngestApi": "dataconnectoringestapi",
|
|
3270
|
+
"dataSourceTenant": "datasourcetenant",
|
|
3271
|
+
"eSignatureConfig": "esignatureconfig",
|
|
3272
|
+
"eSignatureEnvelopeConfig": "esignatureenvelopeconfig",
|
|
3273
|
+
"internalDataConnector": "internaldataconnector",
|
|
3274
|
+
"mobSecurityCertPinConfig": "mobsecuritycertpinconfig",
|
|
3275
|
+
"mobileSecurityAssignment": "mobilesecurityassignment",
|
|
3276
|
+
"mobileSecurityPolicy": "mobilesecuritypolicy",
|
|
3277
|
+
"mobileSecurityPolicySet": "mobilesecuritypolicyset",
|
|
3278
|
+
"applicationSubtypeDefinition": "applicationsubtypedefinition",
|
|
3279
|
+
"businessProcessTypeDefinition": "businessprocesstypedefinition",
|
|
3280
|
+
"explainabilityActionDefinition": "explainabilityactiondefinition",
|
|
3281
|
+
"explainabilityActionVersion": "explainabilityactionversion",
|
|
3282
|
+
"advAcctForecastDimSource": "advacctforecastdimsource",
|
|
3283
|
+
"careLimitType": "carelimittype",
|
|
3284
|
+
"omniInteractionAccessConfig": "omniinteractionaccessconfig"
|
|
3097
3285
|
},
|
|
3098
3286
|
"strictDirectoryNames": {
|
|
3099
3287
|
"experiences": "experiencebundle",
|
|
@@ -3114,7 +3302,9 @@
|
|
|
3114
3302
|
"IndustriesManufacturingSettings": "industriesmanufacturingsettings",
|
|
3115
3303
|
"dataMappingObjectDefinitions": "datamappingobjectdefinition",
|
|
3116
3304
|
"fieldRestrictionRules": "fieldrestrictionrule",
|
|
3117
|
-
"siteDotComSites": "sitedotcom"
|
|
3305
|
+
"siteDotComSites": "sitedotcom",
|
|
3306
|
+
"appointmentSchedulingPolicies": "appointmentschedulingpolicy",
|
|
3307
|
+
"appointmentAssignmentPolicies": "appointmentassignmentpolicy"
|
|
3118
3308
|
},
|
|
3119
3309
|
"childTypes": {
|
|
3120
3310
|
"customlabel": "customlabels",
|
|
@@ -15,9 +15,7 @@ exports.hasUnsupportedFeatures = exports.metadataTypes = exports.settings = expo
|
|
|
15
15
|
* */
|
|
16
16
|
exports.features = [
|
|
17
17
|
// ERROR running force:org:create: * is not a valid Features value.
|
|
18
|
-
// 'SUSTAINABILITYAPP',
|
|
19
18
|
'SERVICECATALOG',
|
|
20
|
-
'EXPLAINABILITY',
|
|
21
19
|
'DYNAMICATTRIBUTES',
|
|
22
20
|
'CONTRACTMGMT',
|
|
23
21
|
'CUSTOMIZABLENAMEDCREDENTIALS',
|
|
@@ -25,6 +23,7 @@ exports.features = [
|
|
|
25
23
|
'HEALTHCLOUDHPIBETA',
|
|
26
24
|
'MANAGETIMELINE',
|
|
27
25
|
'HEALTHCLOUDBETA',
|
|
26
|
+
'PARDOTADVANCED', // org:create throws a C-9999 when this is not excluded
|
|
28
27
|
];
|
|
29
28
|
exports.settings = [
|
|
30
29
|
'botSettings', // have not successfully deployed this because of licensing errors when deploying settings
|
|
@@ -32,15 +31,18 @@ exports.settings = [
|
|
|
32
31
|
exports.metadataTypes = [
|
|
33
32
|
// things that don't show up in describe so far
|
|
34
33
|
'PicklistValue',
|
|
35
|
-
'AppointmentAssignmentPolicy',
|
|
36
|
-
'WorkflowFlowAction',
|
|
37
|
-
'AdvAcctForecastDimSource',
|
|
38
|
-
'CareLimitType',
|
|
39
|
-
'RelatedRecordAssocCriteria',
|
|
40
|
-
'OmniInteractionAccessConfig',
|
|
41
34
|
// two children of GlobalValueSet
|
|
42
35
|
'CustomValue',
|
|
43
36
|
'StandardValue',
|
|
37
|
+
// the following are not describable based on their features/settings, last checked 2/24/2022
|
|
38
|
+
'DiscoveryStory',
|
|
39
|
+
'EmployeeDataSyncProfile',
|
|
40
|
+
'IdentityVerificationProcDef',
|
|
41
|
+
'IdentityVerificationProcDtl',
|
|
42
|
+
'IdentityVerificationProcFld',
|
|
43
|
+
'RelatedRecordAssocCriteria',
|
|
44
|
+
'ScoreRange',
|
|
45
|
+
'WorkflowFlowAction',
|
|
44
46
|
];
|
|
45
47
|
const hasUnsupportedFeatures = (type) => {
|
|
46
48
|
var _a, _b, _c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nonSupportedTypes.js","sourceRoot":"","sources":["../../../src/registry/nonSupportedTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH;;;;;KAKK;AACQ,QAAA,QAAQ,GAAG;IACtB,mEAAmE;IACnE,
|
|
1
|
+
{"version":3,"file":"nonSupportedTypes.js","sourceRoot":"","sources":["../../../src/registry/nonSupportedTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH;;;;;KAKK;AACQ,QAAA,QAAQ,GAAG;IACtB,mEAAmE;IACnE,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;IACd,8BAA8B;IAC9B,2BAA2B;IAC3B,oBAAoB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
|
2798
|
+
name: string;
|
|
2799
|
+
suffix: string;
|
|
2800
|
+
directoryName: string;
|
|
2801
|
+
inFolder: boolean;
|
|
2802
|
+
strictDirectoryName: boolean;
|
|
2803
|
+
};
|
|
2804
|
+
recordalertcategory: {
|
|
2805
|
+
id: string;
|
|
2806
|
+
name: string;
|
|
2807
|
+
suffix: string;
|
|
2808
|
+
directoryName: string;
|
|
2809
|
+
inFolder: boolean;
|
|
2810
|
+
strictDirectoryName: boolean;
|
|
2811
|
+
};
|
|
2812
|
+
recordalertdatasource: {
|
|
2813
|
+
id: string;
|
|
2814
|
+
name: string;
|
|
2815
|
+
suffix: string;
|
|
2816
|
+
directoryName: string;
|
|
2817
|
+
inFolder: boolean;
|
|
2818
|
+
strictDirectoryName: boolean;
|
|
2819
|
+
};
|
|
2820
|
+
activationplatform: {
|
|
2821
|
+
id: string;
|
|
2822
|
+
name: string;
|
|
2823
|
+
suffix: string;
|
|
2824
|
+
directoryName: string;
|
|
2825
|
+
inFolder: boolean;
|
|
2826
|
+
strictDirectoryName: boolean;
|
|
2827
|
+
};
|
|
2828
|
+
dataconnectoringestapi: {
|
|
2829
|
+
id: string;
|
|
2830
|
+
name: string;
|
|
2831
|
+
suffix: string;
|
|
2832
|
+
directoryName: string;
|
|
2833
|
+
inFolder: boolean;
|
|
2834
|
+
strictDirectoryName: boolean;
|
|
2835
|
+
};
|
|
2836
|
+
datasourcetenant: {
|
|
2837
|
+
id: string;
|
|
2838
|
+
name: string;
|
|
2839
|
+
suffix: string;
|
|
2840
|
+
directoryName: string;
|
|
2841
|
+
inFolder: boolean;
|
|
2842
|
+
strictDirectoryName: boolean;
|
|
2843
|
+
};
|
|
2844
|
+
esignatureconfig: {
|
|
2845
|
+
id: string;
|
|
2846
|
+
name: string;
|
|
2847
|
+
suffix: string;
|
|
2848
|
+
directoryName: string;
|
|
2849
|
+
inFolder: boolean;
|
|
2850
|
+
strictDirectoryName: boolean;
|
|
2851
|
+
};
|
|
2852
|
+
esignatureenvelopeconfig: {
|
|
2853
|
+
id: string;
|
|
2854
|
+
name: string;
|
|
2855
|
+
suffix: string;
|
|
2856
|
+
directoryName: string;
|
|
2857
|
+
inFolder: boolean;
|
|
2858
|
+
strictDirectoryName: boolean;
|
|
2859
|
+
};
|
|
2860
|
+
internaldataconnector: {
|
|
2861
|
+
id: string;
|
|
2862
|
+
name: string;
|
|
2863
|
+
suffix: string;
|
|
2864
|
+
directoryName: string;
|
|
2865
|
+
inFolder: boolean;
|
|
2866
|
+
strictDirectoryName: boolean;
|
|
2867
|
+
};
|
|
2868
|
+
mobsecuritycertpinconfig: {
|
|
2869
|
+
id: string;
|
|
2870
|
+
name: string;
|
|
2871
|
+
suffix: string;
|
|
2872
|
+
directoryName: string;
|
|
2873
|
+
inFolder: boolean;
|
|
2874
|
+
strictDirectoryName: boolean;
|
|
2875
|
+
};
|
|
2876
|
+
mobilesecurityassignment: {
|
|
2877
|
+
id: string;
|
|
2878
|
+
name: string;
|
|
2879
|
+
suffix: string;
|
|
2880
|
+
directoryName: string;
|
|
2881
|
+
inFolder: boolean;
|
|
2882
|
+
strictDirectoryName: boolean;
|
|
2883
|
+
};
|
|
2884
|
+
mobilesecuritypolicy: {
|
|
2885
|
+
id: string;
|
|
2886
|
+
name: string;
|
|
2887
|
+
suffix: string;
|
|
2888
|
+
directoryName: string;
|
|
2889
|
+
inFolder: boolean;
|
|
2890
|
+
strictDirectoryName: boolean;
|
|
2891
|
+
};
|
|
2892
|
+
mobilesecuritypolicyset: {
|
|
2893
|
+
id: string;
|
|
2894
|
+
name: string;
|
|
2895
|
+
suffix: string;
|
|
2896
|
+
directoryName: string;
|
|
2897
|
+
inFolder: boolean;
|
|
2898
|
+
strictDirectoryName: boolean;
|
|
2899
|
+
};
|
|
2900
|
+
applicationsubtypedefinition: {
|
|
2901
|
+
id: string;
|
|
2902
|
+
name: string;
|
|
2903
|
+
suffix: string;
|
|
2904
|
+
directoryName: string;
|
|
2905
|
+
inFolder: boolean;
|
|
2906
|
+
strictDirectoryName: boolean;
|
|
2907
|
+
};
|
|
2908
|
+
businessprocesstypedefinition: {
|
|
2909
|
+
id: string;
|
|
2910
|
+
name: string;
|
|
2911
|
+
suffix: string;
|
|
2912
|
+
directoryName: string;
|
|
2913
|
+
inFolder: boolean;
|
|
2914
|
+
strictDirectoryName: boolean;
|
|
2915
|
+
};
|
|
2916
|
+
explainabilityactiondefinition: {
|
|
2917
|
+
id: string;
|
|
2918
|
+
name: string;
|
|
2919
|
+
suffix: string;
|
|
2920
|
+
directoryName: string;
|
|
2921
|
+
inFolder: boolean;
|
|
2922
|
+
strictDirectoryName: boolean;
|
|
2923
|
+
};
|
|
2924
|
+
explainabilityactionversion: {
|
|
2925
|
+
id: string;
|
|
2926
|
+
name: string;
|
|
2927
|
+
suffix: string;
|
|
2928
|
+
directoryName: string;
|
|
2929
|
+
inFolder: boolean;
|
|
2930
|
+
strictDirectoryName: boolean;
|
|
2931
|
+
};
|
|
2932
|
+
advacctforecastdimsource: {
|
|
2933
|
+
id: string;
|
|
2934
|
+
name: string;
|
|
2935
|
+
suffix: string;
|
|
2936
|
+
directoryName: string;
|
|
2937
|
+
inFolder: boolean;
|
|
2938
|
+
strictDirectoryName: boolean;
|
|
2939
|
+
};
|
|
2940
|
+
appointmentassignmentpolicy: {
|
|
2941
|
+
id: string;
|
|
2942
|
+
name: string;
|
|
2943
|
+
suffix: string;
|
|
2944
|
+
directoryName: string;
|
|
2945
|
+
inFolder: boolean;
|
|
2946
|
+
strictDirectoryName: boolean;
|
|
2947
|
+
};
|
|
2948
|
+
carelimittype: {
|
|
2949
|
+
id: string;
|
|
2950
|
+
name: string;
|
|
2951
|
+
suffix: string;
|
|
2952
|
+
directoryName: string;
|
|
2953
|
+
inFolder: boolean;
|
|
2954
|
+
strictDirectoryName: boolean;
|
|
2955
|
+
};
|
|
2956
|
+
omniinteractionaccessconfig: {
|
|
2957
|
+
id: string;
|
|
2958
|
+
name: string;
|
|
2959
|
+
suffix: string;
|
|
2960
|
+
directoryName: string;
|
|
2961
|
+
inFolder: boolean;
|
|
2962
|
+
strictDirectoryName: boolean;
|
|
2963
|
+
};
|
|
2796
2964
|
};
|
|
2797
2965
|
suffixes: {
|
|
2798
2966
|
ai: string;
|
|
@@ -3097,6 +3265,26 @@ export declare const registry: Readonly<{
|
|
|
3097
3265
|
vehicleAssetEmssnSourceConfig: string;
|
|
3098
3266
|
omniInteractionConfig: string;
|
|
3099
3267
|
uiview: string;
|
|
3268
|
+
productAttributeSet: string;
|
|
3269
|
+
recordAlertCategory: string;
|
|
3270
|
+
recordAlertDataSource: string;
|
|
3271
|
+
activationPlatform: string;
|
|
3272
|
+
dataConnectorIngestApi: string;
|
|
3273
|
+
dataSourceTenant: string;
|
|
3274
|
+
eSignatureConfig: string;
|
|
3275
|
+
eSignatureEnvelopeConfig: string;
|
|
3276
|
+
internalDataConnector: string;
|
|
3277
|
+
mobSecurityCertPinConfig: string;
|
|
3278
|
+
mobileSecurityAssignment: string;
|
|
3279
|
+
mobileSecurityPolicy: string;
|
|
3280
|
+
mobileSecurityPolicySet: string;
|
|
3281
|
+
applicationSubtypeDefinition: string;
|
|
3282
|
+
businessProcessTypeDefinition: string;
|
|
3283
|
+
explainabilityActionDefinition: string;
|
|
3284
|
+
explainabilityActionVersion: string;
|
|
3285
|
+
advAcctForecastDimSource: string;
|
|
3286
|
+
careLimitType: string;
|
|
3287
|
+
omniInteractionAccessConfig: string;
|
|
3100
3288
|
};
|
|
3101
3289
|
strictDirectoryNames: {
|
|
3102
3290
|
experiences: string;
|
|
@@ -3118,6 +3306,8 @@ export declare const registry: Readonly<{
|
|
|
3118
3306
|
dataMappingObjectDefinitions: string;
|
|
3119
3307
|
fieldRestrictionRules: string;
|
|
3120
3308
|
siteDotComSites: string;
|
|
3309
|
+
appointmentSchedulingPolicies: string;
|
|
3310
|
+
appointmentAssignmentPolicies: string;
|
|
3121
3311
|
};
|
|
3122
3312
|
childTypes: {
|
|
3123
3313
|
customlabel: string;
|
|
@@ -10,6 +10,7 @@ exports.VirtualTreeContainer = exports.ZipTreeContainer = exports.NodeFSTreeCont
|
|
|
10
10
|
const path_1 = require("path");
|
|
11
11
|
const graceful_fs_1 = require("graceful-fs");
|
|
12
12
|
const unzipper = require("unzipper");
|
|
13
|
+
const deasync = require("deasync");
|
|
13
14
|
const utils_1 = require("../utils");
|
|
14
15
|
const errors_1 = require("../errors");
|
|
15
16
|
/**
|
|
@@ -106,9 +107,22 @@ class ZipTreeContainer extends TreeContainer {
|
|
|
106
107
|
}
|
|
107
108
|
throw new errors_1.LibraryError('error_expected_file_path', fsPath);
|
|
108
109
|
}
|
|
109
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
110
110
|
readFileSync(fsPath) {
|
|
111
|
-
|
|
111
|
+
let done = false;
|
|
112
|
+
let dataBuffer;
|
|
113
|
+
this.readFile(fsPath)
|
|
114
|
+
.then((buffer) => {
|
|
115
|
+
dataBuffer = buffer;
|
|
116
|
+
done = true;
|
|
117
|
+
})
|
|
118
|
+
.catch((error) => {
|
|
119
|
+
done = true;
|
|
120
|
+
throw error;
|
|
121
|
+
});
|
|
122
|
+
deasync.loopWhile(() => {
|
|
123
|
+
return !done;
|
|
124
|
+
});
|
|
125
|
+
return dataBuffer;
|
|
112
126
|
}
|
|
113
127
|
stream(fsPath) {
|
|
114
128
|
if (!this.isDirectory(fsPath)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeContainers.js","sourceRoot":"","sources":["../../../src/resolve/treeContainers.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,+BAA+D;AAE/D,6CAAgG;AAChG,qCAAqC;AACrC,oCAAsD;AACtD,sCAAyC;AAGzC;;;;;GAKG;AACH,MAAsB,aAAa;IACjC;;;;;;;OAOG;IACI,IAAI,CAAC,QAAmC,EAAE,IAAY,EAAE,SAAiB;QAC9E,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,IAAI,CAA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,CAAC,CAAC;IAC5C,CAAC;IAEO,QAAQ,CAAC,SAA6B;QAC5C,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;YAC3B,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;YAClC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;gBAC5B,IAAI,SAAqB,CAAC;gBAC1B,IAAI,SAAiB,CAAC;gBACtB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;oBAC7B,SAAS,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC;iBAClC;qBAAM;oBACL,SAAS,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;oBACtC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;iBACxB;gBAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACtC,IAAI,SAAS,EAAE;oBACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;iBAC7C;aACF;SACF;IACH,CAAC;CACF;AAhGD,oDAgGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/source-deploy-retrieve",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.3",
|
|
4
4
|
"description": "JavaScript library to run Salesforce metadata deploys and retrieves",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"author": "Salesforce",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@salesforce/kit": "^1.5.32",
|
|
29
29
|
"@salesforce/ts-types": "^1.4.2",
|
|
30
30
|
"archiver": "^5.3.0",
|
|
31
|
+
"deasync": "^0.1.24",
|
|
31
32
|
"fast-xml-parser": "^3.17.4",
|
|
32
33
|
"graceful-fs": "^4.2.8",
|
|
33
34
|
"ignore": "^5.1.8",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"@salesforce/prettier-config": "^0.0.2",
|
|
42
43
|
"@salesforce/ts-sinon": "^1.1.2",
|
|
43
44
|
"@types/archiver": "^5.1.1",
|
|
45
|
+
"@types/deasync": "^0.1.2",
|
|
44
46
|
"@types/deep-equal-in-any-order": "^1.0.1",
|
|
45
47
|
"@types/jsforce": "^1.9.38",
|
|
46
48
|
"@types/mime": "2.0.3",
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
"pretest": "sf-compile-test",
|
|
99
101
|
"repl": "node --inspect ./scripts/repl.js",
|
|
100
102
|
"test": "sf-test",
|
|
101
|
-
"test:registry": "
|
|
103
|
+
"test:registry": "mocha ./test/registry/registryCompleteness.test.ts",
|
|
102
104
|
"update-registry": "npx ts-node scripts/update-registry/update2.ts",
|
|
103
105
|
"update-supported-metadata": "npx ts-node scripts/update-registry/update-supported-metadata.ts"
|
|
104
106
|
},
|