2022-06-02 10:58:55 +02:00
|
|
|
import { ReactNode } from 'react';
|
2023-05-18 10:38:59 +02:00
|
|
|
import { Variant } from 'utils/variants';
|
2022-06-02 10:58:55 +02:00
|
|
|
|
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;
|
2023-02-15 16:24:57 +01:00
|
|
|
networkViewEnabled: boolean;
|
2022-12-21 12:23:44 +01:00
|
|
|
maintenanceMode?: 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 {
|
|
|
|
P: boolean;
|
2022-02-08 11:44:41 +01:00
|
|
|
RE: boolean;
|
2022-02-23 13:47:32 +01:00
|
|
|
EEA?: 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-26 15:16:29 +02:00
|
|
|
embedProxyFrontend?: boolean;
|
2023-01-11 13:56:55 +01:00
|
|
|
maintenanceMode?: boolean;
|
2023-05-18 10:38:59 +02:00
|
|
|
messageBanner?: Variant;
|
2023-03-29 08:19:33 +02:00
|
|
|
featuresExportImport?: boolean;
|
2023-01-18 14:53:14 +01:00
|
|
|
caseInsensitiveInOperators?: boolean;
|
2023-02-22 20:50:29 +01:00
|
|
|
proPlanAutoCharge?: boolean;
|
2023-02-24 11:31:37 +01:00
|
|
|
notifications?: boolean;
|
2023-04-05 10:20:50 +02:00
|
|
|
personalAccessTokensKillSwitch?: boolean;
|
2023-04-13 13:06:00 +02:00
|
|
|
demo?: boolean;
|
2023-04-26 10:55:55 +02:00
|
|
|
googleAuthEnabled?: boolean;
|
2023-05-22 13:31:31 +02:00
|
|
|
disableBulkToggle?: boolean;
|
2023-05-29 08:28:47 +02:00
|
|
|
disableNotifications?: boolean;
|
2023-06-12 11:01:52 +02:00
|
|
|
advancedPlayground?: boolean;
|
2023-08-10 14:11:55 +02:00
|
|
|
customRootRolesKillSwitch?: boolean;
|
2023-07-11 09:21:01 +02:00
|
|
|
strategyVariant?: boolean;
|
2023-08-08 11:32:33 +02:00
|
|
|
lastSeenByEnvironment?: boolean;
|
2023-08-18 13:55:23 +02:00
|
|
|
newApplicationList?: boolean;
|
2023-08-22 14:40:38 +02:00
|
|
|
integrationsRework?: boolean;
|
2023-08-25 10:31:37 +02:00
|
|
|
multipleRoles?: boolean;
|
2023-08-30 14:39:43 +02:00
|
|
|
doraMetrics?: boolean;
|
|
|
|
[key: string]: boolean | Variant | undefined;
|
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;
|
|
|
|
}
|