aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/lib/models/TimeEntryDto.ts
blob: 571c52e6ceea943c7be05d5197579c80e08bb804 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import type { TimeLabelDto } from "./TimeLabelDto";
import type { TimeCategoryDto } from "./TimeCategoryDto";
import { Temporal } from "temporal-polyfill";

export interface TimeEntryDto {
    id: string,
    modified_at?: Temporal.PlainDate,
    start: string,
    stop: string,
    description: string,
    labels?: Array<TimeLabelDto>,
    category: TimeCategoryDto,
}