Fix build due to winston types definition
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
CommitLineData
6a49ad23 1import { ServerOptions } from 'ws';
72f041bd 2import { StorageType } from './Storage';
9efbac5b 3import type { WorkerChoiceStrategy } from 'poolifier';
a4624c96 4import { WorkerProcessType } from './Worker';
b35c4a05 5import { level } from 'winston';
a4624c96 6
1f5df42a 7export interface StationTemplateUrl {
e118beaa
JB
8 file: string;
9 numberOfStations: number;
10}
11
6a49ad23
JB
12export interface UIWebSocketServerConfiguration {
13 enabled?: boolean;
14 options?: ServerOptions;
15}
16
72f041bd
JB
17export interface StorageConfiguration {
18 enabled?: boolean;
19 type?: StorageType;
1f5df42a 20 uri?: string;
72f041bd
JB
21}
22
e118beaa 23export default interface ConfigurationData {
1f5df42a
JB
24 supervisionUrls?: string[];
25 stationTemplateUrls: StationTemplateUrl[];
6a49ad23 26 uiWebSocketServer?: UIWebSocketServerConfiguration;
72f041bd 27 performanceStorage?: StorageConfiguration;
e118beaa 28 autoReconnectMaxRetries?: number;
524d9cb3 29 distributeStationsToTenantsEqually?: boolean;
a4624c96 30 workerProcess?: WorkerProcessType;
322c9192 31 workerStartDelay?: number;
a4624c96 32 workerPoolMinSize?: number;
4fa59b8a 33 workerPoolMaxSize?: number;
9efbac5b 34 workerPoolStrategy?: WorkerChoiceStrategy;
5fdab605 35 chargingStationsPerWorker?: number;
72f041bd 36 logStatisticsInterval?: number;
e118beaa 37 logFormat?: string;
b35c4a05 38 logLevel?: level;
6bf6769e
JB
39 logRotate?: boolean;
40 logMaxFiles?: number;
e118beaa 41 logFile?: string;
7ec46a9a
JB
42 logErrorFile?: string;
43 logConsole?: boolean;
e118beaa 44}