X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FRequests.ts;h=d584c8289ad88db7e3d79ad56b95610062b15f99;hb=6b635033ddf255392ded26fd03fe1f128b15ad69;hp=c42cd8bbbb9aa4c41912e88d1f7c14482ad1a7f6;hpb=2896e06dc8d72adf7150b23c941079f622f6f37c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/2.0/Requests.ts b/src/types/ocpp/2.0/Requests.ts index c42cd8bb..d584c828 100644 --- a/src/types/ocpp/2.0/Requests.ts +++ b/src/types/ocpp/2.0/Requests.ts @@ -1,4 +1,11 @@ -import type { EmptyObject, JsonObject } from '../../internal'; +import type { + BootReasonEnumType, + EmptyObject, + InstallCertificateUseEnumType, + JsonObject, + OCPP20ConnectorStatusEnumType, + OCPP20SetVariableDataType, +} from '../../internal'; export enum OCPP20RequestCommand { BOOT_NOTIFICATION = 'BootNotification', @@ -12,24 +19,12 @@ export enum OCPP20IncomingRequestCommand { REQUEST_STOP_TRANSACTION = 'RequestStopTransaction', } -export enum BootReasonEnumType { - ApplicationReset = 'ApplicationReset', - FirmwareUpdate = 'FirmwareUpdate', - LocalReset = 'LocalReset', - PowerUp = 'PowerUp', - RemoteReset = 'RemoteReset', - ScheduledReset = 'ScheduledReset', - Triggered = 'Triggered', - Unknown = 'Unknown', - Watchdog = 'Watchdog', -} - -export type ModemType = { +type ModemType = { iccid?: string; imsi?: string; } & JsonObject; -export type ChargingStationType = { +type ChargingStationType = { serialNumber?: string; model: string; vendorName: string; @@ -46,17 +41,18 @@ export type OCPP20HeartbeatRequest = EmptyObject; export type OCPP20ClearCacheRequest = EmptyObject; -export enum OCPP20ConnectorStatusEnumType { - AVAILABLE = 'Available', - OCCUPIED = 'Occupied', - RESERVED = 'Reserved', - UNAVAILABLE = 'Unavailable', - FAULTED = 'Faulted', -} - export type OCPP20StatusNotificationRequest = { timestamp: Date; connectorStatus: OCPP20ConnectorStatusEnumType; evseId: number; connectorId: number; } & JsonObject; + +export type OCPP20SetVariablesRequest = { + setVariableData: OCPP20SetVariableDataType[]; +} & JsonObject; + +export type OCPP20InstallCertificateRequest = { + certificateType: InstallCertificateUseEnumType; + certificate: string; +} & JsonObject;