@ndla/types-backend 1.0.106 → 1.0.107
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 +80 -0
- package/build/concept-api.d.ts +16 -0
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -172,6 +172,26 @@ export type paths = {
|
|
|
172
172
|
patch?: never;
|
|
173
173
|
trace?: never;
|
|
174
174
|
};
|
|
175
|
+
"/article-api/v2/articles/{article_id}/revision-history": {
|
|
176
|
+
parameters: {
|
|
177
|
+
query?: never;
|
|
178
|
+
header?: never;
|
|
179
|
+
path?: never;
|
|
180
|
+
cookie?: never;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Get the revision history for an article
|
|
184
|
+
* @description Get an object that describes the revision history for a specific article
|
|
185
|
+
*/
|
|
186
|
+
get: operations["getArticle-apiV2ArticlesArticle_idRevision-history"];
|
|
187
|
+
put?: never;
|
|
188
|
+
post?: never;
|
|
189
|
+
delete?: never;
|
|
190
|
+
options?: never;
|
|
191
|
+
head?: never;
|
|
192
|
+
patch?: never;
|
|
193
|
+
trace?: never;
|
|
194
|
+
};
|
|
175
195
|
};
|
|
176
196
|
export type webhooks = Record<string, never>;
|
|
177
197
|
export type components = {
|
|
@@ -236,6 +256,14 @@ export type components = {
|
|
|
236
256
|
/** @description The ISO 639-1 language code describing which article translation this meta description belongs to */
|
|
237
257
|
language: string;
|
|
238
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* ArticleRevisionHistoryDTO
|
|
261
|
+
* @description Information about article revision history
|
|
262
|
+
*/
|
|
263
|
+
ArticleRevisionHistoryDTO: {
|
|
264
|
+
/** @description The revisions of an article, with the latest revision being the first in the list */
|
|
265
|
+
revision: components["schemas"]["ArticleV2DTO"][];
|
|
266
|
+
};
|
|
239
267
|
/**
|
|
240
268
|
* ArticleSearchParamsDTO
|
|
241
269
|
* @description The search parameters
|
|
@@ -609,6 +637,7 @@ export type ArticleIdsDTO = components['schemas']['ArticleIdsDTO'];
|
|
|
609
637
|
export type ArticleIntroductionDTO = components['schemas']['ArticleIntroductionDTO'];
|
|
610
638
|
export type ArticleMetaDescriptionDTO = components['schemas']['ArticleMetaDescriptionDTO'];
|
|
611
639
|
export type ArticleMetaImageDTO = components['schemas']['ArticleMetaImageDTO'];
|
|
640
|
+
export type ArticleRevisionHistoryDTO = components['schemas']['ArticleRevisionHistoryDTO'];
|
|
612
641
|
export type ArticleSearchParamsDTO = components['schemas']['ArticleSearchParamsDTO'];
|
|
613
642
|
export type ArticleSummaryV2DTO = components['schemas']['ArticleSummaryV2DTO'];
|
|
614
643
|
export type ArticleTagDTO = components['schemas']['ArticleTagDTO'];
|
|
@@ -1129,4 +1158,55 @@ export interface operations {
|
|
|
1129
1158
|
};
|
|
1130
1159
|
};
|
|
1131
1160
|
};
|
|
1161
|
+
"getArticle-apiV2ArticlesArticle_idRevision-history": {
|
|
1162
|
+
parameters: {
|
|
1163
|
+
query?: {
|
|
1164
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1165
|
+
language?: string;
|
|
1166
|
+
/** @description Fallback to existing language if language is specified. */
|
|
1167
|
+
fallback?: boolean;
|
|
1168
|
+
};
|
|
1169
|
+
header?: never;
|
|
1170
|
+
path: {
|
|
1171
|
+
/** @description Id or slug of the article that is to be fetched. */
|
|
1172
|
+
article_id: number;
|
|
1173
|
+
};
|
|
1174
|
+
cookie?: never;
|
|
1175
|
+
};
|
|
1176
|
+
requestBody?: never;
|
|
1177
|
+
responses: {
|
|
1178
|
+
200: {
|
|
1179
|
+
headers: {
|
|
1180
|
+
[name: string]: unknown;
|
|
1181
|
+
};
|
|
1182
|
+
content: {
|
|
1183
|
+
"application/json": components["schemas"]["ArticleRevisionHistoryDTO"];
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
400: {
|
|
1187
|
+
headers: {
|
|
1188
|
+
[name: string]: unknown;
|
|
1189
|
+
};
|
|
1190
|
+
content: {
|
|
1191
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
404: {
|
|
1195
|
+
headers: {
|
|
1196
|
+
[name: string]: unknown;
|
|
1197
|
+
};
|
|
1198
|
+
content: {
|
|
1199
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
500: {
|
|
1203
|
+
headers: {
|
|
1204
|
+
[name: string]: unknown;
|
|
1205
|
+
};
|
|
1206
|
+
content: {
|
|
1207
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1132
1212
|
}
|
package/build/concept-api.d.ts
CHANGED
|
@@ -1111,6 +1111,14 @@ export interface operations {
|
|
|
1111
1111
|
"application/json": components["schemas"]["AllErrors"];
|
|
1112
1112
|
};
|
|
1113
1113
|
};
|
|
1114
|
+
401: {
|
|
1115
|
+
headers: {
|
|
1116
|
+
[name: string]: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
content: {
|
|
1119
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1114
1122
|
403: {
|
|
1115
1123
|
headers: {
|
|
1116
1124
|
[name: string]: unknown;
|
|
@@ -1385,6 +1393,14 @@ export interface operations {
|
|
|
1385
1393
|
"application/json": components["schemas"]["AllErrors"];
|
|
1386
1394
|
};
|
|
1387
1395
|
};
|
|
1396
|
+
401: {
|
|
1397
|
+
headers: {
|
|
1398
|
+
[name: string]: unknown;
|
|
1399
|
+
};
|
|
1400
|
+
content: {
|
|
1401
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1388
1404
|
403: {
|
|
1389
1405
|
headers: {
|
|
1390
1406
|
[name: string]: unknown;
|