X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=f235200c283b0393e900754b19e93d9e26f377fc;hb=a9ed42b2eaac1fb26700d6d86952d0d2cee4d857;hp=03be12fde78330fa7a88bb6e04b964466d910f6e;hpb=757b2ecfd506d85f04ab57e13ff0cb3cf4c024fe;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 03be12fd..f235200c 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -16,22 +16,17 @@ export enum BroadcastChannelProcedureName { STOP_TRANSACTION = 'stopTransaction', START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator', STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', + STATUS_NOTIFICATION = 'statusNotification', } -interface BaseBroadcastChannelRequestPayload extends Omit { +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 { +export interface BroadcastChannelResponsePayload + extends Omit { hashId: string; }