@ndla/types-backend 0.2.8 → 0.2.10

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.
@@ -172,13 +172,3 @@ export interface IUpdatedAudioMetaInformation {
172
172
  seriesId?: number;
173
173
  manuscript?: string;
174
174
  }
175
- export interface IValidationError {
176
- code: string;
177
- description: string;
178
- messages: IValidationMessage[];
179
- occuredAt: string;
180
- }
181
- export interface IValidationMessage {
182
- field: string;
183
- message: string;
184
- }
@@ -19,6 +19,7 @@ export interface IErrorBody {
19
19
  code: string;
20
20
  description: string;
21
21
  occurredAt: string;
22
+ messages?: IValidationMessage[];
22
23
  statusCode: number;
23
24
  }
24
25
  export interface IFilmFrontPageData {
@@ -129,6 +130,10 @@ export interface IUpdatedSubjectFrontPageData {
129
130
  latestContent?: string[];
130
131
  goTo?: string[];
131
132
  }
133
+ export interface IValidationMessage {
134
+ field: string;
135
+ message: string;
136
+ }
132
137
  export interface IVisualElement {
133
138
  type: string;
134
139
  url: string;
@@ -1,15 +1,20 @@
1
1
  export interface IApiTaxonomyContext {
2
2
  id: string;
3
+ publicId: string;
3
4
  subject: string;
5
+ root: string;
4
6
  subjectId: string;
7
+ rootId: string;
5
8
  relevance: string;
6
9
  path: string;
7
10
  breadcrumbs: string[];
8
- filters: ITaxonomyContextFilter[];
9
11
  learningResourceType: string;
12
+ contextType: string;
10
13
  resourceTypes: ITaxonomyResourceType[];
11
14
  language: string;
12
15
  isPrimaryConnection: boolean;
16
+ isPrimary: boolean;
17
+ isActive: boolean;
13
18
  }
14
19
  export interface IArticleIntroduction {
15
20
  introduction: string;
@@ -178,11 +183,6 @@ export interface ISuggestOption {
178
183
  text: string;
179
184
  score: number;
180
185
  }
181
- export interface ITaxonomyContextFilter {
182
- id: string;
183
- name: string;
184
- relevance: string;
185
- }
186
186
  export interface ITaxonomyResourceType {
187
187
  id: string;
188
188
  name: string;
package/package.json CHANGED
@@ -26,5 +26,5 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.0.2"
28
28
  },
29
- "version": "0.2.8"
29
+ "version": "0.2.10"
30
30
  }