X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=622b125974d951531012740a719935a5ec1e9815;hb=129fdda549b8c7dc7c43ec5893d14a1151ed61a9;hp=41d45e4a3ee71639fbc0975e804dc64e59e196b0;hpb=e1d9a0f4d6ff1a90048e9a694fd12b7031cc6961;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 41d45e4a..622b1259 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -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;