forked from jappel/leistungsbilanz-ts
Add explicit "no protection device" state for circuits
Circuits can now record that they deliberately have no protection device (type NONE, shown as "–"), separate from circuits whose protection is still open. Migration 0017 makes rated_current_a nullable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1f3b903809
commit
38019fe087
27 changed files with 3673 additions and 132 deletions
|
|
@ -7,6 +7,7 @@ import type {
|
|||
import type {
|
||||
BreakerTripCharacteristic,
|
||||
FuseUtilizationCategory,
|
||||
NoCircuitProtectionDeviceType,
|
||||
ProtectionDeviceType,
|
||||
RcdType,
|
||||
} from "../shared/constants/protection-device";
|
||||
|
|
@ -517,6 +518,16 @@ export interface CircuitTreeProtectionDeviceDto {
|
|||
ratedResidualCurrentMa?: number;
|
||||
}
|
||||
|
||||
// Explicit "no protection device" on a circuit; shown as "–". A circuit
|
||||
// without protectionDevice is still open for planning.
|
||||
export interface CircuitTreeNoProtectionDeviceDto {
|
||||
type: NoCircuitProtectionDeviceType;
|
||||
}
|
||||
|
||||
export type CircuitTreeCircuitProtectionDeviceDto =
|
||||
| CircuitTreeProtectionDeviceDto
|
||||
| CircuitTreeNoProtectionDeviceDto;
|
||||
|
||||
export interface CircuitTreeComponentDto {
|
||||
id: string;
|
||||
circuitListId: string;
|
||||
|
|
@ -551,7 +562,7 @@ export interface CircuitTreeCircuitDto {
|
|||
circuitCosPhi: number;
|
||||
deviceRows: CircuitTreeDeviceRowDto[];
|
||||
downstreamBoardLoads: CircuitTreeDownstreamBoardLoadDto[];
|
||||
protectionDevice?: CircuitTreeProtectionDeviceDto;
|
||||
protectionDevice?: CircuitTreeCircuitProtectionDeviceDto;
|
||||
}
|
||||
|
||||
export interface CircuitTreeSectionDto {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue