@salesforce/packaging 4.18.0 → 4.18.1
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;
|
|
@@ -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;
|