@sanity/cli 4.5.1-next.4 → 4.6.0-next.10

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.
@@ -3773,7 +3773,7 @@ Arguments
3773
3773
 
3774
3774
  Options
3775
3775
  --name, -n <name> Name of the Resource
3776
- --fn-type <type> Type of Function to add (e.g. document-publish)
3776
+ --fn-type <type> Type of Function to add. Available options: "document-create", "document-delete", "document-update", "document-publish". Default: "document-publish"
3777
3777
  --fn-language, --lang <ts|js> Language of the Function. Default: "ts"
3778
3778
  --js, --javascript Shortcut for --fn-language=js
3779
3779
  --fn-helpers, --helpers Add helpers to the Function
@@ -3790,7 +3790,7 @@ Examples:
3790
3790
  sanity blueprints add function --name my-function -i --helpers
3791
3791
 
3792
3792
  # Add a Function with a specific type
3793
- sanity blueprints add function --fn-type document-publish
3793
+ sanity blueprints add function --fn-type document-create
3794
3794
 
3795
3795
  # Add a Function using an example
3796
3796
  sanity blueprints add function --example example-name
@@ -3810,7 +3810,7 @@ Examples:
3810
3810
  name: "add",
3811
3811
  group: "blueprints",
3812
3812
  helpText: helpText$r,
3813
- signature: "<type> [--name <name>] [--fn-type <document-publish>] [--fn-lang <ts|js>] [--javascript]",
3813
+ signature: "<type> [--name <name>] [--fn-type <document-create|document-delete|document-update|document-publish>] [--fn-lang <ts|js>] [--javascript]",
3814
3814
  description: "Add a Resource to a Blueprint",
3815
3815
  async action(args, context) {
3816
3816
  const { output, apiClient } = context, { extOptions } = args;