Coding style cleanups
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index 65c431404a44d2e842f56c12784a9613a49ea4e3..ca3d42704f4bfea8b3049b82b6a11dfd2ce6abe3 100644 (file)
@@ -18,24 +18,12 @@ export enum BroadcastChannelProcedureName {
   STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
 }
 
-interface BaseBroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId' | 'hashIds'> {
+export interface BroadcastChannelRequestPayload extends RequestPayload {
   connectorId?: number;
   transactionId?: number;
   idTag?: string;
 }
 
-interface HashIdBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload {
-  hashId: string;
-}
-
-interface HashIdsBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload {
-  hashIds: string[];
-}
-
-export type BroadcastChannelRequestPayload =
-  | HashIdBroadcastChannelRequestPayload
-  | HashIdsBroadcastChannelRequestPayload;
-
 export interface BroadcastChannelResponsePayload extends ResponsePayload {
   hashId: string;
 }