export interface CompareResponse {
  status: number;
  success: boolean;
  results: {
    products: CompareProduct[];
  };
}

export interface CompareProduct {
  _id: number;
  url: string;
  title_fa: string;
  title_en: string;
  seoTitle: string;
  seoDescription: string | null;
  source: string;
  description: string;
  metaDescription: string;
  tags: string[];
  advantages: string[];
  disAdvantages: string[];
  imagesUrl: ImagesUrl;
  isFake: string;
  specifications: Specification[];
  default_variant: Variant;
  variants: Variant[];
}

export interface ImagesUrl {
  cover: string;
  list: string[];
}

export interface Specification {
  title: string;
  values: string[];
}

export interface Variant {
  _id: string;
  market_status: string;
  price: Price;
  stock: number;
  postingTime: number;
  isFreeShip: boolean;
  isWholeSale: boolean;
  shop: Shop;
  shipmentMethod: ShipmentMethod[];
  warranty: Warranty;
  meterage: Meterage;
}

export interface Price {
  order_limit: number;
  retailPrice: number;
  selling_price: number;
  is_specialSale: boolean;
  discount_percent: number;
  specialSale_order_limit: number | null;
  specialSale_quantity: number | null;
  specialSale_endDate: string | null;
}

export interface Shop {
  _id: string;
  shopName: string;
  shopCode: number;
  owner: string;
  shopDescription: string;
  telephoneNumber: string;
  isChatActive: boolean;
  shopPostalCode: string;
  logo: string;
}

export interface ShipmentMethod {
  _id: number;
  name: string;
  description: string;
  deliveryTime: number;
  deliveryType: string;
}

export interface Warranty {
  _id: number;
  duration: string;
  logoUrl: string;
  name: string;
}

export interface Meterage {
  _id: number;
  value: string;
}
