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-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-10-29 19:22:18 +01:00
|
|
|
assets: Asset[];
|
2024-10-30 19:53:09 +01:00
|
|
|
album?: {
|
|
|
|
id: string;
|
|
|
|
}
|
2024-10-29 19:22:18 +01:00
|
|
|
expiresAt: string | null;
|
2024-10-28 20:47:14 +01:00
|
|
|
}
|
|
|
|
|
2024-10-30 19:53:09 +01:00
|
|
|
export interface Album {
|
|
|
|
assets: Asset[]
|
|
|
|
}
|
|
|
|
|
2024-10-28 20:47:14 +01:00
|
|
|
export enum ImageSize {
|
|
|
|
thumbnail = 'thumbnail',
|
|
|
|
original = 'original'
|
2024-10-28 09:56:11 +01:00
|
|
|
}
|