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 JB |
5 | |
6 | export enum PowerOutType { | |
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, | |
19 | VOLTAGE_400 = 400 | |
20 | } | |
21 | ||
9ac86a7e JB |
22 | export interface AutomaticTransactionGenerator { |
23 | enable: boolean; | |
24 | minDuration: number; | |
25 | maxDuration: number; | |
26 | minDelayBetweenTwoTransactions: number; | |
27 | maxDelayBetweenTwoTransactions: number; | |
28 | probabilityOfStart: number; | |
29 | stopAfterHours: number; | |
5fdab605 JB |
30 | stopOnConnectionFailure: boolean; |
31 | requireAuthorize: boolean | |
9ac86a7e JB |
32 | } |
33 | ||
34 | export default interface ChargingStationTemplate { | |
35 | supervisionURL?: string; | |
c0560973 JB |
36 | ocppVersion?: OCPPVersion; |
37 | ocppProtocol?: OCPPProtocol; | |
9ac86a7e JB |
38 | authorizationFile?: string; |
39 | baseName: string; | |
5fdab605 | 40 | nameSuffix?: string; |
a02da55f | 41 | fixedName?: boolean; |
9ac86a7e JB |
42 | chargePointModel: string; |
43 | chargePointVendor: string; | |
44 | chargeBoxSerialNumberPrefix?: string; | |
45 | firmwareVersion?: string; | |
46 | power: number | number[]; | |
47 | powerSharedByConnectors?: boolean; | |
a02da55f | 48 | powerUnits: PowerUnits; |
9ac86a7e JB |
49 | powerOutType?: PowerOutType; |
50 | numberOfPhases?: number; | |
51 | numberOfConnectors?: number | number[]; | |
52 | useConnectorId0?: boolean; | |
53 | randomConnectors?: boolean; | |
54 | resetTime?: number; | |
3574dfd3 JB |
55 | connectionTimeout?: number; |
56 | autoReconnectMaxRetries?: number; | |
032d6efc | 57 | reconnectExponentialDelay?: boolean; |
6ad94506 | 58 | registrationMaxRetries?: number; |
9ac86a7e JB |
59 | enableStatistics?: boolean; |
60 | voltageOut?: number; | |
61 | Configuration?: ChargingStationConfiguration; | |
62 | AutomaticTransactionGenerator: AutomaticTransactionGenerator; | |
63 | Connectors: Connectors; | |
64 | } |