Interface: Dataset
Read access to compiled data. The in-memory builder dataset, the SQLite offline client and the remote shard client all implement this, and all share the engine below, which is what keeps their results identical.
Methods
Section titled “Methods”aliasGrams()
Section titled “aliasGrams()”aliasGrams(
bucket):Promise<Record<string,string[]>>
One bucket of the trigram set for fuzzy matching ({} when empty).
Parameters
Section titled “Parameters”bucket
Section titled “bucket”number
Returns
Section titled “Returns”Promise<Record<string, string[]>>
aliasShard()
Section titled “aliasShard()”aliasShard(
prefix):Promise<AliasEntry[]>
One prefix shard of the alias index ([] when there is none), as shardAliasIndex splits it.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string
Returns
Section titled “Returns”Promise<AliasEntry[]>
findWorkIds()
Section titled “findWorkIds()”findWorkIds(
provider,providerId):Promise<string[]>
Work ids carrying this provider ID, sorted ascending.
Parameters
Section titled “Parameters”provider
Section titled “provider”"anidb" | "anilist" | "mal" | "kitsu" | "tvdb_show" | "tmdb_show" | "tmdb_movie" | "imdb"
providerId
Section titled “providerId”string
Returns
Section titled “Returns”Promise<string[]>
getSequence()
Section titled “getSequence()”getSequence(
id):Promise<SequenceRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<SequenceRecord | undefined>
getWork()
Section titled “getWork()”getWork(
id):Promise<WorkRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<WorkRecord | undefined>
groups()
Section titled “groups()”groups():
Promise<GroupRecord[]>
Every release group, sorted by id.
Returns
Section titled “Returns”Promise<GroupRecord[]>
meta()
Section titled “meta()”meta():
Promise<Meta>
Returns
Section titled “Returns”Promise<Meta>
This product uses the TMDB API but is not endorsed or certified by TMDB.