Add per phase support to MeterValues in template.
[e-mobility-charging-stations-simulator.git] / src / types / Connectors.ts
index 85ff64c208ed9c4d0f90934ad3b0959317ba6583..44bdb9175d68148be8bbc78e2434829888d90dce 100644 (file)
@@ -4,11 +4,15 @@ import { AvailabilityType } from './ocpp/Requests';
 import { ChargePointStatus } from './ocpp/ChargePointStatus';
 import { ChargingProfile } from './ocpp/ChargingProfile';
 
+export interface SampledValueTemplate extends SampledValue {
+  fluctuationPercent?: number;
+}
+
 export interface Connector {
   availability: AvailabilityType;
   bootStatus?: ChargePointStatus;
   status?: ChargePointStatus;
-  MeterValues: SampledValue[];
+  MeterValues: SampledValueTemplate[];
   transactionStarted?: boolean;
   transactionId?: number;
   transactionSetInterval?: NodeJS.Timeout;