@ndla/types-backend 0.2.71 → 0.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,14 @@ export interface ICategory {
19
19
  isFollowing: boolean;
20
20
  visible: boolean;
21
21
  rank: number;
22
+ parentCategoryId?: number;
23
+ categoryCount: number;
24
+ subcategories: ICategory[];
25
+ breadcrumbs: ICategoryBreadcrumb[];
26
+ }
27
+ export interface ICategoryBreadcrumb {
28
+ id: number;
29
+ title: string;
22
30
  }
23
31
  export interface ICategoryWithTopics {
24
32
  id: number;
@@ -32,6 +40,10 @@ export interface ICategoryWithTopics {
32
40
  isFollowing: boolean;
33
41
  visible: boolean;
34
42
  rank: number;
43
+ parentCategoryId?: number;
44
+ categoryCount: number;
45
+ subcategories: ICategory[];
46
+ breadcrumbs: ICategoryBreadcrumb[];
35
47
  }
36
48
  export interface IConfigMeta {
37
49
  key: string;
@@ -91,6 +103,7 @@ export interface INewCategory {
91
103
  title: string;
92
104
  description: string;
93
105
  visible: boolean;
106
+ parentCategoryId?: number;
94
107
  }
95
108
  export interface INewFlag {
96
109
  reason: string;
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.71"
30
+ "version": "0.2.72"
31
31
  }