
import type { PublicUserSummary } from "../user/User"
import type { SellerSummary } from "..//seller/Seller"
import type { DealImage } from "./DealImage"
import type { Comment } from "../comment/Comment"
import type { DealNotice } from "./DealNotice"
import type { Breadcrumb } from "../Shared/Breadcrumb"
import type { DealCard } from "./DealCard"
import type { SimilarDeal } from "../Shared/SimilarDeal"
export type DealNoticeSeverity = "INFO" | "WARNING" | "DANGER" | "SUCCESS"

export type DealDetail = {
  id: number
  title: string
  description: string

  url?: string | null
  price?: number | null
  score: number
  commentsCount: number

  status: "PENDING" | "ACTIVE" | "EXPIRED" | "REJECTED"
  saleType: "ONLINE" | "OFFLINE" | "CODE"
  affiliateType: "AFFILIATE" | "NON_AFFILIATE" | "USER_AFFILIATE"
  createdAt: string
  updatedAt: string

  breadcrumb: Breadcrumb
  user: PublicUserSummary
  seller: SellerSummary
  images: DealImage[]
  comments: Comment[]
  similarDeals: SimilarDeal[]
  // ✅ varsa gelir, yoksa undefined/null
  notice?: DealNotice | null
}
