Introduce JSON type and use it for OCPP and internal message structure
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
CommitLineData
12fc74d6 1import { OCPP16StandardParametersKey, OCPP16SupportedFeatureProfiles, OCPP16VendorDefaultParametersKey } from './1.6/Configuration';
c0560973 2
c3ee95af
JB
3import { JsonType } from '../JsonType';
4
c0560973
JB
5export type StandardParametersKey = OCPP16StandardParametersKey;
6
7export const StandardParametersKey = {
8 ...OCPP16StandardParametersKey
9};
f7a1d1a9 10
12fc74d6
JB
11export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
12
13export const VendorDefaultParametersKey = {
14 ...OCPP16VendorDefaultParametersKey
15};
16
7e1dc878
JB
17export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
18
19export const SupportedFeatureProfiles = {
20 ...OCPP16SupportedFeatureProfiles
21};
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',
31 TSR = 'TSR'
32}
33
c3ee95af 34export interface OCPPConfigurationKey extends JsonType {
f7a1d1a9
JB
35 key: string | StandardParametersKey;
36 readonly: boolean;
37 value?: string;
38}