64 lines
1.0 KiB
TypeScript
64 lines
1.0 KiB
TypeScript
export interface Meme {
|
|
id: string;
|
|
title: string;
|
|
description: string | null;
|
|
file_path: string;
|
|
file_name: string;
|
|
file_size: number;
|
|
mime_type: string;
|
|
width: number;
|
|
height: number;
|
|
parent_id: string | null;
|
|
collection_id: number | null;
|
|
ocr_text: string | null;
|
|
created_at: string;
|
|
tags: string[];
|
|
}
|
|
|
|
export interface Collection {
|
|
id: number;
|
|
name: string;
|
|
is_default: number;
|
|
created_at: string;
|
|
meme_count: number;
|
|
}
|
|
|
|
export interface Tag {
|
|
id: number;
|
|
name: string;
|
|
meme_count: number;
|
|
}
|
|
|
|
export interface UploadBody {
|
|
title?: string;
|
|
description?: string;
|
|
tags?: string;
|
|
collection_id?: string;
|
|
}
|
|
|
|
export interface UpdateBody {
|
|
title?: string;
|
|
description?: string;
|
|
tags?: string[];
|
|
}
|
|
|
|
export interface MoveBody {
|
|
collection_id: number;
|
|
}
|
|
|
|
export interface RescaleBody {
|
|
width?: number;
|
|
height?: number;
|
|
quality?: number;
|
|
label?: string;
|
|
}
|
|
|
|
export interface ListQuery {
|
|
tag?: string;
|
|
q?: string;
|
|
page?: number;
|
|
limit?: number;
|
|
parent_only?: string;
|
|
collection_id?: string;
|
|
}
|