build: bump volta pnpm version
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index 41d45e4a3ee71639fbc0975e804dc64e59e196b0..622b125974d951531012740a719935a5ec1e9815 100644 (file)
@@ -8,6 +8,13 @@ import type { WorkerProcessType } from '../worker';
 
 type ServerOptions = ListenOptions;
 
+export enum ConfigurationSection {
+  log = 'log',
+  performanceStorage = 'performanceStorage',
+  worker = 'worker',
+  uiServer = 'uiServer',
+}
+
 export enum SupervisionUrlDistribution {
   ROUND_ROBIN = 'round-robin',
   RANDOM = 'random',
@@ -32,9 +39,15 @@ export interface LogConfiguration {
   maxSize?: string | number;
 }
 
+export enum ApplicationProtocolVersion {
+  VERSION_11 = 1.1,
+  VERSION_20 = 2.0,
+}
+
 export interface UIServerConfiguration {
   enabled?: boolean;
   type?: ApplicationProtocol;
+  version?: ApplicationProtocolVersion;
   options?: ServerOptions;
   authentication?: {
     enabled: boolean;
@@ -69,6 +82,7 @@ export interface ConfigurationData {
   worker?: WorkerConfiguration;
   uiServer?: UIServerConfiguration;
   performanceStorage?: StorageConfiguration;
+  /** @deprecated Moved to charging station template */
   autoReconnectMaxRetries?: number;
   /** @deprecated Moved to worker configuration section. */
   workerProcess?: WorkerProcessType;