sanity 3.72.2-server-side-schemas.17 → 3.72.2-server-side-schemas-1.19
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/_chunks-cjs/_internal.js +11 -10
- package/lib/_chunks-cjs/_internal.js.map +1 -1
- package/lib/_chunks-cjs/deployAction.js +3 -3
- package/lib/_chunks-cjs/deployAction.js.map +1 -1
- package/lib/_chunks-cjs/fetchSchemaAction.js +2 -2
- package/lib/_chunks-cjs/fetchSchemaAction.js.map +1 -1
- package/lib/_chunks-cjs/{storeManifestSchemasAction.js → storeSchemasAction.js} +6 -6
- package/lib/_chunks-cjs/storeSchemasAction.js.map +1 -0
- package/lib/_chunks-cjs/version.js +1 -1
- package/lib/_chunks-es/version.mjs +1 -1
- package/lib/_legacy/version.esm.js +1 -1
- package/package.json +10 -10
- package/src/_internal/cli/actions/deploy/deployAction.ts +3 -4
- package/src/_internal/cli/actions/schema/fetchSchemaAction.ts +3 -4
- package/src/_internal/cli/actions/{manifest/storeManifestSchemasAction.ts → schema/storeSchemasAction.ts} +16 -11
- package/src/_internal/cli/commands/schema/fetchSchemaCommand.ts +2 -3
- package/src/_internal/cli/commands/schema/storeSchemaCommand.ts +11 -9
- package/lib/_chunks-cjs/storeManifestSchemasAction.js.map +0 -1
- package/lib/_chunks-cjs/storeSchemaAction.js +0 -7
- package/lib/_chunks-cjs/storeSchemaAction.js.map +0 -1
- package/src/_internal/cli/actions/schema/storeSchemaAction.ts +0 -17
@@ -3389,12 +3389,11 @@ Examples
|
|
3389
3389
|
**Note**: This command is experimental and subject to change.
|
3390
3390
|
|
3391
3391
|
Options
|
3392
|
-
--
|
3393
|
-
--dataset The dataset to fetch the schema from
|
3392
|
+
--id id of the schema to fetch
|
3394
3393
|
|
3395
3394
|
Examples
|
3396
3395
|
# Fetch the stored schema for the workspace 'default' in the dataset 'sanity-test'
|
3397
|
-
sanity schema fetch --
|
3396
|
+
sanity schema fetch --id sanity.workspace.schema.default
|
3398
3397
|
`, fetchSchemaCommand = {
|
3399
3398
|
name: "fetch",
|
3400
3399
|
group: "schema",
|
@@ -3414,14 +3413,16 @@ var schemaGroup = {
|
|
3414
3413
|
const description$1 = "", helpText$4 = `
|
3415
3414
|
**Note**: This command is experimental and subject to change.
|
3416
3415
|
|
3417
|
-
|
3418
|
-
--workspace
|
3419
|
-
|
3420
|
-
--
|
3416
|
+
Options:
|
3417
|
+
--workspace The name of the workspace to fetch the stored schema for
|
3418
|
+
--path If you are not using the default static file path, you can specify it here.
|
3419
|
+
--custom-id you can specify a custom id for the schema. Useful if you want to store the schema in a different path than the default one.
|
3421
3420
|
|
3422
3421
|
Examples
|
3423
|
-
#
|
3424
|
-
sanity schema store
|
3422
|
+
# if no options are provided all workspace schemas will be stored
|
3423
|
+
sanity schema store
|
3424
|
+
# Store the schema for only the workspace 'default'
|
3425
|
+
sanity schema store --workspace default
|
3425
3426
|
`, storeSchemaCommand = {
|
3426
3427
|
name: "store",
|
3427
3428
|
group: "schema",
|
@@ -3429,7 +3430,7 @@ Examples
|
|
3429
3430
|
description: description$1,
|
3430
3431
|
helpText: helpText$4,
|
3431
3432
|
action: async (args, context) => (await Promise.resolve().then(function() {
|
3432
|
-
return require("./
|
3433
|
+
return require("./storeSchemasAction.js");
|
3433
3434
|
})).default(args, context)
|
3434
3435
|
}, description = "Validates all schema types specified in a workspace.", helpText$3 = `
|
3435
3436
|
Options
|