@salesforce/core 3.14.0 → 3.15.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.
@@ -1,5 +1,5 @@
1
1
  import { JsonMap } from '@salesforce/ts-types';
2
- import { ScratchOrgInfo } from './scratchOrgTypes';
2
+ import { ScratchOrgInfo, ObjectSetting } from './scratchOrgTypes';
3
3
  import { Org } from './org';
4
4
  export declare enum RequestStatus {
5
5
  Pending = "Pending",
@@ -32,7 +32,12 @@ export default class SettingsGenerator {
32
32
  private shapeDirName;
33
33
  constructor();
34
34
  /** extract the settings from the scratch def file, if they are present. */
35
- extract(scratchDef: ScratchOrgInfo): Promise<void>;
35
+ extract(scratchDef: ScratchOrgInfo): Promise<{
36
+ settings: Record<string, unknown> | undefined;
37
+ objectSettings: {
38
+ [objectName: string]: ObjectSetting;
39
+ } | undefined;
40
+ }>;
36
41
  /** True if we are currently tracking setting or object setting data. */
37
42
  hasSettings(): boolean;
38
43
  /** Create temporary deploy directory used to upload the scratch org shape.
@@ -45,6 +45,7 @@ class SettingsGenerator {
45
45
  this.settingData = scratchDef.settings;
46
46
  this.objectSettingsData = scratchDef.objectSettings;
47
47
  this.logger.debug('settings are', this.settingData);
48
+ return { settings: this.settingData, objectSettings: this.objectSettingsData };
48
49
  }
49
50
  /** True if we are currently tracking setting or object setting data. */
50
51
  hasSettings() {
@@ -87,6 +87,7 @@ class PollingClient extends kit_1.AsyncOptionalCreatable {
87
87
  if (errorInPollingFunction) {
88
88
  throw errorInPollingFunction;
89
89
  }
90
+ await lifecycleEvents_1.Lifecycle.getInstance().emit('POLLING_TIME_OUT', error);
90
91
  this.logger.debug('Polling timed out');
91
92
  throw new sfError_1.SfError('The client has timed out.', (_a = this.options.timeoutErrorName) !== null && _a !== void 0 ? _a : 'PollingClientTimeout');
92
93
  }
package/messages/org.md CHANGED
@@ -28,7 +28,7 @@ The sandbox org deletion failed with a result of %s.
28
28
 
29
29
  # sandboxNotFound
30
30
 
31
- We can't find a SandboxProcess for the sandbox org %s.
31
+ We can't find a SandboxProcess for the sandbox %s.
32
32
 
33
33
  # sandboxInfoCreateFailed
34
34
 
@@ -45,3 +45,11 @@ Sandbox status is %s; timed out waiting for completion.
45
45
  # NotFoundOnDevHub
46
46
 
47
47
  The scratch org does not belong to the dev hub username %s.
48
+
49
+ # AuthInfoOrgIdUndefined
50
+
51
+ AuthInfo orgId is undefined.
52
+
53
+ # sandboxCreateNotComplete
54
+
55
+ The sandbox creation has not completed.
@@ -25,3 +25,23 @@ Expected 'retry' to be an integer number.
25
25
  # WaitValidationMaxError
26
26
 
27
27
  Expected 'wait' greater than or equal to %s but received %s.
28
+
29
+ # NoScratchOrgInfoError
30
+
31
+ No ScratchOrgInfo object found in the Dev Hub you specified. Check that the ID and the Dev Hub are correct.
32
+
33
+ # ScratchOrgDeletedError
34
+
35
+ That scratch org has been deleted, so you can't connect to it anymore.
36
+
37
+ # CacheMissError
38
+
39
+ The ScratchOrgInfoId %s was not found in the cache.
40
+
41
+ # StillInProgressError
42
+
43
+ The scratch org is not ready yet (Status = %).
44
+
45
+ # action.StillInProgress
46
+
47
+ Wait for a few minutes, and then try the <%= config.bin %> <%= command.id %> command again
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -42,12 +42,12 @@
42
42
  "@types/mkdirp": "^1.0.2",
43
43
  "@types/semver": "^7.3.9",
44
44
  "archiver": "^5.3.0",
45
- "js2xmlparser": "^4.0.1",
46
45
  "change-case": "^4.1.2",
47
46
  "debug": "^3.2.7",
48
47
  "faye": "^1.4.0",
49
48
  "form-data": "^4.0.0",
50
49
  "graceful-fs": "^4.2.9",
50
+ "js2xmlparser": "^4.0.1",
51
51
  "jsen": "0.6.6",
52
52
  "jsforce": "2.0.0-beta.7",
53
53
  "jsonwebtoken": "8.5.1",