Fix workerSet process mode.
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Requests.ts
index 1b3e25695f3285da980a57bb24abf5311eb64422..0602c2831910dbddef90decc2e3f176cc60d3e04 100644 (file)
@@ -1,6 +1,7 @@
+import { ChargingProfile, ChargingProfilePurposeType } from './ChargingProfile';
+
 import { ChargePointErrorCode } from './ChargePointErrorCode';
 import { ChargePointStatus } from './ChargePointStatus';
-import { ChargingProfile } from './ChargingProfile';
 import { StandardParametersKey } from './Configuration';
 
 export enum RequestCommand {
@@ -8,6 +9,7 @@ export enum RequestCommand {
   HEARTBEAT = 'Heartbeat',
   STATUS_NOTIFICATION = 'StatusNotification',
   CHANGE_CONFIGURATION = 'ChangeConfiguration',
+  AUTHORIZE = 'Authorize',
   START_TRANSACTION = 'StartTransaction',
   STOP_TRANSACTION = 'StopTransaction',
   METERVALUES = 'MeterValues'
@@ -21,6 +23,7 @@ export enum IncomingRequestCommand {
   GET_CONFIGURATION = 'GetConfiguration',
   CHANGE_CONFIGURATION = 'ChangeConfiguration',
   SET_CHARGING_PROFILE = 'SetChargingProfile',
+  CLEAR_CHARGING_PROFILE = 'ClearChargingProfile',
   REMOTE_START_TRANSACTION = 'RemoteStartTransaction',
   REMOTE_STOP_TRANSACTION = 'RemoteStopTransaction'
 }
@@ -96,3 +99,10 @@ export interface ChangeAvailabilityRequest {
   connectorId: number;
   type: AvailabilityType;
 }
+
+export interface ClearChargingProfileRequest {
+  id?: number;
+  connectorId?: number;
+  chargingProfilePurpose?: ChargingProfilePurposeType;
+  stackLevel?: number;
+}