2024-10-28 20:47:14 +01:00
|
|
|
export enum AssetType {
|
|
|
|
image = 'IMAGE',
|
|
|
|
video = 'VIDEO'
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Asset {
|
2024-10-28 09:56:11 +01:00
|
|
|
id: string;
|
2024-10-30 20:21:12 +01:00
|
|
|
key: string;
|
2024-11-01 11:58:27 +01:00
|
|
|
password?: string;
|
2024-10-28 20:47:14 +01:00
|
|
|
type: AssetType;
|
2024-10-29 19:22:18 +01:00
|
|
|
isTrashed: boolean;
|
2024-10-28 09:56:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface SharedLink {
|
|
|
|
key: string;
|
2024-10-30 19:53:09 +01:00
|
|
|
type: string;
|
2024-11-01 14:19:15 +01:00
|
|
|
description?: string;
|
2024-10-29 19:22:18 +01:00
|
|
|
assets: Asset[];
|
2024-10-30 19:53:09 +01:00
|
|
|
album?: {
|
|
|
|
id: string;
|
2024-11-01 14:19:15 +01:00
|
|
|
albumName?: string;
|
2024-10-30 19:53:09 +01:00
|
|
|
}
|
2024-10-29 19:22:18 +01:00
|
|
|
expiresAt: string | null;
|
2024-10-28 20:47:14 +01:00
|
|
|
}
|
|
|
|
|
2024-11-01 11:58:27 +01:00
|
|
|
export interface SharedLinkResult {
|
|
|
|
valid: boolean;
|
|
|
|
key?: string;
|
|
|
|
passwordRequired?: boolean;
|
|
|
|
link?: SharedLink;
|
|
|
|
}
|
|
|
|
|
2024-10-28 20:47:14 +01:00
|
|
|
export enum ImageSize {
|
|
|
|
thumbnail = 'thumbnail',
|
|
|
|
original = 'original'
|
2024-10-28 09:56:11 +01:00
|
|
|
}
|
2024-11-01 11:58:27 +01:00
|
|
|
|
|
|
|
export interface IncomingShareRequest {
|
|
|
|
key: string;
|
|
|
|
password?: string;
|
|
|
|
size?: ImageSize;
|
|
|
|
}
|