@ndla/types-backend 1.0.41 → 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.
@@ -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
  /**
@@ -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
+ 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
+ };
2631
2733
  "postDraft-apiV1Files": {
2632
2734
  parameters: {
2633
2735
  query?: never;
@@ -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
@@ -32,5 +32,5 @@
32
32
  "tsx": "^4.19.3",
33
33
  "typescript": "^5.3.3"
34
34
  },
35
- "version": "1.0.41"
35
+ "version": "1.0.42"
36
36
  }