import type { UserData } from '~/services/dto/user-data'
import type { Project } from '~/modules/project-management/services/dto/project'
import type { Task } from '~/modules/project-management/services/dto/task'
import type { TaskTag } from '~/modules/project-management/services/dto/task-tag'

export type TimeEntry = {
    id: number
    '@id'?: string
    title: string | null
    description: string | null
    startedAt: string
    stoppedAt: string | null
    user: UserData
    project: Project | null
    task: Task | null
    tags: TaskTag[]
}

export type TimeEntryWrite = {
    title?: string | null
    description?: string | null
    startedAt: string
    stoppedAt?: string | null
    user: string
    project?: string | null
    task?: string | null
    tags?: string[]
}
