@ndla/types-backend 1.0.41 → 1.0.43
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.
|
@@ -1301,7 +1301,7 @@ export interface operations {
|
|
|
1301
1301
|
};
|
|
1302
1302
|
requestBody?: never;
|
|
1303
1303
|
responses: {
|
|
1304
|
-
|
|
1304
|
+
204: {
|
|
1305
1305
|
headers: {
|
|
1306
1306
|
[name: string]: unknown;
|
|
1307
1307
|
};
|
|
@@ -1730,7 +1730,7 @@ export interface operations {
|
|
|
1730
1730
|
};
|
|
1731
1731
|
requestBody?: never;
|
|
1732
1732
|
responses: {
|
|
1733
|
-
|
|
1733
|
+
204: {
|
|
1734
1734
|
headers: {
|
|
1735
1735
|
[name: string]: unknown;
|
|
1736
1736
|
};
|
|
@@ -388,6 +388,26 @@ export type paths = {
|
|
|
388
388
|
patch?: never;
|
|
389
389
|
trace?: never;
|
|
390
390
|
};
|
|
391
|
+
"/draft-api/v1/drafts/notes": {
|
|
392
|
+
parameters: {
|
|
393
|
+
query?: never;
|
|
394
|
+
header?: never;
|
|
395
|
+
path?: never;
|
|
396
|
+
cookie?: never;
|
|
397
|
+
};
|
|
398
|
+
get?: never;
|
|
399
|
+
put?: never;
|
|
400
|
+
/**
|
|
401
|
+
* Add notes to a draft
|
|
402
|
+
* @description Add notes to a draft
|
|
403
|
+
*/
|
|
404
|
+
post: operations["postDraft-apiV1DraftsNotes"];
|
|
405
|
+
delete?: never;
|
|
406
|
+
options?: never;
|
|
407
|
+
head?: never;
|
|
408
|
+
patch?: never;
|
|
409
|
+
trace?: never;
|
|
410
|
+
};
|
|
391
411
|
"/draft-api/v1/files": {
|
|
392
412
|
parameters: {
|
|
393
413
|
query?: never;
|
|
@@ -440,6 +460,27 @@ export type paths = {
|
|
|
440
460
|
export type webhooks = Record<string, never>;
|
|
441
461
|
export type components = {
|
|
442
462
|
schemas: {
|
|
463
|
+
/**
|
|
464
|
+
* AddMultipleNotesDTO
|
|
465
|
+
* @description Information about notes to add to drafts
|
|
466
|
+
*/
|
|
467
|
+
AddMultipleNotesDTO: {
|
|
468
|
+
/** @description Objects for which notes should be added to which drafts */
|
|
469
|
+
data: components["schemas"]["AddNoteDTO"][];
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* AddNoteDTO
|
|
473
|
+
* @description Information containing new notes and which draft to add them to
|
|
474
|
+
*/
|
|
475
|
+
AddNoteDTO: {
|
|
476
|
+
/**
|
|
477
|
+
* Format: int64
|
|
478
|
+
* @description Id of the draft to add notes to
|
|
479
|
+
*/
|
|
480
|
+
draftId: number;
|
|
481
|
+
/** @description Notes to add to the draft */
|
|
482
|
+
notes: string[];
|
|
483
|
+
};
|
|
443
484
|
/** AllErrors */
|
|
444
485
|
AllErrors: components["schemas"]["ErrorBody"] | components["schemas"]["NotFoundWithSupportedLanguages"] | components["schemas"]["ValidationErrorBody"];
|
|
445
486
|
/**
|
|
@@ -2472,7 +2513,7 @@ export interface operations {
|
|
|
2472
2513
|
};
|
|
2473
2514
|
requestBody?: never;
|
|
2474
2515
|
responses: {
|
|
2475
|
-
|
|
2516
|
+
204: {
|
|
2476
2517
|
headers: {
|
|
2477
2518
|
[name: string]: unknown;
|
|
2478
2519
|
};
|
|
@@ -2596,7 +2637,7 @@ export interface operations {
|
|
|
2596
2637
|
};
|
|
2597
2638
|
requestBody?: never;
|
|
2598
2639
|
responses: {
|
|
2599
|
-
|
|
2640
|
+
204: {
|
|
2600
2641
|
headers: {
|
|
2601
2642
|
[name: string]: unknown;
|
|
2602
2643
|
};
|
|
@@ -2628,6 +2669,67 @@ export interface operations {
|
|
|
2628
2669
|
};
|
|
2629
2670
|
};
|
|
2630
2671
|
};
|
|
2672
|
+
"postDraft-apiV1DraftsNotes": {
|
|
2673
|
+
parameters: {
|
|
2674
|
+
query?: never;
|
|
2675
|
+
header?: never;
|
|
2676
|
+
path?: never;
|
|
2677
|
+
cookie?: never;
|
|
2678
|
+
};
|
|
2679
|
+
requestBody: {
|
|
2680
|
+
content: {
|
|
2681
|
+
"application/json": components["schemas"]["AddMultipleNotesDTO"];
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
responses: {
|
|
2685
|
+
204: {
|
|
2686
|
+
headers: {
|
|
2687
|
+
[name: string]: unknown;
|
|
2688
|
+
};
|
|
2689
|
+
content?: never;
|
|
2690
|
+
};
|
|
2691
|
+
400: {
|
|
2692
|
+
headers: {
|
|
2693
|
+
[name: string]: unknown;
|
|
2694
|
+
};
|
|
2695
|
+
content: {
|
|
2696
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
401: {
|
|
2700
|
+
headers: {
|
|
2701
|
+
[name: string]: unknown;
|
|
2702
|
+
};
|
|
2703
|
+
content: {
|
|
2704
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2707
|
+
403: {
|
|
2708
|
+
headers: {
|
|
2709
|
+
[name: string]: unknown;
|
|
2710
|
+
};
|
|
2711
|
+
content: {
|
|
2712
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
404: {
|
|
2716
|
+
headers: {
|
|
2717
|
+
[name: string]: unknown;
|
|
2718
|
+
};
|
|
2719
|
+
content: {
|
|
2720
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
500: {
|
|
2724
|
+
headers: {
|
|
2725
|
+
[name: string]: unknown;
|
|
2726
|
+
};
|
|
2727
|
+
content: {
|
|
2728
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2631
2733
|
"postDraft-apiV1Files": {
|
|
2632
2734
|
parameters: {
|
|
2633
2735
|
query?: never;
|
package/build/draft-api.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as openapi from "./draft-api-openapi";
|
|
2
2
|
type schemas = openapi.components["schemas"];
|
|
3
3
|
export { openapi };
|
|
4
|
+
export type AddMultipleNotesDTO = schemas["AddMultipleNotesDTO"];
|
|
5
|
+
export type IAddMultipleNotesDTO = schemas["AddMultipleNotesDTO"];
|
|
6
|
+
export type AddNoteDTO = schemas["AddNoteDTO"];
|
|
7
|
+
export type IAddNoteDTO = schemas["AddNoteDTO"];
|
|
4
8
|
export type AllErrors = schemas["AllErrors"];
|
|
5
9
|
export type IAllErrors = schemas["AllErrors"];
|
|
6
10
|
export type ArticleContentDTO = schemas["ArticleContentDTO"];
|
|
@@ -1166,7 +1166,7 @@ export interface operations {
|
|
|
1166
1166
|
};
|
|
1167
1167
|
requestBody?: never;
|
|
1168
1168
|
responses: {
|
|
1169
|
-
|
|
1169
|
+
204: {
|
|
1170
1170
|
headers: {
|
|
1171
1171
|
[name: string]: unknown;
|
|
1172
1172
|
};
|
|
@@ -1755,7 +1755,7 @@ export interface operations {
|
|
|
1755
1755
|
};
|
|
1756
1756
|
requestBody?: never;
|
|
1757
1757
|
responses: {
|
|
1758
|
-
|
|
1758
|
+
204: {
|
|
1759
1759
|
headers: {
|
|
1760
1760
|
[name: string]: unknown;
|
|
1761
1761
|
};
|
|
@@ -1216,7 +1216,7 @@ export interface operations {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
requestBody?: never;
|
|
1218
1218
|
responses: {
|
|
1219
|
-
|
|
1219
|
+
204: {
|
|
1220
1220
|
headers: {
|
|
1221
1221
|
[name: string]: unknown;
|
|
1222
1222
|
};
|
|
@@ -1488,7 +1488,7 @@ export interface operations {
|
|
|
1488
1488
|
};
|
|
1489
1489
|
requestBody?: never;
|
|
1490
1490
|
responses: {
|
|
1491
|
-
|
|
1491
|
+
204: {
|
|
1492
1492
|
headers: {
|
|
1493
1493
|
[name: string]: unknown;
|
|
1494
1494
|
};
|
|
@@ -1788,7 +1788,7 @@ export interface operations {
|
|
|
1788
1788
|
};
|
|
1789
1789
|
};
|
|
1790
1790
|
responses: {
|
|
1791
|
-
|
|
1791
|
+
204: {
|
|
1792
1792
|
headers: {
|
|
1793
1793
|
[name: string]: unknown;
|
|
1794
1794
|
};
|
|
@@ -1863,7 +1863,7 @@ export interface operations {
|
|
|
1863
1863
|
};
|
|
1864
1864
|
};
|
|
1865
1865
|
responses: {
|
|
1866
|
-
|
|
1866
|
+
204: {
|
|
1867
1867
|
headers: {
|
|
1868
1868
|
[name: string]: unknown;
|
|
1869
1869
|
};
|
|
@@ -1935,7 +1935,7 @@ export interface operations {
|
|
|
1935
1935
|
};
|
|
1936
1936
|
};
|
|
1937
1937
|
responses: {
|
|
1938
|
-
|
|
1938
|
+
204: {
|
|
1939
1939
|
headers: {
|
|
1940
1940
|
[name: string]: unknown;
|
|
1941
1941
|
};
|
|
@@ -2006,7 +2006,7 @@ export interface operations {
|
|
|
2006
2006
|
};
|
|
2007
2007
|
requestBody?: never;
|
|
2008
2008
|
responses: {
|
|
2009
|
-
|
|
2009
|
+
204: {
|
|
2010
2010
|
headers: {
|
|
2011
2011
|
[name: string]: unknown;
|
|
2012
2012
|
};
|
|
@@ -2077,7 +2077,7 @@ export interface operations {
|
|
|
2077
2077
|
};
|
|
2078
2078
|
requestBody?: never;
|
|
2079
2079
|
responses: {
|
|
2080
|
-
|
|
2080
|
+
204: {
|
|
2081
2081
|
headers: {
|
|
2082
2082
|
[name: string]: unknown;
|
|
2083
2083
|
};
|
|
@@ -2273,7 +2273,7 @@ export interface operations {
|
|
|
2273
2273
|
};
|
|
2274
2274
|
requestBody?: never;
|
|
2275
2275
|
responses: {
|
|
2276
|
-
|
|
2276
|
+
204: {
|
|
2277
2277
|
headers: {
|
|
2278
2278
|
[name: string]: unknown;
|
|
2279
2279
|
};
|
package/package.json
CHANGED