mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(cover): add online cover search with provider infrastructure
This commit is contained in:
@@ -75,3 +75,17 @@ export type BookRecommendation = {
|
||||
book: BookCard;
|
||||
score: number;
|
||||
};
|
||||
|
||||
export type CoverSearchResult = {
|
||||
url: number | string; // ID for proxy or direct URL
|
||||
previewUrl: string;
|
||||
sourceUrl: string;
|
||||
width: number;
|
||||
height: number;
|
||||
source: string;
|
||||
};
|
||||
|
||||
export type CoverSearchResponse = {
|
||||
results: CoverSearchResult[];
|
||||
total: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user