Apply dependencies update
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Configuration.ts
index f60c4f1c06712188ffdcc8bff47dc801e6c3a19f..c094aab3e761dfaf7cc152c9a267c424a70aa8f3 100644 (file)
@@ -1,27 +1,24 @@
-import type { JsonObject } from '../JsonType';
 import {
   OCPP16StandardParametersKey,
   OCPP16SupportedFeatureProfiles,
   OCPP16VendorDefaultParametersKey,
 } from './1.6/Configuration';
-
-export type StandardParametersKey = OCPP16StandardParametersKey;
+import type { JsonObject } from '../JsonType';
 
 export const StandardParametersKey = {
   ...OCPP16StandardParametersKey,
-};
-
-export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
+} as const;
+export type StandardParametersKey = OCPP16StandardParametersKey;
 
 export const VendorDefaultParametersKey = {
   ...OCPP16VendorDefaultParametersKey,
-};
-
-export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
+} as const;
+export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;
 
 export const SupportedFeatureProfiles = {
   ...OCPP16SupportedFeatureProfiles,
-};
+} as const;
+export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles;
 
 export enum ConnectorPhaseRotation {
   NotApplicable = 'NotApplicable',
@@ -34,8 +31,8 @@ export enum ConnectorPhaseRotation {
   TSR = 'TSR',
 }
 
-export interface OCPPConfigurationKey extends JsonObject {
+export type OCPPConfigurationKey = {
   key: string | StandardParametersKey;
   readonly: boolean;
   value?: string;
-}
+} & JsonObject;