think/packages/domains/lib/models/wiki.d.ts

48 lines
924 B
TypeScript
Raw Normal View History

2022-04-02 09:57:30 +00:00
import { IUser } from './user';
2022-05-26 02:17:57 +00:00
import { IDocument } from './document';
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export declare enum WikiStatus {
private = "private",
public = "public"
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export declare enum WikiUserStatus {
applying = "applying",
inviting = "inviting",
normal = "normal"
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export declare enum WikiUserRole {
normal = "normal",
admin = "admin"
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export interface IWiki {
id: string;
name: string;
avatar: string;
description: string;
2022-04-02 09:57:30 +00:00
createUserId: IUser['id'];
2022-03-11 05:57:55 +00:00
createUser: IUser;
status: WikiStatus;
2022-05-26 02:17:57 +00:00
homeDocumentId: IDocument['id'];
2022-03-11 05:57:55 +00:00
createdAt: Date;
updatedAt: Date;
}
2022-05-18 08:02:29 +00:00
/**
*
*/
2022-03-11 05:57:55 +00:00
export interface IWikiUser extends IUser {
userRole: WikiUserRole;
userStatus: WikiUserStatus;
isCreator: boolean;
}