1 import type { ClientRequestArgs
} from
'node:http'
3 import type { ClientOptions
} from
'ws'
5 import type { AutomaticTransactionGeneratorConfiguration
} from
'./AutomaticTransactionGenerator.js'
6 import type { ChargingStationOcppConfiguration
} from
'./ChargingStationOcppConfiguration.js'
7 import type { ConnectorStatus
} from
'./ConnectorStatus.js'
8 import type { EvseTemplate
} from
'./Evse.js'
9 import type { OCPPProtocol
} from
'./ocpp/OCPPProtocol.js'
10 import type { OCPPVersion
} from
'./ocpp/OCPPVersion.js'
13 IncomingRequestCommand
,
16 } from
'./ocpp/Requests.js'
18 export enum CurrentType
{
23 export enum PowerUnits
{
28 export enum AmpereUnits
{
42 export type WsOptions
= ClientOptions
& ClientRequestArgs
44 export interface FirmwareUpgrade
{
50 failureStatus
?: FirmwareStatus
53 interface 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 interface ChargingStationTemplate
{
69 supervisionUrls
?: string | string[]
70 supervisionUrlOcppConfiguration
?: boolean
71 supervisionUrlOcppKey
?: string
72 supervisionUser
?: string
73 supervisionPassword
?: string
75 ocppVersion
?: OCPPVersion
76 ocppProtocol
?: OCPPProtocol
77 ocppStrictCompliance
?: boolean
78 ocppPersistentConfiguration
?: boolean
79 stationInfoPersistentConfiguration
?: boolean
80 automaticTransactionGeneratorPersistentConfiguration
?: boolean
86 chargePointModel
: string
87 chargePointVendor
: string
88 chargePointSerialNumberPrefix
?: string
89 chargeBoxSerialNumberPrefix
?: string
90 firmwareVersionPattern
?: string
91 firmwareVersion
?: string
92 firmwareUpgrade
?: FirmwareUpgrade
95 meterSerialNumberPrefix
?: string
97 power
?: number | number[]
98 powerUnit
?: PowerUnits
99 powerSharedByConnectors
?: boolean
100 currentOutType
?: CurrentType
102 numberOfPhases
?: number
103 numberOfConnectors
?: number | number[]
104 useConnectorId0
?: boolean
105 randomConnectors
?: boolean
107 autoRegister
?: boolean
108 autoReconnectMaxRetries
?: number
109 reconnectExponentialDelay
?: boolean
110 registrationMaxRetries
?: number
111 enableStatistics
?: boolean
112 remoteAuthorization
?: boolean
113 /** @deprecated Replaced by remoteAuthorization */
114 mustAuthorizeAtRemoteStart
?: boolean
115 /** @deprecated Replaced by ocppStrictCompliance */
116 payloadSchemaValidation
?: boolean
117 amperageLimitationOcppKey
?: string
118 amperageLimitationUnit
?: AmpereUnits
119 beginEndMeterValues
?: boolean
120 outOfOrderEndMeterValues
?: boolean
121 meteringPerTransaction
?: boolean
122 transactionDataMeterValues
?: boolean
123 stopTransactionsOnStopped
?: boolean
124 mainVoltageMeterValues
?: boolean
125 phaseLineToLineVoltageMeterValues
?: boolean
126 customValueLimitationMeterValues
?: boolean
127 commandsSupport
?: CommandsSupport
128 messageTriggerSupport
?: Record
<MessageTrigger
, boolean>
129 Configuration
?: ChargingStationOcppConfiguration
130 AutomaticTransactionGenerator
?: AutomaticTransactionGeneratorConfiguration
131 Evses
?: Record
<string, EvseTemplate
>
132 Connectors
?: Record
<string, ConnectorStatus
>
133 x509Certificates
?: Record
<x509CertificateType
, string>