|
@@ -56,8 +56,13 @@ export const PageGrant = {
|
|
|
} as const;
|
|
} as const;
|
|
|
type UnionPageGrantKeys = keyof typeof PageGrant;
|
|
type UnionPageGrantKeys = keyof typeof PageGrant;
|
|
|
export type PageGrant = typeof PageGrant[UnionPageGrantKeys];
|
|
export type PageGrant = typeof PageGrant[UnionPageGrantKeys];
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * Neither pages with grant `GRANT_RESTRICTED` nor `GRANT_SPECIFIED` can be on a page tree.
|
|
|
|
|
+ */
|
|
|
export type PageGrantCanBeOnTree = typeof PageGrant[Exclude<UnionPageGrantKeys, 'GRANT_RESTRICTED' | 'GRANT_SPECIFIED'>];
|
|
export type PageGrantCanBeOnTree = typeof PageGrant[Exclude<UnionPageGrantKeys, 'GRANT_RESTRICTED' | 'GRANT_SPECIFIED'>];
|
|
|
|
|
|
|
|
|
|
+
|
|
|
export type IPageHasId = IPage & HasObjectId;
|
|
export type IPageHasId = IPage & HasObjectId;
|
|
|
|
|
|
|
|
export type IPageInfo = {
|
|
export type IPageInfo = {
|