2022-06-02 10:58:55 +02:00
|
|
|
import { ReactNode } from 'react';
|
|
|
|
|
2021-07-16 15:41:54 +02:00
|
|
|
export interface IUiConfig {
|
2022-06-02 10:58:55 +02:00
|
|
|
authenticationType?: string;
|
|
|
|
baseUriPath?: string;
|
2021-07-16 15:41:54 +02:00
|
|
|
flags: IFlags;
|
|
|
|
name: string;
|
|
|
|
slogan: string;
|
2022-06-02 10:58:55 +02:00
|
|
|
environment?: string;
|
|
|
|
unleashUrl?: string;
|
2021-07-16 15:41:54 +02:00
|
|
|
version: string;
|
2022-06-02 10:58:55 +02:00
|
|
|
versionInfo?: IVersionInfo;
|
2021-07-16 15:41:54 +02:00
|
|
|
links: ILinks[];
|
2022-02-04 12:41:59 +01:00
|
|
|
disablePasswordAuth?: boolean;
|
2022-08-09 15:37:26 +02:00
|
|
|
emailEnabled?: boolean;
|
2022-02-18 09:51:10 +01:00
|
|
|
toast?: IProclamationToast;
|
2022-06-02 10:58:55 +02:00
|
|
|
segmentValuesLimit?: number;
|
|
|
|
strategySegmentsLimit?: number;
|
2022-08-23 14:04:09 +02:00
|
|
|
frontendApiOrigins?: string[];
|
2022-02-09 14:16:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProclamationToast {
|
|
|
|
message: string;
|
|
|
|
id: string;
|
|
|
|
severity: 'success' | 'info' | 'warning' | 'error';
|
|
|
|
link: string;
|
2021-07-16 15:41:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IFlags {
|
|
|
|
C: boolean;
|
|
|
|
P: boolean;
|
2021-09-26 22:41:38 +02:00
|
|
|
E: boolean;
|
2022-02-08 11:44:41 +01:00
|
|
|
RE: boolean;
|
2022-02-23 13:47:32 +01:00
|
|
|
EEA?: boolean;
|
|
|
|
OIDC?: boolean;
|
2022-03-04 17:29:51 +01:00
|
|
|
CO?: boolean;
|
2022-03-16 13:19:27 +01:00
|
|
|
SE?: boolean;
|
2022-05-06 14:04:09 +02:00
|
|
|
T?: boolean;
|
2022-05-25 23:26:05 +02:00
|
|
|
UNLEASH_CLOUD?: boolean;
|
2022-07-22 09:31:08 +02:00
|
|
|
UG?: boolean;
|
2022-08-23 14:20:02 +02:00
|
|
|
ENABLE_DARK_MODE_SUPPORT?: boolean;
|
2022-08-26 15:16:29 +02:00
|
|
|
embedProxyFrontend?: boolean;
|
2022-10-13 10:13:41 +02:00
|
|
|
syncSSOGroups?: boolean;
|
2022-11-02 07:34:14 +01:00
|
|
|
changeRequests?: boolean;
|
2022-10-21 09:11:14 +02:00
|
|
|
cloneEnvironment?: boolean;
|
2021-07-16 15:41:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IVersionInfo {
|
|
|
|
instanceId: string;
|
|
|
|
isLatest: boolean;
|
2022-02-02 12:32:30 +01:00
|
|
|
latest: Partial<IVersion>;
|
|
|
|
current: IVersion;
|
2021-07-16 15:41:54 +02:00
|
|
|
}
|
|
|
|
|
2022-02-02 12:32:30 +01:00
|
|
|
export interface IVersion {
|
2021-07-16 15:41:54 +02:00
|
|
|
oss: string;
|
|
|
|
enterprise: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ILinks {
|
|
|
|
value: string;
|
2022-06-02 10:58:55 +02:00
|
|
|
icon: ReactNode;
|
2021-07-16 15:41:54 +02:00
|
|
|
href: string;
|
|
|
|
title: string;
|
|
|
|
}
|