-import type { JsonObject } from './JsonType';
-import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel';
+import type { JsonObject } from './JsonType.js'
+import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel.js'
-export type ProtocolRequest = [string, ProcedureName, RequestPayload];
-export type ProtocolResponse = [string, ResponsePayload];
+export type ProtocolRequest = [string, ProcedureName, RequestPayload]
+export type ProtocolResponse = [string, ResponsePayload]
export type ProtocolRequestHandler = (
uuid?: string,
procedureName?: ProcedureName,
payload?: RequestPayload
export type ProtocolRequestHandler = (
uuid?: string,
procedureName?: ProcedureName,
payload?: RequestPayload
export enum ProcedureName {
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
export enum ProcedureName {
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
OPEN_CONNECTION = 'openConnection',
CLOSE_CONNECTION = 'closeConnection',
START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
OPEN_CONNECTION = 'openConnection',
CLOSE_CONNECTION = 'closeConnection',
START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
START_TRANSACTION = 'startTransaction',
STOP_TRANSACTION = 'stopTransaction',
AUTHORIZE = 'authorize',
START_TRANSACTION = 'startTransaction',
STOP_TRANSACTION = 'stopTransaction',
AUTHORIZE = 'authorize',
STATUS_NOTIFICATION = 'statusNotification',
HEARTBEAT = 'heartbeat',
METER_VALUES = 'meterValues',
STATUS_NOTIFICATION = 'statusNotification',
HEARTBEAT = 'heartbeat',
METER_VALUES = 'meterValues',
- status: ResponseStatus;
- hashIdsSucceeded?: string[];
- hashIdsFailed?: string[];
- responsesFailed?: BroadcastChannelResponsePayload[];
+ status: ResponseStatus
+ hashIdsSucceeded?: string[]
+ hashIdsFailed?: string[]
+ responsesFailed?: BroadcastChannelResponsePayload[]