@salesforce/packaging 3.5.2 → 3.5.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.
|
@@ -11,10 +11,10 @@ import { PackagingSObjects } from './packagingSObjects';
|
|
|
11
11
|
import Package2VersionStatus = PackagingSObjects.Package2VersionStatus;
|
|
12
12
|
import PackageInstallRequest = PackagingSObjects.PackageInstallRequest;
|
|
13
13
|
import MetadataPackageVersion = PackagingSObjects.MetadataPackageVersion;
|
|
14
|
-
export
|
|
14
|
+
export type IPackageVersion1GP = {
|
|
15
15
|
getPackageVersion(id: string): Promise<MetadataPackageVersion[]>;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
16
|
+
};
|
|
17
|
+
export type IPackageVersion2GP = {
|
|
18
18
|
create(): Promise<void>;
|
|
19
19
|
convert(): Promise<void>;
|
|
20
20
|
delete(): Promise<void>;
|
|
@@ -22,7 +22,7 @@ export interface IPackageVersion2GP {
|
|
|
22
22
|
list(): Promise<void>;
|
|
23
23
|
uninstall(): Promise<void>;
|
|
24
24
|
update(): Promise<void>;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
export type PackageOptions = {
|
|
27
27
|
connection: Connection;
|
|
28
28
|
project: SfProject;
|
|
@@ -345,12 +345,12 @@ export type AncestryRepresentationProducerOptions = {
|
|
|
345
345
|
verbose?: boolean;
|
|
346
346
|
logger?: (text: string) => void;
|
|
347
347
|
};
|
|
348
|
-
export
|
|
348
|
+
export type AncestryRepresentationProducer = {
|
|
349
349
|
label: string;
|
|
350
350
|
options?: AncestryRepresentationProducerOptions;
|
|
351
351
|
addNode(node: AncestryRepresentationProducer): void;
|
|
352
352
|
produce(): PackageAncestryNodeData | string | void;
|
|
353
|
-
}
|
|
353
|
+
};
|
|
354
354
|
export declare const PackageEvents: {
|
|
355
355
|
convert: {
|
|
356
356
|
success: string;
|
|
@@ -10,6 +10,7 @@ export declare const DEFAULT_ORDER_BY_FIELDS = "Package2Id, Branch, MajorVersion
|
|
|
10
10
|
* @param options (optional) PackageVersionListOptions
|
|
11
11
|
*/
|
|
12
12
|
export declare function listPackageVersions(connection: Connection, options?: PackageVersionListOptions): Promise<QueryResult<PackageVersionListResult>>;
|
|
13
|
+
export declare function constructQuery(connectionVersion: number, options?: PackageVersionListOptions): string;
|
|
13
14
|
export declare function assembleQueryParts(select: string, where: string[], orderBy?: string): string;
|
|
14
15
|
export declare function constructWhere(options?: PackageVersionListOptions): string[];
|
|
15
16
|
export declare function validateDays(paramName: string, lastDays?: number): number;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.validateDays = exports.constructWhere = exports.assembleQueryParts = exports.listPackageVersions = exports.DEFAULT_ORDER_BY_FIELDS = void 0;
|
|
9
|
+
exports.validateDays = exports.constructWhere = exports.assembleQueryParts = exports.constructQuery = exports.listPackageVersions = exports.DEFAULT_ORDER_BY_FIELDS = void 0;
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
11
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
12
12
|
const packageUtils_1 = require("../utils/packageUtils");
|
|
@@ -35,14 +35,11 @@ const defaultFields = [
|
|
|
35
35
|
'ValidationSkipped',
|
|
36
36
|
'CreatedById',
|
|
37
37
|
'ConvertedFromVersionId',
|
|
38
|
-
];
|
|
39
|
-
const verboseFields = [
|
|
40
|
-
'CodeCoverage',
|
|
41
|
-
'HasPassedCodeCoverageCheck',
|
|
42
38
|
'ReleaseVersion',
|
|
43
39
|
'BuildDurationInSeconds',
|
|
44
40
|
'HasMetadataRemoved',
|
|
45
41
|
];
|
|
42
|
+
const verboseFields = ['CodeCoverage', 'HasPassedCodeCoverageCheck'];
|
|
46
43
|
const verbose57Fields = ['Language'];
|
|
47
44
|
exports.DEFAULT_ORDER_BY_FIELDS = 'Package2Id, Branch, MajorVersion, MinorVersion, PatchVersion, BuildNumber';
|
|
48
45
|
let logger;
|
|
@@ -77,6 +74,7 @@ function constructQuery(connectionVersion, options) {
|
|
|
77
74
|
const query = `SELECT ${queryFields.toString()} FROM Package2Version`;
|
|
78
75
|
return assembleQueryParts(query, where, options?.orderBy);
|
|
79
76
|
}
|
|
77
|
+
exports.constructQuery = constructQuery;
|
|
80
78
|
function assembleQueryParts(select, where, orderBy) {
|
|
81
79
|
// construct ORDER BY clause
|
|
82
80
|
const orderByPart = `ORDER BY ${orderBy ? orderBy : exports.DEFAULT_ORDER_BY_FIELDS}`;
|
|
@@ -38,14 +38,14 @@ const node_util_1 = __importDefault(require("node:util"));
|
|
|
38
38
|
// Local
|
|
39
39
|
const core_1 = require("@salesforce/core");
|
|
40
40
|
const pkgUtils = __importStar(require("../utils/packageUtils"));
|
|
41
|
-
const QUERY = 'SELECT Package2Id, SubscriberPackageVersionId, Name, Description, Tag, Branch, AncestorId, ValidationSkipped, ' +
|
|
41
|
+
const QUERY = 'SELECT Id, Package2Id, SubscriberPackageVersionId, Name, Description, Tag, Branch, AncestorId, ValidationSkipped, ' +
|
|
42
42
|
'MajorVersion, MinorVersion, PatchVersion, BuildNumber, IsReleased, CodeCoverage, HasPassedCodeCoverageCheck, ' +
|
|
43
43
|
'Package2.IsOrgDependent, ReleaseVersion, BuildDurationInSeconds, HasMetadataRemoved, CreatedById, ConvertedFromVersionId ' +
|
|
44
44
|
'FROM Package2Version ' +
|
|
45
45
|
"WHERE Id = '%s' AND IsDeprecated != true " +
|
|
46
46
|
'ORDER BY Package2Id, Branch, MajorVersion, MinorVersion, PatchVersion, BuildNumber';
|
|
47
|
-
// verbose adds:
|
|
48
|
-
const QUERY_VERBOSE = 'SELECT
|
|
47
|
+
// verbose adds: ConvertedFromVersionId, SubscriberPackageVersion.Dependencies
|
|
48
|
+
const QUERY_VERBOSE = 'SELECT Package2Id, SubscriberPackageVersionId, Name, Description, Tag, Branch, AncestorId, ValidationSkipped, ' +
|
|
49
49
|
'MajorVersion, MinorVersion, PatchVersion, BuildNumber, IsReleased, CodeCoverage, HasPassedCodeCoverageCheck, ConvertedFromVersionId, ' +
|
|
50
50
|
'Package2.IsOrgDependent, ReleaseVersion, BuildDurationInSeconds, HasMetadataRemoved, SubscriberPackageVersion.Dependencies, ' +
|
|
51
51
|
'CreatedById, CodeCoveragePercentages ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@jsforce/jsforce-node": "^3.1.0",
|
|
45
|
-
"@oclif/core": "^3",
|
|
45
|
+
"@oclif/core": "^3.26.2",
|
|
46
46
|
"@salesforce/core": "^7.2.0",
|
|
47
47
|
"@salesforce/kit": "^3.1.0",
|
|
48
48
|
"@salesforce/schemas": "^1.7.0",
|
|
49
|
-
"@salesforce/source-deploy-retrieve": "^11.0.
|
|
49
|
+
"@salesforce/source-deploy-retrieve": "^11.0.1",
|
|
50
50
|
"@salesforce/ts-types": "^2.0.9",
|
|
51
51
|
"fast-xml-parser": "^4.3.6",
|
|
52
52
|
"globby": "^11",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@salesforce/cli-plugins-testkit": "^5.2.0",
|
|
60
|
-
"@salesforce/dev-scripts": "^
|
|
60
|
+
"@salesforce/dev-scripts": "^9.0.0",
|
|
61
61
|
"@salesforce/ts-sinon": "^1.4.19",
|
|
62
62
|
"@types/globby": "^9.1.0",
|
|
63
63
|
"@types/jszip": "^3.4.1",
|
|
64
64
|
"eslint-plugin-sf-plugin": "^1.18.0",
|
|
65
65
|
"shelljs": "0.8.5",
|
|
66
66
|
"ts-node": "^10.9.2",
|
|
67
|
-
"typescript": "^5.4.
|
|
67
|
+
"typescript": "^5.4.5"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|