2026-03-31 14:52:53 +00:00
|
|
|
import type { Map as MapLibreMap } from "maplibre-gl";
|
2026-04-09 00:25:21 +00:00
|
|
|
import { Location } from "@/type/api";
|
2026-03-31 14:52:53 +00:00
|
|
|
|
|
|
|
|
export interface Changes {
|
|
|
|
|
updated: string[];
|
|
|
|
|
unchanged: string[];
|
2026-03-22 17:20:46 +00:00
|
|
|
}
|
|
|
|
|
|
2026-03-31 14:52:53 +00:00
|
|
|
export interface LogEntry {
|
|
|
|
|
created: string;
|
|
|
|
|
id: number;
|
|
|
|
|
message: string;
|
|
|
|
|
report_id: number;
|
|
|
|
|
type: string;
|
|
|
|
|
user_id: number;
|
|
|
|
|
}
|
|
|
|
|
export interface MapClickEvent {
|
|
|
|
|
location: Location;
|
|
|
|
|
map: MapLibreMap;
|
|
|
|
|
point: Point;
|
2026-03-24 09:36:20 -07:00
|
|
|
}
|
|
|
|
|
export interface Marker {
|
2026-04-03 19:45:12 +00:00
|
|
|
color?: string;
|
|
|
|
|
draggable?: boolean;
|
2026-03-24 09:36:20 -07:00
|
|
|
id: string;
|
2026-03-31 14:52:53 +00:00
|
|
|
location: Location;
|
2026-03-24 09:36:20 -07:00
|
|
|
}
|
2026-03-22 04:08:16 +00:00
|
|
|
|
2026-03-31 14:52:53 +00:00
|
|
|
export interface Point {
|
|
|
|
|
x: number;
|
|
|
|
|
y: number;
|
|
|
|
|
}
|