chargingStation: ChargingStation
): ChargingStationData {
return {
- stationInfo: chargingStation.stationInfo,
started: chargingStation.started,
- wsState: chargingStation?.wsConnection?.readyState,
- bootNotificationResponse: chargingStation.bootNotificationResponse,
+ stationInfo: chargingStation.stationInfo,
connectors: [...chargingStation.connectors.values()].map(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest
),
+ ocppConfiguration: chargingStation.ocppConfiguration,
+ wsState: chargingStation?.wsConnection?.readyState,
+ bootNotificationResponse: chargingStation.bootNotificationResponse,
...(chargingStation.automaticTransactionGenerator && {
automaticTransactionGenerator: {
automaticTransactionGenerator:
BootNotificationResponse,
ChargingStationAutomaticTransactionGeneratorConfiguration,
ChargingStationInfo,
+ ChargingStationOcppConfiguration,
ConnectorStatus,
JsonObject,
Statistics,
}
export interface ChargingStationData extends WorkerData {
- stationInfo: ChargingStationInfo;
started: boolean;
+ stationInfo: ChargingStationInfo;
+ connectors: ConnectorStatus[];
+ ocppConfiguration: ChargingStationOcppConfiguration;
wsState?:
| typeof WebSocket.CONNECTING
| typeof WebSocket.OPEN
| typeof WebSocket.CLOSING
| typeof WebSocket.CLOSED;
bootNotificationResponse?: BootNotificationResponse;
- connectors: ConnectorStatus[];
automaticTransactionGenerator?: ChargingStationAutomaticTransactionGeneratorConfiguration;
}