Type alias for OCPP stack response and error handling
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
... / ...
CommitLineData
1import type { JsonObject } from '../JsonType';
2import {
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorDefaultParametersKey,
6} from './1.6/Configuration';
7
8export type StandardParametersKey = OCPP16StandardParametersKey;
9
10export const StandardParametersKey = {
11 ...OCPP16StandardParametersKey,
12};
13
14export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
15
16export const VendorDefaultParametersKey = {
17 ...OCPP16VendorDefaultParametersKey,
18};
19
20export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
21
22export const SupportedFeatureProfiles = {
23 ...OCPP16SupportedFeatureProfiles,
24};
25
26export enum ConnectorPhaseRotation {
27 NotApplicable = 'NotApplicable',
28 Unknown = 'Unknown',
29 RST = 'RST',
30 RTS = 'RTS',
31 SRT = 'SRT',
32 STR = 'STR',
33 TRS = 'TRS',
34 TSR = 'TSR',
35}
36
37export interface OCPPConfigurationKey extends JsonObject {
38 key: string | StandardParametersKey;
39 readonly: boolean;
40 value?: string;
41}