Refine TS and linter configuration
[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
JB
7
8export type StandardParametersKey = OCPP16StandardParametersKey;
9
10export const StandardParametersKey = {
e7aeea18 11 ...OCPP16StandardParametersKey,
c0560973 12};
f7a1d1a9 13
12fc74d6
JB
14export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
15
16export const VendorDefaultParametersKey = {
e7aeea18 17 ...OCPP16VendorDefaultParametersKey,
12fc74d6
JB
18};
19
7e1dc878
JB
20export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
21
22export const SupportedFeatureProfiles = {
e7aeea18 23 ...OCPP16SupportedFeatureProfiles,
7e1dc878
JB
24};
25
26export enum ConnectorPhaseRotation {
27 NotApplicable = 'NotApplicable',
28 Unknown = 'Unknown',
29 RST = 'RST',
30 RTS = 'RTS',
31 SRT = 'SRT',
32 STR = 'STR',
33 TRS = 'TRS',
e7aeea18 34 TSR = 'TSR',
7e1dc878
JB
35}
36
e3822d6f 37export interface OCPPConfigurationKey extends JsonObject {
f7a1d1a9
JB
38 key: string | StandardParametersKey;
39 readonly: boolean;
40 value?: string;
41}