UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

26 lines (25 loc) 1.41 kB
import { RR0Context } from "../../../RR0Context.js"; import { HttpSource } from "../HttpSource.js"; import { NuforcCaseSummary } from "./NuforcCaseSummary.js"; import { NuforcState } from "./NuforcState.js"; import { Level2Date as EdtfDate } from "@rr0/time"; import { NuforcCountry } from "./NuforcCountry.js"; import { NuforcShape } from "./NuforcShape.js"; import { NuforcDatasource } from "./NuforcDatasource.js"; export declare class NuforcHttpDatasource extends NuforcDatasource { readonly baseUrl: URL; readonly searchPath: string; protected static readonly dateFormat: RegExp; protected readonly http: HttpSource; constructor(baseUrl?: URL, searchPath?: string); protected queryUrl(context: RR0Context): URL; protected readCases(context: RR0Context): Promise<NuforcCaseSummary[]>; protected getShape(shapeField: HTMLTableCellElement): NuforcShape; protected getCountry(countryField: HTMLTableCellElement): NuforcCountry; protected getState(caseField: HTMLTableCellElement): NuforcState; protected getTime(dateField: HTMLTableCellElement, context: RR0Context): EdtfDate; protected getLink(caseField: HTMLTableCellElement): URL; protected dateFromField(reportField: HTMLTableCellElement): Date; protected getImage(imageField: HTMLTableCellElement): boolean; protected getNativeCase(context: RR0Context, row: Element): NuforcCaseSummary; }