X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationTemplate.ts;h=68c20597c4edf2cbf8f5db99fe61ab6e3d970ea2;hb=6ebeab4b8404e5a9d69b3dcdff47b9087b2058f0;hp=10f9733fbe2f595a684c5a460babb29be13c7ae5;hpb=d58b442097da31f8b974d51aef63c64470d9ab48;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 10f9733f..68c20597 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -41,19 +41,19 @@ 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; -}; +} enum x509CertificateType { V2GRootCertificate = 'V2GRootCertificate', @@ -64,7 +64,7 @@ enum x509CertificateType { V2GCertificate = 'V2GCertificate', } -export type ChargingStationTemplate = { +export interface ChargingStationTemplate { templateHash?: string; supervisionUrls?: string | string[]; supervisionUrlOcppConfiguration?: boolean; @@ -93,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; @@ -108,7 +108,10 @@ export type ChargingStationTemplate = { reconnectExponentialDelay?: boolean; registrationMaxRetries?: number; enableStatistics?: boolean; + remoteAuthorization?: boolean; + /** @deprecated Replaced by remoteAuthorization */ mustAuthorizeAtRemoteStart?: boolean; + /** @deprecated Replaced by ocppStrictCompliance */ payloadSchemaValidation?: boolean; amperageLimitationOcppKey?: string; amperageLimitationUnit?: AmpereUnits; @@ -126,4 +129,4 @@ export type ChargingStationTemplate = { Evses?: Record; Connectors?: Record; x509Certificates?: Record; -}; +}