ApfelNetzwerk/web/src/types.ts

39 lines
572 B
TypeScript
Raw Normal View History

export interface Node {
uuid: string;
2024-10-08 11:44:24 +02:00
name: string;
status: number;
coordla: number;
coordlong: number;
temperature: number;
battery: number;
runtime: number;
2024-10-08 11:44:24 +02:00
}
export interface NodeGroup {
groupId: string;
2024-10-08 11:44:24 +02:00
name: string;
nodes: Node[];
2024-10-08 11:44:24 +02:00
}
export interface User {
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;
}