Files
best-choice/shared/models/item.d.ts
T
Jurgis Sakalauskas 9cdcd23fd9 add image
2025-10-16 09:33:41 +03:00

37 lines
877 B
TypeScript

export type ItemStatus = 'active' | 'rejected';
export interface ItemPriceSummary {
minAmount: number;
maxAmount: number;
currency: string | null;
priceCount: number;
hasMixedCurrency: boolean;
newMinAmount: number | null;
newCount: number;
newCurrency: string | null;
newHasMixedCurrency: boolean;
usedMinAmount: number | null;
usedCount: number;
usedCurrency: string | null;
usedHasMixedCurrency: boolean;
}
import type { ItemImage } from './item-image';
export interface Item {
id: string;
projectId: string;
manufacturer: string | null;
model: string;
sourceUrlId: string | null;
sourceUrl: string | null;
defaultImageId: string | null;
status: ItemStatus;
note: string | null;
attributes: Record<string, unknown>;
createdAt: string;
updatedAt: string;
priceSummary: ItemPriceSummary | null;
images?: ItemImage[];
}