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.
 
 
 
 
 
 

46 lines
874 B

import type { IconName } from "../external/icons";
import type { TaskResult } from "./task";
export default interface Project {
id: string
name: string
description: string
icon: IconName
active: boolean
createdTime: string
favorite: boolean
endTime?: string
statusTag?: string
}
export interface ProjectResult extends Project {
tasks: TaskResult[]
}
export interface ProjectFilter {
active?: boolean
favorite?: boolean
expiring?: boolean
}
export interface ProjectInput {
name: string
description: string
icon: IconName
active: boolean
endTime?: string | Date
statusTag?: string
favorite?: boolean
}
export interface ProjectUpdate {
name?: string
description?: string
icon?: string
active?: boolean
endTime?: string | Date
clearEndTime?: boolean
statusTag?: string
clearStatusTag?: boolean
favorite?: boolean
}