Commit | Line | Data |
---|---|---|
69074173 JB |
1 | import type { ChargingStationTemplate } from './ChargingStationTemplate'; |
2 | import type { FirmwareStatus } from './ocpp/Requests'; | |
9ac86a7e | 3 | |
118a2117 JB |
4 | enum x509CertificateType { |
5 | V2GRootCertificate = 'V2GRootCertificate', | |
6 | MORootCertificate = 'MORootCertificate', | |
7 | CSMSRootCertificate = 'CSMSRootCertificate', | |
8 | ManufacturerRootCertificate = 'ManufacturerRootCertificate', | |
9 | ChargingStationCertificate = 'ChargingStationCertificate', | |
10 | V2GCertificate = 'V2GCertificate', | |
11 | } | |
12 | ||
17e9e8ce JB |
13 | export type ChargingStationInfo = Omit< |
14 | ChargingStationTemplate, | |
15 | | 'AutomaticTransactionGenerator' | |
16 | | 'Configuration' | |
ba31a2ba JB |
17 | | 'Connectors' |
18 | | 'Evses' | |
17e9e8ce JB |
19 | | 'power' |
20 | | 'powerUnit' | |
21 | | 'chargeBoxSerialNumberPrefix' | |
22 | | 'chargePointSerialNumberPrefix' | |
23 | | 'meterSerialNumberPrefix' | |
24 | > & { | |
51c83d6f | 25 | hashId: string; |
f832e5df | 26 | /** @deprecated Use hashId instead */ |
f765beaa | 27 | infoHash?: string; |
36a16ec2 | 28 | chargingStationId?: string; |
9ac86a7e | 29 | chargeBoxSerialNumber?: string; |
43bb4cd9 | 30 | chargePointSerialNumber?: string; |
0b7c34ba | 31 | meterSerialNumber?: string; |
cc6e8ab5 | 32 | maximumPower?: number; // Always in Watt |
cc6e8ab5 | 33 | maximumAmperage?: number; // Always in Ampere |
c9a4f9ea | 34 | firmwareStatus?: FirmwareStatus; |
118a2117 | 35 | x509Certificates?: Record<x509CertificateType, string>; |
17e9e8ce | 36 | }; |
2484ac1e | 37 | |
83e00df1 | 38 | export type ChargingStationInfoConfiguration = { |
2484ac1e | 39 | stationInfo?: ChargingStationInfo; |
83e00df1 | 40 | }; |