import type { Statistics } from './Statistics.js'
import { type WorkerData, type WorkerMessage, WorkerMessageEvents } from '../worker/index.js'
-interface ChargingStationWorkerOptions extends JsonObject {
- elementStartDelay?: number
+export interface ChargingStationOptions extends JsonObject {
+ supervisionUrls?: string | string[]
+ persistentConfiguration?: boolean
+ autoStart?: boolean
+ autoRegister?: boolean
+ enableStatistics?: boolean
+ ocppStrictCompliance?: boolean
+ stopTransactionsOnStopped?: boolean
}
export interface ChargingStationWorkerData extends WorkerData {
index: number
templateFile: string
- chargingStationWorkerOptions?: ChargingStationWorkerOptions
+ options?: ChargingStationOptions
}
export type EvseStatusWorkerType = Omit<EvseStatus, 'connectors'> & {
connectors: ConnectorStatus[]
evses: EvseStatusWorkerType[]
ocppConfiguration: ChargingStationOcppConfiguration
+ supervisionUrl: string
wsState?:
| typeof WebSocket.CONNECTING
| typeof WebSocket.OPEN