@stackbit/types
Advanced tools
@@ -9,2 +9,3 @@ import { RequiredBy } from './utility-types'; | ||
| createdAt: string; | ||
| label?: string; | ||
| createdBy?: string; | ||
@@ -11,0 +12,0 @@ document?: Document; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"content-source-document-versions.d.ts","sourceRoot":"","sources":["../src/content-source-document-versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"} | ||
| {"version":3,"file":"content-source-document-versions.d.ts","sourceRoot":"","sources":["../src/content-source-document-versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"} |
+2
-2
| { | ||
| "name": "@stackbit/types", | ||
| "version": "0.11.4-staging.1", | ||
| "version": "0.11.4", | ||
| "description": "Types for Stackbit config and Content Source Interface", | ||
@@ -30,3 +30,3 @@ "main": "dist/index.js", | ||
| "homepage": "https://github.com/stackbit/stackbit#readme", | ||
| "gitHead": "beb3ec87b3b12e0d354d7aa8b1a81160de3ac3ee" | ||
| "gitHead": "afeafedd0d7dc7355eb10eb278ed0c5aaa527867" | ||
| } |
@@ -10,2 +10,3 @@ import { RequiredBy } from './utility-types'; | ||
| createdAt: string; | ||
| label?: string; | ||
| createdBy?: string; | ||
@@ -12,0 +13,0 @@ document?: Document; |
| import { ConfigDelegate } from './config-delegate'; | ||
| import { ModelWithSource } from './models'; | ||
| import { User } from './content-source'; | ||
| export type ModelPermissions = { | ||
| canView?: boolean; | ||
| canEdit?: boolean; | ||
| canPublish?: boolean; | ||
| }; | ||
| export type DocumentPermissions = { | ||
| canView?: boolean; | ||
| canEdit?: boolean; | ||
| canPublish?: boolean; | ||
| }; | ||
| export type ModelPermissionsFunction = (options: ConfigDelegate & { | ||
| model: ModelWithSource; | ||
| userContext: User; | ||
| }) => ModelPermissions; | ||
| //# sourceMappingURL=content-permissions.d.ts.map |
| {"version":3,"file":"content-permissions.d.ts","sourceRoot":"","sources":["../src/content-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CACnC,OAAO,EAAE,cAAc,GAAG;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,WAAW,EAAE,IAAI,CAAA;CAAE,KACtE,gBAAgB,CAAC"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| //# sourceMappingURL=content-permissions.js.map |
| {"version":3,"file":"content-permissions.js","sourceRoot":"","sources":["../src/content-permissions.ts"],"names":[],"mappings":""} |
Sorry, the diff of this file is not supported yet
367464
-0.38%108
-3.57%6664
-0.25%