Cleanups.
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
CommitLineData
9ac86a7e
JB
1import ChargingStationConfiguration from './ChargingStationConfiguration';
2import Connectors from './Connectors';
3
4export enum PowerOutType {
5 AC = 'AC',
6 DC = 'DC',
7}
8
9export enum PowerUnit {
10 WATT = 'W',
11 KILO_WATT = 'kW',
12}
13
84d4e562
JB
14export enum VoltageOut {
15 VOLTAGE_110 = 110,
16 VOLTAGE_230 = 230,
17 VOLTAGE_400 = 400
18}
19
9ac86a7e
JB
20export interface AutomaticTransactionGenerator {
21 enable: boolean;
22 minDuration: number;
23 maxDuration: number;
24 minDelayBetweenTwoTransactions: number;
25 maxDelayBetweenTwoTransactions: number;
26 probabilityOfStart: number;
27 stopAfterHours: number;
5fdab605
JB
28 stopOnConnectionFailure: boolean;
29 requireAuthorize: boolean
9ac86a7e
JB
30}
31
32export default interface ChargingStationTemplate {
33 supervisionURL?: string;
34 authorizationFile?: string;
35 baseName: string;
5fdab605 36 nameSuffix?: string;
9ac86a7e
JB
37 fixedName?: string;
38 chargePointModel: string;
39 chargePointVendor: string;
40 chargeBoxSerialNumberPrefix?: string;
41 firmwareVersion?: string;
42 power: number | number[];
43 powerSharedByConnectors?: boolean;
44 powerUnit: PowerUnit;
45 powerOutType?: PowerOutType;
46 numberOfPhases?: number;
47 numberOfConnectors?: number | number[];
48 useConnectorId0?: boolean;
49 randomConnectors?: boolean;
50 resetTime?: number;
3574dfd3
JB
51 connectionTimeout?: number;
52 autoReconnectMaxRetries?: number;
032d6efc 53 reconnectExponentialDelay?: boolean;
6ad94506 54 registrationMaxRetries?: number;
9ac86a7e
JB
55 enableStatistics?: boolean;
56 voltageOut?: number;
57 Configuration?: ChargingStationConfiguration;
58 AutomaticTransactionGenerator: AutomaticTransactionGenerator;
59 Connectors: Connectors;
60}