fix: ensure charging station uid is stable between firmware update
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
... / ...
CommitLineData
1import {
2 type JsonObject,
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorParametersKey,
6 OCPP20OptionalVariableName,
7 OCPP20RequiredVariableName,
8 OCPP20VendorVariableName,
9} from '../internal';
10
11export const StandardParametersKey = {
12 ...OCPP16StandardParametersKey,
13 ...OCPP20RequiredVariableName,
14 ...OCPP20OptionalVariableName,
15} as const;
16export type StandardParametersKey = OCPP16StandardParametersKey;
17
18export const VendorParametersKey = {
19 ...OCPP16VendorParametersKey,
20 ...OCPP20VendorVariableName,
21} as const;
22export type VendorParametersKey = OCPP16VendorParametersKey;
23
24export const SupportedFeatureProfiles = {
25 ...OCPP16SupportedFeatureProfiles,
26} as const;
27export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
28
29export enum ConnectorPhaseRotation {
30 NotApplicable = 'NotApplicable',
31 Unknown = 'Unknown',
32 RST = 'RST',
33 RTS = 'RTS',
34 SRT = 'SRT',
35 STR = 'STR',
36 TRS = 'TRS',
37 TSR = 'TSR',
38}
39
40export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey;
41
42export type OCPPConfigurationKey = {
43 key: ConfigurationKeyType;
44 readonly: boolean;
45 value?: string;
46} & JsonObject;