@ndla/types-backend 0.2.37 → 0.2.38

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.
@@ -84,6 +84,7 @@ export interface IComment {
84
84
  created: string;
85
85
  updated: string;
86
86
  isOpen: boolean;
87
+ solved: boolean;
87
88
  }
88
89
  export interface IDraftCopyright {
89
90
  license?: ILicense;
@@ -216,6 +217,7 @@ export interface IUpdatedComment {
216
217
  id?: string;
217
218
  content: string;
218
219
  isOpen?: boolean;
220
+ solved?: boolean;
219
221
  }
220
222
  export interface IUpdatedUserData {
221
223
  savedSearches?: string[];
@@ -2,23 +2,6 @@ export interface IBreadcrumb {
2
2
  id: string;
3
3
  name: string;
4
4
  }
5
- export interface ICategory {
6
- id: number;
7
- title: string;
8
- description: string;
9
- topicCount: number;
10
- postCount: number;
11
- }
12
- export interface ICategoryWithTopics {
13
- id: number;
14
- title: string;
15
- description: string;
16
- topicCount: number;
17
- postCount: number;
18
- topicPage: number;
19
- topicPageSize: number;
20
- topics: ITopic[];
21
- }
22
5
  export interface IConfigMeta {
23
6
  key: string;
24
7
  value: (boolean | string[]);
@@ -29,12 +12,6 @@ export interface IConfigMetaRestricted {
29
12
  key: string;
30
13
  value: (boolean | string[]);
31
14
  }
32
- export interface IFlag {
33
- id: number;
34
- reason: string;
35
- created: string;
36
- flagger: IOwner;
37
- }
38
15
  export interface IFolder {
39
16
  id: string;
40
17
  name: string;
@@ -70,75 +47,21 @@ export interface IMyNDLAUser {
70
47
  arenaEnabled: boolean;
71
48
  shareName: boolean;
72
49
  }
73
- export interface INewCategory {
74
- title: string;
75
- description: string;
76
- }
77
- export interface INewFlag {
78
- reason: string;
79
- }
80
50
  export interface INewFolder {
81
51
  name: string;
82
52
  parentId?: string;
83
53
  status?: string;
84
54
  description?: string;
85
55
  }
86
- export interface INewPost {
87
- content: string;
88
- }
89
- export interface INewPostNotification {
90
- id: number;
91
- topicId: number;
92
- isRead: boolean;
93
- topicTitle: string;
94
- post: IPost;
95
- notificationTime: string;
96
- }
97
56
  export interface INewResource {
98
57
  resourceType: string;
99
58
  path: string;
100
59
  tags?: string[];
101
60
  resourceId: string;
102
61
  }
103
- export interface INewTopic {
104
- title: string;
105
- initialPost: INewPost;
106
- }
107
62
  export interface IOwner {
108
63
  name: string;
109
64
  }
110
- export interface IOwner {
111
- id: number;
112
- displayName: string;
113
- username: string;
114
- location: string;
115
- }
116
- export interface IPaginatedNewPostNotifications {
117
- totalCount: number;
118
- page: number;
119
- pageSize: number;
120
- items: INewPostNotification[];
121
- }
122
- export interface IPaginatedPosts {
123
- totalCount: number;
124
- page: number;
125
- pageSize: number;
126
- items: IPost[];
127
- }
128
- export interface IPaginatedTopics {
129
- totalCount: number;
130
- page: number;
131
- pageSize: number;
132
- items: ITopic[];
133
- }
134
- export interface IPost {
135
- id: number;
136
- content: string;
137
- created: string;
138
- updated: string;
139
- owner: IOwner;
140
- flags?: IFlag[];
141
- }
142
65
  export interface IResource {
143
66
  id: string;
144
67
  resourceType: string;
@@ -148,21 +71,6 @@ export interface IResource {
148
71
  resourceId: string;
149
72
  rank?: number;
150
73
  }
151
- export interface ITopic {
152
- id: number;
153
- title: string;
154
- postCount: number;
155
- created: string;
156
- updated: string;
157
- }
158
- export interface ITopicWithPosts {
159
- id: number;
160
- title: string;
161
- postCount: number;
162
- posts: IPaginatedPosts;
163
- created: string;
164
- updated: string;
165
- }
166
74
  export interface IUpdatedFolder {
167
75
  name?: string;
168
76
  status?: string;
@@ -56,6 +56,7 @@ export interface IComment {
56
56
  created: string;
57
57
  updated: string;
58
58
  isOpen: boolean;
59
+ solved: boolean;
59
60
  }
60
61
  export interface IDraftResponsible {
61
62
  responsibleId: string;
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.0.2"
29
29
  },
30
- "version": "0.2.37"
30
+ "version": "0.2.38"
31
31
  }