feat(platform): summarize vehicle source status
This commit is contained in:
@@ -42,12 +42,23 @@ export interface VehicleDetail {
|
||||
vin: string;
|
||||
identity?: VehicleRow;
|
||||
sources: string[];
|
||||
sourceStatus: VehicleSourceStatus[];
|
||||
realtime: RealtimeLocationRow[];
|
||||
history: Page<HistoryLocationRow>;
|
||||
raw: Page<RawFrameRow>;
|
||||
mileage: Page<DailyMileageRow>;
|
||||
}
|
||||
|
||||
export interface VehicleSourceStatus {
|
||||
protocol: string;
|
||||
online: boolean;
|
||||
lastSeen: string;
|
||||
hasRealtime: boolean;
|
||||
hasHistory: boolean;
|
||||
hasRaw: boolean;
|
||||
hasMileage: boolean;
|
||||
}
|
||||
|
||||
export interface RealtimeLocationRow {
|
||||
vin: string;
|
||||
plate: string;
|
||||
|
||||
Reference in New Issue
Block a user