import { ObjectId } from 'mongodb'; import { BaseModel } from './baseModel'; import { OperationCenter } from './operationCenter'; import { SKU } from './sku'; export interface InventoryLog extends BaseModel { type: string; date: Date; activeFromDate?: Date; activeToDate?: Date; operationCenter: OperationCenter | ObjectId; sku: SKU | ObjectId; quantityGradeA: number; quantityGradeB: number; activityType: string; activity: { [key: string]: any; } | string; activityCreatedAt: Date; subActivityType?: string; subActivity?: { [key: string]: any; } | string; ignore: boolean; ignoreByActivityType?: string; ignoreByActivity?: { [key: string]: any; } | string; ignoreBySubActivityType?: string; ignoreBySubActivity?: { [key: string]: any; } | string; metaData?: { [key: string]: any; }; _dateWithoutTime: Date; _fromDate: Date; _toDate: Date; }