Add the source charging station that emits a response to broadcast channel
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 27 Aug 2022 16:30:45 +0000 (18:30 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 27 Aug 2022 16:30:45 +0000 (18:30 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/types/UIProtocol.ts
src/types/WorkerBroadcastChannel.ts

index 463b205ec33b29982dcec20f5beb28c885e2e6e3..3a76bd0007302ec8a11540a6c317bd59fd3c4675 100644 (file)
@@ -45,4 +45,5 @@ export enum ResponseStatus {
 
 export interface ResponsePayload extends JsonObject {
   status: ResponseStatus;
+  hashIds?: string[];
 }
index 0ca44adac903f816f6917a60e1587762235b26e9..00f648f3ab03a8edf7785e7ec609a0c6d88b44ff 100644 (file)
@@ -34,7 +34,7 @@ export type BroadcastChannelRequestPayload =
   | HashIdBroadcastChannelRequestPayload
   | HashIdsBroadcastChannelRequestPayload;
 
-export interface BroadcastChannelResponsePayload extends ResponsePayload {
+export interface BroadcastChannelResponsePayload extends Omit<ResponsePayload, 'hashIds'> {
   hashId: string;
 }