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;
|
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-23 14:20:02 +02:00
|
|
|
ENABLE_DARK_MODE_SUPPORT?: boolean;
|
2022-08-26 15:16:29 +02:00
|
|
|
embedProxyFrontend?: boolean;
|
2023-01-11 13:56:55 +01:00
|
|
|
maintenanceMode?: boolean;
|
2022-12-22 16:16:51 +01:00
|
|
|
messageBanner?: boolean;
|
2023-01-18 10:10:41 +01:00
|
|
|
newProjectOverview?: boolean;
|
2023-01-18 14:53:14 +01:00
|
|
|
caseInsensitiveInOperators?: boolean;
|
2023-01-25 15:10:35 +01:00
|
|
|
crOnVariants?: boolean;
|
2023-02-07 12:01:45 +01:00
|
|
|
showProjectApiAccess?: boolean;
|
2023-02-22 20:50:29 +01:00
|
|
|
proPlanAutoCharge?: boolean;
|
2023-02-24 11:31:37 +01:00
|
|
|
notifications?: boolean;
|
2023-03-02 14:49:50 +01:00
|
|
|
loginHistory?: boolean;
|
2023-03-09 10:58:06 +01:00
|
|
|
bulkOperations?: boolean;
|
2023-03-08 14:55:03 +01:00
|
|
|
projectScopedSegments?: boolean;
|
2023-03-10 11:28:02 +01:00
|
|
|
projectScopedStickiness?: boolean;
|
2023-03-16 15:29:52 +01:00
|
|
|
projectMode?: 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;
|
|
|
|
}
|