X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Ftypes%2FConfigurationType.ts;h=18ea267a5e16052c1e58ff4afd9ee5d5c826ba46;hb=1fa3425af7b41fd728168fae1cef29d603767609;hp=3753d58475ee9d165be6640a5fbc329fbe20a632;hpb=68220b423c52da387fdf41967dd8c738da0ff52e;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/types/ConfigurationType.ts b/ui/web/src/types/ConfigurationType.ts index 3753d584..18ea267a 100644 --- a/ui/web/src/types/ConfigurationType.ts +++ b/ui/web/src/types/ConfigurationType.ts @@ -1,11 +1,20 @@ -export type BaseConfig = { - uiServer: UIServerConfig +import type { AuthenticationType, Protocol, ProtocolVersion } from './UIProtocol' + +export type ConfigurationData = { + uiServer: UIServerConfigurationSection | UIServerConfigurationSection[] } -type UIServerConfig = { +export type 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 + } }