Merge dependabot/npm_and_yarn/ui/web/jsdom-23.1.0 into combined-prs-branch
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
... / ...
CommitLineData
1import {
2 OCPP16StandardParametersKey,
3 OCPP16SupportedFeatureProfiles,
4 OCPP16VendorParametersKey
5} from './1.6/Configuration.js'
6import {
7 OCPP20OptionalVariableName,
8 OCPP20RequiredVariableName,
9 OCPP20VendorVariableName
10} from './2.0/Variables.js'
11import type { JsonObject } from '../JsonType.js'
12
13export const StandardParametersKey = {
14 ...OCPP16StandardParametersKey,
15 ...OCPP20RequiredVariableName,
16 ...OCPP20OptionalVariableName
17} as const
18// eslint-disable-next-line @typescript-eslint/no-redeclare
19export type StandardParametersKey = OCPP16StandardParametersKey
20
21export const VendorParametersKey = {
22 ...OCPP16VendorParametersKey,
23 ...OCPP20VendorVariableName
24} as const
25// eslint-disable-next-line @typescript-eslint/no-redeclare
26export type VendorParametersKey = OCPP16VendorParametersKey
27
28export const SupportedFeatureProfiles = {
29 ...OCPP16SupportedFeatureProfiles
30} as const
31// eslint-disable-next-line @typescript-eslint/no-redeclare
32export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles
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',
42 TSR = 'TSR',
43}
44
45export type ConfigurationKeyType = string | StandardParametersKey | VendorParametersKey
46
47export type OCPPConfigurationKey = {
48 key: ConfigurationKeyType
49 readonly: boolean
50 value?: string
51} & JsonObject