mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-24 20:06:55 +01:00
31 lines
921 B
TypeScript
31 lines
921 B
TypeScript
import type { IProjectStats } from '../../lib/features/project/project-service';
|
|
import type {
|
|
ICreateEnabledDates,
|
|
IProjectStatsStore,
|
|
} from '../../lib/types/stores/project-stats-store-type';
|
|
import type { DoraFeaturesSchema } from '../../lib/openapi';
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
|
|
export default class FakeProjectStatsStore implements IProjectStatsStore {
|
|
private stats: Record<string, IProjectStats> = {};
|
|
|
|
async updateProjectStats(
|
|
projectId: string,
|
|
stats: IProjectStats,
|
|
): Promise<void> {
|
|
this.stats[projectId] = stats;
|
|
}
|
|
|
|
async getProjectStats(projectId: string): Promise<IProjectStats> {
|
|
return this.stats[projectId];
|
|
}
|
|
|
|
async getTimeToProdDates(): Promise<ICreateEnabledDates[]> {
|
|
return [];
|
|
}
|
|
|
|
async getTimeToProdDatesForFeatureToggles(): Promise<DoraFeaturesSchema[]> {
|
|
return [];
|
|
}
|
|
}
|