X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Ftypes%2FConfigurationType.ts;h=1c8de85bc20c623f1656104b01bebf1397f22407;hb=276e05aec38f4e8b4a8d5ebd8cbbcb30592b414d;hp=9b74808278eca7e1ed1cb37cba3d967b50115c52;hpb=ebbfbf1c01e010d051956867484b74a94237f546;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/types/ConfigurationType.ts b/ui/web/src/types/ConfigurationType.ts index 9b748082..1c8de85b 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' -type UIServerConfig = { - host: string; - port: number; - protocol: string; - username?: string; - password?: string; -}; +export interface ConfigurationData { + uiServer: UIServerConfigurationSection | UIServerConfigurationSection[] +} + +export interface UIServerConfigurationSection { + name?: string + host: string + port: number + secure?: boolean + protocol: Protocol + version: ProtocolVersion + authentication?: { + enabled: boolean + type: AuthenticationType + username?: string + password?: string + } +}