musora-content-services 2.6.4 → 2.7.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.7.0](https://github.com/railroadmedia/musora-content-services/compare/v2.6.4...v2.7.0) (2025-05-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * **BEH-398:** delete & undelete playlist endpoints ([#260](https://github.com/railroadmedia/musora-content-services/issues/260)) ([338434e](https://github.com/railroadmedia/musora-content-services/commit/338434e42f200fd2a1f1379727c6d14315406676))
11
+
5
12
  ### [2.6.4](https://github.com/railroadmedia/musora-content-services/compare/v2.6.3...v2.6.4) (2025-05-21)
6
13
 
7
14
  ### [2.6.3](https://github.com/railroadmedia/musora-content-services/compare/v2.6.2...v2.6.3) (2025-05-21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.6.4",
3
+ "version": "2.7.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
package/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  addItemToPlaylist,
10
10
  createPlaylist,
11
11
  deleteItemsFromPlaylist,
12
+ deletePlaylist,
12
13
  duplicatePlaylist,
13
14
  fetchPlaylist,
14
15
  fetchPlaylistItems,
@@ -16,6 +17,7 @@ import {
16
17
  likePlaylist,
17
18
  reportPlaylist,
18
19
  togglePlaylistPrivate,
20
+ undeletePlaylist,
19
21
  unlikePlaylist,
20
22
  updatePlaylist
21
23
  } from './services/content-org/playlists.js';
@@ -276,6 +278,7 @@ declare module 'musora-content-services' {
276
278
  createPracticeNotes,
277
279
  deleteComment,
278
280
  deleteItemsFromPlaylist,
281
+ deletePlaylist,
279
282
  deletePracticeSession,
280
283
  deleteUserActivity,
281
284
  duplicatePlaylist,
@@ -441,6 +444,7 @@ declare module 'musora-content-services' {
441
444
  togglePlaylistPrivate,
442
445
  unassignModeratorToComment,
443
446
  unblockUser,
447
+ undeletePlaylist,
444
448
  unlikeComment,
445
449
  unlikeContent,
446
450
  unlikePlaylist,
package/src/index.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  addItemToPlaylist,
10
10
  createPlaylist,
11
11
  deleteItemsFromPlaylist,
12
+ deletePlaylist,
12
13
  duplicatePlaylist,
13
14
  fetchPlaylist,
14
15
  fetchPlaylistItems,
@@ -16,6 +17,7 @@ import {
16
17
  likePlaylist,
17
18
  reportPlaylist,
18
19
  togglePlaylistPrivate,
20
+ undeletePlaylist,
19
21
  unlikePlaylist,
20
22
  updatePlaylist
21
23
  } from './services/content-org/playlists.js';
@@ -275,6 +277,7 @@ export {
275
277
  createPracticeNotes,
276
278
  deleteComment,
277
279
  deleteItemsFromPlaylist,
280
+ deletePlaylist,
278
281
  deletePracticeSession,
279
282
  deleteUserActivity,
280
283
  duplicatePlaylist,
@@ -440,6 +443,7 @@ export {
440
443
  togglePlaylistPrivate,
441
444
  unassignModeratorToComment,
442
445
  unblockUser,
446
+ undeletePlaylist,
443
447
  unlikeComment,
444
448
  unlikeContent,
445
449
  unlikePlaylist,
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -70,6 +70,17 @@ export async function createPlaylist(playlistData) {
70
70
  return await fetchHandler(url, 'POST', null, playlistData)
71
71
  }
72
72
 
73
+ export async function deletePlaylist(playlist) {
74
+ const url = `${BASE_PATH}/v1/user/playlists/delete/${playlist}`
75
+ return await fetchHandler(url, 'POST', null, playlist)
76
+ }
77
+
78
+ export async function undeletePlaylist(playlist) {
79
+ const url = `${BASE_PATH}/v1/user/playlists/undelete/${playlist}`
80
+ return await fetchHandler(url, 'POST', null, playlist)
81
+ }
82
+
83
+
73
84
  /**
74
85
  * Likes a playlist for the current user.
75
86
  *
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes