Consolidate app files

This commit is contained in:
Alan Grainger
2024-11-02 22:18:04 +01:00
parent 12064d740f
commit 69d88fa849
32 changed files with 15 additions and 13 deletions
+42
View File
@@ -0,0 +1,42 @@
export enum AssetType {
image = 'IMAGE',
video = 'VIDEO'
}
export interface Asset {
id: string;
key: string;
password?: string;
type: AssetType;
isTrashed: boolean;
}
export interface SharedLink {
key: string;
type: string;
description?: string;
assets: Asset[];
album?: {
id: string;
albumName?: string;
}
expiresAt: string | null;
}
export interface SharedLinkResult {
valid: boolean;
key?: string;
passwordRequired?: boolean;
link?: SharedLink;
}
export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
}
export interface IncomingShareRequest {
key: string;
password?: string;
size?: ImageSize;
}