Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
MessageType,
type RequestCommand,
type Statistics,
+ type StatisticsData,
type StorageConfiguration,
type TimestampedData
} from '../types/index.js'
private logStatistics (): void {
logger.info(this.logPrefix(), {
...this.statistics,
- statisticsData: JSONStringifyWithMapSupport(this.statistics.statisticsData)
+ statisticsData: JSON.parse(
+ JSONStringifyWithMapSupport(this.statistics.statisticsData)
+ ) as Map<string | RequestCommand | IncomingRequestCommand, StatisticsData>
})
}
export { OCPP20OptionalVariableName } from './ocpp/2.0/Variables.js'
export { OCPPVersion } from './ocpp/OCPPVersion.js'
export { PerformanceRecord } from './orm/entities/PerformanceRecord.js'
-export type { Statistics, TimestampedData } from './Statistics.js'
+export type { Statistics, StatisticsData, TimestampedData } from './Statistics.js'
export {
type WSError,
WebSocketCloseEventStatusCode,