musora-content-services 2.8.4 → 2.9.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.9.0](https://github.com/railroadmedia/musora-content-services/compare/v2.8.4...v2.9.0) (2025-06-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * **BEH-582:** comment undelete endpoint ([#283](https://github.com/railroadmedia/musora-content-services/issues/283)) ([da4f460](https://github.com/railroadmedia/musora-content-services/commit/da4f4602fdd6deb4362a50264a0f224ab5b5a432))
11
+
5
12
  ### [2.8.4](https://github.com/railroadmedia/musora-content-services/compare/v2.8.3...v2.8.4) (2025-06-10)
6
13
 
7
14
  ### [2.8.3](https://github.com/railroadmedia/musora-content-services/compare/v2.8.2...v2.8.3) (2025-06-06)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.8.4",
3
+ "version": "2.9.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
@@ -148,6 +148,7 @@ import {
148
148
  postRecordWatchSession,
149
149
  replyToComment,
150
150
  reportComment,
151
+ restoreComment,
151
152
  setStudentViewForUser,
152
153
  unassignModeratorToComment,
153
154
  unlikeComment
@@ -464,6 +465,7 @@ declare module 'musora-content-services' {
464
465
  reportComment,
465
466
  reportPlaylist,
466
467
  reset,
468
+ restoreComment,
467
469
  restorePracticeSession,
468
470
  restoreUserPractice,
469
471
  setStudentViewForUser,
package/src/index.js CHANGED
@@ -148,6 +148,7 @@ import {
148
148
  postRecordWatchSession,
149
149
  replyToComment,
150
150
  reportComment,
151
+ restoreComment,
151
152
  setStudentViewForUser,
152
153
  unassignModeratorToComment,
153
154
  unlikeComment
@@ -463,6 +464,7 @@ export {
463
464
  reportComment,
464
465
  reportPlaylist,
465
466
  reset,
467
+ restoreComment,
466
468
  restorePracticeSession,
467
469
  restoreUserPractice,
468
470
  setStudentViewForUser,
@@ -635,6 +635,15 @@ export async function deleteComment(commentId) {
635
635
  return await fetchHandler(url, 'DELETE')
636
636
  }
637
637
 
638
+ /**
639
+ * @param {int} commentId
640
+ * @returns {Promise<*|null>}
641
+ */
642
+ export async function restoreComment(commentId) {
643
+ const url = `/api/content/v1/comments/restore/${commentId}`
644
+ return await fetchHandler(url, 'POST')
645
+ }
646
+
638
647
  /**
639
648
  * @param {int} commentId
640
649
  * @param {string} comment