2026-01-19 23:17:07 +04:00
|
|
|
export interface Item {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
visible: boolean;
|
|
|
|
|
priority: number;
|
|
|
|
|
quantity: number;
|
|
|
|
|
price: number;
|
|
|
|
|
currency: string;
|
|
|
|
|
imgs: string[];
|
|
|
|
|
tags: string[];
|
|
|
|
|
simpleDescription: string;
|
|
|
|
|
description: ItemDescriptionField[];
|
|
|
|
|
subcategoryId: string;
|
|
|
|
|
comments?: Comment[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ItemDescriptionField {
|
|
|
|
|
key: string;
|
|
|
|
|
value: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Comment {
|
|
|
|
|
id: string;
|
|
|
|
|
text: string;
|
|
|
|
|
createdAt: Date;
|
|
|
|
|
author?: string;
|
2026-01-22 00:41:13 +04:00
|
|
|
stars?: number;
|
2026-01-19 23:17:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ItemsListResponse {
|
|
|
|
|
items: Item[];
|
|
|
|
|
total: number;
|
|
|
|
|
page: number;
|
|
|
|
|
limit: number;
|
|
|
|
|
hasMore: boolean;
|
|
|
|
|
}
|