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