Hook the OCPP 2.0 stack into the main code
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
CommitLineData
6c1761d4 1import type { JsonObject } from '../JsonType';
e7aeea18
JB
2import {
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorDefaultParametersKey,
6} from './1.6/Configuration';
c0560973 7
c0560973 8export const StandardParametersKey = {
e7aeea18 9 ...OCPP16StandardParametersKey,
edd13439
JB
10} as const;
11export type StandardParametersKey = OCPP16StandardParametersKey;
12fc74d6
JB
12
13export const VendorDefaultParametersKey = {
e7aeea18 14 ...OCPP16VendorDefaultParametersKey,
edd13439
JB
15} as const;
16export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
7e1dc878
JB
17
18export const SupportedFeatureProfiles = {
e7aeea18 19 ...OCPP16SupportedFeatureProfiles,
edd13439
JB
20} as const;
21export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
7e1dc878
JB
22
23export enum ConnectorPhaseRotation {
24 NotApplicable = 'NotApplicable',
25 Unknown = 'Unknown',
26 RST = 'RST',
27 RTS = 'RTS',
28 SRT = 'SRT',
29 STR = 'STR',
30 TRS = 'TRS',
e7aeea18 31 TSR = 'TSR',
7e1dc878
JB
32}
33
e3822d6f 34export interface OCPPConfigurationKey extends JsonObject {
f7a1d1a9
JB
35 key: string | StandardParametersKey;
36 readonly: boolean;
37 value?: string;
38}