X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Ftypes%2FChargingStationType.ts;h=2446839275a6f9f115d95be1e41e7a1ac6e54060;hb=7164966d863b4539243b473c5e2e9d22fb9b5fd1;hp=3aa769839848ba9da75f572b3cb349997fb58e62;hpb=b25b86842dc61b2a95f672dcf38992f7d63d6ec3;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/types/ChargingStationType.ts b/ui/web/src/types/ChargingStationType.ts index 3aa76983..24468392 100644 --- a/ui/web/src/types/ChargingStationType.ts +++ b/ui/web/src/types/ChargingStationType.ts @@ -86,11 +86,10 @@ export enum OCPP16IncomingRequestCommand { TRIGGER_MESSAGE = 'TriggerMessage', } -export type IncomingRequestCommand = OCPP16IncomingRequestCommand; - export const IncomingRequestCommand = { ...OCPP16IncomingRequestCommand, -}; +} as const; +export type IncomingRequestCommand = OCPP16IncomingRequestCommand; export enum OCPP16RequestCommand { BOOT_NOTIFICATION = 'BootNotification', @@ -103,11 +102,10 @@ export enum OCPP16RequestCommand { DIAGNOSTICS_STATUS_NOTIFICATION = 'DiagnosticsStatusNotification', } -export type RequestCommand = OCPP16RequestCommand; - export const RequestCommand = { ...OCPP16RequestCommand, -}; +} as const; +export type RequestCommand = OCPP16RequestCommand; export type BootNotificationResponse = OCPP16BootNotificationResponse; @@ -119,7 +117,7 @@ export enum OCPP16RegistrationStatus { export interface OCPP16BootNotificationResponse extends JsonObject { status: OCPP16RegistrationStatus; - currentTime: string; + currentTime: Date; interval: number; } @@ -132,11 +130,10 @@ export enum OCPP16MessageTrigger { StatusNotification = 'StatusNotification', } -export type MessageTrigger = OCPP16MessageTrigger; - export const MessageTrigger = { ...OCPP16MessageTrigger, -}; +} as const; +export type MessageTrigger = OCPP16MessageTrigger; type CommandsSupport = { incomingCommands: Record;