Initial support to the change availability command.
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / RequestResponses.ts
index b737ed9797e0217315b62038874ec49f50dcefdf..a9aa876134166020f2bbe6097a1ddc139b9024d4 100644 (file)
@@ -1,4 +1,4 @@
-import { ConfigurationKey } from '../../ChargingStationConfiguration';
+import { OCPPConfigurationKey } from '../Configuration';
 
 export interface HeartbeatResponse {
   currentTime: string;
@@ -50,7 +50,7 @@ export interface BootNotificationResponse {
 export interface StatusNotificationResponse { }
 
 export interface GetConfigurationResponse {
-  configurationKey: ConfigurationKey[];
+  configurationKey: OCPPConfigurationKey[];
   unknownKey: string[];
 }
 
@@ -63,3 +63,13 @@ export enum ChargingProfileStatus {
 export interface SetChargingProfileResponse {
   status: ChargingProfileStatus;
 }
+
+export enum AvailabilityStatus {
+  ACCEPTED = 'Accepted',
+  REJECTED = 'Rejected',
+  SCHEDULED = 'Scheduled'
+}
+
+export interface ChangeAvailabilityResponse {
+  status: AvailabilityStatus;
+}