Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Requests.ts
index 4baa070f2a8cf6b93c81cbd332344c8de5e2e3b6..1b3e25695f3285da980a57bb24abf5311eb64422 100644 (file)
@@ -16,6 +16,7 @@ export enum RequestCommand {
 export enum IncomingRequestCommand {
   RESET = 'Reset',
   CLEAR_CACHE = 'ClearCache',
+  CHANGE_AVAILABILITY = 'ChangeAvailability',
   UNLOCK_CONNECTOR = 'UnlockConnector',
   GET_CONFIGURATION = 'GetConfiguration',
   CHANGE_CONFIGURATION = 'ChangeConfiguration',
@@ -85,3 +86,13 @@ export interface SetChargingProfileRequest {
   connectorId: number;
   csChargingProfiles: ChargingProfile;
 }
+
+export enum AvailabilityType {
+  INOPERATIVE = 'Inoperative',
+  OPERATIVE = 'Operative'
+}
+
+export interface ChangeAvailabilityRequest {
+  connectorId: number;
+  type: AvailabilityType;
+}