feat: adding status archived and refacto type in one place only

This commit is contained in:
Julien Froidefond
2025-09-15 10:24:49 +02:00
parent 05cd099cf4
commit 363e739b5c
7 changed files with 42 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
import { httpClient } from './base/http-client';
import { Task, TaskStatus, TaskPriority } from '@/lib/types';
import { Task, TaskStatus, TaskPriority, TaskStats } from '@/lib/types';
export interface TaskFilters {
status?: TaskStatus[];
@@ -12,15 +12,7 @@ export interface TaskFilters {
export interface TasksResponse {
success: boolean;
data: Task[];
stats: {
total: number;
completed: number;
inProgress: number;
todo: number;
cancelled: number;
freeze: number;
completionRate: number;
};
stats: TaskStats;
count: number;
}