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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
File without changes
File without changes
File without changes
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 {boolean} import_full_soundslice_assignment - Flag to include full Soundslice assignments.
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 by making a POST request to the `/playlists/add-item` endpoint.
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
- * - `success` (boolean): Indicates if the items were added successfully (`true` on success).
149
- * - `limit_excedeed` (Array): A list of playlists where the item limit was exceeded, if any.
150
- * - `successful` (Array): A list of successfully added items (empty if none).
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
- * import_all_assignments: true
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?.limit_excedeed) {
168
- * console.warn("Some playlists exceeded the item limit:", response.limit_excedeed);
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
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