refactor: cleanup reservation handling code
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index 58372a3882a5cb064ae7df9c20748c0693ce18e9..a23940cf330295cb609f28b7a3439ee05e26f6f6 100644 (file)
@@ -1,12 +1,12 @@
-import type { ListenOptions } from 'net';
+import type { ListenOptions } from 'node:net';
 
 import type { WorkerChoiceStrategy } from 'poolifier';
 
 import type { StorageType } from './Storage';
 import type { ApplicationProtocol, AuthenticationType } from './UIProtocol';
-import type { WorkerProcessType } from './Worker';
+import type { WorkerProcessType } from '../worker';
 
-export type ServerOptions = ListenOptions;
+type ServerOptions = ListenOptions;
 
 export enum SupervisionUrlDistribution {
   ROUND_ROBIN = 'round-robin',
@@ -55,26 +55,28 @@ export type ConfigurationData = {
   performanceStorage?: StorageConfiguration;
   worker?: WorkerConfiguration;
   autoReconnectMaxRetries?: number;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   workerProcess?: WorkerProcessType;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   workerStartDelay?: number;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   elementStartDelay?: number;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   workerPoolMinSize?: number;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   workerPoolMaxSize?: number;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   workerPoolStrategy?: WorkerChoiceStrategy;
-  // deprecated
+  /** @deprecated Moved to worker configuration section. */
   chargingStationsPerWorker?: number;
   logStatisticsInterval?: number;
+  logEnabled?: boolean;
+  logConsole?: boolean;
   logFormat?: string;
   logLevel?: string;
   logRotate?: boolean;
-  logMaxFiles?: number;
+  logMaxFiles?: number | string;
+  logMaxSize?: number | string;
   logFile?: string;
   logErrorFile?: string;
-  logConsole?: boolean;
 };