diff options
| author | Arne Rief <riearn@proton.me> | 2025-12-20 14:09:20 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-12-20 14:09:20 +0100 |
| commit | 237f8ae6c29bbf485c312b2fed4d5ab4f99a4eff (patch) | |
| tree | 238e82a6dc22372c2f9bb8504ab9160be49bd4f3 /frontend/src/types/robot.ts | |
| parent | 655ec610fcce8dd7748f10772d520bdff4f7c78e (diff) | |
Map and loading robots
Diffstat (limited to 'frontend/src/types/robot.ts')
| -rw-r--r-- | frontend/src/types/robot.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/src/types/robot.ts b/frontend/src/types/robot.ts new file mode 100644 index 0000000..40ce282 --- /dev/null +++ b/frontend/src/types/robot.ts @@ -0,0 +1,20 @@ +export type RobotPosition = { + lat: number; + lon: number; +}; + +export type Robot = { + id: number; + name: string; + status: "idle" | "moving"; + lat: number; + lon: number; + robot_positions: RobotPosition[]; + created_at: string; + updated_at: string; +}; + +export type RobotsResponse = { + source: "cache" | "database"; + data: Robot[]; +}; |
