@salesforce/packaging 4.18.0 → 4.18.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.
|
@@ -126,7 +126,7 @@ export declare namespace BundleSObjects {
|
|
|
126
126
|
ValidationError?: string;
|
|
127
127
|
} & Schema;
|
|
128
128
|
type PkgBundleVersionInstallReq = {
|
|
129
|
-
|
|
129
|
+
PackageBundleVersionId: string;
|
|
130
130
|
DevelopmentOrganization: string;
|
|
131
131
|
};
|
|
132
132
|
type PkgBundleVersionInstallReqResult = PkgBundleVersionInstallReq & {
|
|
@@ -140,7 +140,7 @@ export declare namespace BundleSObjects {
|
|
|
140
140
|
type PkgBundleVersionInstallQueryRecord = {
|
|
141
141
|
Id: string;
|
|
142
142
|
InstallStatus: BundleSObjects.PkgBundleVersionInstallReqStatus;
|
|
143
|
-
|
|
143
|
+
PackageBundleVersionId: string;
|
|
144
144
|
DevelopmentOrganization: string;
|
|
145
145
|
ValidationError: string;
|
|
146
146
|
CreatedDate: string;
|
|
@@ -355,7 +355,7 @@ export type InstalledPackages = {
|
|
|
355
355
|
SubscriberPackageVersionId: string;
|
|
356
356
|
MinPackageVersionId: string;
|
|
357
357
|
SubscriberPackage?: PackagingSObjects.SubscriberPackage;
|
|
358
|
-
SubscriberPackageVersion?:
|
|
358
|
+
SubscriberPackageVersion?: PackagingSObjects.SubscriberPackageVersion;
|
|
359
359
|
};
|
|
360
360
|
export type CodeCoverage = null | {
|
|
361
361
|
apexCodeCoveragePercentage: number;
|
|
@@ -25,7 +25,7 @@ const messages = core_1.Messages.loadMessages('@salesforce/packaging', 'bundle_i
|
|
|
25
25
|
class PackageBundleInstall {
|
|
26
26
|
static async getInstallStatus(installRequestId, connection) {
|
|
27
27
|
try {
|
|
28
|
-
const query = 'SELECT Id, InstallStatus,
|
|
28
|
+
const query = 'SELECT Id, InstallStatus, PackageBundleVersionId, DevelopmentOrganization, ValidationError, ' +
|
|
29
29
|
'CreatedDate, CreatedById ' +
|
|
30
30
|
`FROM PkgBundleVersionInstallReq WHERE Id = '${installRequestId}'`;
|
|
31
31
|
const queryResult = await connection.autoFetchQuery(query, {
|
|
@@ -38,7 +38,7 @@ class PackageBundleInstall {
|
|
|
38
38
|
return {
|
|
39
39
|
Id: record.Id,
|
|
40
40
|
InstallStatus: record.InstallStatus,
|
|
41
|
-
|
|
41
|
+
PackageBundleVersionId: record.PackageBundleVersionId ?? '',
|
|
42
42
|
DevelopmentOrganization: record.DevelopmentOrganization ?? '',
|
|
43
43
|
ValidationError: record.ValidationError ?? '',
|
|
44
44
|
CreatedDate: record.CreatedDate ?? '',
|
|
@@ -52,7 +52,7 @@ class PackageBundleInstall {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
static async getInstallStatuses(connection, status, createdLastDays) {
|
|
55
|
-
let query = 'SELECT Id, InstallStatus,
|
|
55
|
+
let query = 'SELECT Id, InstallStatus, PackageBundleVersionId, DevelopmentOrganization, ValidationError, ' +
|
|
56
56
|
'CreatedDate, CreatedById ' +
|
|
57
57
|
'FROM PkgBundleVersionInstallReq';
|
|
58
58
|
if (status && createdLastDays) {
|
|
@@ -70,7 +70,7 @@ class PackageBundleInstall {
|
|
|
70
70
|
return queryResult.records.map((record) => ({
|
|
71
71
|
Id: record.Id,
|
|
72
72
|
InstallStatus: record.InstallStatus,
|
|
73
|
-
|
|
73
|
+
PackageBundleVersionId: record.PackageBundleVersionId ?? '',
|
|
74
74
|
DevelopmentOrganization: record.DevelopmentOrganization ?? '',
|
|
75
75
|
ValidationError: record.ValidationError ?? '',
|
|
76
76
|
CreatedDate: record.CreatedDate ?? '',
|
|
@@ -81,7 +81,7 @@ class PackageBundleInstall {
|
|
|
81
81
|
static async installBundle(connection, project, options) {
|
|
82
82
|
const packageBundleVersionId = PackageBundleInstall.parsePackageBundleVersionId(options.PackageBundleVersion, project);
|
|
83
83
|
const request = {
|
|
84
|
-
|
|
84
|
+
PackageBundleVersionId: packageBundleVersionId,
|
|
85
85
|
DevelopmentOrganization: options.DevelopmentOrganization,
|
|
86
86
|
};
|
|
87
87
|
let installResult;
|
|
@@ -155,7 +155,7 @@ class SubscriberPackageVersion {
|
|
|
155
155
|
*/
|
|
156
156
|
static async installedList(conn) {
|
|
157
157
|
try {
|
|
158
|
-
const query = 'SELECT Id, SubscriberPackageId, SubscriberPackage.NamespacePrefix, SubscriberPackage.Name, SubscriberPackageVersion.Id, SubscriberPackageVersion.Name, SubscriberPackageVersion.MajorVersion, SubscriberPackageVersion.MinorVersion, SubscriberPackageVersion.PatchVersion, SubscriberPackageVersion.BuildNumber FROM InstalledSubscriberPackage ORDER BY SubscriberPackageId';
|
|
158
|
+
const query = 'SELECT Id, SubscriberPackageId, SubscriberPackage.NamespacePrefix, SubscriberPackage.Name, SubscriberPackageVersion.Id, SubscriberPackageVersion.Name, SubscriberPackageVersion.MajorVersion, SubscriberPackageVersion.MinorVersion, SubscriberPackageVersion.PatchVersion, SubscriberPackageVersion.BuildNumber, SubscriberPackageVersion.IsManaged, SubscriberPackageVersion.Package2ContainerOptions FROM InstalledSubscriberPackage ORDER BY SubscriberPackageId';
|
|
159
159
|
return (await conn.tooling.query(query)).records;
|
|
160
160
|
}
|
|
161
161
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.2",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"!lib/**/*.map"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@jsforce/jsforce-node": "^3.10.
|
|
46
|
-
"@salesforce/core": "^8.
|
|
45
|
+
"@jsforce/jsforce-node": "^3.10.10",
|
|
46
|
+
"@salesforce/core": "^8.24.0",
|
|
47
47
|
"@salesforce/kit": "^3.2.4",
|
|
48
48
|
"@salesforce/schemas": "^1.10.3",
|
|
49
|
-
"@salesforce/source-deploy-retrieve": "^12.
|
|
50
|
-
"@salesforce/ts-types": "^2.0.
|
|
49
|
+
"@salesforce/source-deploy-retrieve": "^12.30.2",
|
|
50
|
+
"@salesforce/ts-types": "^2.0.12",
|
|
51
51
|
"@salesforce/types": "^1.2.0",
|
|
52
52
|
"fast-xml-parser": "^4.5.0",
|
|
53
53
|
"globby": "^11",
|