@ndla/types-backend 0.2.6 → 0.2.7

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,3 @@
1
- export type ErrorBody = (IBadGatewayBody | IGenericBody | IUnprocessableEntityBody | IBadRequestBody | IUnauthorizedBody | INotImplementedBody | INotFoundBody | IForbiddenBody);
2
1
  export interface IAboutFilmSubject {
3
2
  title: string;
4
3
  description: string;
@@ -10,46 +9,28 @@ export interface IAboutSubject {
10
9
  description: string;
11
10
  visualElement: IVisualElement;
12
11
  }
13
- export interface IBadGatewayBody {
14
- code: string;
15
- description: string;
16
- occurredAt: string;
17
- type: "BadGatewayBody";
18
- }
19
- export interface IBadRequestBody {
20
- code: string;
21
- description: string;
22
- occurredAt: string;
23
- type: "BadRequestBody";
24
- }
25
12
  export interface IBannerImage {
26
13
  mobileUrl?: string;
27
14
  mobileId?: number;
28
15
  desktopUrl: string;
29
16
  desktopId: number;
30
17
  }
18
+ export interface IErrorBody {
19
+ code: string;
20
+ description: string;
21
+ occurredAt: string;
22
+ statusCode: number;
23
+ }
31
24
  export interface IFilmFrontPageData {
32
25
  name: string;
33
26
  about: IAboutFilmSubject[];
34
27
  movieThemes: IMovieTheme[];
35
28
  slideShow: string[];
36
29
  }
37
- export interface IForbiddenBody {
38
- code: string;
39
- description: string;
40
- occurredAt: string;
41
- type: "ForbiddenBody";
42
- }
43
30
  export interface IFrontPageData {
44
31
  topical: string[];
45
32
  categories: ISubjectCollection[];
46
33
  }
47
- export interface IGenericBody {
48
- code: string;
49
- description: string;
50
- occurredAt: string;
51
- type: "GenericBody";
52
- }
53
34
  export interface IMovieTheme {
54
35
  name: IMovieThemeName[];
55
36
  movies: string[];
@@ -107,18 +88,6 @@ export interface INewSubjectFrontPageData {
107
88
  latestContent?: string[];
108
89
  goTo?: string[];
109
90
  }
110
- export interface INotFoundBody {
111
- code: string;
112
- description: string;
113
- occurredAt: string;
114
- type: "NotFoundBody";
115
- }
116
- export interface INotImplementedBody {
117
- code: string;
118
- description: string;
119
- occurredAt: string;
120
- type: "NotImplementedBody";
121
- }
122
91
  export interface ISubjectCollection {
123
92
  name: string;
124
93
  subjects: ISubjectFilters[];
@@ -144,18 +113,6 @@ export interface ISubjectPageData {
144
113
  goTo: string[];
145
114
  supportedLanguages: string[];
146
115
  }
147
- export interface IUnauthorizedBody {
148
- code: string;
149
- description: string;
150
- occurredAt: string;
151
- type: "UnauthorizedBody";
152
- }
153
- export interface IUnprocessableEntityBody {
154
- code: string;
155
- description: string;
156
- occurredAt: string;
157
- type: "UnprocessableEntityBody";
158
- }
159
116
  export interface IUpdatedSubjectFrontPageData {
160
117
  name?: string;
161
118
  filters?: string[];
package/package.json CHANGED
@@ -26,5 +26,5 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.0.2"
28
28
  },
29
- "version": "0.2.6"
29
+ "version": "0.2.7"
30
30
  }