X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Ftypes%2FChargingStationTemplate.ts;h=b3cc773489d0f384feb8bf93cb5934039628eeae;hb=6e177b76d80dc30e471ec9f3500560285c48fc0f;hp=1b4299b3b798a8dc685788a62cd74a57f28ec192;hpb=a807045be19c1ed4996a44d8c2c8774e926dc6dc;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 1b4299b3..b3cc7734 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -6,6 +6,7 @@ import type { AutomaticTransactionGeneratorConfiguration } from './AutomaticTran import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration.js' import type { ConnectorStatus } from './ConnectorStatus.js' import type { EvseTemplate } from './Evse.js' +import type { JsonObject } from './JsonType.js' import type { OCPPProtocol } from './ocpp/OCPPProtocol.js' import type { OCPPVersion } from './ocpp/OCPPVersion.js' import type { @@ -17,31 +18,31 @@ import type { export enum CurrentType { AC = 'AC', - DC = 'DC', + DC = 'DC' } export enum PowerUnits { WATT = 'W', - KILO_WATT = 'kW', + KILO_WATT = 'kW' } export enum AmpereUnits { MILLI_AMPERE = 'mA', CENTI_AMPERE = 'cA', DECI_AMPERE = 'dA', - AMPERE = 'A', + AMPERE = 'A' } export enum Voltage { VOLTAGE_110 = 110, VOLTAGE_230 = 230, VOLTAGE_400 = 400, - VOLTAGE_800 = 800, + VOLTAGE_800 = 800 } export type WsOptions = ClientOptions & ClientRequestArgs -export interface FirmwareUpgrade { +export interface FirmwareUpgrade extends JsonObject { versionUpgrade?: { patternGroup?: number step?: number @@ -50,7 +51,7 @@ export interface FirmwareUpgrade { failureStatus?: FirmwareStatus } -interface CommandsSupport { +interface CommandsSupport extends JsonObject { incomingCommands: Record outgoingCommands?: Record } @@ -61,7 +62,7 @@ enum x509CertificateType { CSMSRootCertificate = 'CSMSRootCertificate', ManufacturerRootCertificate = 'ManufacturerRootCertificate', ChargingStationCertificate = 'ChargingStationCertificate', - V2GCertificate = 'V2GCertificate', + V2GCertificate = 'V2GCertificate' } export interface ChargingStationTemplate { @@ -71,6 +72,7 @@ export interface ChargingStationTemplate { supervisionUrlOcppKey?: string supervisionUser?: string supervisionPassword?: string + autoStart?: boolean ocppVersion?: OCPPVersion ocppProtocol?: OCPPProtocol ocppStrictCompliance?: boolean @@ -109,9 +111,9 @@ export interface ChargingStationTemplate { registrationMaxRetries?: number enableStatistics?: boolean remoteAuthorization?: boolean - /** @deprecated Replaced by remoteAuthorization */ + /** @deprecated Replaced by remoteAuthorization. */ mustAuthorizeAtRemoteStart?: boolean - /** @deprecated Replaced by ocppStrictCompliance */ + /** @deprecated Replaced by ocppStrictCompliance. */ payloadSchemaValidation?: boolean amperageLimitationOcppKey?: string amperageLimitationUnit?: AmpereUnits