import { Ref } from './common'; import { IUser } from './user'; import { IRevision } from './revision'; import { ITag } from './tag'; import { HasObjectId } from './has-object-id'; export type IPage = { path: string, status: string, revision: Ref, tags: Ref[], creator: Ref, createdAt: Date, updatedAt: Date, seenUsers: Ref[], parent: Ref | null, isEmpty: boolean, redirectTo: string, grant: number, grantedUsers: Ref[], grantedGroup: Ref, lastUpdateUser: Ref, liker: Ref[], commentCount: number slackChannels: string, pageIdOnHackmd: string, revisionHackmdSynced: Ref, hasDraftOnHackmd: boolean, deleteUser: Ref, deletedAt: Date, } export type IPageForItem = Partial; export type IPageHasId = IPage & HasObjectId;