@ndla/types-backend 1.0.47 → 1.0.49
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.
|
@@ -906,10 +906,6 @@ export interface operations {
|
|
|
906
906
|
responses: {
|
|
907
907
|
200: {
|
|
908
908
|
headers: {
|
|
909
|
-
/**
|
|
910
|
-
* @description null
|
|
911
|
-
* @example null
|
|
912
|
-
*/
|
|
913
909
|
"search-context"?: string;
|
|
914
910
|
[name: string]: unknown;
|
|
915
911
|
};
|
|
@@ -1029,10 +1025,6 @@ export interface operations {
|
|
|
1029
1025
|
responses: {
|
|
1030
1026
|
200: {
|
|
1031
1027
|
headers: {
|
|
1032
|
-
/**
|
|
1033
|
-
* @description null
|
|
1034
|
-
* @example null
|
|
1035
|
-
*/
|
|
1036
1028
|
"search-context"?: string;
|
|
1037
1029
|
[name: string]: unknown;
|
|
1038
1030
|
};
|
|
@@ -1451,10 +1443,6 @@ export interface operations {
|
|
|
1451
1443
|
responses: {
|
|
1452
1444
|
200: {
|
|
1453
1445
|
headers: {
|
|
1454
|
-
/**
|
|
1455
|
-
* @description null
|
|
1456
|
-
* @example null
|
|
1457
|
-
*/
|
|
1458
1446
|
"search-context"?: string;
|
|
1459
1447
|
[name: string]: unknown;
|
|
1460
1448
|
};
|
|
@@ -1566,10 +1554,6 @@ export interface operations {
|
|
|
1566
1554
|
responses: {
|
|
1567
1555
|
200: {
|
|
1568
1556
|
headers: {
|
|
1569
|
-
/**
|
|
1570
|
-
* @description null
|
|
1571
|
-
* @example null
|
|
1572
|
-
*/
|
|
1573
1557
|
"search-context"?: string;
|
|
1574
1558
|
[name: string]: unknown;
|
|
1575
1559
|
};
|
|
@@ -773,10 +773,6 @@ export interface operations {
|
|
|
773
773
|
responses: {
|
|
774
774
|
200: {
|
|
775
775
|
headers: {
|
|
776
|
-
/**
|
|
777
|
-
* @description null
|
|
778
|
-
* @example null
|
|
779
|
-
*/
|
|
780
776
|
"Cache-Control": string;
|
|
781
777
|
[name: string]: unknown;
|
|
782
778
|
};
|
|
@@ -842,10 +838,6 @@ export interface operations {
|
|
|
842
838
|
responses: {
|
|
843
839
|
200: {
|
|
844
840
|
headers: {
|
|
845
|
-
/**
|
|
846
|
-
* @description null
|
|
847
|
-
* @example null
|
|
848
|
-
*/
|
|
849
841
|
"Cache-Control": string;
|
|
850
842
|
[name: string]: unknown;
|
|
851
843
|
};
|
|
@@ -902,10 +894,6 @@ export interface operations {
|
|
|
902
894
|
responses: {
|
|
903
895
|
200: {
|
|
904
896
|
headers: {
|
|
905
|
-
/**
|
|
906
|
-
* @description null
|
|
907
|
-
* @example null
|
|
908
|
-
*/
|
|
909
897
|
"Cache-Control": string;
|
|
910
898
|
[name: string]: unknown;
|
|
911
899
|
};
|
|
@@ -966,10 +954,6 @@ export interface operations {
|
|
|
966
954
|
responses: {
|
|
967
955
|
200: {
|
|
968
956
|
headers: {
|
|
969
|
-
/**
|
|
970
|
-
* @description null
|
|
971
|
-
* @example null
|
|
972
|
-
*/
|
|
973
957
|
"Cache-Control": string;
|
|
974
958
|
[name: string]: unknown;
|
|
975
959
|
};
|
|
@@ -1020,10 +1004,6 @@ export interface operations {
|
|
|
1020
1004
|
responses: {
|
|
1021
1005
|
200: {
|
|
1022
1006
|
headers: {
|
|
1023
|
-
/**
|
|
1024
|
-
* @description null
|
|
1025
|
-
* @example null
|
|
1026
|
-
*/
|
|
1027
1007
|
"Cache-Control": string;
|
|
1028
1008
|
[name: string]: unknown;
|
|
1029
1009
|
};
|
|
@@ -1083,10 +1063,6 @@ export interface operations {
|
|
|
1083
1063
|
responses: {
|
|
1084
1064
|
200: {
|
|
1085
1065
|
headers: {
|
|
1086
|
-
/**
|
|
1087
|
-
* @description null
|
|
1088
|
-
* @example null
|
|
1089
|
-
*/
|
|
1090
1066
|
"Cache-Control": string;
|
|
1091
1067
|
[name: string]: unknown;
|
|
1092
1068
|
};
|
|
@@ -1144,10 +1120,6 @@ export interface operations {
|
|
|
1144
1120
|
responses: {
|
|
1145
1121
|
200: {
|
|
1146
1122
|
headers: {
|
|
1147
|
-
/**
|
|
1148
|
-
* @description null
|
|
1149
|
-
* @example null
|
|
1150
|
-
*/
|
|
1151
1123
|
"Cache-Control": string;
|
|
1152
1124
|
[name: string]: unknown;
|
|
1153
1125
|
};
|
|
@@ -1217,10 +1189,6 @@ export interface operations {
|
|
|
1217
1189
|
responses: {
|
|
1218
1190
|
200: {
|
|
1219
1191
|
headers: {
|
|
1220
|
-
/**
|
|
1221
|
-
* @description null
|
|
1222
|
-
* @example null
|
|
1223
|
-
*/
|
|
1224
1192
|
"Cache-Control": string;
|
|
1225
1193
|
[name: string]: unknown;
|
|
1226
1194
|
};
|
|
@@ -1315,10 +1283,6 @@ export interface operations {
|
|
|
1315
1283
|
responses: {
|
|
1316
1284
|
200: {
|
|
1317
1285
|
headers: {
|
|
1318
|
-
/**
|
|
1319
|
-
* @description null
|
|
1320
|
-
* @example null
|
|
1321
|
-
*/
|
|
1322
1286
|
"Cache-Control": string;
|
|
1323
1287
|
[name: string]: unknown;
|
|
1324
1288
|
};
|
|
@@ -1367,10 +1331,6 @@ export interface operations {
|
|
|
1367
1331
|
responses: {
|
|
1368
1332
|
201: {
|
|
1369
1333
|
headers: {
|
|
1370
|
-
/**
|
|
1371
|
-
* @description null
|
|
1372
|
-
* @example null
|
|
1373
|
-
*/
|
|
1374
1334
|
"Cache-Control": string;
|
|
1375
1335
|
[name: string]: unknown;
|
|
1376
1336
|
};
|
|
@@ -188,6 +188,26 @@ export type paths = {
|
|
|
188
188
|
patch?: never;
|
|
189
189
|
trace?: never;
|
|
190
190
|
};
|
|
191
|
+
"/draft-api/v1/drafts/{article_id}/revision-history": {
|
|
192
|
+
parameters: {
|
|
193
|
+
query?: never;
|
|
194
|
+
header?: never;
|
|
195
|
+
path?: never;
|
|
196
|
+
cookie?: never;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Get the revision history for an article
|
|
200
|
+
* @description Get an object that describes the revision history for a specific article
|
|
201
|
+
*/
|
|
202
|
+
get: operations["getDraft-apiV1DraftsArticle_idRevision-history"];
|
|
203
|
+
put?: never;
|
|
204
|
+
post?: never;
|
|
205
|
+
delete?: never;
|
|
206
|
+
options?: never;
|
|
207
|
+
head?: never;
|
|
208
|
+
patch?: never;
|
|
209
|
+
trace?: never;
|
|
210
|
+
};
|
|
191
211
|
"/draft-api/v1/drafts/external_id/{deprecated_node_id}": {
|
|
192
212
|
parameters: {
|
|
193
213
|
query?: never;
|
|
@@ -408,6 +428,26 @@ export type paths = {
|
|
|
408
428
|
patch?: never;
|
|
409
429
|
trace?: never;
|
|
410
430
|
};
|
|
431
|
+
"/draft-api/v1/drafts/{article_id}/current-revision": {
|
|
432
|
+
parameters: {
|
|
433
|
+
query?: never;
|
|
434
|
+
header?: never;
|
|
435
|
+
path?: never;
|
|
436
|
+
cookie?: never;
|
|
437
|
+
};
|
|
438
|
+
get?: never;
|
|
439
|
+
put?: never;
|
|
440
|
+
post?: never;
|
|
441
|
+
/**
|
|
442
|
+
* Delete the current revision of an article
|
|
443
|
+
* @description Delete the current revision of an article
|
|
444
|
+
*/
|
|
445
|
+
delete: operations["deleteDraft-apiV1DraftsArticle_idCurrent-revision"];
|
|
446
|
+
options?: never;
|
|
447
|
+
head?: never;
|
|
448
|
+
patch?: never;
|
|
449
|
+
trace?: never;
|
|
450
|
+
};
|
|
411
451
|
"/draft-api/v1/files": {
|
|
412
452
|
parameters: {
|
|
413
453
|
query?: never;
|
|
@@ -597,6 +637,16 @@ export type components = {
|
|
|
597
637
|
/** @description The ISO 639-1 language code describing which article translation this meta image belongs to */
|
|
598
638
|
language: string;
|
|
599
639
|
};
|
|
640
|
+
/**
|
|
641
|
+
* ArticleRevisionHistoryDTO
|
|
642
|
+
* @description Information about article revision history
|
|
643
|
+
*/
|
|
644
|
+
ArticleRevisionHistoryDTO: {
|
|
645
|
+
/** @description The revisions of an article, with the latest revision being the first in the list */
|
|
646
|
+
revisions: components["schemas"]["ArticleDTO"][];
|
|
647
|
+
/** @description Whether or not the current revision is safe to delete */
|
|
648
|
+
canDeleteCurrentRevision: boolean;
|
|
649
|
+
};
|
|
600
650
|
/**
|
|
601
651
|
* ArticleSearchParamsDTO
|
|
602
652
|
* @description The search parameters
|
|
@@ -2038,6 +2088,57 @@ export interface operations {
|
|
|
2038
2088
|
};
|
|
2039
2089
|
};
|
|
2040
2090
|
};
|
|
2091
|
+
"getDraft-apiV1DraftsArticle_idRevision-history": {
|
|
2092
|
+
parameters: {
|
|
2093
|
+
query?: {
|
|
2094
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
2095
|
+
language?: string;
|
|
2096
|
+
/** @description Fallback to existing language if language is specified. */
|
|
2097
|
+
fallback?: boolean;
|
|
2098
|
+
};
|
|
2099
|
+
header?: never;
|
|
2100
|
+
path: {
|
|
2101
|
+
/** @description Id of the article that is to be fetched */
|
|
2102
|
+
article_id: number;
|
|
2103
|
+
};
|
|
2104
|
+
cookie?: never;
|
|
2105
|
+
};
|
|
2106
|
+
requestBody?: never;
|
|
2107
|
+
responses: {
|
|
2108
|
+
200: {
|
|
2109
|
+
headers: {
|
|
2110
|
+
[name: string]: unknown;
|
|
2111
|
+
};
|
|
2112
|
+
content: {
|
|
2113
|
+
"application/json": components["schemas"]["ArticleRevisionHistoryDTO"];
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
400: {
|
|
2117
|
+
headers: {
|
|
2118
|
+
[name: string]: unknown;
|
|
2119
|
+
};
|
|
2120
|
+
content: {
|
|
2121
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
404: {
|
|
2125
|
+
headers: {
|
|
2126
|
+
[name: string]: unknown;
|
|
2127
|
+
};
|
|
2128
|
+
content: {
|
|
2129
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
500: {
|
|
2133
|
+
headers: {
|
|
2134
|
+
[name: string]: unknown;
|
|
2135
|
+
};
|
|
2136
|
+
content: {
|
|
2137
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2041
2142
|
"getDraft-apiV1DraftsExternal_idDeprecated_node_id": {
|
|
2042
2143
|
parameters: {
|
|
2043
2144
|
query?: never;
|
|
@@ -2730,6 +2831,58 @@ export interface operations {
|
|
|
2730
2831
|
};
|
|
2731
2832
|
};
|
|
2732
2833
|
};
|
|
2834
|
+
"deleteDraft-apiV1DraftsArticle_idCurrent-revision": {
|
|
2835
|
+
parameters: {
|
|
2836
|
+
query?: never;
|
|
2837
|
+
header?: never;
|
|
2838
|
+
path: {
|
|
2839
|
+
/** @description Id of the article that is to be fetched */
|
|
2840
|
+
article_id: number;
|
|
2841
|
+
};
|
|
2842
|
+
cookie?: never;
|
|
2843
|
+
};
|
|
2844
|
+
requestBody?: never;
|
|
2845
|
+
responses: {
|
|
2846
|
+
204: {
|
|
2847
|
+
headers: {
|
|
2848
|
+
[name: string]: unknown;
|
|
2849
|
+
};
|
|
2850
|
+
content?: never;
|
|
2851
|
+
};
|
|
2852
|
+
400: {
|
|
2853
|
+
headers: {
|
|
2854
|
+
[name: string]: unknown;
|
|
2855
|
+
};
|
|
2856
|
+
content: {
|
|
2857
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
404: {
|
|
2861
|
+
headers: {
|
|
2862
|
+
[name: string]: unknown;
|
|
2863
|
+
};
|
|
2864
|
+
content: {
|
|
2865
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
422: {
|
|
2869
|
+
headers: {
|
|
2870
|
+
[name: string]: unknown;
|
|
2871
|
+
};
|
|
2872
|
+
content: {
|
|
2873
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2874
|
+
};
|
|
2875
|
+
};
|
|
2876
|
+
500: {
|
|
2877
|
+
headers: {
|
|
2878
|
+
[name: string]: unknown;
|
|
2879
|
+
};
|
|
2880
|
+
content: {
|
|
2881
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2882
|
+
};
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2733
2886
|
"postDraft-apiV1Files": {
|
|
2734
2887
|
parameters: {
|
|
2735
2888
|
query?: never;
|
package/build/draft-api.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type ArticleMetaDescriptionDTO = schemas["ArticleMetaDescriptionDTO"];
|
|
|
17
17
|
export type IArticleMetaDescriptionDTO = schemas["ArticleMetaDescriptionDTO"];
|
|
18
18
|
export type ArticleMetaImageDTO = schemas["ArticleMetaImageDTO"];
|
|
19
19
|
export type IArticleMetaImageDTO = schemas["ArticleMetaImageDTO"];
|
|
20
|
+
export type ArticleRevisionHistoryDTO = schemas["ArticleRevisionHistoryDTO"];
|
|
21
|
+
export type IArticleRevisionHistoryDTO = schemas["ArticleRevisionHistoryDTO"];
|
|
20
22
|
export type ArticleSearchParamsDTO = schemas["ArticleSearchParamsDTO"];
|
|
21
23
|
export type IArticleSearchParamsDTO = schemas["ArticleSearchParamsDTO"];
|
|
22
24
|
export type ArticleSearchResultDTO = schemas["ArticleSearchResultDTO"];
|
package/package.json
CHANGED
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"tsx": "^4.19.3",
|
|
33
33
|
"typescript": "^5.3.3"
|
|
34
34
|
},
|
|
35
|
-
"version": "1.0.
|
|
35
|
+
"version": "1.0.49",
|
|
36
36
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
37
37
|
}
|