X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=7807837573fac8aed4fcbef66dcd73a9023cb180;hb=974efe6c9928aabb0d9356c19342d0fa432f3cc1;hp=a11ac892779ff535f334f8052a671aa4d17243e1;hpb=041936041d9803859ac2faad9316c20e49b658c9;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index a11ac892..78078375 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -14,7 +14,6 @@ import type { MessageTrigger, RequestCommand, } from './ocpp/Requests'; -import type { Reservation } from './ocpp/Reservation'; export enum CurrentType { AC = 'AC', @@ -42,21 +41,30 @@ export enum Voltage { export type WsOptions = ClientOptions & ClientRequestArgs; -export type FirmwareUpgrade = { +export interface FirmwareUpgrade { versionUpgrade?: { patternGroup?: number; step?: number; }; reset?: boolean; failureStatus?: FirmwareStatus; -}; +} -type CommandsSupport = { +interface CommandsSupport { incomingCommands: Record; outgoingCommands?: Record; -}; +} -export type ChargingStationTemplate = { +enum x509CertificateType { + V2GRootCertificate = 'V2GRootCertificate', + MORootCertificate = 'MORootCertificate', + CSMSRootCertificate = 'CSMSRootCertificate', + ManufacturerRootCertificate = 'ManufacturerRootCertificate', + ChargingStationCertificate = 'ChargingStationCertificate', + V2GCertificate = 'V2GCertificate', +} + +export interface ChargingStationTemplate { templateHash?: string; supervisionUrls?: string | string[]; supervisionUrlOcppConfiguration?: boolean; @@ -68,6 +76,7 @@ export type ChargingStationTemplate = { ocppStrictCompliance?: boolean; ocppPersistentConfiguration?: boolean; stationInfoPersistentConfiguration?: boolean; + automaticTransactionGeneratorPersistentConfiguration?: boolean; wsOptions?: WsOptions; idTagsFile?: string; baseName: string; @@ -84,9 +93,9 @@ export type ChargingStationTemplate = { imsi?: string; meterSerialNumberPrefix?: string; meterType?: string; - power: number | number[]; + power?: number | number[]; + powerUnit?: PowerUnits; powerSharedByConnectors?: boolean; - powerUnit: PowerUnits; currentOutType?: CurrentType; voltageOut?: Voltage; numberOfPhases?: number; @@ -100,6 +109,7 @@ export type ChargingStationTemplate = { registrationMaxRetries?: number; enableStatistics?: boolean; mustAuthorizeAtRemoteStart?: boolean; + /** @deprecated Replaced by ocppStrictCompliance */ payloadSchemaValidation?: boolean; amperageLimitationOcppKey?: string; amperageLimitationUnit?: AmpereUnits; @@ -116,5 +126,5 @@ export type ChargingStationTemplate = { AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration; Evses?: Record; Connectors?: Record; - reservation?: Reservation[]; -}; + x509Certificates?: Record; +}