chargingStationId?: string;
chargePointModel: string;
chargePointVendor: string;
+ firmwareVersionPattern?: string;
firmwareVersion?: string;
numberOfConnectors?: number | number[];
baseName: string;
TRIGGER_MESSAGE = 'TriggerMessage',
}
-export type IncomingRequestCommand = OCPP16IncomingRequestCommand;
-
export const IncomingRequestCommand = {
...OCPP16IncomingRequestCommand,
-};
+} as const;
+export type IncomingRequestCommand = OCPP16IncomingRequestCommand;
export enum OCPP16RequestCommand {
BOOT_NOTIFICATION = 'BootNotification',
DIAGNOSTICS_STATUS_NOTIFICATION = 'DiagnosticsStatusNotification',
}
-export type RequestCommand = OCPP16RequestCommand;
-
export const RequestCommand = {
...OCPP16RequestCommand,
-};
+} as const;
+export type RequestCommand = OCPP16RequestCommand;
export type BootNotificationResponse = OCPP16BootNotificationResponse;
export interface OCPP16BootNotificationResponse extends JsonObject {
status: OCPP16RegistrationStatus;
- currentTime: string;
+ currentTime: Date;
interval: number;
}
StatusNotification = 'StatusNotification',
}
-export type MessageTrigger = OCPP16MessageTrigger;
-
export const MessageTrigger = {
...OCPP16MessageTrigger,
-};
+} as const;
+export type MessageTrigger = OCPP16MessageTrigger;
type CommandsSupport = {
incomingCommands: Record<IncomingRequestCommand, boolean>;
}
export enum OCPPProtocol {
- SOAP = 'soap',
JSON = 'json',
}