refactor: cleanup nullish values handling
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / ChargingProfile.ts
index a8b73a24175ffab4a824c585062210d4db189be3..efc25b90083ad54a28aa977ee587e63851d643f0 100644 (file)
@@ -1,14 +1,29 @@
 import {
-  OCPP16ChargingProfile,
+  type OCPP16ChargingProfile,
+  OCPP16ChargingProfileKindType,
   OCPP16ChargingRateUnitType,
-  OCPP16ChargingSchedulePeriod,
-} from './1.6/ChargingProfile';
+  type OCPP16ChargingSchedulePeriod,
+  OCPP16RecurrencyKindType
+} from './1.6/ChargingProfile.js'
 
-export type ChargingProfile = OCPP16ChargingProfile;
+export type ChargingProfile = OCPP16ChargingProfile
 
-export type ChargingSchedulePeriod = OCPP16ChargingSchedulePeriod;
+export type ChargingSchedulePeriod = OCPP16ChargingSchedulePeriod
+
+export const ChargingProfileKindType = {
+  ...OCPP16ChargingProfileKindType
+} as const
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export type ChargingProfileKindType = OCPP16ChargingProfileKindType
+
+export const RecurrencyKindType = {
+  ...OCPP16RecurrencyKindType
+} as const
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export type RecurrencyKindType = OCPP16RecurrencyKindType
 
 export const ChargingRateUnitType = {
-  ...OCPP16ChargingRateUnitType,
-} as const;
-export type ChargingRateUnitType = OCPP16ChargingRateUnitType;
+  ...OCPP16ChargingRateUnitType
+} as const
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export type ChargingRateUnitType = OCPP16ChargingRateUnitType