@salesforce/core 9.1.1 → 9.1.3
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/schema/project-scratch-def/patternFeaturesList.js +1 -0
- package/lib/schema/project-scratch-def/scratchOrgDef.d.ts +1 -0
- package/lib/schema/project-scratch-def/settings.d.ts +1 -0
- package/lib/schema/project-scratch-def/settings.js +4 -0
- package/lib/schema/project-scratch-def/simpleFeaturesList.js +12 -0
- package/lib/sfProject.js +10 -8
- package/lib/util/sfdcUrl.js +11 -10
- package/package.json +1 -1
- package/schemas/project-scratch-def.schema.json +25 -0
|
@@ -23,6 +23,7 @@ export declare const ScratchOrgDefSchema: z.ZodObject<{
|
|
|
23
23
|
actionsSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
24
|
activitiesSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
25
|
addressSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
agentforceAccountManagementSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
27
|
agentforceForDevelopersSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
28
|
agentPlatformSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
29
|
aIReplyRecommendationsSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -12,6 +12,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
12
12
|
actionsSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
activitiesSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
14
|
addressSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
agentforceAccountManagementSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
16
|
agentforceForDevelopersSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
17
|
agentPlatformSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
18
|
aIReplyRecommendationsSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -55,6 +55,10 @@ exports.SettingsSchema = zod_1.z
|
|
|
55
55
|
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
56
56
|
.optional()
|
|
57
57
|
.describe('For more details go to https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_addresssettings.htm'),
|
|
58
|
+
agentforceAccountManagementSettings: zod_1.z
|
|
59
|
+
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
60
|
+
.optional()
|
|
61
|
+
.describe('For more details go to https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_agentforceaccountmanagementsettings.htm'),
|
|
58
62
|
agentforceForDevelopersSettings: zod_1.z
|
|
59
63
|
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
60
64
|
.optional()
|
|
@@ -26,10 +26,13 @@ exports.simpleFeaturesList = [
|
|
|
26
26
|
'AdmissionsConnectUser',
|
|
27
27
|
'AdvisorLinkFeature',
|
|
28
28
|
'AdvisorLinkPathwaysFeature',
|
|
29
|
+
'AgentforceVibesIDEForDE',
|
|
30
|
+
'AgentforceVibesUnmeteredAccess',
|
|
29
31
|
'AllUserIdServiceAccess',
|
|
30
32
|
'AnalyticsAdminPerms',
|
|
31
33
|
'AnalyticsAppEmbedded',
|
|
32
34
|
'ApexGuruCodeAnalyzer',
|
|
35
|
+
'ApexIntegrationTests (Developer Preview)',
|
|
33
36
|
'ApexUserModeWithPermSet',
|
|
34
37
|
'ArcGraphCommunity',
|
|
35
38
|
'Assessments',
|
|
@@ -64,6 +67,7 @@ exports.simpleFeaturesList = [
|
|
|
64
67
|
'ChatterEmailFooterLogo',
|
|
65
68
|
'ChatterEmailFooterText',
|
|
66
69
|
'ChatterEmailSenderName',
|
|
70
|
+
'CleanEnergyProgramManagement',
|
|
67
71
|
'CloneApplication',
|
|
68
72
|
'Communities',
|
|
69
73
|
'CompareReportsOrgPerm',
|
|
@@ -106,6 +110,12 @@ exports.simpleFeaturesList = [
|
|
|
106
110
|
'DynamicClientCreationLimit',
|
|
107
111
|
'EAOutputConnectors',
|
|
108
112
|
'EASyncOut',
|
|
113
|
+
'EAndUAgentforce',
|
|
114
|
+
'EAndUCoreSales',
|
|
115
|
+
'EAndUCoreSelfServicePortal',
|
|
116
|
+
'EAndUCoreService',
|
|
117
|
+
'EAndUCoreTimeSheetService',
|
|
118
|
+
'EAndUDataKits',
|
|
109
119
|
'EAndUDigitalSales',
|
|
110
120
|
'EAndUSelfServicePortal',
|
|
111
121
|
'ERMAnalytics',
|
|
@@ -126,6 +136,7 @@ exports.simpleFeaturesList = [
|
|
|
126
136
|
'EinsteinVisits',
|
|
127
137
|
'EinsteinVisitsED',
|
|
128
138
|
'EmbeddedLoginForIE',
|
|
139
|
+
'EmergencyManagement',
|
|
129
140
|
'EnableManageIdConfUI',
|
|
130
141
|
'EnablePRM',
|
|
131
142
|
'EnableSetPasswordInApi',
|
|
@@ -180,6 +191,7 @@ exports.simpleFeaturesList = [
|
|
|
180
191
|
'IntelligentDocumentReader',
|
|
181
192
|
'Interaction',
|
|
182
193
|
'InvestigativeCaseManagement',
|
|
194
|
+
'InvocableActionExt',
|
|
183
195
|
'InvoiceManagement',
|
|
184
196
|
'IoT',
|
|
185
197
|
'JigsawUser',
|
package/lib/sfProject.js
CHANGED
|
@@ -668,27 +668,27 @@ class SfProject {
|
|
|
668
668
|
configAggregator_1.ConfigAggregator.create(),
|
|
669
669
|
]);
|
|
670
670
|
await Promise.all([global.read(), local.read()]);
|
|
671
|
-
|
|
671
|
+
const config = (0, kit_1.defaults)(local.toObject(), global.toObject());
|
|
672
672
|
// Add fields in sfdx-config.json
|
|
673
|
-
Object.assign(
|
|
673
|
+
Object.assign(config, configAggregator.getConfig());
|
|
674
674
|
// we don't have a login url yet, so use instanceUrl from config or default
|
|
675
675
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
676
|
-
if (!
|
|
676
|
+
if (!config.sfdcLoginUrl) {
|
|
677
677
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
678
|
-
|
|
678
|
+
config.sfdcLoginUrl = configAggregator.getConfig()['org-instance-url'] ?? sfdcUrl_1.SfdcUrl.PRODUCTION;
|
|
679
679
|
}
|
|
680
680
|
// LEGACY - Allow override of sfdcLoginUrl via env var FORCE_SFDC_LOGIN_URL
|
|
681
681
|
if (process.env.FORCE_SFDC_LOGIN_URL) {
|
|
682
682
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
683
|
-
|
|
683
|
+
config.sfdcLoginUrl = process.env.FORCE_SFDC_LOGIN_URL;
|
|
684
684
|
}
|
|
685
685
|
// Allow override of signupTargetLoginUrl via env var SFDX_SCRATCH_ORG_CREATION_LOGIN_URL
|
|
686
686
|
if (process.env.SFDX_SCRATCH_ORG_CREATION_LOGIN_URL) {
|
|
687
687
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
688
|
-
|
|
688
|
+
config.signupTargetLoginUrl = process.env.SFDX_SCRATCH_ORG_CREATION_LOGIN_URL;
|
|
689
689
|
}
|
|
690
690
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
691
|
-
const loginUrl =
|
|
691
|
+
const loginUrl = config.sfdcLoginUrl;
|
|
692
692
|
if (loginUrl) {
|
|
693
693
|
if (!sfdcUrl_1.SfdcUrl.isValidUrl(loginUrl) ||
|
|
694
694
|
(!new sfdcUrl_1.SfdcUrl(loginUrl).isSalesforceDomain() && !new sfdcUrl_1.SfdcUrl(loginUrl).isInternalUrl())) {
|
|
@@ -696,13 +696,15 @@ class SfProject {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
699
|
-
const signupUrl =
|
|
699
|
+
const signupUrl = config.signupTargetLoginUrl;
|
|
700
700
|
if (signupUrl) {
|
|
701
701
|
if (!sfdcUrl_1.SfdcUrl.isValidUrl(signupUrl) ||
|
|
702
702
|
(!new sfdcUrl_1.SfdcUrl(signupUrl).isSalesforceDomain() && !new sfdcUrl_1.SfdcUrl(signupUrl).isInternalUrl())) {
|
|
703
703
|
throw messages.createError('invalidProjectLoginUrl', [signupUrl]);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
+
// Only cache after validation passes
|
|
707
|
+
this.projectConfig = config;
|
|
706
708
|
}
|
|
707
709
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
708
710
|
return this.projectConfig;
|
package/lib/util/sfdcUrl.js
CHANGED
|
@@ -108,7 +108,7 @@ class SfdcUrl extends node_url_1.URL {
|
|
|
108
108
|
'.salesforce.com',
|
|
109
109
|
'.salesforceliveagent.com',
|
|
110
110
|
'.secure.force.com',
|
|
111
|
-
'crmforce.mil',
|
|
111
|
+
'.crmforce.mil',
|
|
112
112
|
'.sfcrmproducts.cn',
|
|
113
113
|
];
|
|
114
114
|
const allowlistOfSalesforceHosts = ['developer.salesforce.com', 'trailhead.salesforce.com'];
|
|
@@ -120,19 +120,20 @@ class SfdcUrl extends node_url_1.URL {
|
|
|
120
120
|
* @returns {boolean} true if this is an internal domain
|
|
121
121
|
*/
|
|
122
122
|
isInternalUrl() {
|
|
123
|
-
const
|
|
124
|
-
'.vpod.',
|
|
125
|
-
'
|
|
126
|
-
'stm.
|
|
123
|
+
const INTERNAL_SFDC_SUFFIXES = [
|
|
124
|
+
'.vpod.salesforce.com',
|
|
125
|
+
'.vpod.force.com',
|
|
126
|
+
'.stm.salesforce.com',
|
|
127
|
+
'.stm.force.com',
|
|
127
128
|
'.blitz.salesforce.com',
|
|
128
129
|
'.stm.salesforce.ms',
|
|
129
130
|
'.pc-rnd.force.com',
|
|
130
131
|
'.pc-rnd.salesforce.com',
|
|
131
|
-
'.crm.dev',
|
|
132
|
+
'.crm.dev',
|
|
132
133
|
];
|
|
133
|
-
return (this.
|
|
134
|
+
return (this.hostname === 'gs1.salesforce.com' ||
|
|
134
135
|
this.isLocalUrl() ||
|
|
135
|
-
|
|
136
|
+
INTERNAL_SFDC_SUFFIXES.some((suffix) => this.hostname.endsWith(suffix)));
|
|
136
137
|
}
|
|
137
138
|
/**
|
|
138
139
|
* Tests whether this url runs on a local machine
|
|
@@ -140,8 +141,8 @@ class SfdcUrl extends node_url_1.URL {
|
|
|
140
141
|
* @returns {boolean} true if this is a local machine
|
|
141
142
|
*/
|
|
142
143
|
isLocalUrl() {
|
|
143
|
-
const
|
|
144
|
-
return
|
|
144
|
+
const LOCAL_SFDC_SUFFIXES = ['.localhost.sfdcdev.salesforce.com', '.internal.salesforce.com'];
|
|
145
|
+
return LOCAL_SFDC_SUFFIXES.some((suffix) => this.hostname.endsWith(suffix));
|
|
145
146
|
}
|
|
146
147
|
toLightningDomain() {
|
|
147
148
|
if (this.origin.endsWith('.my.salesforce.mil')) {
|
package/package.json
CHANGED
|
@@ -329,6 +329,11 @@
|
|
|
329
329
|
"type": "string",
|
|
330
330
|
"pattern": "^PlatformEventsPerDay:[0-9]+$"
|
|
331
331
|
},
|
|
332
|
+
{
|
|
333
|
+
"title": "ServiceCloudVoicePartnerTelephony:<value>",
|
|
334
|
+
"type": "string",
|
|
335
|
+
"pattern": "^ServiceCloudVoicePartnerTelephony:[0-9]+$"
|
|
336
|
+
},
|
|
332
337
|
{
|
|
333
338
|
"title": "StreamingEventsPerDay:<value>",
|
|
334
339
|
"type": "string",
|
|
@@ -357,10 +362,13 @@
|
|
|
357
362
|
"AdmissionsConnectUser",
|
|
358
363
|
"AdvisorLinkFeature",
|
|
359
364
|
"AdvisorLinkPathwaysFeature",
|
|
365
|
+
"AgentforceVibesIDEForDE",
|
|
366
|
+
"AgentforceVibesUnmeteredAccess",
|
|
360
367
|
"AllUserIdServiceAccess",
|
|
361
368
|
"AnalyticsAdminPerms",
|
|
362
369
|
"AnalyticsAppEmbedded",
|
|
363
370
|
"ApexGuruCodeAnalyzer",
|
|
371
|
+
"ApexIntegrationTests (Developer Preview)",
|
|
364
372
|
"ApexUserModeWithPermSet",
|
|
365
373
|
"ArcGraphCommunity",
|
|
366
374
|
"Assessments",
|
|
@@ -395,6 +403,7 @@
|
|
|
395
403
|
"ChatterEmailFooterLogo",
|
|
396
404
|
"ChatterEmailFooterText",
|
|
397
405
|
"ChatterEmailSenderName",
|
|
406
|
+
"CleanEnergyProgramManagement",
|
|
398
407
|
"CloneApplication",
|
|
399
408
|
"Communities",
|
|
400
409
|
"CompareReportsOrgPerm",
|
|
@@ -437,6 +446,12 @@
|
|
|
437
446
|
"DynamicClientCreationLimit",
|
|
438
447
|
"EAOutputConnectors",
|
|
439
448
|
"EASyncOut",
|
|
449
|
+
"EAndUAgentforce",
|
|
450
|
+
"EAndUCoreSales",
|
|
451
|
+
"EAndUCoreSelfServicePortal",
|
|
452
|
+
"EAndUCoreService",
|
|
453
|
+
"EAndUCoreTimeSheetService",
|
|
454
|
+
"EAndUDataKits",
|
|
440
455
|
"EAndUDigitalSales",
|
|
441
456
|
"EAndUSelfServicePortal",
|
|
442
457
|
"ERMAnalytics",
|
|
@@ -457,6 +472,7 @@
|
|
|
457
472
|
"EinsteinVisits",
|
|
458
473
|
"EinsteinVisitsED",
|
|
459
474
|
"EmbeddedLoginForIE",
|
|
475
|
+
"EmergencyManagement",
|
|
460
476
|
"EnableManageIdConfUI",
|
|
461
477
|
"EnablePRM",
|
|
462
478
|
"EnableSetPasswordInApi",
|
|
@@ -511,6 +527,7 @@
|
|
|
511
527
|
"IntelligentDocumentReader",
|
|
512
528
|
"Interaction",
|
|
513
529
|
"InvestigativeCaseManagement",
|
|
530
|
+
"InvocableActionExt",
|
|
514
531
|
"InvoiceManagement",
|
|
515
532
|
"IoT",
|
|
516
533
|
"JigsawUser",
|
|
@@ -692,6 +709,14 @@
|
|
|
692
709
|
},
|
|
693
710
|
"additionalProperties": {}
|
|
694
711
|
},
|
|
712
|
+
"agentforceAccountManagementSettings": {
|
|
713
|
+
"description": "For more details go to https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_agentforceaccountmanagementsettings.htm",
|
|
714
|
+
"type": "object",
|
|
715
|
+
"propertyNames": {
|
|
716
|
+
"type": "string"
|
|
717
|
+
},
|
|
718
|
+
"additionalProperties": {}
|
|
719
|
+
},
|
|
695
720
|
"agentforceForDevelopersSettings": {
|
|
696
721
|
"description": "For more details go to https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_agentforcefordeveloperssettings.htm",
|
|
697
722
|
"type": "object",
|