build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
... / ...
CommitLineData
1import type { JsonObject } from '../JsonType.js'
2import {
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorParametersKey
6} from './1.6/Configuration.js'
7import {
8 OCPP20OptionalVariableName,
9 OCPP20RequiredVariableName,
10 OCPP20VendorVariableName
11} from './2.0/Variables.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 interface OCPPConfigurationKey extends JsonObject {
48 key: ConfigurationKeyType
49 readonly: boolean
50 value?: string
51}