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 }