X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=f235200c283b0393e900754b19e93d9e26f377fc;hb=5566ca3ebbfc761e2b4538be722399628f34a87b;hp=2cc18943cfbe11019dec4115acf8ad21138f5dc5;hpb=a5e9befcd2d47dc74838776f7a9ee0fea6fef9c6;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 2cc18943..f235200c 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -16,28 +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 HashIdBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload { - hashId: string; -} - -interface HashIdsBroadcastChannelRequestPayload extends BaseBroadcastChannelRequestPayload { - hashIds: string[]; -} - -export type BroadcastChannelRequestPayload = - | HashIdBroadcastChannelRequestPayload - | HashIdsBroadcastChannelRequestPayload; - -export interface BroadcastChannelResponsePayload extends ResponsePayload { +export interface BroadcastChannelResponsePayload + extends Omit { hashId: string; }