add status tags to tasks and reorganize them to have more familiar names.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-24 12:39:23 +01:00
parent f22b9b4947
commit 270694e49e
21 changed files with 347 additions and 166 deletions
+1 -6
View File
@@ -28,15 +28,10 @@ export interface GoalFilter {
export interface GoalResult extends Goal {
group: Group
items: GoalResultItem[]
logs: GoalLogResult[]
logs: LogResult[]
completedAmount: number
}
export interface GoalLogResult extends LogResult {
itemCounted: boolean
secondaryItemCounted: boolean
}
interface GoalResultItem extends Item {
completedAmount: number
}
+4
View File
@@ -14,6 +14,7 @@ export default interface Task {
active: boolean
createdTime: string
endTime?: string
statusTag?: string
}
export interface TaskResult extends Task {
item: Item
@@ -35,6 +36,7 @@ export interface TaskInput {
description: string
active: boolean
endTime?: string | Date
statusTag?: string
}
export interface TaskUpdate {
@@ -45,4 +47,6 @@ export interface TaskUpdate {
active?: boolean
endTime?: string | Date
clearEndTime?: boolean
statusTag?: string
clearStatusTag?: boolean
}