@ndla/types-backend 0.2.88 → 0.2.89
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 +7 -6
- package/package.json +1 -1
package/build/myndla-api.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type ArenaGroup = "ADMIN";
|
|
2
2
|
export interface IArenaUser {
|
|
3
|
-
id:
|
|
4
|
-
displayName:
|
|
5
|
-
username:
|
|
6
|
-
location:
|
|
7
|
-
groups:
|
|
3
|
+
id: number;
|
|
4
|
+
displayName: string;
|
|
5
|
+
username: string;
|
|
6
|
+
location: string;
|
|
7
|
+
groups: ArenaGroup[];
|
|
8
8
|
}
|
|
9
9
|
export interface IBreadcrumb {
|
|
10
10
|
id: string;
|
|
@@ -173,10 +173,11 @@ export interface IPost {
|
|
|
173
173
|
owner?: IArenaUser;
|
|
174
174
|
flags?: IFlag[];
|
|
175
175
|
topicId: number;
|
|
176
|
-
replies:
|
|
176
|
+
replies: IPostWrapper[];
|
|
177
177
|
upvotes: number;
|
|
178
178
|
upvoted: boolean;
|
|
179
179
|
}
|
|
180
|
+
export type IPostWrapper = IPost;
|
|
180
181
|
export interface IResource {
|
|
181
182
|
id: string;
|
|
182
183
|
resourceType: ResourceType;
|
package/package.json
CHANGED