refactor: factor out change availability helper
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
CommitLineData
e7aeea18
JB
1import {
2 OCPP16StandardParametersKey,
3 OCPP16SupportedFeatureProfiles,
6dad8e21 4 OCPP16VendorParametersKey,
69074173
JB
5} from './1.6/Configuration';
6import {
857d8dd9
JB
7 OCPP20OptionalVariableName,
8 OCPP20RequiredVariableName,
9 OCPP20VendorVariableName,
69074173
JB
10} from './2.0/Variables';
11import type { JsonObject } from '../JsonType';
c0560973 12
c0560973 13export const StandardParametersKey = {
e7aeea18 14 ...OCPP16StandardParametersKey,
857d8dd9
JB
15 ...OCPP20RequiredVariableName,
16 ...OCPP20OptionalVariableName,
edd13439
JB
17} as const;
18export type StandardParametersKey = OCPP16StandardParametersKey;
12fc74d6 19
6dad8e21
JB
20export const VendorParametersKey = {
21 ...OCPP16VendorParametersKey,
857d8dd9 22 ...OCPP20VendorVariableName,
edd13439 23} as const;
6dad8e21 24export type VendorParametersKey = OCPP16VendorParametersKey;
7e1dc878
JB
25
26export const SupportedFeatureProfiles = {
e7aeea18 27 ...OCPP16SupportedFeatureProfiles,
edd13439
JB
28} as const;
29export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
7e1dc878
JB
30
31export enum ConnectorPhaseRotation {
32 NotApplicable = 'NotApplicable',
33 Unknown = 'Unknown',
34 RST = 'RST',
35 RTS = 'RTS',
36 SRT = 'SRT',
37 STR = 'STR',
38 TRS = 'TRS',
e7aeea18 39 TSR = 'TSR',
7e1dc878
JB
40}
41
6dad8e21
JB
42export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey;
43
6415403c 44export type OCPPConfigurationKey = {
6dad8e21 45 key: ConfigurationKeyType;
f7a1d1a9
JB
46 readonly: boolean;
47 value?: string;
6415403c 48} & JsonObject;