UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

150 lines (149 loc) 3.36 kB
import { RR0Context } from "../../../RR0Context.js"; import { HttpSource } from "../HttpSource.js"; import { FuforaCaseSummary } from "./FuforaCaseSummary.js"; import { FuforaDatasource } from "./FuforaDatasource.js"; interface FormData { /** * Start day */ alkupv: number; /** * Start month */ alkukk: number; /** * Start year */ alkuvv: number; /** * End day */ loppupv: number; /** * End month */ loppukk: number; /** * End year */ loppuvv: number; /** * Sighting place (city) */ h_paikka: string; /** * Case importance (only or min) * 0 = Not included in search, 1 = Peu d'importance, 9 = Très important * Sélectionnez soit une valeur unique, soit recherchez entre les valeurs */ l1_valinta1: number; /** * Case importance (max if min) * 0 = Not included in search, 1 = Peu d'importance, 9 = Très important * Sélectionnez soit une valeur unique, soit recherchez entre les valeurs */ l1_valinta2?: number; /** * Case type: Ball of light */ l2_vap?: "vap"; /** * Case type: abduction */ l2_sie?: "sie"; /** * Case type: close encounter */ l2_pres?: "pres"; /** * Case type: close encounter */ l2_kon?: "kon"; /** * Case type: missing time */ l2_mis?: "mis"; /** * Case type: moving light */ l2_liv?: "liv"; /** * Case type: unclear target */ l2_esk?: "esk"; /** * Case type: clear bottom detection */ l2_alu?: "alu"; /** * Case type: clear bottom detection */ l2_hum?: "hum"; /** * Case reliability: only or min (1-9) */ l3_valinta1: 0; /** * Case reliability: max if min (1-9) */ l3_valinta2?: 0; /** * Night */ l4_yo?: "y"; /** * Dawn */ l4_ham?: "h"; /** * Day */ l4_pai?: "p"; /** * Sighting area: Finlande du Sud (par exemple Helsinki, Hämeenlinna, Kouvola) */ l5_es?: 1; /** * Sighting area: Sud-ouest de la Finlande (par exemple Turku) */ l5_ls?: 2; /** * Sighting area: Finlande orientale (par exemple Mikkeli, Kuopio, Joensuu) */ l5_is?: 3; /** * Sighting area: Finlande occidentale et orientale (par exemple Vaasa, Tampere, Jyväskylä) */ l5_lsis?: 4; /** * Sighting area: Finlande du Nord (par exemple Oulu) */ l5_ps?: 5; /** * Sighting area: Laponie (y compris Rovaniemi) */ l5_la?: 6; /** * Sighting area: Åland (par exemple Mariehamn) */ l5_ah?: 7; /** * Sighting area: Pays étrangers */ l5_ul?: 0; tark: 1; } export declare class FuforaHttpDatasource extends FuforaDatasource { readonly baseUrl: URL; readonly searchPath: string; protected readonly http: HttpSource; constructor(baseUrl: URL, searchPath: string); fetch(context: RR0Context): Promise<FuforaCaseSummary[]>; getFromRows(context: RR0Context, rows: Element[]): FuforaCaseSummary[]; queryUrl(context: RR0Context): { formData: FormData; searchUrl: URL; }; protected getFromRow(context: RR0Context, row: Element): FuforaCaseSummary; } export {};