You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
913 B

import type { IconName } from "../external/icons";
import type Item from "./item";
import type Log from "./log";
import type Project from "./project";
export default interface Task {
id: string
itemId: string
projectId: string
itemAmount: number
name: string
description: string
icon: IconName
active: boolean
createdTime: string
endTime?: string
}
export interface TaskResult extends Task {
item: Item
logs: Log[]
completedAmount: number
project?: Project
}
export interface TaskFilter {
active?: boolean
expiring?: boolean
}
export interface TaskInput {
itemId: string
projectId: string
itemAmount: number
name: string
description: string
active: boolean
endTime?: string | Date
}
export interface TaskUpdate {
itemId?: string
itemAmount?: number
name?: string
description?: string
active?: boolean
endTime?: string | Date
clearEndTime?: boolean
}