Skip to main content

MasterData

Master data structure containing all core entities from the Shamela database.
Author[]
required
Array of all authors in the database
Book[]
required
Array of all books in the database
Category[]
required
Array of all categories in the database
number
required
Version number of the master database

Author

Represents an author entity.
number
required
Unique identifier for the author
string
required
Author’s full name
string | null
required
Author’s biographical information (null if not available)
string
required
Death year or UNKNOWN_VALUE_PLACEHOLDER if not known
string | null
required
Death year formatted as text (null if not available)
string
Set to ‘1’ if this author was deleted in a patch update

Book

Represents a book entity.
number
required
Unique identifier for the book
string
required
Book title
string
required
Serialized author ID(s), e.g., “2747, 3147” or “513”
string
required
Category ID
string
required
Major version number of the book
string
required
Minor version number of the book
string
required
Bibliography information
string
required
Publication date (or 99999 if unavailable)
string | null
required
Additional hint or description (null if not available)
string
required
Serialized metadata as JSON string
Serialized PDF links (null if not available)
string
required
Flag indicating if book has been printed
string
required
Book type classification
string
Set to ‘1’ if this book was deleted in a patch update

Category

Represents a book category.
number
required
Unique identifier for the category
string
required
Category name
string
required
Display order for sorting categories
string
Set to ‘1’ if this category was deleted in a patch update

Usage Example

Denormalizing Books

Use denormalizeBooks() to resolve author and category references: