/**
 * Preview types for bulk operations
 */

export interface PreviewChange {
  field: string;
  old_value: string | number | null | SaleDates;
  new_value: string | number | null | SaleDates;
}

export interface SaleDates {
  from: string | null;
  to: string | null;
}

export interface PreviewItem {
  id: number;
  changes: PreviewChange[];
}

export type PreviewData = Record<number, PreviewChange[]>; // { variationId: changes[] }
