2024-10-08 13:20:42 +02:00
|
|
|
export interface Node {
|
|
|
|
uuid: string;
|
2024-10-08 11:44:24 +02:00
|
|
|
name: string;
|
2024-10-08 13:20:42 +02:00
|
|
|
status: number;
|
|
|
|
coordla: number;
|
|
|
|
coordlong: number;
|
|
|
|
temperature: number;
|
|
|
|
battery: number;
|
|
|
|
runtime: number;
|
2024-10-08 11:44:24 +02:00
|
|
|
}
|
|
|
|
|
2024-10-08 13:20:42 +02:00
|
|
|
export interface NodeGroup {
|
|
|
|
groupId: string;
|
2024-10-08 11:44:24 +02:00
|
|
|
name: string;
|
2024-10-08 13:20:42 +02:00
|
|
|
nodes: Node[];
|
2024-10-08 11:44:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface User {
|
2024-10-08 13:20:42 +02:00
|
|
|
uuid: string;
|
2024-10-08 11:44:24 +02:00
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
admin: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CreateUserDto {
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
password: string;
|
|
|
|
admin: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateUserDto {
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
password?: string;
|
|
|
|
admin?: boolean;
|
|
|
|
}
|
|
|
|
|