tududi/frontend/entities/Task.ts
2025-07-23 12:22:06 +03:00

39 lines
1 KiB
TypeScript

import { Tag } from './Tag';
import { Project } from './Project';
export interface Task {
id?: number;
uuid?: string;
name: string;
status: StatusType | number;
priority?: PriorityType | number;
due_date?: string;
note?: string;
today?: boolean;
today_move_count?: number;
tags?: Tag[];
project_id?: number;
Project?: Project;
created_at?: string;
updated_at?: string;
recurrence_type?: RecurrenceType;
recurrence_interval?: number;
recurrence_end_date?: string;
recurrence_weekday?: number;
recurrence_month_day?: number;
recurrence_week_of_month?: number;
completion_based?: boolean;
recurring_parent_id?: number;
completed_at?: string;
parent_task_id?: number;
}
export type StatusType = 'not_started' | 'in_progress' | 'done' | 'archived';
export type PriorityType = 'low' | 'medium' | 'high';
export type RecurrenceType =
| 'none'
| 'daily'
| 'weekly'
| 'monthly'
| 'monthly_weekday'
| 'monthly_last_day';