X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=3656fe3a9a1e8618375271002850ccd407a6e5fc;hb=721646e902fa12d165d4a1da06fb963fb30dc9f2;hp=ca3d42704f4bfea8b3049b82b6a11dfd2ce6abe3;hpb=39257250487f6d6704ed61bf5862ea9e1f906fbc;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index ca3d4270..3656fe3a 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -1,4 +1,4 @@ -import type { RequestPayload, ResponsePayload } from './UIProtocol'; +import type { RequestPayload, ResponsePayload } from './internal'; export type BroadcastChannelRequest = [ string, @@ -12,19 +12,27 @@ export enum BroadcastChannelProcedureName { STOP_CHARGING_STATION = 'stopChargingStation', OPEN_CONNECTION = 'openConnection', CLOSE_CONNECTION = 'closeConnection', - START_TRANSACTION = 'startTransaction', - STOP_TRANSACTION = 'stopTransaction', START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator', STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', + START_TRANSACTION = 'startTransaction', + STOP_TRANSACTION = 'stopTransaction', + AUTHORIZE = 'authorize', + BOOT_NOTIFICATION = 'bootNotification', + STATUS_NOTIFICATION = 'statusNotification', + HEARTBEAT = 'heartbeat', + METER_VALUES = 'meterValues', + DATA_TRANSFER = 'dataTransfer', + DIAGNOSTICS_STATUS_NOTIFICATION = 'diagnosticsStatusNotification', + FIRMWARE_STATUS_NOTIFICATION = 'firmwareStatusNotification', } export interface BroadcastChannelRequestPayload extends RequestPayload { connectorId?: number; transactionId?: number; - idTag?: string; } -export interface BroadcastChannelResponsePayload extends ResponsePayload { +export interface BroadcastChannelResponsePayload + extends Omit { hashId: string; }