28 lines
574 B
TypeScript
28 lines
574 B
TypeScript
|
|
import type { PublicUserSummary } from "../user/User"
|
|
import type { SellerSummary } from "..//seller/Seller"
|
|
|
|
export type DealCard = {
|
|
id: number
|
|
title: string
|
|
description: string
|
|
|
|
url?: string
|
|
price?: number
|
|
score: number
|
|
commentsCount: number
|
|
|
|
myVote:-1 | 0 | 1
|
|
|
|
status: "PENDING" | "ACTIVE" | "EXPIRED" | "REJECTED"
|
|
saleType: "ONLINE" | "OFFLINE" | "CODE"
|
|
affiliateType: "AFFILIATE" | "NON_AFFILIATE" | "USER_AFFILIATE"
|
|
createdAt: string
|
|
updatedAt: string
|
|
|
|
// ilişkiler
|
|
user: PublicUserSummary
|
|
seller: SellerSummary
|
|
imageUrl: string
|
|
}
|