space updates

* space UI
* space management
* space permissions
* other fixes
This commit is contained in:
Philipinho
2024-04-12 19:38:58 +01:00
parent b02cfd02f0
commit 90ae750d48
54 changed files with 1966 additions and 365 deletions

View File

@ -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;
};