feat: adding status archived and refacto type in one place only
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user