import { MetricsRepository } from '~/domain/models/metrics/metricsRepository' import { Progress, Distribution } from '~/domain/models/metrics/metrics' export class MetricsApplicationService { constructor( private readonly repository: MetricsRepository ) {} public async fetchMemberProgress(projectId: string): Promise { return await this.repository.fetchMemberProgress(projectId) } public async fetchCategoryDistribution(projectId: string): Promise { return await this.repository.fetchCategoryDistribution(projectId) } public async fetchSpanDistribution(projectId: string): Promise { return await this.repository.fetchSpanDistribution(projectId) } }