Commit | Line | Data |
---|---|---|
e7aeea18 JB |
1 | import { |
2 | OCPP16StandardParametersKey, | |
3 | OCPP16SupportedFeatureProfiles, | |
66a7748d JB |
4 | OCPP16VendorParametersKey |
5 | } from './1.6/Configuration.js' | |
69074173 | 6 | import { |
857d8dd9 JB |
7 | OCPP20OptionalVariableName, |
8 | OCPP20RequiredVariableName, | |
66a7748d JB |
9 | OCPP20VendorVariableName |
10 | } from './2.0/Variables.js' | |
11 | import type { JsonObject } from '../JsonType.js' | |
c0560973 | 12 | |
c0560973 | 13 | export const StandardParametersKey = { |
e7aeea18 | 14 | ...OCPP16StandardParametersKey, |
857d8dd9 | 15 | ...OCPP20RequiredVariableName, |
66a7748d JB |
16 | ...OCPP20OptionalVariableName |
17 | } as const | |
18 | // eslint-disable-next-line @typescript-eslint/no-redeclare | |
19 | export type StandardParametersKey = OCPP16StandardParametersKey | |
12fc74d6 | 20 | |
6dad8e21 JB |
21 | export const VendorParametersKey = { |
22 | ...OCPP16VendorParametersKey, | |
66a7748d JB |
23 | ...OCPP20VendorVariableName |
24 | } as const | |
25 | // eslint-disable-next-line @typescript-eslint/no-redeclare | |
26 | export type VendorParametersKey = OCPP16VendorParametersKey | |
7e1dc878 JB |
27 | |
28 | export const SupportedFeatureProfiles = { | |
66a7748d JB |
29 | ...OCPP16SupportedFeatureProfiles |
30 | } as const | |
31 | // eslint-disable-next-line @typescript-eslint/no-redeclare | |
32 | export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles | |
7e1dc878 JB |
33 | |
34 | export enum ConnectorPhaseRotation { | |
35 | NotApplicable = 'NotApplicable', | |
36 | Unknown = 'Unknown', | |
37 | RST = 'RST', | |
38 | RTS = 'RTS', | |
39 | SRT = 'SRT', | |
40 | STR = 'STR', | |
41 | TRS = 'TRS', | |
a807045b | 42 | TSR = 'TSR', |
7e1dc878 JB |
43 | } |
44 | ||
66a7748d | 45 | export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey |
6dad8e21 | 46 | |
6415403c | 47 | export type OCPPConfigurationKey = { |
66a7748d JB |
48 | key: ConfigurationKeyType |
49 | readonly: boolean | |
50 | value?: string | |
51 | } & JsonObject |