repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment some dubious OCPPError usage
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
WorkerBroadcastChannel.ts
diff --git
a/src/types/WorkerBroadcastChannel.ts
b/src/types/WorkerBroadcastChannel.ts
index 610d1c4517e9540505f53d565947657e8f647fab..1756e496a3be5f3edc1604b5e7293de0244893db 100644
(file)
--- a/
src/types/WorkerBroadcastChannel.ts
+++ b/
src/types/WorkerBroadcastChannel.ts
@@
-1,5
+1,4
@@
-import { JsonObject } from './JsonType';
-import { RequestPayload, ResponsePayload } from './UIProtocol';
+import type { RequestPayload, ResponsePayload } from './UIProtocol';
export type BroadcastChannelRequest = [
string,
export type BroadcastChannelRequest = [
string,
@@
-11,17
+10,28
@@
export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]
export enum BroadcastChannelProcedureName {
START_CHARGING_STATION = 'startChargingStation',
STOP_CHARGING_STATION = 'stopChargingStation',
export enum BroadcastChannelProcedureName {
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',
START_TRANSACTION = 'startTransaction',
STOP_TRANSACTION = 'stopTransaction',
+ AUTHORIZE = 'authorize',
+ BOOT_NOTIFICATION = 'bootNotification',
+ STATUS_NOTIFICATION = 'statusNotification',
+ HEARTBEAT = 'heartbeat',
+ METER_VALUES = 'meterValues',
}
}
-export interface BroadcastChannelRequestPayload extends Omit<RequestPayload, 'hashId'> {
- hashId: string;
+export interface BroadcastChannelRequestPayload extends RequestPayload {
connectorId?: number;
transactionId?: number;
idTag?: string;
}
connectorId?: number;
transactionId?: number;
idTag?: string;
}
-export type BroadcastChannelResponsePayload = ResponsePayload;
+export interface BroadcastChannelResponsePayload
+ extends Omit<ResponsePayload, 'hashIdsSucceeded' | 'hashIdsFailed' | 'responsesFailed'> {
+ hashId: string;
+}
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };
export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };