Commit | Line | Data |
---|---|---|
9ac86a7e JB |
1 | import ChargingStationConfiguration from './ChargingStationConfiguration'; |
2 | import Connectors from './Connectors'; | |
c0560973 JB |
3 | import { OCPPProtocol } from './ocpp/OCPPProtocol'; |
4 | import { OCPPVersion } from './ocpp/OCPPVersion'; | |
9ac86a7e | 5 | |
4c2b4904 | 6 | export enum CurrentType { |
9ac86a7e JB |
7 | AC = 'AC', |
8 | DC = 'DC', | |
9 | } | |
10 | ||
a02da55f | 11 | export enum PowerUnits { |
9ac86a7e JB |
12 | WATT = 'W', |
13 | KILO_WATT = 'kW', | |
14 | } | |
15 | ||
4c2b4904 | 16 | export enum Voltage { |
84d4e562 JB |
17 | VOLTAGE_110 = 110, |
18 | VOLTAGE_230 = 230, | |
fd0c36fa JB |
19 | VOLTAGE_400 = 400, |
20 | VOLTAGE_800 = 800 | |
84d4e562 JB |
21 | } |
22 | ||
9ac86a7e JB |
23 | export interface AutomaticTransactionGenerator { |
24 | enable: boolean; | |
25 | minDuration: number; | |
26 | maxDuration: number; | |
27 | minDelayBetweenTwoTransactions: number; | |
28 | maxDelayBetweenTwoTransactions: number; | |
29 | probabilityOfStart: number; | |
30 | stopAfterHours: number; | |
5fdab605 | 31 | stopOnConnectionFailure: boolean; |
5b10d2de | 32 | requireAuthorize?: boolean |
9ac86a7e JB |
33 | } |
34 | ||
35 | export default interface ChargingStationTemplate { | |
36 | supervisionURL?: string; | |
c0560973 JB |
37 | ocppVersion?: OCPPVersion; |
38 | ocppProtocol?: OCPPProtocol; | |
9ac86a7e JB |
39 | authorizationFile?: string; |
40 | baseName: string; | |
5fdab605 | 41 | nameSuffix?: string; |
a02da55f | 42 | fixedName?: boolean; |
9ac86a7e JB |
43 | chargePointModel: string; |
44 | chargePointVendor: string; | |
45 | chargeBoxSerialNumberPrefix?: string; | |
46 | firmwareVersion?: string; | |
47 | power: number | number[]; | |
48 | powerSharedByConnectors?: boolean; | |
ef16e252 | 49 | powerUnit: PowerUnits; |
4c2b4904 JB |
50 | currentOutType?: CurrentType; |
51 | voltageOut?: Voltage; | |
9ac86a7e JB |
52 | numberOfPhases?: number; |
53 | numberOfConnectors?: number | number[]; | |
54 | useConnectorId0?: boolean; | |
55 | randomConnectors?: boolean; | |
56 | resetTime?: number; | |
47e22477 | 57 | autoRegister: boolean; |
3574dfd3 | 58 | autoReconnectMaxRetries?: number; |
032d6efc | 59 | reconnectExponentialDelay?: boolean; |
6ad94506 | 60 | registrationMaxRetries?: number; |
9ac86a7e | 61 | enableStatistics?: boolean; |
a7fc8211 | 62 | mayAuthorizeAtRemoteStart: boolean; |
6ed92bc1 JB |
63 | beginEndMeterValues?: boolean; |
64 | outOfOrderEndMeterValues?: boolean; | |
65 | meteringPerTransaction?: boolean; | |
fd0c36fa | 66 | transactionDataMeterValues?: boolean; |
9ccca265 | 67 | mainVoltageMeterValues?: boolean; |
6b10669b | 68 | phaseLineToLineVoltageMeterValues?: boolean; |
9ac86a7e JB |
69 | Configuration?: ChargingStationConfiguration; |
70 | AutomaticTransactionGenerator: AutomaticTransactionGenerator; | |
71 | Connectors: Connectors; | |
72 | } |