import { Types } from "mongoose"; import { GeoPoint } from "./geojson"; export interface WatchDutyRegionType { name: string, state: string, } export interface WatchDutyEventType { _id: Types.ObjectId, watchDutyId: number, name: string, description: string, geoEventType: string, // Null when Watch Duty reports no usable lat/lng. The event is still stored, it just cannot // be drawn. locationGeoJSON: GeoPoint | null, address: string, isPrescribed: boolean, // Watch Duty reports the burned area in acres. It is converted on the way in. areaSquareMeters: number | null, // Percent of the fire perimeter contained, 0 to 100. containment: number | null, evacuationOrders: string, evacuationWarnings: string, evacuationAdvisories: string, evacuationShelterInPlace: string, regions: WatchDutyRegionType[], active: boolean, // Watch Duty's own timestamps. `created` and `modified` are ours, and mean the first and the // last time we wrote the record. watchDutyCreatedAt: Date, watchDutyModifiedAt: Date, created: Date, modified: Date, }