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