mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Separates ProjectForm and ProjectEnterpriseSettings forms --------- Signed-off-by: andreas-unleash <andreas@getunleash.ai> Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { ProjectStatsSchema } from 'openapi';
 | 
						|
import { IFeatureToggleListItem } from './featureToggle';
 | 
						|
import { ProjectEnvironmentType } from 'component/project/Project/ProjectFeatureToggles/hooks/useEnvironmentsRef';
 | 
						|
import { ProjectMode } from 'component/project/Project/hooks/useProjectEnterpriseSettingsForm';
 | 
						|
 | 
						|
export interface IProjectCard {
 | 
						|
    name: string;
 | 
						|
    id: string;
 | 
						|
    createdAt: string;
 | 
						|
    health: number;
 | 
						|
    description: string;
 | 
						|
    featureCount: number;
 | 
						|
    memberCount?: number;
 | 
						|
    favorite?: boolean;
 | 
						|
}
 | 
						|
 | 
						|
export type FeatureNamingType = {
 | 
						|
    pattern: string;
 | 
						|
    example: string;
 | 
						|
    description: string;
 | 
						|
};
 | 
						|
 | 
						|
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: ProjectMode;
 | 
						|
    defaultStickiness: string;
 | 
						|
    featureLimit?: number;
 | 
						|
    featureNaming?: FeatureNamingType;
 | 
						|
}
 | 
						|
 | 
						|
export interface IProjectHealthReport extends IProject {
 | 
						|
    staleCount: number;
 | 
						|
    potentiallyStaleCount: number;
 | 
						|
    activeCount: number;
 | 
						|
    updatedAt: string;
 | 
						|
}
 | 
						|
 | 
						|
export interface IProjectRoleUsageCount {
 | 
						|
    project: string;
 | 
						|
    role: number;
 | 
						|
    userCount: number;
 | 
						|
    groupCount: number;
 | 
						|
    serviceAccountCount: number;
 | 
						|
}
 |