@sanity/blueprints 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -30,8 +30,7 @@ export default defineBlueprint({
30
30
  currency: 'USD',
31
31
  },
32
32
  }),
33
-
34
- const webhookResource = defineDocumentWebhook({
33
+ defineDocumentWebhook({
35
34
  name: 'notification-webhook',
36
35
  url: 'http://api.yourdomain.com/notifications/sanity',
37
36
  on: ['create'],
package/dist/types.d.ts CHANGED
@@ -14,7 +14,7 @@ export type BlueprintCorsOriginConfig = Omit<BlueprintCorsOriginResource, 'type'
14
14
  export interface BlueprintFunctionBaseResourceEvent {
15
15
  on?: [BlueprintFunctionResourceEventName, ...BlueprintFunctionResourceEventName[]];
16
16
  filter?: string;
17
- projection?: string;
17
+ projection?: `{${string}}`;
18
18
  }
19
19
  export interface BlueprintDocumentFunctionResourceEvent extends BlueprintFunctionBaseResourceEvent {
20
20
  includeDrafts?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/blueprints",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Helper methods and type definitions for Sanity Blueprints",
5
5
  "keywords": [
6
6
  "sanity",
package/src/types.ts CHANGED
@@ -16,7 +16,7 @@ export type BlueprintCorsOriginConfig = Omit<BlueprintCorsOriginResource, 'type'
16
16
  export interface BlueprintFunctionBaseResourceEvent {
17
17
  on?: [BlueprintFunctionResourceEventName, ...BlueprintFunctionResourceEventName[]]
18
18
  filter?: string
19
- projection?: string
19
+ projection?: `{${string}}`
20
20
  }
21
21
  export interface BlueprintDocumentFunctionResourceEvent extends BlueprintFunctionBaseResourceEvent {
22
22
  includeDrafts?: boolean