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