@rr0/data
Version:
RR0 data model
64 lines (63 loc) • 1.91 kB
TypeScript
import { Occupation } from "./Occupation.js";
import { Gender } from "@rr0/common";
import { Level2Date as EdtfDate } from "@rr0/time";
import { RR0Data } from "../RR0Data.js";
import { CountryCode } from "../org/country/CountryCode.js";
import { RR0Event } from "../event/RR0Event.js";
export declare class People extends RR0Data {
firstNames: string[];
lastName: string;
readonly pseudonyms: string[];
/**
* @deprecated
*/
readonly occupations: Occupation[];
/**
* @deprecated
*/
readonly countries: CountryCode[];
/**
* The people has been caught lying or has confessed a hoax.
*/
readonly discredited: boolean;
/**
* @deprecated Use a "birth"-typed sub-data instead.
*/
readonly gender: Gender;
readonly qualifier: string;
readonly type = "people";
/**
* The people actually doesn't exist.
*/
hoax: boolean;
lastAndFirstName: string;
constructor(firstNames?: string[], lastName?: string, pseudonyms?: string[],
/**
* @deprecated
*/
occupations?: Occupation[],
/**
* @deprecated
*/
countries?: CountryCode[],
/**
* The people has been caught lying or has confessed a hoax.
*/
discredited?: boolean,
/**
* @deprecated Use a "birth"-typed sub-data instead.
*/
gender?: Gender, id?: string, dirName?: string, image?: string, url?: string, events?: RR0Event[], qualifier?: string, surname?: any);
get birthTime(): EdtfDate;
get deathTime(): EdtfDate;
get firstAndLastName(): string;
getLastAndFirstName(): string;
isDeceased(from?: EdtfDate): boolean;
getAge(from?: EdtfDate): number | undefined;
isProbablyDeceased(birth: EdtfDate, at?: EdtfDate): boolean;
clone(): People;
protected getLastAndFirstNames(): {
lastNameStr: string;
firstNameStr: string;
};
}