build: properly workaround Ajv TS type definitions bug
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / ChargingProfile.ts
index 0bfdcd2f717c8330bcef080a81b6c4306a8ebbce..89cf8e4d8545308d0e841f9647dde94beac746ff 100644 (file)
@@ -1,4 +1,4 @@
-import type { JsonObject } from '../../internal';
+import type { JsonObject } from '../../JsonType.js';
 
 export interface OCPP16ChargingProfile extends JsonObject {
   chargingProfileId: number;
@@ -9,12 +9,12 @@ export interface OCPP16ChargingProfile extends JsonObject {
   recurrencyKind?: OCPP16RecurrencyKindType;
   validFrom?: Date;
   validTo?: Date;
-  chargingSchedule: ChargingSchedule;
+  chargingSchedule: OCPP16ChargingSchedule;
 }
 
-interface ChargingSchedule extends JsonObject {
-  duration?: number;
+export interface OCPP16ChargingSchedule extends JsonObject {
   startSchedule?: Date;
+  duration?: number;
   chargingRateUnit: OCPP16ChargingRateUnitType;
   chargingSchedulePeriod: OCPP16ChargingSchedulePeriod[];
   minChargeRate?: number;
@@ -46,5 +46,4 @@ export enum OCPP16ChargingProfilePurposeType {
 export enum OCPP16RecurrencyKindType {
   DAILY = 'Daily',
   WEEKLY = 'Weekly',
-  MONTHLY = 'Monthly',
 }