@salesforce/core 8.23.7 → 8.24.1-dev.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/LICENSE.txt +1 -1
- package/README.md +27 -0
- package/lib/index.d.ts +6 -1
- package/lib/index.js +11 -2
- package/lib/org/scratchOrgInfoGenerator.js +12 -1
- package/lib/schema/project-scratch-def/features.d.ts +2 -0
- package/lib/schema/project-scratch-def/features.js +36 -0
- package/lib/schema/project-scratch-def/patternFeaturesList.d.ts +1 -0
- package/lib/schema/project-scratch-def/patternFeaturesList.js +69 -0
- package/lib/schema/project-scratch-def/scratchOrgDef.d.ts +176 -0
- package/lib/schema/project-scratch-def/scratchOrgDef.js +73 -0
- package/lib/schema/project-scratch-def/settings.d.ts +150 -0
- package/lib/schema/project-scratch-def/settings.js +591 -0
- package/lib/schema/project-scratch-def/simpleFeaturesList.d.ts +1 -0
- package/lib/schema/project-scratch-def/simpleFeaturesList.js +272 -0
- package/lib/schema/sfdx-project/bundleEntry.d.ts +11 -0
- package/lib/schema/sfdx-project/bundleEntry.js +28 -0
- package/lib/schema/sfdx-project/packageDir.d.ts +84 -0
- package/lib/schema/sfdx-project/packageDir.js +146 -0
- package/lib/schema/sfdx-project/registryPresets.d.ts +2 -0
- package/lib/schema/sfdx-project/registryPresets.js +12 -0
- package/lib/schema/sfdx-project/registryVariants.d.ts +104 -0
- package/lib/schema/sfdx-project/registryVariants.js +57 -0
- package/lib/schema/sfdx-project/replacements.d.ts +70 -0
- package/lib/schema/sfdx-project/replacements.js +76 -0
- package/lib/schema/sfdx-project/sfdxProjectJson.d.ts +201 -0
- package/lib/schema/sfdx-project/sfdxProjectJson.js +89 -0
- package/lib/schema/validator.d.ts +8 -0
- package/lib/schema/validator.js +8 -0
- package/lib/sfProject.d.ts +7 -5
- package/lib/sfProject.js +17 -21
- package/package.json +62 -9
- package/schemas/project-scratch-def.schema.json +1789 -0
- package/schemas/sfdx-project.schema.json +909 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.simpleFeaturesList = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
exports.simpleFeaturesList = [
|
|
11
|
+
'AIAttribution',
|
|
12
|
+
'API',
|
|
13
|
+
'AccountInspection',
|
|
14
|
+
'AccountingSubledgerGrowthEdition',
|
|
15
|
+
'AccountingSubledgerStarterEdition',
|
|
16
|
+
'AccountingSubledgerUser',
|
|
17
|
+
'AdmissionsConnectUser',
|
|
18
|
+
'AdvisorLinkFeature',
|
|
19
|
+
'AdvisorLinkPathwaysFeature',
|
|
20
|
+
'AllUserIdServiceAccess',
|
|
21
|
+
'AnalyticsAdminPerms',
|
|
22
|
+
'AnalyticsAppEmbedded',
|
|
23
|
+
'ApexGuruCodeAnalyzer',
|
|
24
|
+
'ArcGraphCommunity',
|
|
25
|
+
'Assessments',
|
|
26
|
+
'AssociationEngine',
|
|
27
|
+
'AuthorApex',
|
|
28
|
+
'B2BCommerce',
|
|
29
|
+
'B2BLoyaltyManagement',
|
|
30
|
+
'B2CCommerceGMV',
|
|
31
|
+
'B2CLoyaltyManagement',
|
|
32
|
+
'B2CLoyaltyManagementPlus',
|
|
33
|
+
'BYOCCaaS',
|
|
34
|
+
'BYOOTT',
|
|
35
|
+
'BatchManagement',
|
|
36
|
+
'BenefitManagement',
|
|
37
|
+
'BigObjectsBulkAPI',
|
|
38
|
+
'BillingAdvanced',
|
|
39
|
+
'Briefcase',
|
|
40
|
+
'BudgetManagement',
|
|
41
|
+
'BusinessRulesEngine',
|
|
42
|
+
'CGAnalytics',
|
|
43
|
+
'CMSMaxContType',
|
|
44
|
+
'CMSMaxNodesPerContType',
|
|
45
|
+
'CMSUnlimitedUse',
|
|
46
|
+
'CPQ',
|
|
47
|
+
'CacheOnlyKeys',
|
|
48
|
+
'CampaignInfluence2',
|
|
49
|
+
'CascadeDelete',
|
|
50
|
+
'CaseClassification',
|
|
51
|
+
'CaseWrapUp',
|
|
52
|
+
'ChangeDataCapture',
|
|
53
|
+
'Chatbot',
|
|
54
|
+
'ChatterEmailFooterLogo',
|
|
55
|
+
'ChatterEmailFooterText',
|
|
56
|
+
'ChatterEmailSenderName',
|
|
57
|
+
'CloneApplication',
|
|
58
|
+
'Communities',
|
|
59
|
+
'CompareReportsOrgPerm',
|
|
60
|
+
'ConAppPluginExecuteAsUser',
|
|
61
|
+
'ConnectedAppCustomNotifSubscription',
|
|
62
|
+
'ConnectedAppToolingAPI',
|
|
63
|
+
'ConsentEventStream',
|
|
64
|
+
'ContactsToMultipleAccounts',
|
|
65
|
+
'ContractApprovals',
|
|
66
|
+
'ContractManagement',
|
|
67
|
+
'ContractMgmtInd',
|
|
68
|
+
'CoreCpq',
|
|
69
|
+
'CustomFieldDataTranslation',
|
|
70
|
+
'CustomNotificationType',
|
|
71
|
+
'CustomerDataPlatform',
|
|
72
|
+
'CustomerDataPlatformLite',
|
|
73
|
+
'CustomerExperienceAnalytics',
|
|
74
|
+
'DSARPortability',
|
|
75
|
+
'DataComDnbAccounts',
|
|
76
|
+
'DataComFullClean',
|
|
77
|
+
'DataMaskUser',
|
|
78
|
+
'DataProcessingEngine',
|
|
79
|
+
'DebugApex',
|
|
80
|
+
'DecisionTable',
|
|
81
|
+
'DefaultWorkflowUser',
|
|
82
|
+
'DeferSharingCalc',
|
|
83
|
+
'DevOpsCenter',
|
|
84
|
+
'DevelopmentWave',
|
|
85
|
+
'DeviceTrackingEnabled',
|
|
86
|
+
'DisableManageIdConfAPI',
|
|
87
|
+
'DisclosureFramework',
|
|
88
|
+
'Division',
|
|
89
|
+
'DocGen',
|
|
90
|
+
'DocGenDesigner',
|
|
91
|
+
'DocGenInd',
|
|
92
|
+
'DocumentChecklist',
|
|
93
|
+
'DocumentReaderPageLimit',
|
|
94
|
+
'DurableClassicStreamingAPI',
|
|
95
|
+
'DurableGenericStreamingAPI',
|
|
96
|
+
'DynamicClientCreationLimit',
|
|
97
|
+
'EAOutputConnectors',
|
|
98
|
+
'EASyncOut',
|
|
99
|
+
'EAndUDigitalSales',
|
|
100
|
+
'EAndUSelfServicePortal',
|
|
101
|
+
'ERMAnalytics',
|
|
102
|
+
'EdPredictionM3Threshold',
|
|
103
|
+
'EdPredictionTimeout',
|
|
104
|
+
'EdPredictionTimeoutBulk',
|
|
105
|
+
'EdPredictionTimeoutByomBulk',
|
|
106
|
+
'Einstein1AIPlatform',
|
|
107
|
+
'EinsteinAnalyticsPlus',
|
|
108
|
+
'EinsteinArticleRecommendations',
|
|
109
|
+
'EinsteinBuilderFree',
|
|
110
|
+
'EinsteinDocReader',
|
|
111
|
+
'EinsteinRecommendationBuilder',
|
|
112
|
+
'EinsteinRecommendationBuilderMetadata',
|
|
113
|
+
'EinsteinSearch',
|
|
114
|
+
'EinsteinVisits',
|
|
115
|
+
'EinsteinVisitsED',
|
|
116
|
+
'EmbeddedLoginForIE',
|
|
117
|
+
'EnableManageIdConfUI',
|
|
118
|
+
'EnablePRM',
|
|
119
|
+
'EnableSetPasswordInApi',
|
|
120
|
+
'Enablement',
|
|
121
|
+
'EnergyAndUtilitiesCloud',
|
|
122
|
+
'Entitlements',
|
|
123
|
+
'EntityTranslation',
|
|
124
|
+
'EventLogFile',
|
|
125
|
+
'ExcludeSAMLSessionIndex',
|
|
126
|
+
'Explainability',
|
|
127
|
+
'ExpressionSetMaxExecPerHour',
|
|
128
|
+
'ExternalIdentityLogin',
|
|
129
|
+
'FSCAlertFramework',
|
|
130
|
+
'FSCServiceProcess',
|
|
131
|
+
'FieldAuditTrail',
|
|
132
|
+
'FieldServiceMobileExtension',
|
|
133
|
+
'FinanceLogging',
|
|
134
|
+
'FinancialServicesInsuranceUser',
|
|
135
|
+
'FlowSites',
|
|
136
|
+
'ForceComPlatform',
|
|
137
|
+
'ForecastEnableCustomField',
|
|
138
|
+
'Functions',
|
|
139
|
+
'Fundraising',
|
|
140
|
+
'GenericStreaming',
|
|
141
|
+
'Grantmaking',
|
|
142
|
+
'GuidanceHubAllowed',
|
|
143
|
+
'HLSAnalytics',
|
|
144
|
+
'HealthCloudAddOn',
|
|
145
|
+
'HealthCloudEOLOverride',
|
|
146
|
+
'HealthCloudForCmty',
|
|
147
|
+
'HealthCloudMedicationReconciliation',
|
|
148
|
+
'HealthCloudPNMAddOn',
|
|
149
|
+
'HealthCloudUser',
|
|
150
|
+
'HighVelocitySales',
|
|
151
|
+
'HighVolumePlatformEventAddOn',
|
|
152
|
+
'IdentityProvisioningFeatures',
|
|
153
|
+
'IgnoreQueryParamWhitelist',
|
|
154
|
+
'IndustriesActionPlan',
|
|
155
|
+
'IndustriesBranchManagement',
|
|
156
|
+
'IndustriesCompliantDataSharing',
|
|
157
|
+
'IndustriesManufacturingCmty',
|
|
158
|
+
'IndustriesMfgAccountForecast',
|
|
159
|
+
'IndustriesMfgAdvncdAccFrcs',
|
|
160
|
+
'IndustriesMfgPartnerVisitMgmt',
|
|
161
|
+
'IndustriesMfgProgram',
|
|
162
|
+
'IndustriesMfgRebates',
|
|
163
|
+
'IndustriesMfgTargets',
|
|
164
|
+
'InsightsPlatform',
|
|
165
|
+
'InsuranceCalculationUser',
|
|
166
|
+
'InsuranceClaimMgmt',
|
|
167
|
+
'InsurancePolicyAdmin',
|
|
168
|
+
'IntelligentDocumentReader',
|
|
169
|
+
'Interaction',
|
|
170
|
+
'InvestigativeCaseManagement',
|
|
171
|
+
'InvoiceManagement',
|
|
172
|
+
'IoT',
|
|
173
|
+
'JigsawUser',
|
|
174
|
+
'Knowledge',
|
|
175
|
+
'LegacyLiveAgentRouting',
|
|
176
|
+
'LightningSalesConsole',
|
|
177
|
+
'LightningScheduler',
|
|
178
|
+
'LightningServiceConsole',
|
|
179
|
+
'LiveAgent',
|
|
180
|
+
'LiveMessage',
|
|
181
|
+
'LongLayoutSectionTitles',
|
|
182
|
+
'LoyaltyAnalytics',
|
|
183
|
+
'LoyaltyEngine',
|
|
184
|
+
'LoyaltyManagementStarter',
|
|
185
|
+
'Macros',
|
|
186
|
+
'MarketingCloud',
|
|
187
|
+
'MarketingUser',
|
|
188
|
+
'MaterialityAssessment',
|
|
189
|
+
'MaxAudTypeCriterionPerAud',
|
|
190
|
+
'MaxWishlistsItemsPerWishlist',
|
|
191
|
+
'MaxWishlistsPerStoreAccUsr',
|
|
192
|
+
'MinKeyRotationInterval',
|
|
193
|
+
'MobileSecurity',
|
|
194
|
+
'MobileVoiceAndLLM',
|
|
195
|
+
'MultiCurrency',
|
|
196
|
+
'MultiLevelMasterDetail',
|
|
197
|
+
'MutualAuthentication',
|
|
198
|
+
'MyTrailhead',
|
|
199
|
+
'NonprofitCloudCaseManagementUser',
|
|
200
|
+
'ObjectLinking',
|
|
201
|
+
'OmnistudioDesigner',
|
|
202
|
+
'OmnistudioMetadata',
|
|
203
|
+
'OmnistudioRuntime',
|
|
204
|
+
'OrderManagement',
|
|
205
|
+
'OrderSaveBehaviorBoth',
|
|
206
|
+
'OrderSaveLogicEnabled',
|
|
207
|
+
'OutboundMessageHTTPSession',
|
|
208
|
+
'OutcomeManagement',
|
|
209
|
+
'PSSAssetManagement',
|
|
210
|
+
'PardotScFeaturesCampaignInfluence',
|
|
211
|
+
'PersonAccounts',
|
|
212
|
+
'PipelineInspection',
|
|
213
|
+
'PlatformCache',
|
|
214
|
+
'PlatformEncryption',
|
|
215
|
+
'ProcessBuilder',
|
|
216
|
+
'ProductCatalogManagementAddOn',
|
|
217
|
+
'ProductCatalogManagementPCAddOn',
|
|
218
|
+
'ProductCatalogManagementViewerAddOn',
|
|
219
|
+
'ProductsAndSchedules',
|
|
220
|
+
'ProgramManagement',
|
|
221
|
+
'ProviderFreePlatformCache',
|
|
222
|
+
'ProviderManagement',
|
|
223
|
+
'PublicSectorAccess',
|
|
224
|
+
'PublicSectorApplicationUsageCreditsAddOn',
|
|
225
|
+
'PublicSectorSiteTemplate',
|
|
226
|
+
'RateManagement',
|
|
227
|
+
'RecordTypes',
|
|
228
|
+
'RefreshOnInvalidSession',
|
|
229
|
+
'RevSubscriptionManagement',
|
|
230
|
+
'S1ClientComponentCacheSize',
|
|
231
|
+
'SAML20SingleLogout',
|
|
232
|
+
'SCIMProtocol',
|
|
233
|
+
'SFDOInsightsDataIntegrityUser',
|
|
234
|
+
'SalesCloudEinstein',
|
|
235
|
+
'SalesUser',
|
|
236
|
+
'SalesforceContentUser',
|
|
237
|
+
'SalesforceFeedbackManagementStarter',
|
|
238
|
+
'SalesforceHostedMCP',
|
|
239
|
+
'SalesforceIdentityForCommunities',
|
|
240
|
+
'SalesforcePricing',
|
|
241
|
+
'ScvMultipartyAndConsult',
|
|
242
|
+
'SecurityEventEnabled',
|
|
243
|
+
'SentimentInsightsFeature',
|
|
244
|
+
'ServiceCatalog',
|
|
245
|
+
'ServiceCloud',
|
|
246
|
+
'ServiceCloudVoicePartnerTelephony',
|
|
247
|
+
'ServiceUser',
|
|
248
|
+
'SessionIdInLogEnabled',
|
|
249
|
+
'SharedActivities',
|
|
250
|
+
'Sites',
|
|
251
|
+
'SocialCustomerService',
|
|
252
|
+
'StateAndCountryPicklist',
|
|
253
|
+
'StreamingAPI',
|
|
254
|
+
'SurveyAdvancedFeatures',
|
|
255
|
+
'SustainabilityApp',
|
|
256
|
+
'SustainabilityCloud',
|
|
257
|
+
'TCRMforSustainability',
|
|
258
|
+
'TalentRecruitmentManagement',
|
|
259
|
+
'TimeSheetTemplateSettings',
|
|
260
|
+
'TimelineConditionsLimit',
|
|
261
|
+
'TimelineEventLimit',
|
|
262
|
+
'TimelineRecordTypeLimit',
|
|
263
|
+
'TransactionFinalizers',
|
|
264
|
+
'UsageManagement',
|
|
265
|
+
'WaveMaxCurrency',
|
|
266
|
+
'WavePlatform',
|
|
267
|
+
'WorkThanksPref',
|
|
268
|
+
'Workflow',
|
|
269
|
+
'WorkflowFlowActionFeature',
|
|
270
|
+
'WorkplaceCommandCenterUser',
|
|
271
|
+
];
|
|
272
|
+
//# sourceMappingURL=simpleFeaturesList.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an entry in a package bundle, containing version and descriptive information.
|
|
4
|
+
*/
|
|
5
|
+
export declare const BundleEntrySchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
versionName: z.ZodString;
|
|
8
|
+
versionNumber: z.ZodString;
|
|
9
|
+
versionDescription: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type BundleEntry = z.infer<typeof BundleEntrySchema>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.BundleEntrySchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
/**
|
|
12
|
+
* Represents an entry in a package bundle, containing version and descriptive information.
|
|
13
|
+
*/
|
|
14
|
+
exports.BundleEntrySchema = zod_1.z.object({
|
|
15
|
+
name: zod_1.z.string().meta({ title: 'Bundle Name' }).describe('The name of the bundle.'),
|
|
16
|
+
versionName: zod_1.z.string().meta({ title: 'Version Name' }).describe('Human readable name for the version.'),
|
|
17
|
+
versionNumber: zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.regex(/^\d+\.\d+$/)
|
|
20
|
+
.meta({ title: 'Version Number' })
|
|
21
|
+
.describe('The version number in the format major.minor (e.g., 1.0).'),
|
|
22
|
+
versionDescription: zod_1.z
|
|
23
|
+
.string()
|
|
24
|
+
.optional()
|
|
25
|
+
.meta({ title: 'Version Description' })
|
|
26
|
+
.describe('Human readable version information, format not specified.'),
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=bundleEntry.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Package directory with package (requires versionNumber) */
|
|
3
|
+
declare const PackagePackageDirSchema: z.ZodObject<{
|
|
4
|
+
default: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
5
|
+
path: z.ZodString;
|
|
6
|
+
ancestorId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
ancestorVersion: z.ZodOptional<z.ZodString>;
|
|
8
|
+
apexTestAccess: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
permissionSets: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>;
|
|
10
|
+
permissionSetLicenses: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
definitionFile: z.ZodOptional<z.ZodString>;
|
|
13
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
package: z.ZodString;
|
|
15
|
+
versionNumber: z.ZodOptional<z.ZodString>;
|
|
16
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
18
|
+
includeProfileUserLicenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
19
|
+
package: z.ZodString;
|
|
20
|
+
packageMetadataAccess: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
permissionSets: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
22
|
+
permissionSetLicenses: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
postInstallScript: z.ZodOptional<z.ZodString>;
|
|
25
|
+
postInstallUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
+
releaseNotesUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
scopeProfiles: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
28
|
+
uninstallScript: z.ZodOptional<z.ZodString>;
|
|
29
|
+
calculateTransitiveDependencies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
30
|
+
versionDescription: z.ZodOptional<z.ZodString>;
|
|
31
|
+
versionName: z.ZodOptional<z.ZodString>;
|
|
32
|
+
versionNumber: z.ZodString;
|
|
33
|
+
unpackagedMetadata: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
path: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
seedMetadata: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
functions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const PackageDirSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
default: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
43
|
+
path: z.ZodString;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
default: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
46
|
+
path: z.ZodString;
|
|
47
|
+
ancestorId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
ancestorVersion: z.ZodOptional<z.ZodString>;
|
|
49
|
+
apexTestAccess: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
permissionSets: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>;
|
|
51
|
+
permissionSetLicenses: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
definitionFile: z.ZodOptional<z.ZodString>;
|
|
54
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
package: z.ZodString;
|
|
56
|
+
versionNumber: z.ZodOptional<z.ZodString>;
|
|
57
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
59
|
+
includeProfileUserLicenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
60
|
+
package: z.ZodString;
|
|
61
|
+
packageMetadataAccess: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
permissionSets: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
63
|
+
permissionSetLicenses: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
postInstallScript: z.ZodOptional<z.ZodString>;
|
|
66
|
+
postInstallUrl: z.ZodOptional<z.ZodString>;
|
|
67
|
+
releaseNotesUrl: z.ZodOptional<z.ZodString>;
|
|
68
|
+
scopeProfiles: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
69
|
+
uninstallScript: z.ZodOptional<z.ZodString>;
|
|
70
|
+
calculateTransitiveDependencies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
71
|
+
versionDescription: z.ZodOptional<z.ZodString>;
|
|
72
|
+
versionName: z.ZodOptional<z.ZodString>;
|
|
73
|
+
versionNumber: z.ZodString;
|
|
74
|
+
unpackagedMetadata: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
path: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
seedMetadata: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
path: z.ZodString;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
functions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
}, z.core.$strict>]>;
|
|
82
|
+
export type PackagePackageDir = z.infer<typeof PackagePackageDirSchema>;
|
|
83
|
+
export type PackageDir = z.infer<typeof PackageDirSchema>;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PackageDirSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const PackageDirDependencySchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
package: zod_1.z.string(),
|
|
14
|
+
versionNumber: zod_1.z.string().optional(),
|
|
15
|
+
branch: zod_1.z.string().optional(),
|
|
16
|
+
})
|
|
17
|
+
.catchall(zod_1.z.unknown());
|
|
18
|
+
/** Base properties for all package directories */
|
|
19
|
+
const BasePackageDirPropsSchema = zod_1.z.object({
|
|
20
|
+
default: zod_1.z
|
|
21
|
+
.boolean()
|
|
22
|
+
.default(true)
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.'),
|
|
25
|
+
path: zod_1.z
|
|
26
|
+
.string()
|
|
27
|
+
.meta({ title: 'Path' })
|
|
28
|
+
.describe("If you don't specify a path, the Salesforce CLI uses a placeholder when you create a package."),
|
|
29
|
+
});
|
|
30
|
+
/** Package directory without package (simple) */
|
|
31
|
+
const BasePackageDirSchema = BasePackageDirPropsSchema;
|
|
32
|
+
/** Package directory with package (requires versionNumber) */
|
|
33
|
+
const PackagePackageDirSchema = BasePackageDirPropsSchema.extend({
|
|
34
|
+
ancestorId: zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.meta({ title: 'Ancestor ID' })
|
|
38
|
+
.describe("The ancestor that's the immediate parent of the version that you're creating. The package version ID to supply starts with '05i'."),
|
|
39
|
+
ancestorVersion: zod_1.z
|
|
40
|
+
.string()
|
|
41
|
+
.optional()
|
|
42
|
+
.meta({ title: 'Ancestor Version' })
|
|
43
|
+
.describe("The ancestor that's the immediate parent of the version that you're creating. The ancestor version uses the format major.minor.patch.build."),
|
|
44
|
+
apexTestAccess: zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
permissionSets: zod_1.z
|
|
47
|
+
.union([zod_1.z.array(zod_1.z.string()), zod_1.z.string()])
|
|
48
|
+
.meta({ title: 'Permission Sets' })
|
|
49
|
+
.describe('The list of permission sets to enable while running Apex tests'),
|
|
50
|
+
permissionSetLicenses: zod_1.z
|
|
51
|
+
.union([zod_1.z.array(zod_1.z.string()), zod_1.z.string()])
|
|
52
|
+
.meta({ title: 'Permission Set Licenses' })
|
|
53
|
+
.describe('The list of permission sets licenses to enable while running Apex tests'),
|
|
54
|
+
})
|
|
55
|
+
.optional()
|
|
56
|
+
.describe('Additional access that should be granted to the user when running package Apex tests'),
|
|
57
|
+
definitionFile: zod_1.z
|
|
58
|
+
.string()
|
|
59
|
+
.optional()
|
|
60
|
+
.meta({ title: 'Definition File' })
|
|
61
|
+
.describe('Reference an external .json file to specify the features and org preferences required for the metadata of your package, such as the scratch org definition.'),
|
|
62
|
+
dependencies: zod_1.z
|
|
63
|
+
.array(PackageDirDependencySchema)
|
|
64
|
+
.optional()
|
|
65
|
+
.describe('To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.'),
|
|
66
|
+
includeProfileUserLicenses: zod_1.z
|
|
67
|
+
.boolean()
|
|
68
|
+
.default(false)
|
|
69
|
+
.optional()
|
|
70
|
+
.meta({ title: 'Include Profile User Licenses' })
|
|
71
|
+
.describe('Whether to include <userLicense> elements in profile metadata. Defaults to false.'),
|
|
72
|
+
package: zod_1.z
|
|
73
|
+
.string()
|
|
74
|
+
.meta({ title: 'Package Identifier' })
|
|
75
|
+
.describe('The package name you specified when creating the package.'),
|
|
76
|
+
packageMetadataAccess: zod_1.z
|
|
77
|
+
.object({
|
|
78
|
+
permissionSets: zod_1.z
|
|
79
|
+
.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
80
|
+
.meta({ title: 'Permission Sets' })
|
|
81
|
+
.describe('The list of permission sets to enable while deploying package metadata'),
|
|
82
|
+
permissionSetLicenses: zod_1.z
|
|
83
|
+
.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
84
|
+
.meta({ title: 'Permission Set Licenses' })
|
|
85
|
+
.describe('The list of permission set licenses to enable while deploying package metadata'),
|
|
86
|
+
})
|
|
87
|
+
.optional()
|
|
88
|
+
.meta({ title: 'Package Metadata Access' })
|
|
89
|
+
.describe('Additional access that should be granted to the user while deploying package metadata, available in Salesforce API version 61.0 and above'),
|
|
90
|
+
postInstallScript: zod_1.z.string().optional().meta({ title: 'Post Install Script' }).describe('The post install script.'),
|
|
91
|
+
postInstallUrl: zod_1.z.string().optional().meta({ title: 'Post Install Url' }).describe('The post install url.'),
|
|
92
|
+
releaseNotesUrl: zod_1.z.string().optional().meta({ title: 'Release Notes Url' }).describe('The release notes url.'),
|
|
93
|
+
scopeProfiles: zod_1.z
|
|
94
|
+
.boolean()
|
|
95
|
+
.default(false)
|
|
96
|
+
.optional()
|
|
97
|
+
.meta({ title: 'Scope Profiles' })
|
|
98
|
+
.describe('Determines whether to include profile settings from only the directory being packaged (true), or whether to include profile settings from all package directories (false). If not specified, the default is false.'),
|
|
99
|
+
uninstallScript: zod_1.z.string().optional().meta({ title: 'Uninstall Script' }).describe('The uninstall script.'),
|
|
100
|
+
calculateTransitiveDependencies: zod_1.z
|
|
101
|
+
.boolean()
|
|
102
|
+
.default(false)
|
|
103
|
+
.optional()
|
|
104
|
+
.meta({ title: 'Calculate Transitive Dependencies' })
|
|
105
|
+
.describe('Set to true if only specifing direct package dependencies and the transitive (i.e., indirect) dependencies should be calculated by Salesforce.'),
|
|
106
|
+
versionDescription: zod_1.z
|
|
107
|
+
.string()
|
|
108
|
+
.optional()
|
|
109
|
+
.meta({ title: 'Version Description' })
|
|
110
|
+
.describe('Human readable version information, format not specified.'),
|
|
111
|
+
versionName: zod_1.z
|
|
112
|
+
.string()
|
|
113
|
+
.optional()
|
|
114
|
+
.meta({ title: 'Version Name' })
|
|
115
|
+
.describe('If not specified, the CLI uses versionNumber as the version name.'),
|
|
116
|
+
versionNumber: zod_1.z
|
|
117
|
+
.string()
|
|
118
|
+
.meta({ title: 'Version Number' })
|
|
119
|
+
.describe('Version numbers are formatted as major.minor.patch.build. For example, 1.2.1.8. Required when package is specified.'),
|
|
120
|
+
unpackagedMetadata: zod_1.z
|
|
121
|
+
.object({
|
|
122
|
+
path: zod_1.z
|
|
123
|
+
.string()
|
|
124
|
+
.meta({ title: 'Path' })
|
|
125
|
+
.describe('The path name of the package directory containing the unpackaged metadata'),
|
|
126
|
+
})
|
|
127
|
+
.optional()
|
|
128
|
+
.meta({ title: 'Unpackaged Metadata' })
|
|
129
|
+
.describe('Metadata not meant to be packaged, but deployed when testing packaged metadata'),
|
|
130
|
+
seedMetadata: zod_1.z
|
|
131
|
+
.object({
|
|
132
|
+
path: zod_1.z
|
|
133
|
+
.string()
|
|
134
|
+
.meta({ title: 'Path' })
|
|
135
|
+
.describe('The path name of the package directory containing the seed metadata'),
|
|
136
|
+
})
|
|
137
|
+
.optional()
|
|
138
|
+
.meta({ title: 'Seed Metadata' })
|
|
139
|
+
.describe('Metadata not meant to be packaged, but deployed before deploying packaged metadata'),
|
|
140
|
+
functions: zod_1.z.array(zod_1.z.string()).optional().describe('@deprecated'),
|
|
141
|
+
});
|
|
142
|
+
// Use union with strict schemas to generate proper JSON Schema anyOf
|
|
143
|
+
// Base schema has only path+default, Package schema has all package fields
|
|
144
|
+
// This generates JSON Schema with proper required fields and additionalProperties: false
|
|
145
|
+
exports.PackageDirSchema = zod_1.z.union([BasePackageDirSchema.strict(), PackagePackageDirSchema.strict()]);
|
|
146
|
+
//# sourceMappingURL=packageDir.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegistryPresetsSchema = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2023, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.RegistryPresetsSchema = zod_1.z.array(zod_1.z.string());
|
|
12
|
+
//# sourceMappingURL=registryPresets.js.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const SuffixIndexSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3
|
+
declare const DirectoryIndexSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4
|
+
/**
|
|
5
|
+
* TypeInfoSchema has a circular reference (children.types references TypeIndexSchema,
|
|
6
|
+
* which references TypeInfoSchema). We use z.lazy() to defer schema evaluation until
|
|
7
|
+
* runtime to avoid "Cannot access before initialization" errors. z.ZodType<T> provides
|
|
8
|
+
* an explicit type annotation since TypeScript can't infer recursive types properly.
|
|
9
|
+
*/
|
|
10
|
+
declare const TypeInfoSchema: z.ZodType<{
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
directoryName: string;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
strictDirectoryName?: boolean;
|
|
16
|
+
ignoreParsedFullName?: boolean;
|
|
17
|
+
folderContentType?: string;
|
|
18
|
+
folderType?: string;
|
|
19
|
+
xmlElementName?: string;
|
|
20
|
+
uniqueIdElement?: string;
|
|
21
|
+
isAddressable?: boolean;
|
|
22
|
+
unaddressableWithoutParent?: boolean;
|
|
23
|
+
supportsWildcardAndName?: boolean;
|
|
24
|
+
supportsPartialDelete?: boolean;
|
|
25
|
+
aliasFor?: string;
|
|
26
|
+
children?: {
|
|
27
|
+
types: TypeIndex;
|
|
28
|
+
suffixes: SuffixIndex;
|
|
29
|
+
directories?: DirectoryIndex;
|
|
30
|
+
};
|
|
31
|
+
strategies?: {
|
|
32
|
+
adapter: 'mixedContent' | 'matchingContentFile' | 'decomposed' | 'bundle' | 'default';
|
|
33
|
+
transformer?: 'decomposed' | 'staticResource' | 'standard';
|
|
34
|
+
decomposition?: 'topLevel' | 'folderPerType';
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
type SuffixIndex = z.infer<typeof SuffixIndexSchema>;
|
|
38
|
+
type DirectoryIndex = z.infer<typeof DirectoryIndexSchema>;
|
|
39
|
+
type TypeIndex = {
|
|
40
|
+
[typeId: string]: z.infer<typeof TypeInfoSchema>;
|
|
41
|
+
};
|
|
42
|
+
export declare const MetadataRegistrySchema: z.ZodObject<{
|
|
43
|
+
types: z.ZodType<{
|
|
44
|
+
[typeId: string]: {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
directoryName: string;
|
|
48
|
+
suffix?: string;
|
|
49
|
+
strictDirectoryName?: boolean;
|
|
50
|
+
ignoreParsedFullName?: boolean;
|
|
51
|
+
folderContentType?: string;
|
|
52
|
+
folderType?: string;
|
|
53
|
+
xmlElementName?: string;
|
|
54
|
+
uniqueIdElement?: string;
|
|
55
|
+
isAddressable?: boolean;
|
|
56
|
+
unaddressableWithoutParent?: boolean;
|
|
57
|
+
supportsWildcardAndName?: boolean;
|
|
58
|
+
supportsPartialDelete?: boolean;
|
|
59
|
+
aliasFor?: string;
|
|
60
|
+
children?: {
|
|
61
|
+
types: TypeIndex;
|
|
62
|
+
suffixes: SuffixIndex;
|
|
63
|
+
directories?: DirectoryIndex;
|
|
64
|
+
};
|
|
65
|
+
strategies?: {
|
|
66
|
+
adapter: "mixedContent" | "matchingContentFile" | "decomposed" | "bundle" | "default";
|
|
67
|
+
transformer?: "decomposed" | "staticResource" | "standard";
|
|
68
|
+
decomposition?: "topLevel" | "folderPerType";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
72
|
+
[typeId: string]: {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
directoryName: string;
|
|
76
|
+
suffix?: string;
|
|
77
|
+
strictDirectoryName?: boolean;
|
|
78
|
+
ignoreParsedFullName?: boolean;
|
|
79
|
+
folderContentType?: string;
|
|
80
|
+
folderType?: string;
|
|
81
|
+
xmlElementName?: string;
|
|
82
|
+
uniqueIdElement?: string;
|
|
83
|
+
isAddressable?: boolean;
|
|
84
|
+
unaddressableWithoutParent?: boolean;
|
|
85
|
+
supportsWildcardAndName?: boolean;
|
|
86
|
+
supportsPartialDelete?: boolean;
|
|
87
|
+
aliasFor?: string;
|
|
88
|
+
children?: {
|
|
89
|
+
types: TypeIndex;
|
|
90
|
+
suffixes: SuffixIndex;
|
|
91
|
+
directories?: DirectoryIndex;
|
|
92
|
+
};
|
|
93
|
+
strategies?: {
|
|
94
|
+
adapter: "mixedContent" | "matchingContentFile" | "decomposed" | "bundle" | "default";
|
|
95
|
+
transformer?: "decomposed" | "staticResource" | "standard";
|
|
96
|
+
decomposition?: "topLevel" | "folderPerType";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}, unknown>>;
|
|
100
|
+
suffixes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
101
|
+
strictDirectoryNames: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
102
|
+
childTypes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export {};
|