add / edit / delete user warrens

This commit is contained in:
2025-07-21 19:27:41 +02:00
parent 50e066f794
commit 2c26002507
86 changed files with 2197 additions and 300 deletions

View File

@@ -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 & {

View File

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