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