mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
116 lines
3.0 KiB
TypeScript
116 lines
3.0 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import type { Variant } from 'utils/variants';
|
|
import type { ResourceLimitsSchema } from '../openapi';
|
|
|
|
export interface IUiConfig {
|
|
authenticationType?: string;
|
|
baseUriPath?: string;
|
|
feedbackUriPath?: string;
|
|
/**
|
|
* @deprecated `useUiFlags` can be used instead
|
|
* @example
|
|
* ```ts
|
|
* const yourFlag = useUiFlag("yourFlag")
|
|
* ```
|
|
*/
|
|
flags: UiFlags;
|
|
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[];
|
|
resourceLimits: ResourceLimitsSchema;
|
|
oidcConfiguredThroughEnv?: boolean;
|
|
samlConfiguredThroughEnv?: boolean;
|
|
}
|
|
|
|
export interface IProclamationToast {
|
|
message: string;
|
|
id: string;
|
|
severity: 'success' | 'info' | 'warning' | 'error';
|
|
link: string;
|
|
}
|
|
|
|
export type UiFlags = {
|
|
P: boolean;
|
|
RE: boolean;
|
|
EEA?: boolean;
|
|
SE?: boolean;
|
|
T?: boolean;
|
|
UNLEASH_CLOUD?: boolean;
|
|
UG?: boolean;
|
|
embedProxyFrontend?: boolean;
|
|
maintenanceMode?: boolean;
|
|
messageBanner?: Variant;
|
|
banner?: Variant;
|
|
featuresExportImport?: boolean;
|
|
caseInsensitiveInOperators?: boolean;
|
|
notifications?: boolean;
|
|
personalAccessTokensKillSwitch?: boolean;
|
|
demo?: boolean;
|
|
googleAuthEnabled?: boolean;
|
|
disableBulkToggle?: boolean;
|
|
disableNotifications?: boolean;
|
|
advancedPlayground?: boolean;
|
|
strategyVariant?: boolean;
|
|
doraMetrics?: boolean;
|
|
dependentFeatures?: boolean;
|
|
newStrategyConfiguration?: boolean;
|
|
signals?: boolean;
|
|
automatedActions?: boolean;
|
|
celebrateUnleash?: boolean;
|
|
featureSearchFeedback?: Variant;
|
|
enableLicense?: boolean;
|
|
adminTokenKillSwitch?: boolean;
|
|
killInsightsUI?: boolean;
|
|
feedbackComments?: Variant;
|
|
displayUpgradeEdgeBanner?: boolean;
|
|
showInactiveUsers?: boolean;
|
|
featureSearchFeedbackPosting?: boolean;
|
|
userAccessUIEnabled?: boolean;
|
|
outdatedSdksBanner?: boolean;
|
|
displayTrafficDataUsage?: boolean;
|
|
estimateTrafficDataCost?: boolean;
|
|
disableShowContextFieldSelectionValues?: boolean;
|
|
projectOverviewRefactorFeedback?: boolean;
|
|
featureLifecycle?: boolean;
|
|
scimApi?: boolean;
|
|
manyStrategiesPagination?: boolean;
|
|
enableLegacyVariants?: boolean;
|
|
navigationSidebar?: boolean;
|
|
commandBarUI?: boolean;
|
|
flagCreator?: boolean;
|
|
resourceLimits?: boolean;
|
|
insightsV2?: boolean;
|
|
featureCollaborators?: 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;
|
|
}
|