-import { JsonObject } from './JsonType';
-import { RequestPayload, ResponsePayload } from './UIProtocol';
+import type { RequestPayload, ResponsePayload } from './UIProtocol';
export type BroadcastChannelRequest = [
string,
export enum BroadcastChannelProcedureName {
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
- START_TRANSACTION = 'startTransaction',
- STOP_TRANSACTION = 'stopTransaction',
OPEN_CONNECTION = 'openConnection',
CLOSE_CONNECTION = 'closeConnection',
+ START_TRANSACTION = 'startTransaction',
+ STOP_TRANSACTION = 'stopTransaction',
+ START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
+ STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
}
-export interface BroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId'> {
- hashId: string;
+export interface BroadcastChannelRequestPayload extends RequestPayload {
connectorId?: number;
transactionId?: number;
idTag?: string;
}
-export type BroadcastChannelResponsePayload = ResponsePayload;
+export interface BroadcastChannelResponsePayload extends ResponsePayload {
+ hashId: string;
+}
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };