+import type {
+ BootReasonEnumType,
+ InstallCertificateUseEnumType,
+ OCPP20ConnectorStatusEnumType,
+} from './Common';
+import type { OCPP20SetVariableDataType } from './Variables';
import type { EmptyObject } from '../../EmptyObject';
import type { JsonObject } from '../../JsonType';
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;
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;