@ndla/types-backend 0.2.4 → 0.2.6
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.
package/build/frontpage-api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type ErrorBody = (IBadGatewayBody | IGenericBody | IUnprocessableEntityBody | IBadRequestBody | IUnauthorizedBody | INotImplementedBody | INotFoundBody | IForbiddenBody);
|
|
1
2
|
export interface IAboutFilmSubject {
|
|
2
3
|
title: string;
|
|
3
4
|
description: string;
|
|
@@ -9,27 +10,46 @@ export interface IAboutSubject {
|
|
|
9
10
|
description: string;
|
|
10
11
|
visualElement: IVisualElement;
|
|
11
12
|
}
|
|
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
|
+
}
|
|
12
25
|
export interface IBannerImage {
|
|
13
26
|
mobileUrl?: string;
|
|
14
27
|
mobileId?: number;
|
|
15
28
|
desktopUrl: string;
|
|
16
29
|
desktopId: number;
|
|
17
30
|
}
|
|
18
|
-
export interface IErrorBody {
|
|
19
|
-
code: string;
|
|
20
|
-
description: string;
|
|
21
|
-
occuredAt: string;
|
|
22
|
-
}
|
|
23
31
|
export interface IFilmFrontPageData {
|
|
24
32
|
name: string;
|
|
25
33
|
about: IAboutFilmSubject[];
|
|
26
34
|
movieThemes: IMovieTheme[];
|
|
27
35
|
slideShow: string[];
|
|
28
36
|
}
|
|
37
|
+
export interface IForbiddenBody {
|
|
38
|
+
code: string;
|
|
39
|
+
description: string;
|
|
40
|
+
occurredAt: string;
|
|
41
|
+
type: "ForbiddenBody";
|
|
42
|
+
}
|
|
29
43
|
export interface IFrontPageData {
|
|
30
44
|
topical: string[];
|
|
31
45
|
categories: ISubjectCollection[];
|
|
32
46
|
}
|
|
47
|
+
export interface IGenericBody {
|
|
48
|
+
code: string;
|
|
49
|
+
description: string;
|
|
50
|
+
occurredAt: string;
|
|
51
|
+
type: "GenericBody";
|
|
52
|
+
}
|
|
33
53
|
export interface IMovieTheme {
|
|
34
54
|
name: IMovieThemeName[];
|
|
35
55
|
movies: string[];
|
|
@@ -87,6 +107,18 @@ export interface INewSubjectFrontPageData {
|
|
|
87
107
|
latestContent?: string[];
|
|
88
108
|
goTo?: string[];
|
|
89
109
|
}
|
|
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
|
+
}
|
|
90
122
|
export interface ISubjectCollection {
|
|
91
123
|
name: string;
|
|
92
124
|
subjects: ISubjectFilters[];
|
|
@@ -112,6 +144,18 @@ export interface ISubjectPageData {
|
|
|
112
144
|
goTo: string[];
|
|
113
145
|
supportedLanguages: string[];
|
|
114
146
|
}
|
|
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
|
+
}
|
|
115
159
|
export interface IUpdatedSubjectFrontPageData {
|
|
116
160
|
name?: string;
|
|
117
161
|
filters?: string[];
|
|
@@ -49,6 +49,7 @@ export interface IFolder {
|
|
|
49
49
|
created: string;
|
|
50
50
|
updated: string;
|
|
51
51
|
shared?: string;
|
|
52
|
+
description?: string;
|
|
52
53
|
}
|
|
53
54
|
export type IFolderData = IFolder;
|
|
54
55
|
export interface IIntroduction {
|
|
@@ -157,6 +158,7 @@ export interface INewFolder {
|
|
|
157
158
|
name: string;
|
|
158
159
|
parentId?: string;
|
|
159
160
|
status?: string;
|
|
161
|
+
description?: string;
|
|
160
162
|
}
|
|
161
163
|
export interface INewResource {
|
|
162
164
|
resourceType: string;
|
|
@@ -187,6 +189,7 @@ export interface ITitle {
|
|
|
187
189
|
export interface IUpdatedFolder {
|
|
188
190
|
name?: string;
|
|
189
191
|
status?: string;
|
|
192
|
+
description?: string;
|
|
190
193
|
}
|
|
191
194
|
export interface IUpdatedResource {
|
|
192
195
|
tags?: string[];
|
package/package.json
CHANGED