X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FMeterValues.ts;h=5a59230c15f08615608c3e5f7d840f4895873aba;hb=6625c5ec9c5260260aeb17e86ddd4ca5a2d15d10;hp=f8137c36782b2f704c0ea5ab20200e163d392ac1;hpb=e3822d6f1b40477f7308ad70c290ed2c4106c585;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/MeterValues.ts b/src/types/ocpp/1.6/MeterValues.ts index f8137c36..5a59230c 100644 --- a/src/types/ocpp/1.6/MeterValues.ts +++ b/src/types/ocpp/1.6/MeterValues.ts @@ -1,5 +1,4 @@ -import { EmptyObject } from '../../EmptyObject'; -import { JsonObject } from '../../JsonType'; +import type { EmptyObject, JsonObject } from '../../internal'; export enum MeterValueUnit { WATT_HOUR = 'Wh', @@ -77,13 +76,13 @@ export enum OCPP16MeterValuePhase { L3_L1 = 'L3-L1', } -export enum MeterValueFormat { +enum MeterValueFormat { RAW = 'Raw', SIGNED_DATA = 'SignedData', } export interface OCPP16SampledValue extends JsonObject { - value?: string; + value: string; unit?: MeterValueUnit; context?: MeterValueContext; measurand?: OCPP16MeterValueMeasurand; @@ -93,7 +92,7 @@ export interface OCPP16SampledValue extends JsonObject { } export interface OCPP16MeterValue extends JsonObject { - timestamp: string; + timestamp: Date; sampledValue: OCPP16SampledValue[]; }