Skip to content

Reference

tilttek/reading-quests

Every public type of the package, with its role.

Books and measures

TypeRole
BookA document as the quests see it: its identifier, its page count and its facts.
BookShelfInterfaceFinds a book by the identifier of its document.
InMemoryBookShelfUp to 100 000 books in memory, from objects or plain values.
ReadingUnitPages or minutes.
ReadingMeasureHow the site counts an amount: the total of a book and the amount reached at a progress.

Recording

TypeRole
ReadingVerbsThe verbs book.started, book.read and book.finished, and the pattern book.*.
ReadingActivitiesTurns one step of reading into its activities, with idempotency keys.
ReadingRecorderRecords a position and its activities in one call.
ReadingUpdateWhat the recorder did: the progress update, the journal's entries and the amount newly counted.

Quests and goals

TypeRole
ReadingStepsThe steps of tilttek/quests that open, finish or read books selected by their facts.
ReadingGoalA reader's goal for a calendar year: books finished, or pages or minutes read.
ReadingGoalsReads a reader's progress on a goal from the journal.
GoalProgressWhat is done, the target, the even pace, what remains, the percent.

Exceptions

TypeRole
Exception\ReadingQuestsExceptionInterfaceEvery exception of the library.
Exception\InvalidReadingQuestA value out of its shape or its bounds.
Exception\UnknownBookThe shelf holds no book of this identifier.