@ndla/types-backend 0.2.74 → 0.2.75

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,4 +1,5 @@
1
1
  export type Availability = ("everyone" | "teacher");
2
+ export type Grade = (1 | 2 | 3 | 4 | 5);
2
3
  export interface IArticle {
3
4
  id: number;
4
5
  oldNdlaUrl?: string;
@@ -32,6 +33,7 @@ export interface IArticle {
32
33
  prioritized: boolean;
33
34
  priority: string;
34
35
  started: boolean;
36
+ qualityEvaluation?: IQualityEvaluation;
35
37
  }
36
38
  export interface IArticleContent {
37
39
  content: string;
@@ -144,6 +146,7 @@ export interface INewArticle {
144
146
  comments?: INewComment[];
145
147
  prioritized?: boolean;
146
148
  priority?: string;
149
+ qualityEvaluation?: IQualityEvaluation;
147
150
  }
148
151
  export interface INewArticleMetaImage {
149
152
  id: string;
@@ -153,6 +156,10 @@ export interface INewComment {
153
156
  content: string;
154
157
  isOpen?: boolean;
155
158
  }
159
+ export interface IQualityEvaluation {
160
+ grade: Grade;
161
+ note: string;
162
+ }
156
163
  export interface IRelatedContentLink {
157
164
  title: string;
158
165
  url: string;
@@ -214,6 +221,7 @@ export interface IUpdatedArticle {
214
221
  comments?: IUpdatedComment[];
215
222
  prioritized?: boolean;
216
223
  priority?: string;
224
+ qualityEvaluation?: IQualityEvaluation;
217
225
  }
218
226
  export interface IUpdatedComment {
219
227
  id?: string;
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "0.2.74"
30
+ "version": "0.2.75"
31
31
  }