mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-21 04:01:03 +10:00
space updates
* space UI * space management * space permissions * other fixes
This commit is contained in:
@ -3,3 +3,32 @@ export interface QueryParams {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export enum UserRole {
|
||||
OWNER = "owner",
|
||||
ADMIN = "admin",
|
||||
MEMBER = "member",
|
||||
}
|
||||
|
||||
export enum SpaceRole {
|
||||
ADMIN = "admin",
|
||||
WRITER = "writer",
|
||||
READER = "reader",
|
||||
}
|
||||
|
||||
export interface IRoleData {
|
||||
label: string;
|
||||
value: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export type IPaginationMeta = {
|
||||
limit: number;
|
||||
page: number;
|
||||
hasNextPage: boolean;
|
||||
hasPrevPage: boolean;
|
||||
};
|
||||
export type IPagination<T> = {
|
||||
items: T[];
|
||||
meta: IPaginationMeta;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user