1 import ChargingStationOcppConfiguration from
'./ChargingStationOcppConfiguration';
2 import { ClientOptions
} from
'ws';
3 import { ClientRequestArgs
} from
'http';
4 import { ConnectorStatus
} from
'./ConnectorStatus';
5 import { OCPPProtocol
} from
'./ocpp/OCPPProtocol';
6 import { OCPPVersion
} from
'./ocpp/OCPPVersion';
8 export enum CurrentType
{
13 export enum PowerUnits
{
25 export interface AutomaticTransactionGenerator
{
29 minDelayBetweenTwoTransactions
: number;
30 maxDelayBetweenTwoTransactions
: number;
31 probabilityOfStart
: number;
32 stopAfterHours
: number;
33 stopOnConnectionFailure
: boolean;
34 requireAuthorize
?: boolean;
37 export type WsOptions
= ClientOptions
& ClientRequestArgs
;
39 export default interface ChargingStationTemplate
{
41 supervisionUrls
?: string | string[];
42 supervisionUrlOcppConfiguration
?: boolean;
43 supervisionUrlOcppKey
?: string;
44 supervisionUser
?: string;
45 supervisionPassword
?: string;
46 ocppVersion
?: OCPPVersion
;
47 ocppProtocol
?: OCPPProtocol
;
48 ocppStrictCompliance
?: boolean;
49 ocppPersistentConfiguration
?: boolean;
50 wsOptions
?: WsOptions
;
51 authorizationFile
?: string;
55 chargePointModel
: string;
56 chargePointVendor
: string;
57 chargePointSerialNumberPrefix
?: string;
58 chargeBoxSerialNumberPrefix
?: string;
59 firmwareVersion
?: string;
62 meterSerialNumber
?: string;
64 power
: number | number[];
65 powerSharedByConnectors
?: boolean;
66 powerUnit
: PowerUnits
;
67 currentOutType
?: CurrentType
;
69 numberOfPhases
?: number;
70 numberOfConnectors
?: number | number[];
71 useConnectorId0
?: boolean;
72 randomConnectors
?: boolean;
74 autoRegister
: boolean;
75 autoReconnectMaxRetries
?: number;
76 reconnectExponentialDelay
?: boolean;
77 registrationMaxRetries
?: number;
78 enableStatistics
?: boolean;
79 mayAuthorizeAtRemoteStart
: boolean;
80 beginEndMeterValues
?: boolean;
81 outOfOrderEndMeterValues
?: boolean;
82 meteringPerTransaction
?: boolean;
83 transactionDataMeterValues
?: boolean;
84 mainVoltageMeterValues
?: boolean;
85 phaseLineToLineVoltageMeterValues
?: boolean;
86 Configuration
?: ChargingStationOcppConfiguration
;
87 AutomaticTransactionGenerator
: AutomaticTransactionGenerator
;
88 Connectors
: Record
<string, ConnectorStatus
>;