Variable catalogBookSchemaConst
catalogBookSchema: ZodObject<
{
authors: ZodArray<ZodString, "many">;
coverUrl: ZodNullable<ZodString>;
downloadCount: ZodNumber;
epubAvailable: ZodBoolean;
id: ZodNumber;
languages: ZodArray<ZodString, "many">;
subjects: ZodArray<ZodString, "many">;
title: ZodString;
},
"strip",
ZodTypeAny,
{
authors: string[];
coverUrl: string
| null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
},
{
authors: string[];
coverUrl: string
| null;
downloadCount: number;
epubAvailable: boolean;
id: number;
languages: string[];
subjects: string[];
title: string;
},
> = ...
One catalog result, mapped from a Gutendex book.
idis the Project Gutenberg id (used as the import handle).coverUrlhotlinks the Gutendeximage/jpegcover (null → the UI shows a typographic fallback tile).epubAvailableis false when the edition has noapplication/epub+zipformat, so the UI can hide/disable the import action.