Files
marketplaces/src/app/models/category.model.ts

39 lines
745 B
TypeScript
Raw Normal View History

2026-03-24 02:25:50 +04:00
import { ItemName } from './item.model';
2026-01-18 18:57:06 +04:00
export interface Category {
categoryID: number;
name: string;
parentID: number;
icon?: string;
2026-02-26 21:54:21 +04:00
wideBanner?: string;
2026-02-14 20:18:55 +04:00
itemCount?: number;
2026-03-24 02:25:50 +04:00
categoriesCount?: number;
2026-02-20 00:44:44 +04:00
priority?: number;
2026-03-24 02:25:50 +04:00
names?: ItemName[];
translations?: Record<string, CategoryTranslation>;
2026-02-20 10:44:03 +04:00
// 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[];
}
2026-06-21 23:42:39 +04:00
interface CategoryTranslation {
2026-02-20 10:44:03 +04:00
name?: string;
2026-01-18 18:57:06 +04:00
}