@salesforce/source-deploy-retrieve 5.11.0 → 5.12.2

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.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.1...v5.12.2) (2022-03-01)
6
+
7
+ ### Bug Fixes
8
+
9
+ - 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))
10
+
11
+ ### [5.12.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.12.0...v5.12.1) (2022-03-01)
12
+
13
+ ## [5.12.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.11.0...v5.12.0) (2022-02-22)
14
+
15
+ ### Features
16
+
17
+ - **metadata registry:** adding flowtest type to metadata registry ([#580](https://github.com/forcedotcom/source-deploy-retrieve/issues/580)) ([40431f6](https://github.com/forcedotcom/source-deploy-retrieve/commit/40431f60eb29d02e33b5fc4f5f2066271b06c630))
18
+
5
19
  ## [5.11.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.10.0...v5.11.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
@@ -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,EAAE,EAAE;oBACpD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EA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,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"}
@@ -0,0 +1,3 @@
1
+ import { CoverageObject } from '../../src/registry/types';
2
+ export declare const getCurrentApiVersion: () => Promise<number>;
3
+ export declare const getCoverage: (apiVersion: number) => Promise<CoverageObject>;
@@ -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"}
@@ -618,6 +618,14 @@
618
618
  "inFolder": false,
619
619
  "strictDirectoryName": false
620
620
  },
621
+ "flowtest": {
622
+ "id": "flowtest",
623
+ "name": "FlowTest",
624
+ "suffix": "flowtest",
625
+ "directoryName": "flowTest",
626
+ "inFolder": false,
627
+ "strictDirectoryName": false
628
+ },
621
629
  "eventtype": {
622
630
  "id": "eventtype",
623
631
  "name": "EventType",
@@ -2020,7 +2028,7 @@
2020
2028
  "suffix": "policy",
2021
2029
  "directoryName": "appointmentSchedulingPolicies",
2022
2030
  "inFolder": false,
2023
- "strictDirectoryName": false
2031
+ "strictDirectoryName": true
2024
2032
  },
2025
2033
  "notificationtypeconfig": {
2026
2034
  "id": "notificationtypeconfig",
@@ -2781,6 +2789,174 @@
2781
2789
  "strategies": {
2782
2790
  "adapter": "matchingContentFile"
2783
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
2784
2960
  }
2785
2961
  },
2786
2962
  "suffixes": {
@@ -2861,6 +3037,7 @@
2861
3037
  "recommendationStrategy": "recommendationstrategy",
2862
3038
  "flow": "flow",
2863
3039
  "flowDefinition": "flowdefinition",
3040
+ "flowtest": "flowtest",
2864
3041
  "eventType": "eventtype",
2865
3042
  "subscription": "eventsubscription",
2866
3043
  "delivery": "eventdelivery",
@@ -2947,7 +3124,7 @@
2947
3124
  "actionLinkGroupTemplate": "actionlinkgrouptemplate",
2948
3125
  "licenseDefinition": "licensedefinition",
2949
3126
  "transactionSecurityPolicy": "transactionsecuritypolicy",
2950
- "policy": "appointmentschedulingpolicy",
3127
+ "policy": "appointmentassignmentpolicy",
2951
3128
  "skill": "skill",
2952
3129
  "liveChatDeployment": "livechatdeployment",
2953
3130
  "liveChatButton": "livechatbutton",
@@ -3084,7 +3261,27 @@
3084
3261
  "stationaryAssetEnvSourceConfig": "stnryassetenvsrccnfg",
3085
3262
  "vehicleAssetEmssnSourceConfig": "vehicleassetemssnsrccnfg",
3086
3263
  "omniInteractionConfig": "omniinteractionconfig",
3087
- "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"
3088
3285
  },
3089
3286
  "strictDirectoryNames": {
3090
3287
  "experiences": "experiencebundle",
@@ -3105,7 +3302,9 @@
3105
3302
  "IndustriesManufacturingSettings": "industriesmanufacturingsettings",
3106
3303
  "dataMappingObjectDefinitions": "datamappingobjectdefinition",
3107
3304
  "fieldRestrictionRules": "fieldrestrictionrule",
3108
- "siteDotComSites": "sitedotcom"
3305
+ "siteDotComSites": "sitedotcom",
3306
+ "appointmentSchedulingPolicies": "appointmentschedulingpolicy",
3307
+ "appointmentAssignmentPolicies": "appointmentassignmentpolicy"
3109
3308
  },
3110
3309
  "childTypes": {
3111
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,uBAAuB;IACvB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;IACd,8BAA8B;IAC9B,2BAA2B;IAC3B,oBAAoB;IACpB,gBAAgB;IAChB,iBAAiB;CAClB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,aAAa,EAAE,0FAA0F;CAC1G,CAAC;AACW,QAAA,aAAa,GAAG;IAC3B,+CAA+C;IAC/C,eAAe;IACf,6BAA6B;IAC7B,oBAAoB;IACpB,0BAA0B;IAC1B,eAAe;IACf,4BAA4B;IAC5B,6BAA6B;IAC7B,iCAAiC;IACjC,aAAa;IACb,eAAe;CAChB,CAAC;AAEK,MAAM,sBAAsB,GAAG,CAAC,IAAwB,EAAW,EAAE;;IAC1E,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,EAAE;QAC9B,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AAwB,EAAW,EAAE;;IAC1E,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAA,EAAE;QAC9B,OAAO,IAAI,CAAC;KACb;IAED,IACE,CAAA,MAAA,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,0CAAE,MAAM;QACzC,gBAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA,EAAA,CAAC,EAChF;QACA,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAC,QAAQ,KAAI,gBAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA,EAAA,CAAC,CAAC;AACvH,CAAC,CAAC;AAZW,QAAA,sBAAsB,0BAYjC"}
@@ -621,6 +621,14 @@ export declare const registry: Readonly<{
621
621
  inFolder: boolean;
622
622
  strictDirectoryName: boolean;
623
623
  };
624
+ flowtest: {
625
+ id: string;
626
+ name: string;
627
+ suffix: string;
628
+ directoryName: string;
629
+ inFolder: boolean;
630
+ strictDirectoryName: boolean;
631
+ };
624
632
  eventtype: {
625
633
  id: string;
626
634
  name: string;
@@ -2785,6 +2793,174 @@ export declare const registry: Readonly<{
2785
2793
  adapter: string;
2786
2794
  };
2787
2795
  };
2796
+ productattributeset: {
2797
+ id: string;
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
+ };
2788
2964
  };
2789
2965
  suffixes: {
2790
2966
  ai: string;
@@ -2864,6 +3040,7 @@ export declare const registry: Readonly<{
2864
3040
  recommendationStrategy: string;
2865
3041
  flow: string;
2866
3042
  flowDefinition: string;
3043
+ flowtest: string;
2867
3044
  eventType: string;
2868
3045
  subscription: string;
2869
3046
  delivery: string;
@@ -3088,6 +3265,26 @@ export declare const registry: Readonly<{
3088
3265
  vehicleAssetEmssnSourceConfig: string;
3089
3266
  omniInteractionConfig: string;
3090
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;
3091
3288
  };
3092
3289
  strictDirectoryNames: {
3093
3290
  experiences: string;
@@ -3109,6 +3306,8 @@ export declare const registry: Readonly<{
3109
3306
  dataMappingObjectDefinitions: string;
3110
3307
  fieldRestrictionRules: string;
3111
3308
  siteDotComSites: string;
3309
+ appointmentSchedulingPolicies: string;
3310
+ appointmentAssignmentPolicies: string;
3112
3311
  };
3113
3312
  childTypes: {
3114
3313
  customlabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/source-deploy-retrieve",
3
- "version": "5.11.0",
3
+ "version": "5.12.2",
4
4
  "description": "JavaScript library to run Salesforce metadata deploys and retrieves",
5
5
  "main": "lib/src/index.js",
6
6
  "author": "Salesforce",
@@ -98,7 +98,7 @@
98
98
  "pretest": "sf-compile-test",
99
99
  "repl": "node --inspect ./scripts/repl.js",
100
100
  "test": "sf-test",
101
- "test:registry": "nyc mocha ./test/registry/registryCompleteness.test.ts",
101
+ "test:registry": "mocha ./test/registry/registryCompleteness.test.ts",
102
102
  "update-registry": "npx ts-node scripts/update-registry/update2.ts",
103
103
  "update-supported-metadata": "npx ts-node scripts/update-registry/update-supported-metadata.ts"
104
104
  },