@salesforce/core 8.29.0 → 8.30.0
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/lib/org/authInfo.d.ts +1 -0
- package/lib/org/org.d.ts +6 -1
- package/lib/org/org.js +6 -1
- package/package.json +1 -1
package/lib/org/authInfo.d.ts
CHANGED
package/lib/org/org.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type OrganizationInformation = {
|
|
|
16
16
|
IsSandbox: boolean;
|
|
17
17
|
TrialExpirationDate: string | null;
|
|
18
18
|
NamespacePrefix: string | null;
|
|
19
|
+
OrganizationType: string;
|
|
19
20
|
};
|
|
20
21
|
export declare enum OrgTypes {
|
|
21
22
|
Scratch = "scratch",
|
|
@@ -364,7 +365,7 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
|
|
|
364
365
|
* Some organization information is locally cached, such as if the org name or if it is a scratch org.
|
|
365
366
|
* This method populates/updates the filesystem from information retrieved from the org.
|
|
366
367
|
*/
|
|
367
|
-
updateLocalInformation(): Promise<Pick<AuthFields, Org.Fields.NAME | Org.Fields.INSTANCE_NAME | Org.Fields.NAMESPACE_PREFIX | Org.Fields.IS_SANDBOX | Org.Fields.IS_SCRATCH | Org.Fields.TRIAL_EXPIRATION_DATE> | undefined>;
|
|
368
|
+
updateLocalInformation(): Promise<Pick<AuthFields, Org.Fields.NAME | Org.Fields.INSTANCE_NAME | Org.Fields.NAMESPACE_PREFIX | Org.Fields.IS_SANDBOX | Org.Fields.IS_SCRATCH | Org.Fields.TRIAL_EXPIRATION_DATE | Org.Fields.ORG_EDITION> | undefined>;
|
|
368
369
|
/**
|
|
369
370
|
* Executes a GET request on the baseUrl to force an auth refresh.
|
|
370
371
|
* This is useful for the raw methods (request, requestRaw) that use the accessToken directly and don't handle refreshes.
|
|
@@ -610,6 +611,10 @@ export declare namespace Org {
|
|
|
610
611
|
NAMESPACE_PREFIX = "namespacePrefix",
|
|
611
612
|
INSTANCE_NAME = "instanceName",
|
|
612
613
|
TRIAL_EXPIRATION_DATE = "trailExpirationDate",
|
|
614
|
+
/**
|
|
615
|
+
* The org edition. e.g. `Developer Edition`, `Enterprise Edition`.
|
|
616
|
+
*/
|
|
617
|
+
ORG_EDITION = "orgEdition",
|
|
613
618
|
/**
|
|
614
619
|
* The Salesforce instance the org was created on. e.g. `cs42`.
|
|
615
620
|
*/
|
package/lib/org/org.js
CHANGED
|
@@ -728,7 +728,7 @@ class Org extends kit_1.AsyncOptionalCreatable {
|
|
|
728
728
|
* @returns org information
|
|
729
729
|
*/
|
|
730
730
|
async retrieveOrganizationInformation() {
|
|
731
|
-
return this.getConnection().singleRecordQuery('SELECT Name, InstanceName, IsSandbox, TrialExpirationDate, NamespacePrefix FROM Organization');
|
|
731
|
+
return this.getConnection().singleRecordQuery('SELECT Name, InstanceName, IsSandbox, TrialExpirationDate, NamespacePrefix, OrganizationType FROM Organization');
|
|
732
732
|
}
|
|
733
733
|
async querySandboxInfo(by) {
|
|
734
734
|
if (by.id) {
|
|
@@ -768,6 +768,7 @@ class Org extends kit_1.AsyncOptionalCreatable {
|
|
|
768
768
|
[Org.Fields.IS_SANDBOX]: organization.IsSandbox && !organization.TrialExpirationDate,
|
|
769
769
|
[Org.Fields.IS_SCRATCH]: organization.IsSandbox && Boolean(organization.TrialExpirationDate),
|
|
770
770
|
[Org.Fields.TRIAL_EXPIRATION_DATE]: organization.TrialExpirationDate,
|
|
771
|
+
[Org.Fields.ORG_EDITION]: organization.OrganizationType,
|
|
771
772
|
};
|
|
772
773
|
stateAggregator.orgs.update(username, updateFields);
|
|
773
774
|
await stateAggregator.orgs.write(username);
|
|
@@ -1527,6 +1528,10 @@ exports.Org = Org;
|
|
|
1527
1528
|
Fields["NAMESPACE_PREFIX"] = "namespacePrefix";
|
|
1528
1529
|
Fields["INSTANCE_NAME"] = "instanceName";
|
|
1529
1530
|
Fields["TRIAL_EXPIRATION_DATE"] = "trailExpirationDate";
|
|
1531
|
+
/**
|
|
1532
|
+
* The org edition. e.g. `Developer Edition`, `Enterprise Edition`.
|
|
1533
|
+
*/
|
|
1534
|
+
Fields["ORG_EDITION"] = "orgEdition";
|
|
1530
1535
|
/**
|
|
1531
1536
|
* The Salesforce instance the org was created on. e.g. `cs42`.
|
|
1532
1537
|
*/
|