Commit | Line | Data |
---|---|---|
e7aeea18 JB |
1 | import { |
2 | OCPP16StandardParametersKey, | |
3 | OCPP16SupportedFeatureProfiles, | |
6dad8e21 | 4 | OCPP16VendorParametersKey, |
69074173 JB |
5 | } from './1.6/Configuration'; |
6 | import { | |
857d8dd9 JB |
7 | OCPP20OptionalVariableName, |
8 | OCPP20RequiredVariableName, | |
9 | OCPP20VendorVariableName, | |
69074173 JB |
10 | } from './2.0/Variables'; |
11 | import type { JsonObject } from '../JsonType'; | |
c0560973 | 12 | |
c0560973 | 13 | export const StandardParametersKey = { |
e7aeea18 | 14 | ...OCPP16StandardParametersKey, |
857d8dd9 JB |
15 | ...OCPP20RequiredVariableName, |
16 | ...OCPP20OptionalVariableName, | |
edd13439 JB |
17 | } as const; |
18 | export type StandardParametersKey = OCPP16StandardParametersKey; | |
12fc74d6 | 19 | |
6dad8e21 JB |
20 | export const VendorParametersKey = { |
21 | ...OCPP16VendorParametersKey, | |
857d8dd9 | 22 | ...OCPP20VendorVariableName, |
edd13439 | 23 | } as const; |
6dad8e21 | 24 | export type VendorParametersKey = OCPP16VendorParametersKey; |
7e1dc878 JB |
25 | |
26 | export const SupportedFeatureProfiles = { | |
e7aeea18 | 27 | ...OCPP16SupportedFeatureProfiles, |
edd13439 JB |
28 | } as const; |
29 | export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles; | |
7e1dc878 JB |
30 | |
31 | export 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 |
42 | export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey; |
43 | ||
6415403c | 44 | export type OCPPConfigurationKey = { |
6dad8e21 | 45 | key: ConfigurationKeyType; |
f7a1d1a9 JB |
46 | readonly: boolean; |
47 | value?: string; | |
6415403c | 48 | } & JsonObject; |