Hook the OCPP 2.0 stack into the main code
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
1 import type { JsonObject } from '../JsonType';
2 import {
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorDefaultParametersKey,
6 } from './1.6/Configuration';
7
8 export const StandardParametersKey = {
9 ...OCPP16StandardParametersKey,
10 } as const;
11 export type StandardParametersKey = OCPP16StandardParametersKey;
12
13 export const VendorDefaultParametersKey = {
14 ...OCPP16VendorDefaultParametersKey,
15 } as const;
16 export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
17
18 export const SupportedFeatureProfiles = {
19 ...OCPP16SupportedFeatureProfiles,
20 } as const;
21 export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
22
23 export 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
34 export interface OCPPConfigurationKey extends JsonObject {
35 key: string | StandardParametersKey;
36 readonly: boolean;
37 value?: string;
38 }