Skip to content

Interface: CourmapClient

The client contract from docs/SPEC.md. Offline (SQLite), remote (static shards) and any other Dataset give identical answers, because every operation runs the same core code over it.

close(): void

Releases resources (the SQLite handle in offline mode).

void


lookup(ref): Promise<Work>

The work a ref points at. Rejects with CourmapError (not_found, invalid_input, ambiguous).

string

Promise<Work>


meta(): Promise<Meta>

Promise<Meta>


resolve(releaseName, options?): Promise<ResolveResult>

A release name to its work and episode, with confidence and competing candidates. status is ok only for a clear winner; otherwise ambiguous (candidates listed) or unmatched.

string

ResolveOptions

Promise<ResolveResult>


search(query, limit?): Promise<WorkSummary[]>

Works whose titles or aliases match the query, best first.

string

number

Promise<WorkSummary[]>


translate(ref, episode, targets): Promise<TranslateResult>

One episode in every requested numbering. targets are provider names or “absolute”. Targets the work cannot map are listed in unmapped and set status to “unmapped”.

string

EpisodeInput

readonly string[]

Promise<TranslateResult>

This product uses the TMDB API but is not endorsed or certified by TMDB.