basic file sharing
This commit is contained in:
13
frontend/shared/types/shares.ts
Normal file
13
frontend/shared/types/shares.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export type Share = {
|
||||
id: string;
|
||||
|
||||
creatorId: string;
|
||||
warrenId: string;
|
||||
|
||||
path: string;
|
||||
|
||||
password: boolean;
|
||||
|
||||
expiresAt: number | null;
|
||||
createdAt: number;
|
||||
};
|
||||
@@ -10,8 +10,14 @@ export type AdminWarrenData = WarrenData & {
|
||||
export type UserWarren = {
|
||||
userId: string;
|
||||
warrenId: string;
|
||||
|
||||
canListFiles: boolean;
|
||||
canReadFiles: boolean;
|
||||
canModifyFiles: boolean;
|
||||
canDeleteFiles: boolean;
|
||||
|
||||
canListShares: boolean;
|
||||
canCreateShares: boolean;
|
||||
canModifyShares: boolean;
|
||||
canDeleteShares: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user