musora-content-services 2.6.2 → 2.6.4
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 +4 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/filterBuilder.js +0 -0
- package/src/lib/httpHelper.js +0 -0
- package/src/lib/lastUpdated.js +0 -0
- package/src/services/api/types.js +0 -0
- package/src/services/config.js +0 -0
- package/src/services/content-org/content-org.js +0 -0
- package/src/services/content-org/playlists-types.js +1 -3
- package/src/services/content-org/playlists.js +8 -7
- package/src/services/contentLikes.js +0 -0
- package/src/services/dataContext.js +0 -0
- package/src/services/dateUtils.js +0 -0
- package/src/services/forum.js +0 -0
- package/src/services/gamification/awards.js +0 -0
- package/src/services/gamification/gamification.js +0 -0
- package/src/services/gamification/types.js +0 -0
- package/src/services/imageSRCBuilder.js +0 -0
- package/src/services/imageSRCVerify.js +0 -0
- package/src/services/types.js +0 -0
- package/src/services/user/management.js +0 -0
- package/src/services/user/permissions.js +0 -0
- package/src/services/user/sessions.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.6.4](https://github.com/railroadmedia/musora-content-services/compare/v2.6.3...v2.6.4) (2025-05-21)
|
|
6
|
+
|
|
7
|
+
### [2.6.3](https://github.com/railroadmedia/musora-content-services/compare/v2.6.2...v2.6.3) (2025-05-21)
|
|
8
|
+
|
|
5
9
|
### [2.6.2](https://github.com/railroadmedia/musora-content-services/compare/v2.6.1...v2.6.2) (2025-05-21)
|
|
6
10
|
|
|
7
11
|
|
package/link_mcs.sh
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/filterBuilder.js
CHANGED
|
File without changes
|
package/src/lib/httpHelper.js
CHANGED
|
File without changes
|
package/src/lib/lastUpdated.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/services/config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
* @typedef AddItemToPlaylistDTO
|
|
28
28
|
* @property {number} content_id - The ID of the content to add to the playlist(s).
|
|
29
29
|
* @property {Array<number>} playlist_id - An array of playlist IDs where the content should be added.
|
|
30
|
-
* @property {
|
|
31
|
-
* @property {boolean} import_instrumentless_soundslice_assignment - Flag to include instrumentless Soundslice assignments.
|
|
30
|
+
* @property {number} position - Optional playlist position requirement
|
|
32
31
|
* @property {boolean} import_high_routine - Flag to include high routine content.
|
|
33
32
|
* @property {boolean} import_low_routine - Flag to include low routine content.
|
|
34
|
-
* @property {boolean} import_all_assignments - Flag to include all Soundslice assignments if true.
|
|
35
33
|
*/
|
|
@@ -140,14 +140,14 @@ export async function reportPlaylist(playlistId) {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* Adds an item to one or more playlists
|
|
143
|
+
* Adds an item to one or more playlists
|
|
144
144
|
*
|
|
145
145
|
* @param {AddItemToPlaylistDTO} payload - The request payload containing necessary parameters.
|
|
146
146
|
*
|
|
147
147
|
* @returns {Promise<Object|null>} - A promise that resolves to an object with the response data, including:
|
|
148
|
-
* - `
|
|
149
|
-
* - `
|
|
150
|
-
* - `
|
|
148
|
+
* - `added` (Array): Playlist ids that we were success
|
|
149
|
+
* - `limit_exceeded` (Array): A list of playlists where the item limit was exceeded, if any.
|
|
150
|
+
* - `unauthorized` (Array): A list of successfully added items (empty if none).
|
|
151
151
|
*
|
|
152
152
|
* Resolves to `null` if the request fails.
|
|
153
153
|
* @throws {Error} - Throws an error if the request encounters issues during the operation.
|
|
@@ -156,7 +156,8 @@ export async function reportPlaylist(playlistId) {
|
|
|
156
156
|
* const payload = {
|
|
157
157
|
* content_id: 123,
|
|
158
158
|
* playlist_id: [1, 2, 3],
|
|
159
|
-
*
|
|
159
|
+
* position: 2,
|
|
160
|
+
*
|
|
160
161
|
* };
|
|
161
162
|
*
|
|
162
163
|
* addItemToPlaylist(payload)
|
|
@@ -164,8 +165,8 @@ export async function reportPlaylist(playlistId) {
|
|
|
164
165
|
* if (response?.success) {
|
|
165
166
|
* console.log("Item(s) added to playlist successfully");
|
|
166
167
|
* }
|
|
167
|
-
* if (response?.
|
|
168
|
-
* console.warn("Some playlists exceeded the item limit:", response.
|
|
168
|
+
* if (response?.limit_exceeded) {
|
|
169
|
+
* console.warn("Some playlists exceeded the item limit:", response.limit_exceeded);
|
|
169
170
|
* }
|
|
170
171
|
* })
|
|
171
172
|
* .catch(error => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/services/forum.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/services/types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|