1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/interfaces/uiConfig.ts
olav dfe8250c26 refactor: port UserProfile to TS/SWR (#665)
* refactor: add missing @types/react-outside-click-handler

* refactor: add missing disablePasswordAuth IUiConfig field

* refactor: replace NBSPs with regular spaces

* refactor: port UserProfile to TS/SWR

* refactor: fix interface type prefix

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-02-04 12:41:59 +01:00

38 lines
665 B
TypeScript

export interface IUiConfig {
authenticationType: string;
baseUriPath: string;
flags: IFlags;
name: string;
slogan: string;
unleashUrl: string;
version: string;
versionInfo: IVersionInfo;
links: ILinks[];
disablePasswordAuth?: boolean;
}
export interface IFlags {
C: boolean;
P: boolean;
E: boolean;
}
export interface IVersionInfo {
instanceId: string;
isLatest: boolean;
latest: Partial<IVersion>;
current: IVersion;
}
export interface IVersion {
oss: string;
enterprise: string;
}
export interface ILinks {
value: string;
icon: string;
href: string;
title: string;
}