@ndla/types-backend 0.2.37 → 0.2.39
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/article-api.d.ts +1 -1
- package/build/concept-api.d.ts +11 -2
- package/build/draft-api.d.ts +14 -3
- package/build/image-api.d.ts +10 -1
- package/build/myndla-api.d.ts +0 -92
- package/build/search-api.d.ts +1 -0
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
package/build/concept-api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type Either = (ILeft | IRight);
|
|
1
2
|
export interface IAuthor {
|
|
2
3
|
type: string;
|
|
3
4
|
name: string;
|
|
@@ -139,6 +140,10 @@ export interface IGlossExample {
|
|
|
139
140
|
[key: string]: string;
|
|
140
141
|
};
|
|
141
142
|
}
|
|
143
|
+
export interface ILeft {
|
|
144
|
+
value: "Could not find TSType[A] in scope and could not generate it";
|
|
145
|
+
type: "Left";
|
|
146
|
+
}
|
|
142
147
|
export interface ILicense {
|
|
143
148
|
license: string;
|
|
144
149
|
description?: string;
|
|
@@ -162,6 +167,10 @@ export interface INewConceptMetaImage {
|
|
|
162
167
|
id: string;
|
|
163
168
|
alt: string;
|
|
164
169
|
}
|
|
170
|
+
export interface IRight {
|
|
171
|
+
value: "Could not find TSType[B] in scope and could not generate it";
|
|
172
|
+
type: "Right";
|
|
173
|
+
}
|
|
165
174
|
export interface IStatus {
|
|
166
175
|
current: string;
|
|
167
176
|
other: string[];
|
|
@@ -182,14 +191,14 @@ export interface IUpdatedConcept {
|
|
|
182
191
|
language: string;
|
|
183
192
|
title?: string;
|
|
184
193
|
content?: string;
|
|
185
|
-
metaImage
|
|
194
|
+
metaImage: Either;
|
|
186
195
|
copyright?: IDraftCopyright;
|
|
187
196
|
tags?: string[];
|
|
188
197
|
subjectIds?: string[];
|
|
189
198
|
articleIds?: number[];
|
|
190
199
|
status?: string;
|
|
191
200
|
visualElement?: string;
|
|
192
|
-
responsibleId
|
|
201
|
+
responsibleId: Either;
|
|
193
202
|
conceptType?: string;
|
|
194
203
|
glossData?: IGlossData;
|
|
195
204
|
}
|
package/build/draft-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type Availability = ("
|
|
1
|
+
export type Availability = ("everyone" | "teacher");
|
|
2
|
+
export type Either = (ILeft | IRight);
|
|
2
3
|
export interface IArticle {
|
|
3
4
|
id: number;
|
|
4
5
|
oldNdlaUrl?: string;
|
|
@@ -84,6 +85,7 @@ export interface IComment {
|
|
|
84
85
|
created: string;
|
|
85
86
|
updated: string;
|
|
86
87
|
isOpen: boolean;
|
|
88
|
+
solved: boolean;
|
|
87
89
|
}
|
|
88
90
|
export interface IDraftCopyright {
|
|
89
91
|
license?: ILicense;
|
|
@@ -111,6 +113,10 @@ export interface IGrepCodesSearchResult {
|
|
|
111
113
|
pageSize: number;
|
|
112
114
|
results: string[];
|
|
113
115
|
}
|
|
116
|
+
export interface ILeft {
|
|
117
|
+
value: "Could not find TSType[A] in scope and could not generate it";
|
|
118
|
+
type: "Left";
|
|
119
|
+
}
|
|
114
120
|
export interface ILicense {
|
|
115
121
|
license: string;
|
|
116
122
|
description?: string;
|
|
@@ -165,6 +171,10 @@ export interface IRevisionMeta {
|
|
|
165
171
|
note: string;
|
|
166
172
|
status: string;
|
|
167
173
|
}
|
|
174
|
+
export interface IRight {
|
|
175
|
+
value: "Could not find TSType[B] in scope and could not generate it";
|
|
176
|
+
type: "Right";
|
|
177
|
+
}
|
|
168
178
|
export interface ISearchResult {
|
|
169
179
|
totalCount: number;
|
|
170
180
|
page: number;
|
|
@@ -193,7 +203,7 @@ export interface IUpdatedArticle {
|
|
|
193
203
|
tags?: string[];
|
|
194
204
|
introduction?: string;
|
|
195
205
|
metaDescription?: string;
|
|
196
|
-
metaImage
|
|
206
|
+
metaImage: Either;
|
|
197
207
|
visualElement?: string;
|
|
198
208
|
copyright?: IDraftCopyright;
|
|
199
209
|
requiredLibraries?: IRequiredLibrary[];
|
|
@@ -206,7 +216,7 @@ export interface IUpdatedArticle {
|
|
|
206
216
|
availability?: string;
|
|
207
217
|
relatedContent?: (IRelatedContentLink | number)[];
|
|
208
218
|
revisionMeta?: IRevisionMeta[];
|
|
209
|
-
responsibleId
|
|
219
|
+
responsibleId: Either;
|
|
210
220
|
slug?: string;
|
|
211
221
|
comments?: IUpdatedComment[];
|
|
212
222
|
prioritized?: boolean;
|
|
@@ -216,6 +226,7 @@ export interface IUpdatedComment {
|
|
|
216
226
|
id?: string;
|
|
217
227
|
content: string;
|
|
218
228
|
isOpen?: boolean;
|
|
229
|
+
solved?: boolean;
|
|
219
230
|
}
|
|
220
231
|
export interface IUpdatedUserData {
|
|
221
232
|
savedSearches?: string[];
|
package/build/image-api.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type Either = (ILeft | IRight);
|
|
1
2
|
export interface IAuthor {
|
|
2
3
|
type: string;
|
|
3
4
|
name: string;
|
|
@@ -100,6 +101,10 @@ export interface IImageTitle {
|
|
|
100
101
|
title: string;
|
|
101
102
|
language: string;
|
|
102
103
|
}
|
|
104
|
+
export interface ILeft {
|
|
105
|
+
value: "Could not find TSType[A] in scope and could not generate it";
|
|
106
|
+
type: "Left";
|
|
107
|
+
}
|
|
103
108
|
export interface ILicense {
|
|
104
109
|
license: string;
|
|
105
110
|
description?: string;
|
|
@@ -114,6 +119,10 @@ export interface INewImageMetaInformationV2 {
|
|
|
114
119
|
language: string;
|
|
115
120
|
modelReleased?: string;
|
|
116
121
|
}
|
|
122
|
+
export interface IRight {
|
|
123
|
+
value: "Could not find TSType[B] in scope and could not generate it";
|
|
124
|
+
type: "Right";
|
|
125
|
+
}
|
|
117
126
|
export interface ISearchParams {
|
|
118
127
|
query?: string;
|
|
119
128
|
license?: string;
|
|
@@ -152,7 +161,7 @@ export interface ITagsSearchResult {
|
|
|
152
161
|
export interface IUpdateImageMetaInformation {
|
|
153
162
|
language: string;
|
|
154
163
|
title?: string;
|
|
155
|
-
alttext
|
|
164
|
+
alttext: Either;
|
|
156
165
|
copyright?: ICopyright;
|
|
157
166
|
tags?: string[];
|
|
158
167
|
caption?: string;
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -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;
|
package/build/search-api.d.ts
CHANGED
package/package.json
CHANGED