First frontend

This commit is contained in:
2026-04-30 21:37:21 +02:00
parent c3e98af5b6
commit ac48e03404
16 changed files with 1764 additions and 5 deletions
+42
View File
@@ -0,0 +1,42 @@
export interface ProjectDto {
id: string;
name: string;
}
export interface ConsumerWithCalculatedValues {
id: string;
projectId: string;
distributionBoardId?: string | null;
name: string;
category?: string;
quantity: number;
installedPowerPerUnitKw: number;
demandFactor: number;
voltageV?: number;
phaseCount?: 1 | 3;
powerFactor?: number;
note?: string;
installedPowerKw: number;
demandPowerKw: number;
currentA?: number;
}
export interface DistributionBoardDto {
id: string;
projectId: string;
name: string;
}
export interface CreateConsumerInput {
projectId: string;
distributionBoardId?: string;
name: string;
category?: string;
quantity: number;
installedPowerPerUnitKw: number;
demandFactor: number;
voltageV?: number;
phaseCount?: 1 | 3;
powerFactor?: number;
note?: string;
}