refactor(simulator): switch to internal modules export/import design
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
1 import {
2 type JsonObject,
3 OCPP16StandardParametersKey,
4 OCPP16SupportedFeatureProfiles,
5 OCPP16VendorDefaultParametersKey,
6 OCPP20OptionalVariableName,
7 OCPP20RequiredVariableName,
8 OCPP20VendorVariableName,
9 } from '../internal';
10
11 export const StandardParametersKey = {
12 ...OCPP16StandardParametersKey,
13 ...OCPP20RequiredVariableName,
14 ...OCPP20OptionalVariableName,
15 } as const;
16 export type StandardParametersKey = OCPP16StandardParametersKey;
17
18 export const VendorDefaultParametersKey = {
19 ...OCPP16VendorDefaultParametersKey,
20 ...OCPP20VendorVariableName,
21 } as const;
22 export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
23
24 export const SupportedFeatureProfiles = {
25 ...OCPP16SupportedFeatureProfiles,
26 } as const;
27 export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
28
29 export enum ConnectorPhaseRotation {
30 NotApplicable = 'NotApplicable',
31 Unknown = 'Unknown',
32 RST = 'RST',
33 RTS = 'RTS',
34 SRT = 'SRT',
35 STR = 'STR',
36 TRS = 'TRS',
37 TSR = 'TSR',
38 }
39
40 export type OCPPConfigurationKey = {
41 key: string | StandardParametersKey;
42 readonly: boolean;
43 value?: string;
44 } & JsonObject;