refactor: refine type definitions
[e-mobility-charging-stations-simulator.git] / ui / web / src / types / ConfigurationType.ts
1 import type { AuthenticationType, Protocol, ProtocolVersion } from './UIProtocol'
2
3 export interface ConfigurationData {
4 uiServer: UIServerConfigurationSection | UIServerConfigurationSection[]
5 }
6
7 export interface UIServerConfigurationSection {
8 name?: string
9 host: string
10 port: number
11 secure?: boolean
12 protocol: Protocol
13 version: ProtocolVersion
14 authentication?: {
15 enabled: boolean
16 type: AuthenticationType
17 username?: string
18 password?: string
19 }
20 }