mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
234bab6cb4
* refactor: remove unused reporting code * refactor: port ReportCard to TS/SWR
46 lines
965 B
TypeScript
46 lines
965 B
TypeScript
import { IFeatureToggleListItem } from './featureToggle';
|
|
|
|
export interface IProjectCard {
|
|
name: string;
|
|
id: string;
|
|
createdAt: string;
|
|
health: number;
|
|
description: string;
|
|
featureCount: number;
|
|
memberCount: number;
|
|
}
|
|
|
|
export interface IProject {
|
|
members: number;
|
|
version: string;
|
|
name: string;
|
|
description: string;
|
|
environments: string[];
|
|
health: number;
|
|
features: IFeatureToggleListItem[];
|
|
}
|
|
|
|
export interface IProjectHealthReport extends IProject {
|
|
staleCount: number;
|
|
potentiallyStaleCount: number;
|
|
activeCount: number;
|
|
updatedAt: string;
|
|
}
|
|
|
|
export interface IPermission {
|
|
id: number;
|
|
name: string;
|
|
displayName: string;
|
|
environment?: string;
|
|
}
|
|
|
|
export interface IProjectRolePermissions {
|
|
project: IPermission[];
|
|
environments: IProjectEnvironmentPermissions[];
|
|
}
|
|
|
|
export interface IProjectEnvironmentPermissions {
|
|
name: string;
|
|
permissions: IPermission[];
|
|
}
|