Adapt BroadcastChannelRequestPayload type to addressing all CS
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 1 Sep 2022 22:38:57 +0000 (00:38 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 1 Sep 2022 22:38:57 +0000 (00:38 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/types/WorkerBroadcastChannel.ts

index 03be12fde78330fa7a88bb6e04b964466d910f6e..ca3d42704f4bfea8b3049b82b6a11dfd2ce6abe3 100644 (file)
@@ -18,19 +18,12 @@ export enum BroadcastChannelProcedureName {
   STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
 }
 
-interface BaseBroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId' | 'hashIds'> {
+export interface BroadcastChannelRequestPayload extends RequestPayload {
   connectorId?: number;
-  connectorIds?: number[];
   transactionId?: number;
   idTag?: string;
 }
 
-interface HashIdsBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload {
-  hashIds: string[];
-}
-
-export type BroadcastChannelRequestPayload = HashIdsBroadcastChannelRequestPayload;
-
 export interface BroadcastChannelResponsePayload extends ResponsePayload {
   hashId: string;
 }