UNPKG

wikibase-sdk

Version:

utils functions to query a Wikibase instance and simplify its results

39 lines 960 B
import type { EntityId } from './entity.js'; import type { Term } from './terms.js'; import type { Title } from '../helpers/parse_responses.js'; import type { WikimediaLanguageCode } from '../helpers/wikimedia_constants.js'; export interface SearchResult { id: EntityId; title: Title; pageid: number; concepturi: string; repository: string; url: string; display: { label: Term; description: Term; }; label: string; description?: string; aliases?: string[]; match: { type: 'label' | 'description' | 'alias'; language: WikimediaLanguageCode; text: string; }; } export interface SearchResponse { search: SearchResult[]; 'search-continue': number; searchinfo: { search: string; }; success: number; error?: { code: string; info: string; '*': string; }; servedby: string; } //# sourceMappingURL=search.d.ts.map