X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FMeterValues.ts;h=78cc9af9b02905c44e810c3e95eed1c351ecf681;hb=e0d3c3592f990eadb77780b324ceaa105ba44dfa;hp=b052ce694beaf94617bce80dd1266052eb3fcb64;hpb=7e3926cc4cda3fa4db175501b239cb3d8c575d4f;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/MeterValues.ts b/src/types/ocpp/MeterValues.ts index b052ce69..78cc9af9 100644 --- a/src/types/ocpp/MeterValues.ts +++ b/src/types/ocpp/MeterValues.ts @@ -1,9 +1,38 @@ -import { OCPP16MeterValueMeasurand, OCPP16SampledValue } from './1.6/MeterValues'; +import { + type OCPP16MeterValue, + OCPP16MeterValueContext, + OCPP16MeterValueLocation, + OCPP16MeterValueMeasurand, + OCPP16MeterValuePhase, + OCPP16MeterValueUnit, + type OCPP16SampledValue, +} from './1.6/MeterValues'; -export type MeterValueMeasurand = OCPP16MeterValueMeasurand; +export const MeterValueUnit = { + ...OCPP16MeterValueUnit, +} as const; +export type MeterValueUnit = OCPP16MeterValueUnit; + +export const MeterValueContext = { + ...OCPP16MeterValueContext, +} as const; +export type MeterValueContext = OCPP16MeterValueContext; export const MeterValueMeasurand = { - ...OCPP16MeterValueMeasurand -}; + ...OCPP16MeterValueMeasurand, +} as const; +export type MeterValueMeasurand = OCPP16MeterValueMeasurand; + +export const MeterValueLocation = { + ...OCPP16MeterValueLocation, +} as const; +export type MeterValueLocation = OCPP16MeterValueLocation; + +export const MeterValuePhase = { + ...OCPP16MeterValuePhase, +} as const; +export type MeterValuePhase = OCPP16MeterValuePhase; export type SampledValue = OCPP16SampledValue; + +export type MeterValue = OCPP16MeterValue;