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.
 
 
 
 
 
 

42 lines
785 B

import type Item from "./item";
import type Task 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
}
export interface LogResult extends Log {
task: Task
item: Item
secondaryItem?: Item
}
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
}