Commit | Line | Data |
---|---|---|
e7aeea18 | 1 | import { |
2896e06d | 2 | type JsonObject, |
e7aeea18 JB |
3 | OCPP16StandardParametersKey, |
4 | OCPP16SupportedFeatureProfiles, | |
6dad8e21 | 5 | OCPP16VendorParametersKey, |
857d8dd9 JB |
6 | OCPP20OptionalVariableName, |
7 | OCPP20RequiredVariableName, | |
8 | OCPP20VendorVariableName, | |
2896e06d | 9 | } from '../internal'; |
c0560973 | 10 | |
c0560973 | 11 | export const StandardParametersKey = { |
e7aeea18 | 12 | ...OCPP16StandardParametersKey, |
857d8dd9 JB |
13 | ...OCPP20RequiredVariableName, |
14 | ...OCPP20OptionalVariableName, | |
edd13439 JB |
15 | } as const; |
16 | export type StandardParametersKey = OCPP16StandardParametersKey; | |
12fc74d6 | 17 | |
6dad8e21 JB |
18 | export const VendorParametersKey = { |
19 | ...OCPP16VendorParametersKey, | |
857d8dd9 | 20 | ...OCPP20VendorVariableName, |
edd13439 | 21 | } as const; |
6dad8e21 | 22 | export type VendorParametersKey = OCPP16VendorParametersKey; |
7e1dc878 JB |
23 | |
24 | export const SupportedFeatureProfiles = { | |
e7aeea18 | 25 | ...OCPP16SupportedFeatureProfiles, |
edd13439 JB |
26 | } as const; |
27 | export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles; | |
7e1dc878 JB |
28 | |
29 | export enum ConnectorPhaseRotation { | |
30 | NotApplicable = 'NotApplicable', | |
31 | Unknown = 'Unknown', | |
32 | RST = 'RST', | |
33 | RTS = 'RTS', | |
34 | SRT = 'SRT', | |
35 | STR = 'STR', | |
36 | TRS = 'TRS', | |
e7aeea18 | 37 | TSR = 'TSR', |
7e1dc878 JB |
38 | } |
39 | ||
6dad8e21 JB |
40 | export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey; |
41 | ||
6415403c | 42 | export type OCPPConfigurationKey = { |
6dad8e21 | 43 | key: ConfigurationKeyType; |
f7a1d1a9 JB |
44 | readonly: boolean; |
45 | value?: string; | |
6415403c | 46 | } & JsonObject; |