feat(ui): prefer arrow functions
[e-mobility-charging-stations-simulator.git] / ui / web / src / types / ConfigurationType.ts
index cfdbf34a319dcc4b55a87067985dee66af44d561..93cfe86ef56fde162a89a78c065b2f5d00e44c2c 100644 (file)
@@ -1,3 +1,5 @@
+import type { AuthenticationType, Protocol, ProtocolVersion } from './UIProtocol'
+
 export type ConfigurationData = {
   uiServer: UIServerConfigurationSection
 }
@@ -5,7 +7,13 @@ export type ConfigurationData = {
 type UIServerConfigurationSection = {
   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
+  }
 }