diff options
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[]; +}; |
