Interface: IEnrichmentRepository
Defined in: Data/Repositories/IEnrichmentRepository.ts:18
Interface for the enrichment database repository. Provides access to enrichment_units (book topics/section titles) and enrichment_tags (tag-to-verse strength mappings).
Methods
getBookTopics()
getBookTopics(
bookNumber):EnrichmentUnit[]
Defined in: Data/Repositories/IEnrichmentRepository.ts:23
Get enrichment units (section topics) for a given book. Returns rows with non-null titles ordered by start_verse_id.
Parameters
bookNumber
number
Returns
getTagStrengthsForVerses()
getTagStrengthsForVerses(
tag,types,unitIds):EnrichmentTagMatch[]
Defined in: Data/Repositories/IEnrichmentRepository.ts:36
Look up tag strengths for a specific tag across a set of verse unit IDs.
Parameters
tag
string
The tag name to look up
types
string[]
Array of tag types to match (e.g. ['theme', 'emotion', 'event', 'imagery'])
unitIds
string[]
Array of unit_id strings to filter (e.g. ['v_43003016', 'v_1001001'])
Returns
getVersesByTag()
getVersesByTag(
tag,tagType,limit):EnrichmentTagMatch[]
Defined in: Data/Repositories/IEnrichmentRepository.ts:28
Look up verses matching a tag name and type, ordered by strength descending.
Parameters
tag
string
tagType
string
limit
number