@ndla/types-backend 0.2.35 → 0.2.37
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.
- package/build/myndla-api.d.ts +11 -0
- package/package.json +1 -1
package/build/myndla-api.d.ts
CHANGED
|
@@ -74,6 +74,9 @@ export interface INewCategory {
|
|
|
74
74
|
title: string;
|
|
75
75
|
description: string;
|
|
76
76
|
}
|
|
77
|
+
export interface INewFlag {
|
|
78
|
+
reason: string;
|
|
79
|
+
}
|
|
77
80
|
export interface INewFolder {
|
|
78
81
|
name: string;
|
|
79
82
|
parentId?: string;
|
|
@@ -152,6 +155,14 @@ export interface ITopic {
|
|
|
152
155
|
created: string;
|
|
153
156
|
updated: string;
|
|
154
157
|
}
|
|
158
|
+
export interface ITopicWithPosts {
|
|
159
|
+
id: number;
|
|
160
|
+
title: string;
|
|
161
|
+
postCount: number;
|
|
162
|
+
posts: IPaginatedPosts;
|
|
163
|
+
created: string;
|
|
164
|
+
updated: string;
|
|
165
|
+
}
|
|
155
166
|
export interface IUpdatedFolder {
|
|
156
167
|
name?: string;
|
|
157
168
|
status?: string;
|
package/package.json
CHANGED