integration new apis

This commit is contained in:
sdarbinyan
2026-03-24 00:07:45 +04:00
parent b71e806bca
commit 50508b281c
5 changed files with 200 additions and 3 deletions

View File

@@ -7,6 +7,24 @@ export interface ItemTranslation {
description?: ItemDescriptionField[];
}
/** Localized name entry */
export interface ItemName {
language: string;
value: string;
}
/** Localized description entry */
export interface ItemDescription {
language: string;
value: string;
}
/** Key-value attribute pair */
export interface ItemAttribute {
key: string;
value: string;
}
export interface Item {
id: string;
name: string;
@@ -19,9 +37,14 @@ export interface Item {
imgs: string[];
tags: string[];
badges?: string[];
colour?: string;
size?: string;
simpleDescription: string;
description: ItemDescriptionField[];
subcategoryId: string;
names?: ItemName[];
descriptions?: ItemDescription[];
attributes?: ItemAttribute[];
comments?: Comment[];
/** Optional translations keyed by language code: { ru: { name: '...', simpleDescription: '...', description: [...] } } */
translations?: { [lang: string]: ItemTranslation };