-import type { JsonObject } from './JsonType';
-import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel';
+import type { JsonObject } from './JsonType.js'
+import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel.js'
}
export enum AuthenticationType {
BASIC_AUTH = 'basic-auth',
}
export enum AuthenticationType {
BASIC_AUTH = 'basic-auth',
-export type ProtocolRequest = [string, ProcedureName, RequestPayload];
-export type ProtocolResponse = [string, ResponsePayload];
+export type ProtocolRequest = [
+ `${string}-${string}-${string}-${string}-${string}`,
+ ProcedureName,
+ RequestPayload
+]
+export type ProtocolResponse = [
+ `${string}-${string}-${string}-${string}-${string}`,
+ ResponsePayload
+]
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
+ ADD_CHARGING_STATIONS = 'addChargingStations',
+ DELETE_CHARGING_STATIONS = 'deleteChargingStations',
+ PERFORMANCE_STATISTICS = 'performanceStatistics',
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',
+ METER_VALUES = 'meterValues',
+ DATA_TRANSFER = 'dataTransfer',
+ DIAGNOSTICS_STATUS_NOTIFICATION = 'diagnosticsStatusNotification',
+ FIRMWARE_STATUS_NOTIFICATION = 'firmwareStatusNotification'
- status: ResponseStatus;
- hashIdsSucceeded?: string[];
- hashIdsFailed?: string[];
- responsesFailed?: BroadcastChannelResponsePayload[];
+ status: ResponseStatus
+ hashIdsSucceeded?: string[]
+ hashIdsFailed?: string[]
+ responsesFailed?: BroadcastChannelResponsePayload[]