add / edit / delete user warrens
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { AuthUser } from './auth';
|
||||
import type { UserWarren, Warren } from './warrens';
|
||||
import type { AdminWarrenData, UserWarren } from './warrens';
|
||||
|
||||
export type AdminResources = {
|
||||
users: AuthUserWithWarrens[];
|
||||
warrens: Record<string, Warren>;
|
||||
warrens: Record<string, AdminWarrenData>;
|
||||
};
|
||||
|
||||
export type AuthUserWithWarrens = AuthUser & {
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
export type Warren = {
|
||||
export interface WarrenData {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export type AdminWarrenData = WarrenData & {
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type UserWarren = {
|
||||
userId: string;
|
||||
warrenId: string;
|
||||
canCreateChildren: boolean;
|
||||
canListFiles: boolean;
|
||||
canReadFiles: boolean;
|
||||
canModifyFiles: boolean;
|
||||
canDeleteFiles: boolean;
|
||||
canDeleteWarren: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user