UNPKG

shamela

Version:

Library to interact with the Maktabah Shamela v4 APIs

48 lines (47 loc) 1.25 kB
import { i as Category, n as Book, t as Author, u as MasterData } from "./types-CeDA67OZ.js"; //#region src/transform.d.ts type DenormalizedAuthor = Pick<Author, 'id' | 'name'> & { death?: number; biography?: string; }; type DenormalizedCategory = Pick<Category, 'id' | 'name'> & { order: number; }; type PdfFile = { part?: string; name: string; }; type PdfInfo = { alias?: number; files?: PdfFile[]; cover?: number; cover_alias?: number; size?: number; root?: string; folder?: [number, string]; }; type BookMetadata = { date: string; shorts?: Record<string, string>; prefix?: string; coauthor?: DenormalizedAuthor[]; min_ver?: number; suffix?: string; group?: number; hide_diacritic?: boolean; }; type DenormalizedBook = Pick<Book, 'id' | 'bibliography' | 'name'> & { author: DenormalizedAuthor; date?: number; hint?: string; type?: number; category: DenormalizedCategory; pdf_links?: PdfInfo; printed: number; version: string; metadata: BookMetadata; }; declare const denormalizeBooks: (master: MasterData) => DenormalizedBook[]; //#endregion export { BookMetadata, DenormalizedAuthor, DenormalizedBook, DenormalizedCategory, denormalizeBooks }; //# sourceMappingURL=transform.d.ts.map