MessageTrigger,
RequestCommand,
} from './ocpp/Requests';
-import type { Reservation } from './ocpp/Reservation';
export enum CurrentType {
AC = 'AC',
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<IncomingRequestCommand, boolean>;
outgoingCommands?: Record<RequestCommand, boolean>;
-};
+}
-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;
ocppStrictCompliance?: boolean;
ocppPersistentConfiguration?: boolean;
stationInfoPersistentConfiguration?: boolean;
+ automaticTransactionGeneratorPersistentConfiguration?: boolean;
wsOptions?: WsOptions;
idTagsFile?: string;
baseName: string;
imsi?: string;
meterSerialNumberPrefix?: string;
meterType?: string;
- power: number | number[];
+ power?: number | number[];
+ powerUnit?: PowerUnits;
powerSharedByConnectors?: boolean;
- powerUnit: PowerUnits;
currentOutType?: CurrentType;
voltageOut?: Voltage;
numberOfPhases?: number;
registrationMaxRetries?: number;
enableStatistics?: boolean;
mustAuthorizeAtRemoteStart?: boolean;
+ /** @deprecated Replaced by ocppStrictCompliance */
payloadSchemaValidation?: boolean;
amperageLimitationOcppKey?: string;
amperageLimitationUnit?: AmpereUnits;
AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration;
Evses?: Record<string, EvseTemplate>;
Connectors?: Record<string, ConnectorStatus>;
- reservation?: Reservation[];
-};
+ x509Certificates?: Record<x509CertificateType, string>;
+}