add task and item filters to goals.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-19 22:12:10 +01:00
parent 99cc6fac3c
commit a187e91c3c
8 changed files with 122 additions and 21 deletions
+14 -1
View File
@@ -15,6 +15,8 @@ export default interface Goal {
description: string
unweighted: boolean
compositionMode: GoalCompositionMode
taskFilter?: string
itemFilter?: string
}
export interface GoalFilter {
@@ -26,10 +28,15 @@ export interface GoalFilter {
export interface GoalResult extends Goal {
group: Group
items: GoalResultItem[]
logs: LogResult[]
logs: GoalLogResult[]
completedAmount: number
}
export interface GoalLogResult extends LogResult {
itemCounted: boolean
secondaryItemCounted: boolean
}
interface GoalResultItem extends Item {
completedAmount: number
}
@@ -44,6 +51,8 @@ export interface GoalInput {
description: string
unweighted: boolean
compositionMode: string
taskFilter?: string
itemFilter?: string
}
export interface GoalUpdate {
@@ -56,4 +65,8 @@ export interface GoalUpdate {
unweighted?: boolean
compositionMode?: string
clearItemId?: boolean
taskFilter?: string
clearTaskFilter: boolean
itemFilter?: string
clearItemFilter: boolean
}
+2
View File
@@ -21,6 +21,8 @@ export interface LogResult extends Log {
task: Task
item: Item
secondaryItem?: Item
itemCounted?: boolean
secondaryItemCounted?: boolean
}
export interface LogInput {