39739a8fffcd7802fe838d7529929738d7406fdb
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
1 import {
2 type JsonObject,
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorParametersKey,
6 OCPP20OptionalVariableName,
7 OCPP20RequiredVariableName,
8 OCPP20VendorVariableName,
9 } from '../internal';
10
11 export const StandardParametersKey = {
12 ...OCPP16StandardParametersKey,
13 ...OCPP20RequiredVariableName,
14 ...OCPP20OptionalVariableName,
15 } as const;
16 export type StandardParametersKey = OCPP16StandardParametersKey;
17
18 export const VendorParametersKey = {
19 ...OCPP16VendorParametersKey,
20 ...OCPP20VendorVariableName,
21 } as const;
22 export type VendorParametersKey = OCPP16VendorParametersKey;
23
24 export const SupportedFeatureProfiles = {
25 ...OCPP16SupportedFeatureProfiles,
26 } as const;
27 export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
28
29 export 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
40 export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey;
41
42 export type OCPPConfigurationKey = {
43 key: ConfigurationKeyType;
44 readonly: boolean;
45 value?: string;
46 } & JsonObject;