summaryrefslogtreecommitdiff
path: root/frontend/src/types/robot.ts
blob: 40ce282cff01b215d0fa01c70dd99d4350a9a7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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[];
};