@salesforce/core 4.0.0 → 4.0.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.
Files changed (153) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +93 -44
  3. package/lib/config/aliasesConfig.d.ts +12 -0
  4. package/lib/config/aliasesConfig.js +28 -0
  5. package/lib/config/authInfoConfig.d.ts +19 -0
  6. package/lib/config/authInfoConfig.js +35 -0
  7. package/lib/config/config.d.ts +87 -22
  8. package/lib/config/config.js +117 -65
  9. package/lib/config/configAggregator.d.ts +41 -35
  10. package/lib/config/configAggregator.js +102 -73
  11. package/lib/config/configFile.d.ts +2 -2
  12. package/lib/config/configFile.js +38 -29
  13. package/lib/config/configGroup.d.ts +141 -0
  14. package/lib/config/configGroup.js +225 -0
  15. package/lib/config/configStore.d.ts +9 -9
  16. package/lib/config/configStore.js +17 -15
  17. package/lib/config/envVars.d.ts +15 -9
  18. package/lib/config/envVars.js +71 -47
  19. package/lib/config/orgUsersConfig.js +2 -0
  20. package/lib/config/sandboxOrgConfig.js +2 -0
  21. package/lib/config/sandboxProcessCache.d.ts +16 -0
  22. package/lib/config/sandboxProcessCache.js +38 -0
  23. package/lib/config/tokensConfig.d.ts +10 -0
  24. package/lib/config/tokensConfig.js +29 -0
  25. package/lib/config/ttlConfig.d.ts +34 -0
  26. package/lib/config/ttlConfig.js +50 -0
  27. package/lib/crypto/crypto.js +15 -22
  28. package/lib/crypto/keyChain.js +2 -3
  29. package/lib/crypto/keyChainImpl.d.ts +5 -3
  30. package/lib/crypto/keyChainImpl.js +58 -61
  31. package/lib/crypto/secureBuffer.d.ts +1 -1
  32. package/lib/deviceOauthService.d.ts +3 -3
  33. package/lib/deviceOauthService.js +27 -25
  34. package/lib/exported.d.ts +15 -12
  35. package/lib/exported.js +28 -16
  36. package/lib/global.d.ts +11 -3
  37. package/lib/global.js +39 -12
  38. package/lib/lifecycleEvents.d.ts +1 -1
  39. package/lib/lifecycleEvents.js +3 -0
  40. package/lib/logger.d.ts +19 -9
  41. package/lib/logger.js +112 -86
  42. package/lib/messages.d.ts +53 -36
  43. package/lib/messages.js +81 -91
  44. package/lib/org/authInfo.d.ts +56 -20
  45. package/lib/org/authInfo.js +232 -131
  46. package/lib/org/authRemover.d.ts +8 -7
  47. package/lib/org/authRemover.js +32 -28
  48. package/lib/org/connection.d.ts +13 -37
  49. package/lib/org/connection.js +78 -124
  50. package/lib/org/index.js +5 -1
  51. package/lib/org/org.d.ts +151 -48
  52. package/lib/org/org.js +466 -220
  53. package/lib/org/orgConfigProperties.d.ts +64 -3
  54. package/lib/org/orgConfigProperties.js +96 -4
  55. package/lib/org/permissionSetAssignment.js +4 -13
  56. package/lib/org/scratchOrgCache.d.ts +20 -0
  57. package/lib/org/scratchOrgCache.js +33 -0
  58. package/lib/org/scratchOrgCreate.d.ts +28 -17
  59. package/lib/org/scratchOrgCreate.js +125 -53
  60. package/lib/org/scratchOrgErrorCodes.d.ts +9 -3
  61. package/lib/org/scratchOrgErrorCodes.js +34 -17
  62. package/lib/org/scratchOrgFeatureDeprecation.js +1 -6
  63. package/lib/org/scratchOrgInfoApi.d.ts +21 -47
  64. package/lib/org/scratchOrgInfoApi.js +129 -63
  65. package/lib/org/scratchOrgInfoGenerator.d.ts +6 -5
  66. package/lib/org/scratchOrgInfoGenerator.js +76 -62
  67. package/lib/org/scratchOrgLifecycleEvents.d.ts +10 -0
  68. package/lib/org/scratchOrgLifecycleEvents.js +41 -0
  69. package/lib/org/scratchOrgSettingsGenerator.d.ts +44 -21
  70. package/lib/org/scratchOrgSettingsGenerator.js +165 -98
  71. package/lib/org/scratchOrgTypes.d.ts +43 -0
  72. package/lib/org/scratchOrgTypes.js +9 -0
  73. package/lib/org/user.d.ts +1 -1
  74. package/lib/org/user.js +25 -34
  75. package/lib/schema/printer.d.ts +6 -0
  76. package/lib/schema/printer.js +34 -31
  77. package/lib/schema/validator.d.ts +12 -10
  78. package/lib/schema/validator.js +56 -76
  79. package/lib/{sfdxError.d.ts → sfError.d.ts} +12 -20
  80. package/lib/{sfdxError.js → sfError.js} +40 -30
  81. package/lib/{sfdxProject.d.ts → sfProject.d.ts} +75 -35
  82. package/lib/sfProject.js +651 -0
  83. package/lib/{globalInfo → stateAggregator}/accessors/aliasAccessor.d.ts +27 -12
  84. package/lib/{globalInfo → stateAggregator}/accessors/aliasAccessor.js +47 -31
  85. package/lib/stateAggregator/accessors/orgAccessor.d.ts +101 -0
  86. package/lib/stateAggregator/accessors/orgAccessor.js +240 -0
  87. package/lib/stateAggregator/accessors/sandboxAccessor.d.ts +8 -0
  88. package/lib/stateAggregator/accessors/sandboxAccessor.js +28 -0
  89. package/lib/stateAggregator/accessors/tokenAccessor.d.ts +63 -0
  90. package/lib/stateAggregator/accessors/tokenAccessor.js +80 -0
  91. package/lib/stateAggregator/index.d.ts +4 -0
  92. package/lib/stateAggregator/index.js +27 -0
  93. package/lib/stateAggregator/stateAggregator.d.ts +25 -0
  94. package/lib/stateAggregator/stateAggregator.js +46 -0
  95. package/lib/status/myDomainResolver.d.ts +1 -1
  96. package/lib/status/myDomainResolver.js +4 -4
  97. package/lib/status/pollingClient.js +4 -4
  98. package/lib/status/streamingClient.d.ts +2 -2
  99. package/lib/status/streamingClient.js +58 -63
  100. package/lib/status/types.d.ts +2 -2
  101. package/lib/testSetup.d.ts +206 -75
  102. package/lib/testSetup.js +463 -165
  103. package/lib/util/cache.d.ts +2 -2
  104. package/lib/util/cache.js +6 -6
  105. package/lib/util/checkLightningDomain.js +3 -4
  106. package/lib/util/directoryWriter.d.ts +12 -0
  107. package/lib/util/directoryWriter.js +54 -0
  108. package/lib/util/getJwtAudienceUrl.js +1 -1
  109. package/lib/util/internal.d.ts +28 -2
  110. package/lib/util/internal.js +65 -8
  111. package/lib/util/jsonXmlTools.js +2 -4
  112. package/lib/util/mapKeys.d.ts +9 -9
  113. package/lib/util/mapKeys.js +13 -9
  114. package/lib/util/sfdc.d.ts +51 -51
  115. package/lib/util/sfdc.js +74 -79
  116. package/lib/util/sfdcUrl.d.ts +5 -19
  117. package/lib/util/sfdcUrl.js +40 -49
  118. package/lib/util/structuredWriter.d.ts +9 -0
  119. package/lib/util/structuredWriter.js +3 -0
  120. package/lib/util/zipWriter.d.ts +8 -6
  121. package/lib/util/zipWriter.js +13 -13
  122. package/lib/webOAuthServer.d.ts +20 -6
  123. package/lib/webOAuthServer.js +102 -56
  124. package/messageTransformer/messageTransformer.ts +93 -0
  125. package/messages/auth.md +9 -1
  126. package/messages/config.md +42 -6
  127. package/messages/connection.md +8 -0
  128. package/messages/core.md +10 -0
  129. package/messages/envVars.md +37 -3
  130. package/messages/org.md +21 -1
  131. package/messages/scratchOrgCreate.md +2 -6
  132. package/messages/scratchOrgErrorCodes.md +17 -1
  133. package/messages/scratchOrgInfoApi.md +9 -0
  134. package/messages/scratchOrgInfoGenerator.md +9 -1
  135. package/package.json +121 -46
  136. package/CHANGELOG.md +0 -1244
  137. package/lib/config/keychainConfig.d.ts +0 -19
  138. package/lib/config/keychainConfig.js +0 -43
  139. package/lib/globalInfo/accessors/orgAccessor.d.ts +0 -13
  140. package/lib/globalInfo/accessors/orgAccessor.js +0 -45
  141. package/lib/globalInfo/accessors/tokenAccessor.d.ts +0 -13
  142. package/lib/globalInfo/accessors/tokenAccessor.js +0 -35
  143. package/lib/globalInfo/globalInfoConfig.d.ts +0 -36
  144. package/lib/globalInfo/globalInfoConfig.js +0 -105
  145. package/lib/globalInfo/index.d.ts +0 -6
  146. package/lib/globalInfo/index.js +0 -29
  147. package/lib/globalInfo/sfdxDataHandler.d.ts +0 -43
  148. package/lib/globalInfo/sfdxDataHandler.js +0 -217
  149. package/lib/globalInfo/types.d.ts +0 -39
  150. package/lib/globalInfo/types.js +0 -10
  151. package/lib/sfdxProject.js +0 -557
  152. package/lib/util/fs.d.ts +0 -201
  153. package/lib/util/fs.js +0 -378
package/lib/org/org.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { AsyncOptionalCreatable, Duration } from '@salesforce/kit';
2
- import { AnyJson, JsonMap, Optional } from '@salesforce/ts-types';
2
+ import { AnyJson, JsonMap, Nullable, Optional } from '@salesforce/ts-types';
3
3
  import { ConfigAggregator } from '../config/configAggregator';
4
4
  import { OrgUsersConfig } from '../config/orgUsersConfig';
5
- import { SandboxOrgConfig } from '../config/sandboxOrgConfig';
6
5
  import { Connection } from './connection';
7
6
  import { AuthFields, AuthInfo } from './authInfo';
8
7
  import { ScratchOrgCreateOptions, ScratchOrgCreateResult } from './scratchOrgCreate';
9
- export declare type OrganizationInformation = {
8
+ export type OrganizationInformation = {
10
9
  Name: string;
11
10
  InstanceName: string;
12
11
  IsSandbox: boolean;
@@ -20,7 +19,7 @@ export declare enum OrgTypes {
20
19
  export interface StatusEvent {
21
20
  sandboxProcessObj: SandboxProcessObject;
22
21
  interval: number;
23
- retries: number;
22
+ remainingWait: number;
24
23
  waitingOnAuth: boolean;
25
24
  }
26
25
  export interface ResultEvent {
@@ -36,7 +35,8 @@ export declare enum SandboxEvents {
36
35
  EVENT_STATUS = "status",
37
36
  EVENT_ASYNC_RESULT = "asyncResult",
38
37
  EVENT_RESULT = "result",
39
- EVENT_AUTH = "auth"
38
+ EVENT_AUTH = "auth",
39
+ EVENT_RESUME = "resume"
40
40
  }
41
41
  export interface SandboxUserAuthResponse {
42
42
  authUserName: string;
@@ -44,7 +44,8 @@ export interface SandboxUserAuthResponse {
44
44
  instanceUrl: string;
45
45
  loginUrl: string;
46
46
  }
47
- export interface SandboxProcessObject {
47
+ export declare function sandboxIsResumable(value: string): boolean;
48
+ export type SandboxProcessObject = {
48
49
  Id: string;
49
50
  Status: string;
50
51
  SandboxName: string;
@@ -57,14 +58,27 @@ export interface SandboxProcessObject {
57
58
  Description?: string;
58
59
  ApexClassId?: string;
59
60
  EndDate?: string;
60
- }
61
- export declare type SandboxRequest = {
61
+ };
62
+ export type SandboxRequest = {
62
63
  SandboxName: string;
63
64
  LicenseType?: string;
65
+ /** Should match a SandboxInfoId, not a SandboxProcessId */
64
66
  SourceId?: string;
65
67
  Description?: string;
66
68
  };
67
- export declare type ScratchOrgRequest = Pick<ScratchOrgCreateOptions, 'connectedAppConsumerKey' | 'durationDays' | 'nonamespace' | 'noancestors' | 'wait' | 'retry' | 'apiversion' | 'definitionjson' | 'definitionfile' | 'orgConfig' | 'clientSecret'>;
69
+ export type ResumeSandboxRequest = {
70
+ SandboxName?: string;
71
+ SandboxProcessObjId?: string;
72
+ };
73
+ export type ScratchOrgRequest = Omit<ScratchOrgCreateOptions, 'hubOrg'>;
74
+ export type SandboxFields = {
75
+ sandboxOrgId: string;
76
+ prodOrgUsername: string;
77
+ sandboxName?: string;
78
+ sandboxUsername?: string;
79
+ sandboxProcessId?: string;
80
+ sandboxInfoId?: string;
81
+ };
68
82
  /**
69
83
  * Provides a way to manage a locally authenticated Org.
70
84
  *
@@ -109,9 +123,34 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
109
123
  * @param sandboxReq SandboxRequest options to create the sandbox with
110
124
  * @param options Wait: The amount of time to wait before timing out, Interval: The time interval between polling
111
125
  */
112
- createSandbox(sandboxReq: SandboxRequest, options: {
126
+ createSandbox(sandboxReq: SandboxRequest, options?: {
113
127
  wait?: Duration;
114
128
  interval?: Duration;
129
+ async?: boolean;
130
+ }): Promise<SandboxProcessObject>;
131
+ /**
132
+ *
133
+ * @param sandboxReq SandboxRequest options to create the sandbox with
134
+ * @param sourceSandboxName the name of the sandbox that your new sandbox will be based on
135
+ * @param options Wait: The amount of time to wait before timing out, defaults to 0, Interval: The time interval between polling defaults to 30 seconds
136
+ * @returns {SandboxProcessObject} the newly created sandbox process object
137
+ */
138
+ cloneSandbox(sandboxReq: SandboxRequest, sourceSandboxName: string, options: {
139
+ wait?: Duration;
140
+ interval?: Duration;
141
+ }): Promise<SandboxProcessObject>;
142
+ /**
143
+ * resume a sandbox creation from a production org
144
+ * 'this' needs to be a production org with sandbox licenses available
145
+ *
146
+ * @param resumeSandboxRequest SandboxRequest options to create the sandbox with
147
+ * @param options Wait: The amount of time to wait (default: 30 minutes) before timing out,
148
+ * Interval: The time interval (default: 30 seconds) between polling
149
+ */
150
+ resumeSandbox(resumeSandboxRequest: ResumeSandboxRequest, options?: {
151
+ wait?: Duration;
152
+ interval?: Duration;
153
+ async?: boolean;
115
154
  }): Promise<SandboxProcessObject>;
116
155
  /**
117
156
  * Creates a scratchOrg
@@ -121,6 +160,17 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
121
160
  * @returns {ScratchOrgCreateResult}
122
161
  */
123
162
  scratchOrgCreate(options: ScratchOrgRequest): Promise<ScratchOrgCreateResult>;
163
+ /**
164
+ * Reports sandbox org creation status. If the org is ready, authenticates to the org.
165
+ *
166
+ * @param {sandboxname} string the sandbox name
167
+ * @param options Wait: The amount of time to wait before timing out, Interval: The time interval between polling
168
+ * @returns {SandboxProcessObject} the sandbox process object
169
+ */
170
+ sandboxStatus(sandboxname: string, options: {
171
+ wait?: Duration;
172
+ interval?: Duration;
173
+ }): Promise<SandboxProcessObject>;
124
174
  /**
125
175
  * Clean all data files in the org's data path. Usually <workspace>/.sfdx/orgs/<username>.
126
176
  *
@@ -133,9 +183,7 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
133
183
  */
134
184
  retrieveOrgUsersConfig(): Promise<OrgUsersConfig>;
135
185
  /**
136
- * Removes the scratch org config file at $HOME/.sfdx/[name].json, any project level org
137
- * files, all user auth files for the org, matching default config settings, and any
138
- * matching aliases.
186
+ * Cleans up all org related artifacts including users, sandbox config (if a sandbox), source tracking files, and auth file.
139
187
  *
140
188
  * @param throwWhenRemoveFails Determines if the call should throw an error or fail silently.
141
189
  */
@@ -148,9 +196,9 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
148
196
  /**
149
197
  * Check that this org is a scratch org by asking the dev hub if it knows about it.
150
198
  *
151
- * **Throws** *{@link SfdxError}{ name: 'NotADevHubError' }* Not a Dev Hub.
199
+ * **Throws** *{@link SfError}{ name: 'NotADevHubError' }* Not a Dev Hub.
152
200
  *
153
- * **Throws** *{@link SfdxError}{ name: 'NoResultsError' }* No results.
201
+ * **Throws** *{@link SfError}{ name: 'NoResultsError' }* No results.
154
202
  *
155
203
  * @param devHubUsernameOrAlias The username or alias of the dev hub org.
156
204
  */
@@ -196,6 +244,17 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
196
244
  * scratch org**. If you need accuracy, use the {@link Org.determineIfScratch} method.
197
245
  */
198
246
  isScratch(): boolean;
247
+ /**
248
+ * Returns `true` if the org uses source tracking.
249
+ * Side effect: updates files where the property doesn't currently exist
250
+ */
251
+ tracksSource(): Promise<boolean>;
252
+ /**
253
+ * Set the tracking property on the org's auth file
254
+ *
255
+ * @param value true or false (whether the org should use source tracking or not)
256
+ */
257
+ setTracksSource(value: boolean): Promise<void>;
199
258
  /**
200
259
  * Returns `true` if the org is a scratch org.
201
260
  *
@@ -253,23 +312,24 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
253
312
  /**
254
313
  * Removes a username from the user config for this object. For convenience `this` object is returned.
255
314
  *
256
- * **Throws** *{@link SfdxError}{ name: 'MissingAuthInfoError' }* Auth info is missing.
315
+ * **Throws** *{@link SfError}{ name: 'MissingAuthInfoError' }* Auth info is missing.
257
316
  *
258
317
  * @param {AuthInfo | string} auth The AuthInfo containing the username to remove.
259
318
  */
260
319
  removeUsername(auth: AuthInfo | string): Promise<Org>;
261
320
  /**
262
- * Sets the key/value pair in the sandbox config for this org. For convenience `this` object is returned.
263
- *
321
+ * set the sandbox config related to this given org
264
322
  *
265
- * @param {key} The key for this value
266
- * @param {value} The value to save
323
+ * @param orgId {string} orgId of the sandbox
324
+ * @param config {SandboxFields} config of the sandbox
267
325
  */
268
- setSandboxOrgConfigField(field: SandboxOrgConfig.Fields, value: string): Promise<Org>;
326
+ setSandboxConfig(orgId: string, config: SandboxFields): Promise<Org>;
269
327
  /**
270
- * Returns an org config field. Returns undefined if the field is not set or invalid.
328
+ * get the sandbox config for the given orgId
329
+ *
330
+ * @param orgId {string} orgId of the sandbox
271
331
  */
272
- getSandboxOrgConfigField(field: SandboxOrgConfig.Fields): Promise<any>;
332
+ getSandboxConfig(orgId: string): Promise<Nullable<SandboxFields>>;
273
333
  /**
274
334
  * Retrieves the highest api version that is supported by the target server instance. If the apiVersion configured for
275
335
  * Sfdx is greater than the one returned in this call an api version mismatch occurs. In the case of the CLI that
@@ -298,16 +358,66 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
298
358
  getFields(keys: Org.Fields[]): JsonMap;
299
359
  /**
300
360
  * Returns the JSForce connection for the org.
361
+ * side effect: If you pass it an apiVersion, it will set it on the Org
362
+ * so that future calls to getConnection() will also use that version.
363
+ *
364
+ * @param apiVersion The API version to use for the connection.
301
365
  */
302
- getConnection(): Connection;
366
+ getConnection(apiVersion?: string): Connection;
367
+ supportsSourceTracking(): Promise<boolean>;
368
+ /**
369
+ * query SandboxProcess via sandbox name
370
+ *
371
+ * @param name SandboxName to query for
372
+ * @private
373
+ */
374
+ querySandboxProcessBySandboxName(name: string): Promise<SandboxProcessObject>;
375
+ /**
376
+ * query SandboxProcess via SandboxInfoId
377
+ *
378
+ * @param id SandboxInfoId to query for
379
+ * @private
380
+ */
381
+ querySandboxProcessBySandboxInfoId(id: string): Promise<SandboxProcessObject>;
382
+ /**
383
+ * query SandboxProcess via Id
384
+ *
385
+ * @param id SandboxProcessId to query for
386
+ * @private
387
+ */
388
+ querySandboxProcessById(id: string): Promise<SandboxProcessObject>;
303
389
  /**
304
390
  * Initialize async components.
305
391
  */
306
392
  protected init(): Promise<void>;
307
393
  /**
308
- * **Throws** *{@link SfdxError}{ name: 'NotSupportedError' }* Throws an unsupported error.
394
+ * **Throws** *{@link SfError}{ name: 'NotSupportedError' }* Throws an unsupported error.
309
395
  */
310
396
  protected getDefaultOptions(): Org.Options;
397
+ private getLocalDataDir;
398
+ /**
399
+ * Gets the sandboxProcessObject and then polls for it to complete.
400
+ *
401
+ * @param sandboxProcessName sanbox process name
402
+ * @param options { wait?: Duration; interval?: Duration }
403
+ * @returns {SandboxProcessObject} The SandboxProcessObject for the sandbox
404
+ */
405
+ private authWithRetriesByName;
406
+ /**
407
+ * Polls the sandbox org for the sandboxProcessObject.
408
+ *
409
+ * @param sandboxProcessObj: The in-progress sandbox signup request
410
+ * @param options { wait?: Duration; interval?: Duration }
411
+ * @returns {SandboxProcessObject}
412
+ */
413
+ private authWithRetries;
414
+ /**
415
+ * Query the sandbox for the SandboxProcessObject by sandbox name
416
+ *
417
+ * @param sandboxName The name of the sandbox to query
418
+ * @returns {SandboxProcessObject} The SandboxProcessObject for the sandbox
419
+ */
420
+ private queryLatestSandboxProcessBySandboxName;
311
421
  private queryProduction;
312
422
  private destroySandbox;
313
423
  private destroyScratchOrg;
@@ -334,10 +444,6 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
334
444
  * Deletes the users config file
335
445
  */
336
446
  private removeUsersConfig;
337
- /**
338
- * @ignore
339
- */
340
- private retrieveSandboxOrgConfig;
341
447
  private manageDelete;
342
448
  /**
343
449
  * Remove the org users auth file.
@@ -345,38 +451,30 @@ export declare class Org extends AsyncOptionalCreatable<Org.Options> {
345
451
  * @param throwWhenRemoveFails true if manageDelete should throw or not if the deleted fails.
346
452
  */
347
453
  private removeUsers;
348
- /**
349
- * Remove an associate sandbox config.
350
- *
351
- * @param throwWhenRemoveFails true if manageDelete should throw or not if the deleted fails.
352
- */
353
454
  private removeSandboxConfig;
354
455
  private writeSandboxAuthFile;
355
- /**
356
- * Polls for the new sandbox to be created - and will write the associated auth files
357
- *
358
- * @private
359
- * @param options
360
- * sandboxProcessObj: The in-progress sandbox signup request
361
- * retries: the number of retries to poll for every 30s
362
- * shouldPoll: wait for polling, or just return
363
- * pollInterval: Duration to sleep between poll events, default 30 seconds
364
- */
365
456
  private pollStatusAndAuth;
366
457
  /**
367
- * query SandboxProcess via SandboxInfoId
458
+ * query SandboxProcess using supplied where clause
368
459
  *
369
- * @param id SandboxInfoId to query for
460
+ * @param where clause to query for
370
461
  * @private
371
462
  */
372
463
  private querySandboxProcess;
373
464
  /**
374
465
  * determines if the sandbox has successfully been created
375
466
  *
376
- * @param sandboxProcessObj sandbox signup progeress
467
+ * @param sandboxProcessObj sandbox signup progress
377
468
  * @private
378
469
  */
379
470
  private sandboxSignupComplete;
471
+ private validateWaitOptions;
472
+ /**
473
+ * removes source tracking files hosted in the project/.sf/orgs/<org id>/
474
+ *
475
+ * @private
476
+ */
477
+ private removeSourceTrackingFiles;
380
478
  }
381
479
  export declare namespace Org {
382
480
  /**
@@ -461,6 +559,11 @@ export declare namespace Org {
461
559
  /**
462
560
  * The snapshot used to create the scratch org.
463
561
  */
464
- SNAPSHOT = "snapshot"
562
+ SNAPSHOT = "snapshot",
563
+ /**
564
+ * true: the org supports and wants source tracking
565
+ * false: the org opted out of tracking or can't support it
566
+ */
567
+ TRACKS_SOURCE = "tracksSource"
465
568
  }
466
569
  }