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;
|
2022-05-04 15:39:50 +02:00
|
|
|
memberCount?: number;
|
2022-12-02 08:16:03 +01:00
|
|
|
favorite?: boolean;
|
2021-07-07 11:04:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProject {
|
2022-02-25 10:55:39 +01:00
|
|
|
id?: string;
|
2021-07-07 11:04:36 +02:00
|
|
|
members: number;
|
|
|
|
version: string;
|
|
|
|
name: string;
|
2022-03-22 08:23:51 +01:00
|
|
|
description?: string;
|
2021-09-30 10:24:16 +02:00
|
|
|
environments: string[];
|
2021-07-07 11:04:36 +02:00
|
|
|
health: number;
|
2023-01-27 13:13:41 +01:00
|
|
|
stats: object;
|
2022-12-02 08:16:03 +01:00
|
|
|
favorite: boolean;
|
2021-07-07 11:04:36 +02:00
|
|
|
features: IFeatureToggleListItem[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectHealthReport extends IProject {
|
|
|
|
staleCount: number;
|
|
|
|
potentiallyStaleCount: number;
|
|
|
|
activeCount: number;
|
2022-02-07 15:30:33 +01:00
|
|
|
updatedAt: string;
|
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[];
|
|
|
|
}
|