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 | |
7decf1b6 | 6 | export enum CurrentOutType { |
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 | ||
84d4e562 JB |
16 | export enum VoltageOut { |
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; |
7decf1b6 | 50 | currentOutType?: CurrentOutType; |
6ed92bc1 | 51 | voltageOut?: number; |
9ac86a7e JB |
52 | numberOfPhases?: number; |
53 | numberOfConnectors?: number | number[]; | |
54 | useConnectorId0?: boolean; | |
55 | randomConnectors?: boolean; | |
56 | resetTime?: number; | |
3574dfd3 | 57 | autoReconnectMaxRetries?: number; |
032d6efc | 58 | reconnectExponentialDelay?: boolean; |
6ad94506 | 59 | registrationMaxRetries?: number; |
9ac86a7e | 60 | enableStatistics?: boolean; |
6ed92bc1 JB |
61 | beginEndMeterValues?: boolean; |
62 | outOfOrderEndMeterValues?: boolean; | |
63 | meteringPerTransaction?: boolean; | |
fd0c36fa | 64 | transactionDataMeterValues?: boolean; |
9ccca265 | 65 | mainVoltageMeterValues?: boolean; |
9bd87386 | 66 | phaseLineToLineVoltage?: boolean; |
9ac86a7e JB |
67 | Configuration?: ChargingStationConfiguration; |
68 | AutomaticTransactionGenerator: AutomaticTransactionGenerator; | |
69 | Connectors: Connectors; | |
70 | } |