From 6e0a367afcae07ae6f8274c7310950af613b4bf0 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 26 Jun 2021 11:57:09 -0400 Subject: Translator data format updates (#1754) * Add {dictionaryIndex, dictionaryPriority} to definitions * Add score to definitions * Add id to definition * Use definition id instead of ids array * Remove ids array * Update docs * Update test data --- docs/interfaces/dictionary-entry.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'docs/interfaces') diff --git a/docs/interfaces/dictionary-entry.ts b/docs/interfaces/dictionary-entry.ts index da2a0151..d170f6df 100644 --- a/docs/interfaces/dictionary-entry.ts +++ b/docs/interfaces/dictionary-entry.ts @@ -191,10 +191,6 @@ namespace Translation { * `DictionaryEntry.type` is always `'term'`. */ export interface TermDictionaryEntry extends DictionaryEntry { - /** - * Database IDs for the term. - */ - ids: number[]; /** * Whether or not any of the sources is a primary source. Primary sources are derived from the * original search text, while non-primary sources originate from related terms. @@ -288,6 +284,22 @@ namespace Translation { * The name of the dictionary that the definition information originated from. */ dictionary: string; + /** + * The index of the dictionary in the original list of dictionaries used for the lookup. + */ + dictionaryIndex: number; + /** + * The priority of the dictionary. + */ + dictionaryPriority: number; + /** + * Database ID for the definition. + */ + id: number[]; + /** + * A score for the definition. + */ + score: number; /** * A list of database sequence numbers for the term. A value of `-1` corresponds to no sequence. * The list can have multiple values if multiple definitions with different sequences have been merged. -- cgit v1.2.3