repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: silence wrong spelling report
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
MessageChannelUtils.ts
diff --git
a/src/charging-station/MessageChannelUtils.ts
b/src/charging-station/MessageChannelUtils.ts
index d8f1aa105a926b4fc0cf3b2025c9b58f121a3bf4..446ecfbbdef0b0ee2371e57b8a0668459e165024 100644
(file)
--- a/
src/charging-station/MessageChannelUtils.ts
+++ b/
src/charging-station/MessageChannelUtils.ts
@@
-1,4
+1,4
@@
-import type { ChargingStation } from './
ChargingStation
';
+import type { ChargingStation } from './
internal
';
import {
type ChargingStationData,
type ChargingStationWorkerMessage,
import {
type ChargingStationData,
type ChargingStationWorkerMessage,
@@
-15,7
+15,7
@@
export class MessageChannelUtils {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
- id: ChargingStationWorkerMessageEvents.
STARTED
,
+ id: ChargingStationWorkerMessageEvents.
started
,
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
@@
-24,7
+24,7
@@
export class MessageChannelUtils {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
- id: ChargingStationWorkerMessageEvents.
STOPPED
,
+ id: ChargingStationWorkerMessageEvents.
stopped
,
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
@@
-33,7
+33,7
@@
export class MessageChannelUtils {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
chargingStation: ChargingStation
): ChargingStationWorkerMessage<ChargingStationData> {
return {
- id: ChargingStationWorkerMessageEvents.
UPDATED
,
+ id: ChargingStationWorkerMessageEvents.
updated
,
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
data: MessageChannelUtils.buildChargingStationDataPayload(chargingStation),
};
}
@@
-42,7
+42,7
@@
export class MessageChannelUtils {
statistics: Statistics
): ChargingStationWorkerMessage<Statistics> {
return {
statistics: Statistics
): ChargingStationWorkerMessage<Statistics> {
return {
- id: ChargingStationWorkerMessageEvents.
PERFORMANCE_STATISTICS
,
+ id: ChargingStationWorkerMessageEvents.
performanceStatistics
,
data: statistics,
};
}
data: statistics,
};
}
@@
-51,14
+51,15
@@
export class MessageChannelUtils {
chargingStation: ChargingStation
): ChargingStationData {
return {
chargingStation: ChargingStation
): ChargingStationData {
return {
- stationInfo: chargingStation.stationInfo,
started: chargingStation.started,
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
),
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:
...(chargingStation.automaticTransactionGenerator && {
automaticTransactionGenerator: {
automaticTransactionGenerator: