edit users
This commit is contained in:
11
frontend/shared/types/admin.ts
Normal file
11
frontend/shared/types/admin.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { AuthUser } from './auth';
|
||||
import type { UserWarren, Warren } from './warrens';
|
||||
|
||||
export type AdminResources = {
|
||||
users: AuthUserWithWarrens[];
|
||||
warrens: Record<string, Warren>;
|
||||
};
|
||||
|
||||
export type AuthUserWithWarrens = AuthUser & {
|
||||
warrens: UserWarren[];
|
||||
};
|
||||
@@ -2,3 +2,14 @@ export type Warren = {
|
||||
id: string;
|
||||
name: 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