import type { JsonObject } from './JsonType';
export type ChargingStationData = {
- hashId: string;
stationInfo: ChargingStationInfo;
- stopped: boolean;
+ started: boolean;
+ wsState?:
+ | typeof WebSocket.CONNECTING
+ | typeof WebSocket.OPEN
+ | typeof WebSocket.CLOSING
+ | typeof WebSocket.CLOSED;
bootNotificationResponse: BootNotificationResponse;
connectors: ConnectorStatus[];
+ automaticTransactionGeneratorStatuses?: Status[];
};
export type ChargingStationInfo = {
+ hashId: string;
chargingStationId?: string;
chargePointModel: string;
chargePointVendor: string;
reconnectExponentialDelay?: boolean;
registrationMaxRetries?: number;
enableStatistics?: boolean;
- mayAuthorizeAtRemoteStart?: boolean;
+ mustAuthorizeAtRemoteStart?: boolean;
amperageLimitationOcppKey?: string;
amperageLimitationUnit?: AmpereUnits;
beginEndMeterValues?: boolean;
interval: number;
}
-export interface CommandsSupport {
+type CommandsSupport = {
incomingCommands: Record<IncomingRequestCommand, boolean>;
outgoingCommands?: Record<RequestCommand, boolean>;
-}
+};
export enum OCPPVersion {
VERSION_16 = '1.6',
UNAVAILABLE = 'Unavailable',
FAULTED = 'Faulted',
}
+
+export type Status = {
+ start?: boolean;
+ startDate?: Date;
+ lastRunDate?: Date;
+ stopDate?: Date;
+ stoppedDate?: Date;
+ authorizeRequests?: number;
+ acceptedAuthorizeRequests?: number;
+ rejectedAuthorizeRequests?: number;
+ startTransactionRequests?: number;
+ acceptedStartTransactionRequests?: number;
+ rejectedStartTransactionRequests?: number;
+ stopTransactionRequests?: number;
+ acceptedStopTransactionRequests?: number;
+ rejectedStopTransactionRequests?: number;
+ skippedConsecutiveTransactions?: number;
+ skippedTransactions?: number;
+};