1 import type { ClientRequestArgs
} from
'node:http';
3 import type { ClientOptions
} from
'ws';
5 import type { AutomaticTransactionGeneratorConfiguration
} from
'./AutomaticTransactionGenerator';
6 import type { ChargingStationOcppConfiguration
} from
'./ChargingStationOcppConfiguration';
7 import type { ConnectorStatus
} from
'./ConnectorStatus';
8 import type { EvseTemplate
} from
'./Evse';
9 import type { OCPPProtocol
} from
'./ocpp/OCPPProtocol';
10 import type { OCPPVersion
} from
'./ocpp/OCPPVersion';
13 IncomingRequestCommand
,
16 } from
'./ocpp/Requests';
18 export enum CurrentType
{
23 export enum PowerUnits
{
28 export enum AmpereUnits
{
42 export type WsOptions
= ClientOptions
& ClientRequestArgs
;
44 export type FirmwareUpgrade
= {
46 patternGroup
?: number;
50 failureStatus
?: FirmwareStatus
;
53 type CommandsSupport
= {
54 incomingCommands
: Record
<IncomingRequestCommand
, boolean>;
55 outgoingCommands
?: Record
<RequestCommand
, boolean>;
58 enum x509CertificateType
{
59 V2GRootCertificate
= 'V2GRootCertificate',
60 MORootCertificate
= 'MORootCertificate',
61 CSMSRootCertificate
= 'CSMSRootCertificate',
62 ManufacturerRootCertificate
= 'ManufacturerRootCertificate',
63 ChargingStationCertificate
= 'ChargingStationCertificate',
64 V2GCertificate
= 'V2GCertificate',
67 export type ChargingStationTemplate
= {
68 templateHash
?: string;
69 supervisionUrls
?: string | string[];
70 supervisionUrlOcppConfiguration
?: boolean;
71 supervisionUrlOcppKey
?: string;
72 supervisionUser
?: string;
73 supervisionPassword
?: string;
74 ocppVersion
?: OCPPVersion
;
75 ocppProtocol
?: OCPPProtocol
;
76 ocppStrictCompliance
?: boolean;
77 ocppPersistentConfiguration
?: boolean;
78 stationInfoPersistentConfiguration
?: boolean;
79 automaticTransactionGeneratorPersistentConfiguration
?: boolean;
80 wsOptions
?: WsOptions
;
85 chargePointModel
: string;
86 chargePointVendor
: string;
87 chargePointSerialNumberPrefix
?: string;
88 chargeBoxSerialNumberPrefix
?: string;
89 firmwareVersionPattern
?: string;
90 firmwareVersion
?: string;
91 firmwareUpgrade
?: FirmwareUpgrade
;
94 meterSerialNumberPrefix
?: string;
96 power
: number | number[];
97 powerSharedByConnectors
?: boolean;
98 powerUnit
: PowerUnits
;
99 currentOutType
?: CurrentType
;
100 voltageOut
?: Voltage
;
101 numberOfPhases
?: number;
102 numberOfConnectors
?: number | number[];
103 useConnectorId0
?: boolean;
104 randomConnectors
?: boolean;
106 autoRegister
?: boolean;
107 autoReconnectMaxRetries
?: number;
108 reconnectExponentialDelay
?: boolean;
109 registrationMaxRetries
?: number;
110 enableStatistics
?: boolean;
111 mustAuthorizeAtRemoteStart
?: boolean;
112 payloadSchemaValidation
?: boolean;
113 amperageLimitationOcppKey
?: string;
114 amperageLimitationUnit
?: AmpereUnits
;
115 beginEndMeterValues
?: boolean;
116 outOfOrderEndMeterValues
?: boolean;
117 meteringPerTransaction
?: boolean;
118 transactionDataMeterValues
?: boolean;
119 mainVoltageMeterValues
?: boolean;
120 phaseLineToLineVoltageMeterValues
?: boolean;
121 customValueLimitationMeterValues
?: boolean;
122 commandsSupport
?: CommandsSupport
;
123 messageTriggerSupport
?: Record
<MessageTrigger
, boolean>;
124 Configuration
?: ChargingStationOcppConfiguration
;
125 AutomaticTransactionGenerator
?: AutomaticTransactionGeneratorConfiguration
;
126 Evses
?: Record
<string, EvseTemplate
>;
127 Connectors
?: Record
<string, ConnectorStatus
>;
128 x509Certificates
?: Record
<x509CertificateType
, string>;