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
Use import type where appropriate
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ChargingStationTemplate.ts
diff --git
a/src/types/ChargingStationTemplate.ts
b/src/types/ChargingStationTemplate.ts
index 3b08cdae693467e839973b77c021475578e7587e..789ce248bc3d5e40beba0ccc2a2e221a618501fb 100644
(file)
--- a/
src/types/ChargingStationTemplate.ts
+++ b/
src/types/ChargingStationTemplate.ts
@@
-1,9
+1,11
@@
-import ChargingStationConfiguration from './ChargingStationConfiguration';
-import Connectors from './Connectors';
+import ChargingStationOcppConfiguration from './ChargingStationOcppConfiguration';
+import { ClientOptions } from 'ws';
+import { ClientRequestArgs } from 'http';
+import { ConnectorStatus } from './ConnectorStatus';
import { OCPPProtocol } from './ocpp/OCPPProtocol';
import { OCPPVersion } from './ocpp/OCPPVersion';
import { OCPPProtocol } from './ocpp/OCPPProtocol';
import { OCPPVersion } from './ocpp/OCPPVersion';
-export enum Current
Out
Type {
+export enum CurrentType {
AC = 'AC',
DC = 'DC',
}
AC = 'AC',
DC = 'DC',
}
@@
-13,11
+15,18
@@
export enum PowerUnits {
KILO_WATT = 'kW',
}
KILO_WATT = 'kW',
}
-export enum VoltageOut {
+export enum AmpereUnits {
+ MILLI_AMPERE = 'mA',
+ CENTI_AMPERE = 'cA',
+ DECI_AMPERE = 'dA',
+ AMPERE = 'A',
+}
+
+export enum Voltage {
VOLTAGE_110 = 110,
VOLTAGE_230 = 230,
VOLTAGE_400 = 400,
VOLTAGE_110 = 110,
VOLTAGE_230 = 230,
VOLTAGE_400 = 400,
- VOLTAGE_800 = 800
+ VOLTAGE_800 = 800
,
}
export interface AutomaticTransactionGenerator {
}
export interface AutomaticTransactionGenerator {
@@
-29,41
+38,62
@@
export interface AutomaticTransactionGenerator {
probabilityOfStart: number;
stopAfterHours: number;
stopOnConnectionFailure: boolean;
probabilityOfStart: number;
stopAfterHours: number;
stopOnConnectionFailure: boolean;
- requireAuthorize?: boolean
+ requireAuthorize?: boolean
;
}
}
+export type WsOptions = ClientOptions & ClientRequestArgs;
+
export default interface ChargingStationTemplate {
export default interface ChargingStationTemplate {
- supervisionURL?: string;
+ templateHash?: string;
+ supervisionUrls?: string | string[];
+ supervisionUrlOcppConfiguration?: boolean;
+ supervisionUrlOcppKey?: string;
+ supervisionUser?: string;
+ supervisionPassword?: string;
ocppVersion?: OCPPVersion;
ocppProtocol?: OCPPProtocol;
ocppVersion?: OCPPVersion;
ocppProtocol?: OCPPProtocol;
+ ocppStrictCompliance?: boolean;
+ ocppPersistentConfiguration?: boolean;
+ wsOptions?: WsOptions;
authorizationFile?: string;
baseName: string;
nameSuffix?: string;
fixedName?: boolean;
chargePointModel: string;
chargePointVendor: string;
authorizationFile?: string;
baseName: string;
nameSuffix?: string;
fixedName?: boolean;
chargePointModel: string;
chargePointVendor: string;
+ chargePointSerialNumberPrefix?: string;
chargeBoxSerialNumberPrefix?: string;
firmwareVersion?: string;
chargeBoxSerialNumberPrefix?: string;
firmwareVersion?: string;
+ iccid?: string;
+ imsi?: string;
+ meterSerialNumberPrefix?: string;
+ meterType?: string;
power: number | number[];
powerSharedByConnectors?: boolean;
powerUnit: PowerUnits;
power: number | number[];
powerSharedByConnectors?: boolean;
powerUnit: PowerUnits;
- currentOutType?: Current
Out
Type;
- voltageOut?:
number
;
+ currentOutType?: CurrentType;
+ voltageOut?:
Voltage
;
numberOfPhases?: number;
numberOfConnectors?: number | number[];
useConnectorId0?: boolean;
randomConnectors?: boolean;
resetTime?: number;
numberOfPhases?: number;
numberOfConnectors?: number | number[];
useConnectorId0?: boolean;
randomConnectors?: boolean;
resetTime?: number;
+ autoRegister: boolean;
autoReconnectMaxRetries?: number;
reconnectExponentialDelay?: boolean;
registrationMaxRetries?: number;
enableStatistics?: boolean;
autoReconnectMaxRetries?: number;
reconnectExponentialDelay?: boolean;
registrationMaxRetries?: number;
enableStatistics?: boolean;
+ mayAuthorizeAtRemoteStart: boolean;
+ amperageLimitationOcppKey?: string;
+ amperageLimitationUnit?: AmpereUnits;
beginEndMeterValues?: boolean;
outOfOrderEndMeterValues?: boolean;
meteringPerTransaction?: boolean;
transactionDataMeterValues?: boolean;
mainVoltageMeterValues?: boolean;
beginEndMeterValues?: boolean;
outOfOrderEndMeterValues?: boolean;
meteringPerTransaction?: boolean;
transactionDataMeterValues?: boolean;
mainVoltageMeterValues?: boolean;
- Configuration?: ChargingStationConfiguration;
+ phaseLineToLineVoltageMeterValues?: boolean;
+ customValueLimitationMeterValues?: boolean;
+ Configuration?: ChargingStationOcppConfiguration;
AutomaticTransactionGenerator: AutomaticTransactionGenerator;
AutomaticTransactionGenerator: AutomaticTransactionGenerator;
- Connectors:
Connectors
;
+ Connectors:
Record<string, ConnectorStatus>
;
}
}