X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FMeterValues.ts;h=9b6a3537af8b726410a102c56ccfa0d5f4df70d8;hb=f5a1ff8ce8f87a149791c2c98fe7c5e8a20b5392;hp=1022c9fbbce8a5d8c62a1f13b4f49f59e19a8d86;hpb=fd0c36fab7509aeb48c1fbb40b70072fe64ae63c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/MeterValues.ts b/src/types/ocpp/MeterValues.ts index 1022c9fb..9b6a3537 100644 --- a/src/types/ocpp/MeterValues.ts +++ b/src/types/ocpp/MeterValues.ts @@ -1,10 +1,37 @@ -import { OCPP16MeterValue, OCPP16MeterValueMeasurand, OCPP16SampledValue } from './1.6/MeterValues'; +import { + type OCPP16MeterValue, + OCPP16MeterValueContext, + OCPP16MeterValueLocation, + OCPP16MeterValueMeasurand, + OCPP16MeterValuePhase, + OCPP16MeterValueUnit, + type OCPP16SampledValue, +} from './1.6/MeterValues.js'; -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;