Spell fixlet in ATG log message
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
CommitLineData
9ac86a7e 1import ChargingStationConfiguration from './ChargingStationConfiguration';
2d7040b2 2import { Connectors } from './Connectors';
c0560973
JB
3import { OCPPProtocol } from './ocpp/OCPPProtocol';
4import { OCPPVersion } from './ocpp/OCPPVersion';
9ac86a7e 5
4c2b4904 6export enum CurrentType {
9ac86a7e
JB
7 AC = 'AC',
8 DC = 'DC',
9}
10
a02da55f 11export enum PowerUnits {
9ac86a7e
JB
12 WATT = 'W',
13 KILO_WATT = 'kW',
14}
15
4c2b4904 16export 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
23export 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
35export default interface ChargingStationTemplate {
36 supervisionURL?: string;
15042c5f
JB
37 supervisionUser?: string;
38 supervisionPassword?: string;
c0560973
JB
39 ocppVersion?: OCPPVersion;
40 ocppProtocol?: OCPPProtocol;
9ac86a7e
JB
41 authorizationFile?: string;
42 baseName: string;
5fdab605 43 nameSuffix?: string;
a02da55f 44 fixedName?: boolean;
9ac86a7e
JB
45 chargePointModel: string;
46 chargePointVendor: string;
47 chargeBoxSerialNumberPrefix?: string;
48 firmwareVersion?: string;
49 power: number | number[];
50 powerSharedByConnectors?: boolean;
ef16e252 51 powerUnit: PowerUnits;
4c2b4904
JB
52 currentOutType?: CurrentType;
53 voltageOut?: Voltage;
9ac86a7e
JB
54 numberOfPhases?: number;
55 numberOfConnectors?: number | number[];
56 useConnectorId0?: boolean;
57 randomConnectors?: boolean;
58 resetTime?: number;
47e22477 59 autoRegister: boolean;
3574dfd3 60 autoReconnectMaxRetries?: number;
032d6efc 61 reconnectExponentialDelay?: boolean;
6ad94506 62 registrationMaxRetries?: number;
9ac86a7e 63 enableStatistics?: boolean;
a7fc8211 64 mayAuthorizeAtRemoteStart: boolean;
6ed92bc1
JB
65 beginEndMeterValues?: boolean;
66 outOfOrderEndMeterValues?: boolean;
67 meteringPerTransaction?: boolean;
fd0c36fa 68 transactionDataMeterValues?: boolean;
9ccca265 69 mainVoltageMeterValues?: boolean;
6b10669b 70 phaseLineToLineVoltageMeterValues?: boolean;
9ac86a7e
JB
71 Configuration?: ChargingStationConfiguration;
72 AutomaticTransactionGenerator: AutomaticTransactionGenerator;
73 Connectors: Connectors;
74}