Commit | Line | Data |
---|---|---|
2484ac1e | 1 | import ChargingStationOcppConfiguration from './ChargingStationOcppConfiguration'; |
cd8dd457 JB |
2 | import { ClientOptions } from 'ws'; |
3 | import { ClientRequestArgs } from 'http'; | |
057e2042 | 4 | import { ConnectorStatus } from './ConnectorStatus'; |
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 | ||
cc6e8ab5 JB |
18 | export enum AmpereUnits { |
19 | MILLI_AMPERE = 'mA', | |
20 | CENTI_AMPERE = 'cA', | |
21 | DECI_AMPERE = 'dA', | |
22 | AMPERE = 'A', | |
23 | } | |
24 | ||
4c2b4904 | 25 | export enum Voltage { |
84d4e562 JB |
26 | VOLTAGE_110 = 110, |
27 | VOLTAGE_230 = 230, | |
fd0c36fa | 28 | VOLTAGE_400 = 400, |
e7aeea18 | 29 | VOLTAGE_800 = 800, |
84d4e562 JB |
30 | } |
31 | ||
9ac86a7e JB |
32 | export interface AutomaticTransactionGenerator { |
33 | enable: boolean; | |
34 | minDuration: number; | |
35 | maxDuration: number; | |
36 | minDelayBetweenTwoTransactions: number; | |
37 | maxDelayBetweenTwoTransactions: number; | |
38 | probabilityOfStart: number; | |
39 | stopAfterHours: number; | |
5fdab605 | 40 | stopOnConnectionFailure: boolean; |
e7aeea18 | 41 | requireAuthorize?: boolean; |
9ac86a7e JB |
42 | } |
43 | ||
2484ac1e JB |
44 | export type WsOptions = ClientOptions & ClientRequestArgs; |
45 | ||
9ac86a7e | 46 | export default interface ChargingStationTemplate { |
2dcfe98e | 47 | supervisionUrls?: string | string[]; |
1f5df42a JB |
48 | supervisionUrlOcppConfiguration?: boolean; |
49 | supervisionUrlOcppKey?: string; | |
15042c5f JB |
50 | supervisionUser?: string; |
51 | supervisionPassword?: string; | |
c0560973 JB |
52 | ocppVersion?: OCPPVersion; |
53 | ocppProtocol?: OCPPProtocol; | |
672fed6e | 54 | ocppStrictCompliance?: boolean; |
e8e865ea | 55 | ocppPersistentConfiguration?: boolean; |
2484ac1e | 56 | wsOptions?: WsOptions; |
9ac86a7e JB |
57 | authorizationFile?: string; |
58 | baseName: string; | |
5fdab605 | 59 | nameSuffix?: string; |
a02da55f | 60 | fixedName?: boolean; |
9ac86a7e JB |
61 | chargePointModel: string; |
62 | chargePointVendor: string; | |
43bb4cd9 | 63 | chargePointSerialNumberPrefix?: string; |
9ac86a7e JB |
64 | chargeBoxSerialNumberPrefix?: string; |
65 | firmwareVersion?: string; | |
3f94cab5 JB |
66 | iccid?: string; |
67 | imsi?: string; | |
68 | meterSerialNumber?: string; | |
69 | meterType?: string; | |
9ac86a7e JB |
70 | power: number | number[]; |
71 | powerSharedByConnectors?: boolean; | |
ef16e252 | 72 | powerUnit: PowerUnits; |
4c2b4904 JB |
73 | currentOutType?: CurrentType; |
74 | voltageOut?: Voltage; | |
9ac86a7e JB |
75 | numberOfPhases?: number; |
76 | numberOfConnectors?: number | number[]; | |
77 | useConnectorId0?: boolean; | |
78 | randomConnectors?: boolean; | |
79 | resetTime?: number; | |
47e22477 | 80 | autoRegister: boolean; |
3574dfd3 | 81 | autoReconnectMaxRetries?: number; |
032d6efc | 82 | reconnectExponentialDelay?: boolean; |
6ad94506 | 83 | registrationMaxRetries?: number; |
9ac86a7e | 84 | enableStatistics?: boolean; |
a7fc8211 | 85 | mayAuthorizeAtRemoteStart: boolean; |
cc6e8ab5 JB |
86 | amperageLimitationOcppKey?: string; |
87 | amperageLimitationUnit?: AmpereUnits; | |
6ed92bc1 JB |
88 | beginEndMeterValues?: boolean; |
89 | outOfOrderEndMeterValues?: boolean; | |
90 | meteringPerTransaction?: boolean; | |
fd0c36fa | 91 | transactionDataMeterValues?: boolean; |
9ccca265 | 92 | mainVoltageMeterValues?: boolean; |
6b10669b | 93 | phaseLineToLineVoltageMeterValues?: boolean; |
2484ac1e | 94 | Configuration?: ChargingStationOcppConfiguration; |
9ac86a7e | 95 | AutomaticTransactionGenerator: AutomaticTransactionGenerator; |
734d790d | 96 | Connectors: Record<string, ConnectorStatus>; |
9ac86a7e | 97 | } |