@salesforce/core-bundle 6.5.5 → 6.7.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.
@@ -1213,8 +1213,9 @@ declare module '@salesforce/core-bundle/config/sandboxProcessCache' {
1213
1213
  import { TTLConfig } from '@salesforce/core-bundle/config/ttlConfig';
1214
1214
  export type SandboxRequestCacheEntry = {
1215
1215
  alias?: string;
1216
- setDefault: boolean;
1216
+ setDefault?: boolean;
1217
1217
  prodOrgUsername: string;
1218
+ action: 'Create' | 'Refresh';
1218
1219
  sandboxProcessObject: Partial<SandboxProcessObject>;
1219
1220
  sandboxRequest: Partial<SandboxRequest>;
1220
1221
  tracksSource?: boolean;
@@ -1288,6 +1289,7 @@ declare module '@salesforce/core-bundle/crypto/crypto' {
1288
1289
  * @ignore
1289
1290
  */
1290
1291
  constructor(options?: CryptoOptions);
1292
+ private static unsetCryptoVersion;
1291
1293
  /**
1292
1294
  * Encrypts text. Returns the encrypted string or undefined if no string was passed.
1293
1295
  *
@@ -1312,10 +1314,15 @@ declare module '@salesforce/core-bundle/crypto/crypto' {
1312
1314
  * Clears the crypto state. This should be called in a finally block.
1313
1315
  */
1314
1316
  close(): void;
1317
+ isV2Crypto(): boolean;
1315
1318
  /**
1316
1319
  * Initialize async components.
1317
1320
  */
1318
1321
  protected init(): Promise<void>;
1322
+ private encryptV1;
1323
+ private encryptV2;
1324
+ private decryptV1;
1325
+ private decryptV2;
1319
1326
  private getKeyChain;
1320
1327
  }
1321
1328
  export {};
@@ -1573,47 +1580,6 @@ declare module '@salesforce/core-bundle/deviceOauthService' {
1573
1580
  private pollForDeviceApproval;
1574
1581
  }
1575
1582
 
1576
- }
1577
- declare module '@salesforce/core-bundle/exported' {
1578
- export { OAuth2Config } from 'jsforce';
1579
- export { ConfigFile } from '@salesforce/core-bundle/config/configFile';
1580
- export { TTLConfig } from '@salesforce/core-bundle/config/ttlConfig';
1581
- export { envVars, EnvironmentVariable, SUPPORTED_ENV_VARS, EnvVars } from '@salesforce/core-bundle/config/envVars';
1582
- export { ConfigStore } from '@salesforce/core-bundle/config/configStore';
1583
- export { ConfigEntry, ConfigContents, ConfigValue } from '@salesforce/core-bundle/config/configStackTypes';
1584
- export { StateAggregator } from '@salesforce/core-bundle/stateAggregator/stateAggregator';
1585
- export { DeviceOauthService, DeviceCodeResponse, DeviceCodePollingResponse } from '@salesforce/core-bundle/deviceOauthService';
1586
- export { OrgUsersConfig } from '@salesforce/core-bundle/config/orgUsersConfig';
1587
- export { ConfigPropertyMeta, ConfigPropertyMetaInput, Config, SfdxPropertyKeys, SfConfigProperties, SFDX_ALLOWED_PROPERTIES, SF_ALLOWED_PROPERTIES, } from '@salesforce/core-bundle/config/config';
1588
- export { SandboxRequestCacheEntry, SandboxRequestCache } from '@salesforce/core-bundle/config/sandboxProcessCache';
1589
- export { ConfigInfo, ConfigAggregator } from '@salesforce/core-bundle/config/configAggregator';
1590
- export { AuthFields, AuthInfo, AuthSideEffects, OrgAuthorization } from '@salesforce/core-bundle/org/authInfo';
1591
- export { AuthRemover } from '@salesforce/core-bundle/org/authRemover';
1592
- export { Connection, SFDX_HTTP_HEADERS } from '@salesforce/core-bundle/org/connection';
1593
- export { Mode, Global } from '@salesforce/core-bundle/global';
1594
- export { Lifecycle } from '@salesforce/core-bundle/lifecycleEvents';
1595
- export { WebOAuthServer } from '@salesforce/core-bundle/webOAuthServer';
1596
- export { SfdcUrl } from '@salesforce/core-bundle/util/sfdcUrl';
1597
- export { getJwtAudienceUrl } from '@salesforce/core-bundle/util/getJwtAudienceUrl';
1598
- export { Fields, FieldValue, LoggerLevel, LoggerLevelValue, LogLine, LoggerOptions, Logger } from '@salesforce/core-bundle/logger/logger';
1599
- export { Messages, StructuredMessage } from '@salesforce/core-bundle/messages';
1600
- export { Org, SandboxProcessObject, StatusEvent, SandboxEvents, SandboxUserAuthResponse, SandboxUserAuthRequest, SandboxRequest, ResumeSandboxRequest, OrgTypes, ResultEvent, ScratchOrgRequest, } from '@salesforce/core-bundle/org/org';
1601
- export { OrgConfigProperties, ORG_CONFIG_ALLOWED_PROPERTIES } from '@salesforce/core-bundle/org/orgConfigProperties';
1602
- export { PackageDir, NamedPackageDir, PackageDirDependency, SfProject, SfProjectJson } from '@salesforce/core-bundle/sfProject';
1603
- export { SchemaValidator } from '@salesforce/core-bundle/schema/validator';
1604
- export { SfError } from '@salesforce/core-bundle/sfError';
1605
- export { PollingClient } from '@salesforce/core-bundle/status/pollingClient';
1606
- export { CometClient, CometSubscription, StreamingClient, StatusResult } from '@salesforce/core-bundle/status/streamingClient';
1607
- export { MyDomainResolver } from '@salesforce/core-bundle/status/myDomainResolver';
1608
- export { DefaultUserFields, REQUIRED_FIELDS, User, UserFields } from '@salesforce/core-bundle/org/user';
1609
- export { PermissionSetAssignment, PermissionSetAssignmentFields } from '@salesforce/core-bundle/org/permissionSetAssignment';
1610
- export { lockInit } from '@salesforce/core-bundle/util/fileLocking';
1611
- export { ScratchOrgCreateOptions, ScratchOrgCreateResult, scratchOrgCreate, scratchOrgResume, } from '@salesforce/core-bundle/org/scratchOrgCreate';
1612
- export { ScratchOrgInfo } from '@salesforce/core-bundle/org/scratchOrgTypes';
1613
- export { ScratchOrgLifecycleEvent, scratchOrgLifecycleEventName, scratchOrgLifecycleStages, } from '@salesforce/core-bundle/org/scratchOrgLifecycleEvents';
1614
- export { ScratchOrgCache } from '@salesforce/core-bundle/org/scratchOrgCache';
1615
- export * from '@salesforce/core-bundle/util/sfdc';
1616
-
1617
1583
  }
1618
1584
  declare module '@salesforce/core-bundle/global' {
1619
1585
  /**
@@ -1683,6 +1649,48 @@ declare module '@salesforce/core-bundle/global' {
1683
1649
  static createDir(dirPath?: string): Promise<void>;
1684
1650
  }
1685
1651
 
1652
+ }
1653
+ declare module '@salesforce/core-bundle/index' {
1654
+ export { OAuth2Config } from 'jsforce';
1655
+ export { ConfigFile } from '@salesforce/core-bundle/config/configFile';
1656
+ export { TTLConfig } from '@salesforce/core-bundle/config/ttlConfig';
1657
+ export { envVars, EnvironmentVariable, SUPPORTED_ENV_VARS, EnvVars } from '@salesforce/core-bundle/config/envVars';
1658
+ export { ConfigStore } from '@salesforce/core-bundle/config/configStore';
1659
+ export { ConfigEntry, ConfigContents, ConfigValue } from '@salesforce/core-bundle/config/configStackTypes';
1660
+ export { StateAggregator } from '@salesforce/core-bundle/stateAggregator/stateAggregator';
1661
+ export { DeviceOauthService, DeviceCodeResponse, DeviceCodePollingResponse } from '@salesforce/core-bundle/deviceOauthService';
1662
+ export { OrgUsersConfig } from '@salesforce/core-bundle/config/orgUsersConfig';
1663
+ export { ConfigPropertyMeta, ConfigPropertyMetaInput, Config, SfdxPropertyKeys, SfConfigProperties, SFDX_ALLOWED_PROPERTIES, SF_ALLOWED_PROPERTIES, } from '@salesforce/core-bundle/config/config';
1664
+ export { SandboxRequestCacheEntry, SandboxRequestCache } from '@salesforce/core-bundle/config/sandboxProcessCache';
1665
+ export { ConfigInfo, ConfigAggregator } from '@salesforce/core-bundle/config/configAggregator';
1666
+ export { AuthFields, AuthInfo, AuthSideEffects, OrgAuthorization } from '@salesforce/core-bundle/org/authInfo';
1667
+ export { AuthRemover } from '@salesforce/core-bundle/org/authRemover';
1668
+ export { Connection, SFDX_HTTP_HEADERS } from '@salesforce/core-bundle/org/connection';
1669
+ export { Mode, Global } from '@salesforce/core-bundle/global';
1670
+ export { Lifecycle } from '@salesforce/core-bundle/lifecycleEvents';
1671
+ export { WebOAuthServer } from '@salesforce/core-bundle/webOAuthServer';
1672
+ export { SfdcUrl } from '@salesforce/core-bundle/util/sfdcUrl';
1673
+ export { getJwtAudienceUrl } from '@salesforce/core-bundle/util/getJwtAudienceUrl';
1674
+ export { Fields, FieldValue, LoggerLevel, LoggerLevelValue, LogLine, LoggerOptions, Logger } from '@salesforce/core-bundle/logger/logger';
1675
+ export { Messages, StructuredMessage } from '@salesforce/core-bundle/messages';
1676
+ export { Org, SandboxProcessObject, StatusEvent, SandboxInfo, SandboxEvents, SandboxUserAuthResponse, SandboxUserAuthRequest, SandboxRequest, ResumeSandboxRequest, OrgTypes, ResultEvent, ScratchOrgRequest, } from '@salesforce/core-bundle/org/org';
1677
+ export { OrgConfigProperties, ORG_CONFIG_ALLOWED_PROPERTIES } from '@salesforce/core-bundle/org/orgConfigProperties';
1678
+ export { PackageDir, NamedPackageDir, PackageDirDependency, SfProject, SfProjectJson } from '@salesforce/core-bundle/sfProject';
1679
+ export { SchemaValidator } from '@salesforce/core-bundle/schema/validator';
1680
+ export { SfError } from '@salesforce/core-bundle/sfError';
1681
+ export { PollingClient } from '@salesforce/core-bundle/status/pollingClient';
1682
+ export { CometClient, CometSubscription, StreamingClient, StatusResult } from '@salesforce/core-bundle/status/streamingClient';
1683
+ export { MyDomainResolver } from '@salesforce/core-bundle/status/myDomainResolver';
1684
+ export { DefaultUserFields, REQUIRED_FIELDS, User, UserFields } from '@salesforce/core-bundle/org/user';
1685
+ export { PermissionSetAssignment, PermissionSetAssignmentFields } from '@salesforce/core-bundle/org/permissionSetAssignment';
1686
+ export { lockInit } from '@salesforce/core-bundle/util/fileLocking';
1687
+ export { ScratchOrgCreateOptions, ScratchOrgCreateResult, scratchOrgCreate, scratchOrgResume, } from '@salesforce/core-bundle/org/scratchOrgCreate';
1688
+ export { ScratchOrgInfo } from '@salesforce/core-bundle/org/scratchOrgTypes';
1689
+ export { ScratchOrgLifecycleEvent, scratchOrgLifecycleEventName, scratchOrgLifecycleStages, } from '@salesforce/core-bundle/org/scratchOrgLifecycleEvents';
1690
+ export { ScratchOrgCache } from '@salesforce/core-bundle/org/scratchOrgCache';
1691
+ export * from '@salesforce/core-bundle/util/sfdc';
1692
+ export * from '@salesforce/core-bundle/testSetup';
1693
+
1686
1694
  }
1687
1695
  declare module '@salesforce/core-bundle/lifecycleEvents' {
1688
1696
  import { AnyJson } from '@salesforce/ts-types';
@@ -3098,6 +3106,24 @@ declare module '@salesforce/core-bundle/org/org' {
3098
3106
  SandboxName?: string;
3099
3107
  SandboxProcessObjId?: string;
3100
3108
  };
3109
+ export type SandboxInfo = {
3110
+ Id: string;
3111
+ IsDeleted: boolean;
3112
+ CreatedDate: string;
3113
+ CreatedById: string;
3114
+ LastModifiedDate: string;
3115
+ LastModifiedById: string;
3116
+ SandboxName: string;
3117
+ LicenseType: 'DEVELOPER' | 'DEVELOPER PRO' | 'PARTIAL' | 'FULL';
3118
+ TemplateId?: string;
3119
+ HistoryDays: -1 | 0 | 10 | 20 | 30 | 60 | 90 | 120 | 150 | 180;
3120
+ CopyChatter: boolean;
3121
+ AutoActivate: boolean;
3122
+ ApexClassId?: string;
3123
+ Description?: string;
3124
+ SourceId?: string;
3125
+ CopyArchivedActivities?: boolean;
3126
+ };
3101
3127
  export type ScratchOrgRequest = Omit<ScratchOrgCreateOptions, 'hubOrg'>;
3102
3128
  export type SandboxFields = {
3103
3129
  sandboxOrgId: string;
@@ -3157,6 +3183,18 @@ declare module '@salesforce/core-bundle/org/org' {
3157
3183
  interval?: Duration;
3158
3184
  async?: boolean;
3159
3185
  }): Promise<SandboxProcessObject>;
3186
+ /**
3187
+ * Refresh (update) a sandbox from a production org.
3188
+ * 'this' needs to be a production org with sandbox licenses available
3189
+ *
3190
+ * @param sandboxInfo SandboxInfo to update the sandbox with
3191
+ * @param options Wait: The amount of time to wait before timing out, Interval: The time interval between polling
3192
+ */
3193
+ refreshSandbox(sandboxInfo: SandboxInfo, options?: {
3194
+ wait?: Duration;
3195
+ interval?: Duration;
3196
+ async?: boolean;
3197
+ }): Promise<SandboxProcessObject>;
3160
3198
  /**
3161
3199
  *
3162
3200
  * @param sandboxReq SandboxRequest options to create the sandbox with
@@ -3169,10 +3207,10 @@ declare module '@salesforce/core-bundle/org/org' {
3169
3207
  interval?: Duration;
3170
3208
  }): Promise<SandboxProcessObject>;
3171
3209
  /**
3172
- * Resume a sandbox creation from a production org.
3210
+ * Resume a sandbox create or refresh from a production org.
3173
3211
  * `this` needs to be a production org with sandbox licenses available.
3174
3212
  *
3175
- * @param resumeSandboxRequest SandboxRequest options to create the sandbox with
3213
+ * @param resumeSandboxRequest SandboxRequest options to create/refresh the sandbox with
3176
3214
  * @param options Wait: The amount of time to wait (default: 0 minutes) before timing out,
3177
3215
  * Interval: The time interval (default: 30 seconds) between polling
3178
3216
  */