mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
74 lines
1.7 KiB
TypeScript
74 lines
1.7 KiB
TypeScript
import { ReactNode } from 'react';
|
|
|
|
export interface IUiConfig {
|
|
authenticationType?: string;
|
|
baseUriPath?: string;
|
|
flags: IFlags;
|
|
name: string;
|
|
slogan: string;
|
|
environment?: string;
|
|
unleashUrl?: string;
|
|
version: string;
|
|
versionInfo?: IVersionInfo;
|
|
links: ILinks[];
|
|
disablePasswordAuth?: boolean;
|
|
emailEnabled?: boolean;
|
|
networkViewEnabled: boolean;
|
|
maintenanceMode?: boolean;
|
|
toast?: IProclamationToast;
|
|
segmentValuesLimit?: number;
|
|
strategySegmentsLimit?: number;
|
|
frontendApiOrigins?: string[];
|
|
}
|
|
|
|
export interface IProclamationToast {
|
|
message: string;
|
|
id: string;
|
|
severity: 'success' | 'info' | 'warning' | 'error';
|
|
link: string;
|
|
}
|
|
|
|
export interface IFlags {
|
|
P: boolean;
|
|
RE: boolean;
|
|
EEA?: boolean;
|
|
SE?: boolean;
|
|
T?: boolean;
|
|
UNLEASH_CLOUD?: boolean;
|
|
UG?: boolean;
|
|
embedProxyFrontend?: boolean;
|
|
maintenanceMode?: boolean;
|
|
messageBanner?: boolean;
|
|
featuresExportImport?: boolean;
|
|
newProjectOverview?: boolean;
|
|
caseInsensitiveInOperators?: boolean;
|
|
crOnVariants?: boolean;
|
|
proPlanAutoCharge?: boolean;
|
|
notifications?: boolean;
|
|
bulkOperations?: boolean;
|
|
projectScopedStickiness?: boolean;
|
|
personalAccessTokensKillSwitch?: boolean;
|
|
demo?: boolean;
|
|
strategyTitle?: boolean;
|
|
groupRootRoles?: 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: ReactNode;
|
|
href: string;
|
|
title: string;
|
|
}
|