39 lines
752 B
TypeScript
39 lines
752 B
TypeScript
import { ItemName } from './item.model';
|
|
|
|
export interface Category {
|
|
categoryID: number;
|
|
name: string;
|
|
parentID: number;
|
|
icon?: string;
|
|
wideBanner?: string;
|
|
itemCount?: number;
|
|
categoriesCount?: number;
|
|
priority?: number;
|
|
names?: ItemName[];
|
|
translations?: Record<string, CategoryTranslation>;
|
|
|
|
// BackOffice API fields
|
|
id?: string;
|
|
visible?: boolean;
|
|
img?: string;
|
|
projectId?: string;
|
|
subcategories?: Subcategory[];
|
|
}
|
|
|
|
export interface Subcategory {
|
|
id: string;
|
|
name: string;
|
|
visible?: boolean;
|
|
priority?: number;
|
|
img?: string;
|
|
categoryId: string;
|
|
parentId: string;
|
|
itemCount?: number;
|
|
hasItems?: boolean;
|
|
subcategories?: Subcategory[];
|
|
}
|
|
|
|
export interface CategoryTranslation {
|
|
name?: string;
|
|
}
|