@rr0/cms
Version:
RR0 Content Management System (CMS)
27 lines (26 loc) • 1.2 kB
TypeScript
import { HtmlRR0Context, RR0Context } from "../../../RR0Context.js";
import { HttpSource } from "../HttpSource.js";
import { UrecatCase, UrecatWitness } from "./UrecatCase.js";
import { UrecatDatasource } from "./UrecatDatasource.js";
export declare class UrecatHttpDatasource extends UrecatDatasource {
readonly baseUrl: URL;
readonly searchPath: string;
protected static readonly urlDateFormat: RegExp;
protected static readonly wordToCount: {
[key: string]: number;
};
protected readonly http: HttpSource;
protected readonly intlOptions: Intl.DateTimeFormatOptions;
constructor(baseUrl: URL, searchPath?: string);
queryUrl(context: RR0Context): URL;
getWitnesses(witnessesStr: string): UrecatWitness[];
protected readCases(context: HtmlRR0Context): Promise<UrecatCase[]>;
protected getLocation(column: HTMLTableCellElement): {
placeName: string;
country: string;
departmentOrState: string;
};
protected getDate(context: RR0Context, caseLink: URL, row: Element): RR0Context;
protected getLink(linkCol: HTMLTableCellElement): URL;
protected getFromRow(context: RR0Context, row: Element): UrecatCase;
}