X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FConfigurationData.ts;h=10f2565a81f52a5b874c3331771cdd110c83a7f9;hb=057e2042576fb5f4dd4c201f1bd0f64c35ccf961;hp=1a2dd165113188d52690eafb4ed5d4f64da553d5;hpb=72f041bd50fc25ca5d233565cbc0ea836220ec0f;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 1a2dd165..10f2565a 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -1,21 +1,28 @@ +import { ServerOptions } from 'ws'; import { StorageType } from './Storage'; import type { WorkerChoiceStrategy } from 'poolifier'; import { WorkerProcessType } from './Worker'; -export interface StationTemplateURL { +export interface StationTemplateUrl { file: string; numberOfStations: number; } +export interface UIWebSocketServerConfiguration { + enabled?: boolean; + options?: ServerOptions; +} + export interface StorageConfiguration { enabled?: boolean; type?: StorageType; - URI?: string; + uri?: string; } export default interface ConfigurationData { - supervisionURLs?: string[]; - stationTemplateURLs: StationTemplateURL[]; + supervisionUrls?: string[]; + stationTemplateUrls: StationTemplateUrl[]; + uiWebSocketServer?: UIWebSocketServerConfiguration; performanceStorage?: StorageConfiguration; autoReconnectMaxRetries?: number; distributeStationsToTenantsEqually?: boolean;