36 lines
606 B
TypeScript
36 lines
606 B
TypeScript
|
|
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;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ItemsListResponse {
|
||
|
|
items: Item[];
|
||
|
|
total: number;
|
||
|
|
page: number;
|
||
|
|
limit: number;
|
||
|
|
hasMore: boolean;
|
||
|
|
}
|