@ndla/types-backend 1.0.40 → 1.0.42
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 +105 -17
- package/build/draft-api.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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
|
/**
|
|
@@ -1525,13 +1566,7 @@ export interface operations {
|
|
|
1525
1566
|
};
|
|
1526
1567
|
"postDraft-apiV1Drafts": {
|
|
1527
1568
|
parameters: {
|
|
1528
|
-
query?:
|
|
1529
|
-
externalId?: string[];
|
|
1530
|
-
oldNdlaCreatedDate?: string;
|
|
1531
|
-
oldNdlaUpdatedDate?: string;
|
|
1532
|
-
externalSubjectIds?: string[];
|
|
1533
|
-
importId?: string;
|
|
1534
|
-
};
|
|
1569
|
+
query?: never;
|
|
1535
1570
|
header?: never;
|
|
1536
1571
|
path?: never;
|
|
1537
1572
|
cookie?: never;
|
|
@@ -1856,13 +1891,7 @@ export interface operations {
|
|
|
1856
1891
|
};
|
|
1857
1892
|
"patchDraft-apiV1DraftsArticle_id": {
|
|
1858
1893
|
parameters: {
|
|
1859
|
-
query?:
|
|
1860
|
-
externalId?: string[];
|
|
1861
|
-
oldNdlaCreatedDate?: string;
|
|
1862
|
-
oldNdlaUpdatedDate?: string;
|
|
1863
|
-
externalSubjectIds?: string[];
|
|
1864
|
-
importId?: string;
|
|
1865
|
-
};
|
|
1894
|
+
query?: never;
|
|
1866
1895
|
header?: never;
|
|
1867
1896
|
path: {
|
|
1868
1897
|
/** @description Id of the article that is to be fetched */
|
|
@@ -2072,9 +2101,7 @@ export interface operations {
|
|
|
2072
2101
|
};
|
|
2073
2102
|
"putDraft-apiV1DraftsArticle_idStatusStatus": {
|
|
2074
2103
|
parameters: {
|
|
2075
|
-
query?:
|
|
2076
|
-
import_publish?: boolean;
|
|
2077
|
-
};
|
|
2104
|
+
query?: never;
|
|
2078
2105
|
header?: never;
|
|
2079
2106
|
path: {
|
|
2080
2107
|
/** @description Id of the article that is to be fetched */
|
|
@@ -2642,6 +2669,67 @@ export interface operations {
|
|
|
2642
2669
|
};
|
|
2643
2670
|
};
|
|
2644
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
|
+
200: {
|
|
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
|
+
};
|
|
2645
2733
|
"postDraft-apiV1Files": {
|
|
2646
2734
|
parameters: {
|
|
2647
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"];
|
package/package.json
CHANGED