Files
stufflog2/svelte-ui/src/models/project.ts
T
2021-01-20 22:05:52 +01:00

42 lines
791 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
endTime?: string
statusTag?: string
}
export interface ProjectResult extends Project {
tasks: TaskResult[]
}
export interface ProjectFilter {
active?: boolean
expiring?: boolean
}
export interface ProjectInput {
name: string
description: string
icon: IconName
active: boolean
endTime?: string | Date
statusTag?: string
}
export interface ProjectUpdate {
name?: string
description?: string
icon?: string
active?: boolean
endTime?: string | Date
clearEndTime?: boolean
statusTag?: string
clearStatusTag?: boolean
}