integration new apis
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user