-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 {
MessageTrigger,
RequestCommand,
} from './ocpp/Requests';
+import type { Reservation } from './ocpp/Reservation';
export enum CurrentType {
AC = 'AC',
export type WsOptions = ClientOptions & ClientRequestArgs;
-type FirmwareUpgrade = {
- versionUpgrade: {
- patternGroup?: number | number[];
+export type FirmwareUpgrade = {
+ versionUpgrade?: {
+ patternGroup?: number;
step?: number;
};
reset?: boolean;
- resetDelay?: number;
- failureMessage?: FirmwareStatus;
+ failureStatus?: FirmwareStatus;
};
type CommandsSupport = {
ocppPersistentConfiguration?: boolean;
stationInfoPersistentConfiguration?: boolean;
wsOptions?: WsOptions;
- authorizationFile?: string;
+ idTagsFile?: string;
baseName: string;
nameSuffix?: string;
fixedName?: boolean;
messageTriggerSupport?: Record<MessageTrigger, boolean>;
Configuration?: ChargingStationOcppConfiguration;
AutomaticTransactionGenerator?: AutomaticTransactionGeneratorConfiguration;
- Connectors: Record<string, ConnectorStatus>;
+ Evses?: Record<string, EvseTemplate>;
+ Connectors?: Record<string, ConnectorStatus>;
+ reservation?: Reservation[];
};