@ndla/types-backend 1.0.48 → 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.
- package/build/draft-api-openapi.d.ts +153 -0
- package/build/draft-api.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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
|
}
|