| 1 | import { MeterValue, SampledValue } from './ocpp/MeterValues'; |
| 2 | |
| 3 | import { AvailabilityType } from './ocpp/Requests'; |
| 4 | import { ChargePointStatus } from './ocpp/ChargePointStatus'; |
| 5 | import { ChargingProfile } from './ocpp/ChargingProfile'; |
| 6 | |
| 7 | export interface SampledValueTemplate extends SampledValue { |
| 8 | fluctuationPercent?: number; |
| 9 | } |
| 10 | |
| 11 | export interface Connector { |
| 12 | availability: AvailabilityType; |
| 13 | bootStatus?: ChargePointStatus; |
| 14 | status?: ChargePointStatus; |
| 15 | MeterValues: SampledValueTemplate[]; |
| 16 | authorizeIdTag?: string; |
| 17 | authorized?: boolean; |
| 18 | transactionStarted?: boolean; |
| 19 | transactionId?: number; |
| 20 | transactionSetInterval?: NodeJS.Timeout; |
| 21 | transactionIdTag?: string; |
| 22 | energyActiveImportRegisterValue?: number; // In Wh |
| 23 | transactionEnergyActiveImportRegisterValue?: number; // In Wh |
| 24 | transactionBeginMeterValue?: MeterValue; |
| 25 | chargingProfiles?: ChargingProfile[]; |
| 26 | } |
| 27 | |
| 28 | export default interface Connectors { |
| 29 | [id: string]: Connector; |
| 30 | } |