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.
47 lines
942 B
47 lines
942 B
import type Item from "./item";
|
|
import type { TaskWithProject } from "./task";
|
|
|
|
export default interface Log {
|
|
id: string
|
|
taskId: string
|
|
itemId: string
|
|
itemAmount: number
|
|
secondaryItemId?: string
|
|
secondaryItemAmount: number
|
|
loggedTime: string
|
|
description: string
|
|
}
|
|
|
|
export interface LogFilter {
|
|
minTime?: Date
|
|
maxTime?: Date
|
|
itemIds?: string[]
|
|
projectIds?: string[]
|
|
projectGroupIds?: string[]
|
|
}
|
|
|
|
export interface LogResult extends Log {
|
|
task: TaskWithProject
|
|
item: Item
|
|
secondaryItem?: Item
|
|
itemCounted?: boolean
|
|
secondaryItemCounted?: boolean
|
|
}
|
|
|
|
export interface LogInput {
|
|
taskId: string
|
|
loggedTime?: string
|
|
description: string
|
|
itemAmount: number
|
|
secondaryItemId?: string
|
|
secondaryItemAmount?: number
|
|
}
|
|
|
|
export interface LogUpdate {
|
|
loggedTime?: string
|
|
description?: string
|
|
itemAmount?: number
|
|
secondaryItemId?: string
|
|
secondaryItemAmount?: number
|
|
clearSecondaryItemId?: boolean
|
|
}
|