29 lines
655 B
TypeScript
29 lines
655 B
TypeScript
import type { UserData } from './user-data'
|
|
import type { Project } from './project'
|
|
import type { Task } from './task'
|
|
import type { TaskTag } from './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[]
|
|
}
|