feat!: handle Set at JSON serialization to string
[e-mobility-charging-stations-simulator.git] / ui / web / src / types / ConfigurationType.ts
index cfdbf34a319dcc4b55a87067985dee66af44d561..1c8de85bc20c623f1656104b01bebf1397f22407 100644 (file)
@@ -1,11 +1,20 @@
-export type ConfigurationData = {
-  uiServer: UIServerConfigurationSection
+import type { AuthenticationType, Protocol, ProtocolVersion } from './UIProtocol'
+
+export interface ConfigurationData {
+  uiServer: UIServerConfigurationSection | UIServerConfigurationSection[]
 }
 
-type UIServerConfigurationSection = {
+export interface UIServerConfigurationSection {
+  name?: string
   host: string
   port: number
-  protocol: string
-  username?: string
-  password?: string
+  secure?: boolean
+  protocol: Protocol
+  version: ProtocolVersion
+  authentication?: {
+    enabled: boolean
+    type: AuthenticationType
+    username?: string
+    password?: string
+  }
 }