@ndla/types-backend 1.0.53 → 1.0.54

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.
@@ -427,6 +427,24 @@ export type components = {
427
427
  /** @description The name of the of the author */
428
428
  name: string;
429
429
  };
430
+ /**
431
+ * CommentDTO
432
+ * @description Information about a comment attached to an article
433
+ */
434
+ CommentDTO: {
435
+ /** @description Id of the comment */
436
+ id: string;
437
+ /** @description Content of the comment */
438
+ content: string;
439
+ /** @description When the comment was created */
440
+ created: string;
441
+ /** @description When the comment was last updated */
442
+ updated: string;
443
+ /** @description If the comment is open or closed */
444
+ isOpen: boolean;
445
+ /** @description If the comment is solved or not */
446
+ solved: boolean;
447
+ };
430
448
  /**
431
449
  * ContributorType
432
450
  * @description The description of the author. Eg. Photographer or Supplier
@@ -624,6 +642,8 @@ export type components = {
624
642
  /** @description Whether the owner of the learningpath is a MyNDLA user or not */
625
643
  isMyNDLAOwner: boolean;
626
644
  responsible?: components["schemas"]["ResponsibleDTO"];
645
+ /** @description Information about comments attached to the learningpath */
646
+ comments: components["schemas"]["CommentDTO"][];
627
647
  };
628
648
  /**
629
649
  * LearningStepContainerSummaryDTO
@@ -739,6 +759,16 @@ export type components = {
739
759
  /** @description When the message was left */
740
760
  date: string;
741
761
  };
762
+ /**
763
+ * NewCommentDTO
764
+ * @description Information about a comment attached to an article
765
+ */
766
+ NewCommentDTO: {
767
+ /** @description Content of the comment */
768
+ content: string;
769
+ /** @description If the comment is open or closed */
770
+ isOpen?: boolean;
771
+ };
742
772
  /**
743
773
  * NewCopyLearningPathV2DTO
744
774
  * @description Meta information for a new learningpath based on a copy
@@ -786,6 +816,8 @@ export type components = {
786
816
  copyright?: components["schemas"]["CopyrightDTO"];
787
817
  /** @description NDLA ID representing the editor responsible for this learningpath */
788
818
  responsibleId?: string;
819
+ /** @description Information about comments attached to the learningpath */
820
+ comments?: components["schemas"]["NewCommentDTO"][];
789
821
  };
790
822
  /**
791
823
  * NewLearningStepV2DTO
@@ -919,6 +951,20 @@ export type components = {
919
951
  /** @description Message that admins can place on a LearningPath for notifying a owner of issues with the LearningPath */
920
952
  message?: string;
921
953
  };
954
+ /**
955
+ * UpdatedCommentDTO
956
+ * @description Information about a comment attached to an article
957
+ */
958
+ UpdatedCommentDTO: {
959
+ /** @description Id of the comment */
960
+ id?: string;
961
+ /** @description Content of the comment */
962
+ content: string;
963
+ /** @description If the comment is open or closed */
964
+ isOpen?: boolean;
965
+ /** @description If the comment is solved or not */
966
+ solved?: boolean;
967
+ };
922
968
  /**
923
969
  * UpdatedLearningPathV2DTO
924
970
  * @description Meta information for a new learningpath
@@ -950,6 +996,8 @@ export type components = {
950
996
  deleteMessage?: boolean;
951
997
  /** @description NDLA ID representing the editor responsible for this learningpath */
952
998
  responsibleId?: string | null;
999
+ /** @description Information about comments attached to the learningpath */
1000
+ comments?: components["schemas"]["UpdatedCommentDTO"][];
953
1001
  };
954
1002
  /**
955
1003
  * UpdatedLearningStepV2DTO
@@ -5,6 +5,8 @@ export type AllErrors = schemas["AllErrors"];
5
5
  export type IAllErrors = schemas["AllErrors"];
6
6
  export type AuthorDTO = schemas["AuthorDTO"];
7
7
  export type IAuthorDTO = schemas["AuthorDTO"];
8
+ export type CommentDTO = schemas["CommentDTO"];
9
+ export type ICommentDTO = schemas["CommentDTO"];
8
10
  export type ContributorType = schemas["ContributorType"];
9
11
  export type IContributorType = schemas["ContributorType"];
10
12
  export type CopyrightDTO = schemas["CopyrightDTO"];
@@ -43,6 +45,8 @@ export type LicenseDTO = schemas["LicenseDTO"];
43
45
  export type ILicenseDTO = schemas["LicenseDTO"];
44
46
  export type MessageDTO = schemas["MessageDTO"];
45
47
  export type IMessageDTO = schemas["MessageDTO"];
48
+ export type NewCommentDTO = schemas["NewCommentDTO"];
49
+ export type INewCommentDTO = schemas["NewCommentDTO"];
46
50
  export type NewCopyLearningPathV2DTO = schemas["NewCopyLearningPathV2DTO"];
47
51
  export type INewCopyLearningPathV2DTO = schemas["NewCopyLearningPathV2DTO"];
48
52
  export type NewLearningPathV2DTO = schemas["NewLearningPathV2DTO"];
@@ -63,6 +67,8 @@ export type TitleDTO = schemas["TitleDTO"];
63
67
  export type ITitleDTO = schemas["TitleDTO"];
64
68
  export type UpdateLearningPathStatusDTO = schemas["UpdateLearningPathStatusDTO"];
65
69
  export type IUpdateLearningPathStatusDTO = schemas["UpdateLearningPathStatusDTO"];
70
+ export type UpdatedCommentDTO = schemas["UpdatedCommentDTO"];
71
+ export type IUpdatedCommentDTO = schemas["UpdatedCommentDTO"];
66
72
  export type UpdatedLearningPathV2DTO = schemas["UpdatedLearningPathV2DTO"];
67
73
  export type IUpdatedLearningPathV2DTO = schemas["UpdatedLearningPathV2DTO"];
68
74
  export type UpdatedLearningStepV2DTO = schemas["UpdatedLearningStepV2DTO"];
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.53",
35
+ "version": "1.0.54",
36
36
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
37
37
  }