Merge pull request #1026 from SAP/dependabot/npm_and_yarn/vite-5.2.8
[e-mobility-charging-stations-simulator.git] / src / types / ChargingStationTemplate.ts
index 1b4299b3b798a8dc685788a62cd74a57f28ec192..b3cc773489d0f384feb8bf93cb5934039628eeae 100644 (file)
@@ -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<IncomingRequestCommand, boolean>
   outgoingCommands?: Record<RequestCommand, boolean>
 }
@@ -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