X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Ftypes%2FChargingStationType.ts;h=4bd84c5abed6be81eeb61248b2275d519773b3d7;hb=98262391ccaa5d00fac1ec8a1707d7fbba33cc3a;hp=e9f5f108afffc67ede6edb30133506d0868cb328;hpb=52952bf8f73e5ad1a85c0c9205412a9198bfc720;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/types/ChargingStationType.ts b/ui/web/src/types/ChargingStationType.ts index e9f5f108..4bd84c5a 100644 --- a/ui/web/src/types/ChargingStationType.ts +++ b/ui/web/src/types/ChargingStationType.ts @@ -14,6 +14,21 @@ export type ChargingStationData = { automaticTransactionGenerator?: Status[]; }; +export enum OCPP16FirmwareStatus { + Downloaded = 'Downloaded', + DownloadFailed = 'DownloadFailed', + Downloading = 'Downloading', + Idle = 'Idle', + InstallationFailed = 'InstallationFailed', + Installing = 'Installing', + Installed = 'Installed', +} + +export const FirmwareStatus = { + ...OCPP16FirmwareStatus, +} as const; +export type FirmwareStatus = OCPP16FirmwareStatus; + export type ChargingStationInfo = { hashId: string; chargingStationId?: string; @@ -21,9 +36,9 @@ export type ChargingStationInfo = { chargePointVendor: string; firmwareVersionPattern?: string; firmwareVersion?: string; + firmwareStatus?: FirmwareStatus; numberOfConnectors?: number | number[]; baseName: string; - infoHash?: string; templateHash?: string; chargeBoxSerialNumber?: string; chargePointSerialNumber?: string; @@ -58,7 +73,7 @@ export type ChargingStationInfo = { reconnectExponentialDelay?: boolean; registrationMaxRetries?: number; enableStatistics?: boolean; - mustAuthorizeAtRemoteStart?: boolean; + remoteAuthorization?: boolean; amperageLimitationOcppKey?: string; amperageLimitationUnit?: AmpereUnits; beginEndMeterValues?: boolean; @@ -190,14 +205,11 @@ export type EvseStatus = { connectors?: ConnectorStatus[]; }; -export type AvailabilityType = OCPP16AvailabilityType; - export enum OCPP16AvailabilityType { INOPERATIVE = 'Inoperative', OPERATIVE = 'Operative', } - -export type ChargePointStatus = OCPP16ChargePointStatus; +export type AvailabilityType = OCPP16AvailabilityType; export enum OCPP16ChargePointStatus { AVAILABLE = 'Available', @@ -211,6 +223,7 @@ export enum OCPP16ChargePointStatus { UNAVAILABLE = 'Unavailable', FAULTED = 'Faulted', } +export type ChargePointStatus = OCPP16ChargePointStatus; export type Status = { start?: boolean;