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 0015b717e7fa97ee78a257efeff85d5b71e7d1f9..ca3d42704f4bfea8b3049b82b6a11dfd2ce6abe3 100644
(file)
--- a/
src/types/WorkerBroadcastChannel.ts
+++ b/
src/types/WorkerBroadcastChannel.ts
@@
-1,4
+1,4
@@
-import { RequestPayload, ResponsePayload } from './UIProtocol';
+import
type
{ RequestPayload, ResponsePayload } from './UIProtocol';
export type BroadcastChannelRequest = [
string,
export type BroadcastChannelRequest = [
string,
@@
-10,19
+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',
}
}
-export interface BroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId'> {
- hashId: string;
+export interface BroadcastChannelRequestPayload extends RequestPayload {
connectorId?: number;
transactionId?: number;
idTag?: string;
}
connectorId?: number;
transactionId?: number;
idTag?: string;
}
-export type BroadcastChannelResponsePayload = ResponsePayload;
+export interface BroadcastChannelResponsePayload extends ResponsePayload {
+ hashId: string;
+}
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };