@salesforce/core 8.31.3-dev.1 → 8.31.4
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.
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const ScratchOrgDefSchema: z.ZodObject<{
|
|
7
7
|
orgName: z.ZodOptional<z.ZodString>;
|
|
8
|
-
edition: z.ZodString
|
|
8
|
+
edition: z.ZodOptional<z.ZodString>;
|
|
9
9
|
country: z.ZodOptional<z.ZodString>;
|
|
10
10
|
username: z.ZodOptional<z.ZodString>;
|
|
11
11
|
adminEmail: z.ZodOptional<z.ZodString>;
|
|
@@ -19,7 +19,10 @@ exports.ScratchOrgDefSchema = zod_1.z
|
|
|
19
19
|
orgName: zod_1.z.string().optional().describe('The name of the scratch org.').meta({ title: 'Organization Name' }),
|
|
20
20
|
edition: zod_1.z
|
|
21
21
|
.string()
|
|
22
|
+
.optional()
|
|
22
23
|
.refine((val) => {
|
|
24
|
+
if (val === undefined)
|
|
25
|
+
return true;
|
|
23
26
|
const validOptions = [
|
|
24
27
|
'developer',
|
|
25
28
|
'enterprise',
|
|
@@ -30,7 +33,6 @@ exports.ScratchOrgDefSchema = zod_1.z
|
|
|
30
33
|
'partner professional',
|
|
31
34
|
'professional',
|
|
32
35
|
];
|
|
33
|
-
// Check if the lowercase input matches any of our valid options
|
|
34
36
|
return validOptions.includes(val.toLowerCase());
|
|
35
37
|
}, {
|
|
36
38
|
message: 'Invalid Salesforce edition. Valid options are: developer, enterprise, group, partner developer, partner enterprise, partner group, partner professional, professional.',
|
|
@@ -88,5 +90,9 @@ exports.ScratchOrgDefSchema = zod_1.z
|
|
|
88
90
|
.optional()
|
|
89
91
|
.describe('Same Salesforce release as the Dev Hub org. Options are preview or previous. Can use only during Salesforce release transition periods.'),
|
|
90
92
|
})
|
|
91
|
-
.catchall(zod_1.z.unknown())
|
|
93
|
+
.catchall(zod_1.z.unknown())
|
|
94
|
+
.refine((data) => data.edition !== undefined || 'snapshot' in data, {
|
|
95
|
+
message: 'edition is required unless creating from a snapshot',
|
|
96
|
+
path: ['edition'],
|
|
97
|
+
});
|
|
92
98
|
//# sourceMappingURL=scratchOrgDef.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "8.31.
|
|
3
|
+
"version": "8.31.4",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"messageTransformer/messageTransformer.ts"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@jsforce/jsforce-node": "^3.10.17
|
|
64
|
+
"@jsforce/jsforce-node": "^3.10.17",
|
|
65
65
|
"@salesforce/kit": "^3.2.4",
|
|
66
66
|
"@salesforce/ts-types": "^2.0.12",
|
|
67
67
|
"ajv": "^8.18.0",
|