Files
Lesstime/frontend/services/dto/task.ts
2026-03-12 17:59:45 +01:00

37 lines
942 B
TypeScript

import type { TaskStatus } from './task-status'
import type { TaskEffort } from './task-effort'
import type { TaskPriority } from './task-priority'
import type { TaskTag } from './task-tag'
import type { TaskGroup } from './task-group'
import type { UserData } from './user-data'
import type { Project } from './project'
export type Task = {
id: number
'@id'?: string
number: number
title: string
description: string | null
status: TaskStatus | null
effort: TaskEffort | null
priority: TaskPriority | null
assignee: UserData | null
group: TaskGroup | null
project: Project | null
tags: TaskTag[]
archived: boolean
}
export type TaskWrite = {
title: string
description: string | null
status: string | null
effort: string | null
priority: string | null
assignee: string | null
group: string | null
project: string
tags: string[]
archived?: boolean
}