import { Types } from "mongoose"; import { ColorSchemaType } from "./color"; import { GeoPoint } from "./geojson"; import { AccountIndustry } from "../constants"; export interface LocationType { _id: Types.ObjectId, id?: string, active: boolean, agencyCode: string, agencyName: string, altitude: number, color: ColorSchemaType, colorChangedAt: Date, deleteAfterDate: Date, departmentId: string, device_type: string, esriId: number, heading: number, industry: AccountIndustry, kindType: string, kind?: string, type?: string, locationType?: string, kindColor?: ColorSchemaType, kindColorChangedAt?: Date, location?: { latitude: number, longitude: number, }; // provided by virtual.location locationGeoJSON: GeoPoint, modified: Date, movedAt: Date, opAreaCode: string opAreaName: string, propsChangedAt: Date, sendToCAD: boolean, session: string, shared: boolean, source: string, speed: number, state: string, typeDetails: object userId: string, username: string, uuid: string, personnelUUID: string, transponderUUID: string, version: number, visibility: string[], }