2021-07-07 11:04:36 +02:00
|
|
|
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;
|
2021-09-30 10:24:16 +02:00
|
|
|
environments: string[];
|
2021-07-07 11:04:36 +02:00
|
|
|
health: number;
|
|
|
|
features: IFeatureToggleListItem[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectHealthReport extends IProject {
|
|
|
|
staleCount: number;
|
|
|
|
potentiallyStaleCount: number;
|
|
|
|
activeCount: number;
|
2021-12-07 13:17:32 +01:00
|
|
|
updatedAt: Date;
|
2021-07-07 11:04:36 +02:00
|
|
|
}
|
2022-01-14 15:50:02 +01:00
|
|
|
|
|
|
|
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[];
|
|
|
|
}
|