@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.
@@ -1,10 +1,10 @@
1
1
  export type ArenaGroup = "ADMIN";
2
2
  export interface IArenaUser {
3
- id: "circular reference error";
4
- displayName: "circular reference error";
5
- username: "circular reference error";
6
- location: "circular reference error";
7
- groups: "circular reference error";
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: IPost[];
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
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.88"
30
+ "version": "0.2.89"
31
31
  }