X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=10f9733fbe2f595a684c5a460babb29be13c7ae5;hb=178956d8c51c6a2b4ecc55b592dfb9ee339b8105;hp=36a481ff6ed41299ea5c69bcca64767438b55eee;hpb=2896e06dc8d72adf7150b23c941079f622f6f37c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 36a481ff..10f9733f 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -1,18 +1,19 @@ -import type { ClientRequestArgs } from 'http'; +import type { ClientRequestArgs } from 'node:http'; import type { ClientOptions } from 'ws'; +import type { AutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator'; +import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration'; +import type { ConnectorStatus } from './ConnectorStatus'; +import type { EvseTemplate } from './Evse'; +import type { OCPPProtocol } from './ocpp/OCPPProtocol'; +import type { OCPPVersion } from './ocpp/OCPPVersion'; import type { - AutomaticTransactionGeneratorConfiguration, - ChargingStationOcppConfiguration, - ConnectorStatus, FirmwareStatus, IncomingRequestCommand, MessageTrigger, - OCPPProtocol, - OCPPVersion, RequestCommand, -} from './internal'; +} from './ocpp/Requests'; export enum CurrentType { AC = 'AC', @@ -54,6 +55,15 @@ type CommandsSupport = { outgoingCommands?: Record; }; +enum x509CertificateType { + V2GRootCertificate = 'V2GRootCertificate', + MORootCertificate = 'MORootCertificate', + CSMSRootCertificate = 'CSMSRootCertificate', + ManufacturerRootCertificate = 'ManufacturerRootCertificate', + ChargingStationCertificate = 'ChargingStationCertificate', + V2GCertificate = 'V2GCertificate', +} + export type ChargingStationTemplate = { templateHash?: string; supervisionUrls?: string | string[]; @@ -66,8 +76,9 @@ export type ChargingStationTemplate = { ocppStrictCompliance?: boolean; ocppPersistentConfiguration?: boolean; stationInfoPersistentConfiguration?: boolean; + automaticTransactionGeneratorPersistentConfiguration?: boolean; wsOptions?: WsOptions; - authorizationFile?: string; + idTagsFile?: string; baseName: string; nameSuffix?: string; fixedName?: boolean; @@ -112,5 +123,7 @@ export type ChargingStationTemplate = { messageTriggerSupport?: Record; Configuration?: ChargingStationOcppConfiguration; AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration; - Connectors: Record; + Evses?: Record; + Connectors?: Record; + x509Certificates?: Record; };