X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FChargingProfile.ts;h=efc25b90083ad54a28aa977ee587e63851d643f0;hb=d64ea57bcb4fd9151a43b16ff4d4b5ed059ad1d7;hp=d2c36d7d8903e7c9634bb2ecb03e1c536fdab7c6;hpb=cfa9539e3892495462e357f79485f0babbe85521;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/ChargingProfile.ts b/src/types/ocpp/ChargingProfile.ts index d2c36d7d..efc25b90 100644 --- a/src/types/ocpp/ChargingProfile.ts +++ b/src/types/ocpp/ChargingProfile.ts @@ -1,15 +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 type ChargingRateUnitType = OCPP16ChargingRateUnitType; +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, -}; + ...OCPP16ChargingRateUnitType +} as const +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type ChargingRateUnitType = OCPP16ChargingRateUnitType