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
Coding style cleanups
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
WorkerBroadcastChannel.ts
diff --git
a/src/types/WorkerBroadcastChannel.ts
b/src/types/WorkerBroadcastChannel.ts
index 45168b03834471fad4fa41cdc2c62ad8b117b7ff..ca3d42704f4bfea8b3049b82b6a11dfd2ce6abe3 100644
(file)
--- a/
src/types/WorkerBroadcastChannel.ts
+++ b/
src/types/WorkerBroadcastChannel.ts
@@
-10,30
+10,22
@@
export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]
export enum BroadcastChannelProcedureName {
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
export enum BroadcastChannelProcedureName {
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
- START_TRANSACTION = 'startTransaction',
- STOP_TRANSACTION = 'stopTransaction',
OPEN_CONNECTION = 'openConnection',
CLOSE_CONNECTION = 'closeConnection',
OPEN_CONNECTION = 'openConnection',
CLOSE_CONNECTION = 'closeConnection',
+ START_TRANSACTION = 'startTransaction',
+ STOP_TRANSACTION = 'stopTransaction',
+ START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
+ STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
}
}
-
interface BaseBroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId' | 'hashIds'>
{
+
export interface BroadcastChannelRequestPayload extends RequestPayload
{
connectorId?: number;
transactionId?: number;
idTag?: string;
}
connectorId?: number;
transactionId?: number;
idTag?: string;
}
-
interface HashIdBroadcastChannelRequestPayload extends BaseBroadcastChannelRequest
Payload {
+
export interface BroadcastChannelResponsePayload extends Response
Payload {
hashId: string;
}
hashId: string;
}
-interface HashIdsBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload {
- hashIds: string[];
-}
-
-export type BroadcastChannelRequestPayload =
- | HashIdBroadcastChannelRequestPayload
- | HashIdsBroadcastChannelRequestPayload;
-
-export type BroadcastChannelResponsePayload = ResponsePayload;
-
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };