Taichi Masuyama 3 лет назад
Родитель
Сommit
94363f7c1d
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      packages/core/src/interfaces/page.ts

+ 5 - 0
packages/core/src/interfaces/page.ts

@@ -62,6 +62,11 @@ export type PageGrant = typeof PageGrant[UnionPageGrantKeys];
  */
 export type PageGrantCanBeOnTree = typeof PageGrant[Exclude<UnionPageGrantKeys, 'GRANT_RESTRICTED' | 'GRANT_SPECIFIED'>];
 
+export const PageStatus = {
+  STATUS_PUBLISHED: 'published',
+  STATUS_DELETED: 'deleted',
+} as const;
+export type PageStatus = typeof PageStatus[keyof typeof PageStatus];
 
 export type IPageHasId = IPage & HasObjectId;