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