forked from jappel/leistungsbilanz-ts
Align project devices with circuit model
This commit is contained in:
parent
689cfd3c65
commit
9d07ed9856
16 changed files with 301 additions and 106 deletions
|
|
@ -91,8 +91,17 @@ export interface ProjectDeviceDto {
|
|||
projectId: string;
|
||||
name: string;
|
||||
displayName: string;
|
||||
phaseType: "single_phase" | "three_phase";
|
||||
connectionKind: string | null;
|
||||
costGroup: string | null;
|
||||
category: string | null;
|
||||
quantity: number;
|
||||
powerPerUnit: number;
|
||||
simultaneityFactor: number;
|
||||
totalPower: number;
|
||||
cosPhi: number | null;
|
||||
remark: string | null;
|
||||
// Legacy aliases retained until the old Consumer editor is removed.
|
||||
installedPowerPerUnitKw: number;
|
||||
demandFactor: number;
|
||||
voltageV: number | null;
|
||||
|
|
@ -159,14 +168,16 @@ export interface CreateGlobalDeviceInput {
|
|||
export interface CreateProjectDeviceInput {
|
||||
name: string;
|
||||
displayName: string;
|
||||
phaseType: "single_phase" | "three_phase";
|
||||
connectionKind?: string;
|
||||
costGroup?: string;
|
||||
category?: string;
|
||||
quantity: number;
|
||||
installedPowerPerUnitKw: number;
|
||||
demandFactor: number;
|
||||
powerPerUnit: number;
|
||||
simultaneityFactor: number;
|
||||
cosPhi?: number;
|
||||
remark?: string;
|
||||
voltageV?: number;
|
||||
phaseCount?: 1 | 3;
|
||||
powerFactor?: number;
|
||||
note?: string;
|
||||
}
|
||||
|
||||
export interface CircuitTreeDeviceRowDto {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue