Merge branch 'main' into combined-prs-branch
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / MeterValues.ts
index 2172ec1f925762826eba130ef579abcc7587230a..78cc9af9b02905c44e810c3e95eed1c351ecf681 100644 (file)
@@ -1,21 +1,37 @@
 import {
-  OCPP16MeterValue,
+  type OCPP16MeterValue,
+  OCPP16MeterValueContext,
+  OCPP16MeterValueLocation,
   OCPP16MeterValueMeasurand,
   OCPP16MeterValuePhase,
-  OCPP16SampledValue,
+  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,
-};
+} as const;
+export type MeterValueMeasurand = OCPP16MeterValueMeasurand;
 
-export type MeterValuePhase = OCPP16MeterValuePhase;
+export const MeterValueLocation = {
+  ...OCPP16MeterValueLocation,
+} as const;
+export type MeterValueLocation = OCPP16MeterValueLocation;
 
 export const MeterValuePhase = {
   ...OCPP16MeterValuePhase,
-};
+} as const;
+export type MeterValuePhase = OCPP16MeterValuePhase;
 
 export type SampledValue = OCPP16SampledValue;