Class: BibleViewService
Defined in: Services/BibleViewService.ts:43
Service for assembling Bible view data — chapter formatting, topic deduplication, and verse-of-the-day retrieval. Framework-agnostic: usable by both web routes and desktop IPC handlers.
Constructors
Constructor
new BibleViewService(
enrichmentRepo):BibleViewService
Defined in: Services/BibleViewService.ts:44
Parameters
enrichmentRepo
IEnrichmentRepository | null
Returns
BibleViewService
Methods
getBookTopics()
getBookTopics(
bookNumber):DeduplicatedTopic[]
Defined in: Services/BibleViewService.ts:76
Get section topics for a book from the enrichments database, deduplicating by title text within each chapter.
Parameters
bookNumber
number
Returns
getFormattedChapter()
getFormattedChapter(
repo,book,chapter):ChapterVerse[]
Defined in: Services/BibleViewService.ts:51
Format a chapter's verses into display-ready objects.
Parameters
repo
book
number
chapter
number
Returns
getVerseOfTheDay()
getVerseOfTheDay(
votdService,repo):VotdResult
Defined in: Services/BibleViewService.ts:116
Get the verse of the day with formatted text.
Parameters
votdService
repo
Returns
deduplicateTopics()
staticdeduplicateTopics(rows):DeduplicatedTopic[]
Defined in: Services/BibleViewService.ts:86
Deduplicate enrichment unit topics: group by title text + chapter, prefer wider ranges.