Add more sanity checks at remote start transaction
[e-mobility-charging-stations-simulator.git] / src / types / Connectors.ts
CommitLineData
fd0c36fa
JB
1import { MeterValue, SampledValue } from './ocpp/MeterValues';
2
c0560973
JB
3import { AvailabilityType } from './ocpp/Requests';
4import { ChargePointStatus } from './ocpp/ChargePointStatus';
5import { ChargingProfile } from './ocpp/ChargingProfile';
10570d97 6
9ccca265
JB
7export interface SampledValueTemplate extends SampledValue {
8 fluctuationPercent?: number;
9}
10
734d790d 11export interface ConnectorStatus {
4dff73b0 12 availability: AvailabilityType;
10570d97
JB
13 bootStatus?: ChargePointStatus;
14 status?: ChargePointStatus;
9ccca265 15 MeterValues: SampledValueTemplate[];
163547b1 16 authorizeIdTag?: string;
a2653482
JB
17 idTagAuthorized?: boolean;
18 localAuthorizeIdTag?: string;
19 idTagLocalAuthorized?: boolean;
20 transactionRemoteStarted?: boolean;
10570d97
JB
21 transactionStarted?: boolean;
22 transactionId?: number;
23 transactionSetInterval?: NodeJS.Timeout;
163547b1 24 transactionIdTag?: string;
4a1857a2
JB
25 energyActiveImportRegisterValue?: number; // In Wh
26 transactionEnergyActiveImportRegisterValue?: number; // In Wh
fd0c36fa
JB
27 transactionBeginMeterValue?: MeterValue;
28 chargingProfiles?: ChargingProfile[];
10570d97 29}