mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
38 lines
989 B
TypeScript
38 lines
989 B
TypeScript
import { ProjectStatsSchema } from 'openapi';
|
|
import { IFeatureToggleListItem } from './featureToggle';
|
|
import { ProjectEnvironmentType } from '../component/project/Project/ProjectFeatureToggles/hooks/useEnvironmentsRef';
|
|
|
|
export interface IProjectCard {
|
|
name: string;
|
|
id: string;
|
|
createdAt: string;
|
|
health: number;
|
|
description: string;
|
|
featureCount: number;
|
|
memberCount?: number;
|
|
favorite?: boolean;
|
|
}
|
|
|
|
export interface IProject {
|
|
id?: string;
|
|
members: number;
|
|
version: string;
|
|
name: string;
|
|
description?: string;
|
|
environments: Array<ProjectEnvironmentType>;
|
|
health: number;
|
|
stats: ProjectStatsSchema;
|
|
favorite: boolean;
|
|
features: IFeatureToggleListItem[];
|
|
mode: 'open' | 'protected';
|
|
defaultStickiness: string;
|
|
featureLimit?: number;
|
|
}
|
|
|
|
export interface IProjectHealthReport extends IProject {
|
|
staleCount: number;
|
|
potentiallyStaleCount: number;
|
|
activeCount: number;
|
|
updatedAt: string;
|
|
}
|