| 1 | import ChargingStationConfiguration from './ChargingStationConfiguration'; |
| 2 | import Connectors from './Connectors'; |
| 3 | import { OCPPProtocol } from './ocpp/OCPPProtocol'; |
| 4 | import { OCPPVersion } from './ocpp/OCPPVersion'; |
| 5 | |
| 6 | export enum CurrentType { |
| 7 | AC = 'AC', |
| 8 | DC = 'DC', |
| 9 | } |
| 10 | |
| 11 | export enum PowerUnits { |
| 12 | WATT = 'W', |
| 13 | KILO_WATT = 'kW', |
| 14 | } |
| 15 | |
| 16 | export enum Voltage { |
| 17 | VOLTAGE_110 = 110, |
| 18 | VOLTAGE_230 = 230, |
| 19 | VOLTAGE_400 = 400, |
| 20 | VOLTAGE_800 = 800 |
| 21 | } |
| 22 | |
| 23 | export interface AutomaticTransactionGenerator { |
| 24 | enable: boolean; |
| 25 | minDuration: number; |
| 26 | maxDuration: number; |
| 27 | minDelayBetweenTwoTransactions: number; |
| 28 | maxDelayBetweenTwoTransactions: number; |
| 29 | probabilityOfStart: number; |
| 30 | stopAfterHours: number; |
| 31 | stopOnConnectionFailure: boolean; |
| 32 | requireAuthorize?: boolean |
| 33 | } |
| 34 | |
| 35 | export default interface ChargingStationTemplate { |
| 36 | supervisionURL?: string; |
| 37 | supervisionUser?: string; |
| 38 | supervisionPassword?: string; |
| 39 | ocppVersion?: OCPPVersion; |
| 40 | ocppProtocol?: OCPPProtocol; |
| 41 | authorizationFile?: string; |
| 42 | baseName: string; |
| 43 | nameSuffix?: string; |
| 44 | fixedName?: boolean; |
| 45 | chargePointModel: string; |
| 46 | chargePointVendor: string; |
| 47 | chargeBoxSerialNumberPrefix?: string; |
| 48 | firmwareVersion?: string; |
| 49 | power: number | number[]; |
| 50 | powerSharedByConnectors?: boolean; |
| 51 | powerUnit: PowerUnits; |
| 52 | currentOutType?: CurrentType; |
| 53 | voltageOut?: Voltage; |
| 54 | numberOfPhases?: number; |
| 55 | numberOfConnectors?: number | number[]; |
| 56 | useConnectorId0?: boolean; |
| 57 | randomConnectors?: boolean; |
| 58 | resetTime?: number; |
| 59 | autoRegister: boolean; |
| 60 | autoReconnectMaxRetries?: number; |
| 61 | reconnectExponentialDelay?: boolean; |
| 62 | registrationMaxRetries?: number; |
| 63 | enableStatistics?: boolean; |
| 64 | mayAuthorizeAtRemoteStart: boolean; |
| 65 | beginEndMeterValues?: boolean; |
| 66 | outOfOrderEndMeterValues?: boolean; |
| 67 | meteringPerTransaction?: boolean; |
| 68 | transactionDataMeterValues?: boolean; |
| 69 | mainVoltageMeterValues?: boolean; |
| 70 | phaseLineToLineVoltageMeterValues?: boolean; |
| 71 | Configuration?: ChargingStationConfiguration; |
| 72 | AutomaticTransactionGenerator: AutomaticTransactionGenerator; |
| 73 | Connectors: Connectors; |
| 74 | } |