musora-content-services 1.0.175 → 1.0.177

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.
@@ -29,7 +29,7 @@
29
29
  <nav >
30
30
 
31
31
 
32
- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.countAssignmentsAndLessons">countAssignmentsAndLessons</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistItem">deletePlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistLike">deletePlaylistLike</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeIndexMetadata">fetchChallengeIndexMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeLessonData">fetchChallengeLessonData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeMetadata">fetchChallengeMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeUserActiveChallenges">fetchChallengeUserActiveChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItem">fetchPlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserAward">fetchUserAward</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserBadges">fetchUserBadges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserChallengeProgress">fetchUserChallengeProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserPlaylists">fetchUserPlaylists</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesCommunityNotification">postChallengesCommunityNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesCompleteLesson">postChallengesCompleteLesson</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnroll">postChallengesEnroll</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnrollmentNotification">postChallengesEnrollmentNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesLeave">postChallengesLeave</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesSetStartDate">postChallengesSetStartDate</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesUnlock">postChallengesUnlock</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylistItem">updatePlaylistItem</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllSongs">fetchAllSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAssignments">fetchAssignments</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCatalogMetadata">fetchCatalogMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChallengeOverview">fetchChallengeOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChildren">fetchChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCommentModContentData">fetchCommentModContentData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCourseOverview">fetchCourseOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMetadata">fetchMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodNextLesson">fetchMethodNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethods">fetchMethods</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackChildren">fetchPackChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackData">fetchPackData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentByRailContentId">fetchParentByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentForDownload">fetchParentForDownload</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedMethodLessons">fetchRelatedMethodLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchShowsData">fetchShowsData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongCount">fetchSongCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongFilterOptions">fetchSongFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchWorkouts">fetchWorkouts</a></li></ul></li></ul>
32
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.countAssignmentsAndLessons">countAssignmentsAndLessons</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistItem">deletePlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistLike">deletePlaylistLike</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeIndexMetadata">fetchChallengeIndexMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeLessonData">fetchChallengeLessonData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeMetadata">fetchChallengeMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeUserActiveChallenges">fetchChallengeUserActiveChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPinnedPlaylists">fetchPinnedPlaylists</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItem">fetchPlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserAward">fetchUserAward</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserBadges">fetchUserBadges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserChallengeProgress">fetchUserChallengeProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserPlaylists">fetchUserPlaylists</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.pinPlaylist">pinPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesCommunityNotification">postChallengesCommunityNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesCompleteLesson">postChallengesCompleteLesson</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnroll">postChallengesEnroll</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnrollmentNotification">postChallengesEnrollmentNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesLeave">postChallengesLeave</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesSetStartDate">postChallengesSetStartDate</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesUnlock">postChallengesUnlock</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unpinPlaylist">unpinPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylistItem">updatePlaylistItem</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllSongs">fetchAllSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAssignments">fetchAssignments</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCatalogMetadata">fetchCatalogMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChallengeOverview">fetchChallengeOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChildren">fetchChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCommentModContentData">fetchCommentModContentData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCourseOverview">fetchCourseOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMetadata">fetchMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodNextLesson">fetchMethodNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethods">fetchMethods</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackChildren">fetchPackChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackData">fetchPackData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentByRailContentId">fetchParentByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentForDownload">fetchParentForDownload</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedMethodLessons">fetchRelatedMethodLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchShowsData">fetchShowsData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongCount">fetchSongCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongFilterOptions">fetchSongFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchWorkouts">fetchWorkouts</a></li></ul></li></ul>
33
33
 
34
34
  </nav>
35
35
 
@@ -182,7 +182,7 @@
182
182
 
183
183
  <dt class="tag-source">Source:</dt>
184
184
  <dd class="tag-source"><ul class="dummy"><li>
185
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line892">line 892</a>
185
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line894">line 894</a>
186
186
  </li></ul></dd>
187
187
 
188
188
 
@@ -699,7 +699,7 @@ Resolves to `null` if the request fails.
699
699
 
700
700
  <dt class="tag-source">Source:</dt>
701
701
  <dd class="tag-source"><ul class="dummy"><li>
702
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line922">line 922</a>
702
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line924">line 924</a>
703
703
  </li></ul></dd>
704
704
 
705
705
 
@@ -880,7 +880,7 @@ the new playlist with the authenticated user. The `name` field is required, whil
880
880
 
881
881
  <dt class="tag-source">Source:</dt>
882
882
  <dd class="tag-source"><ul class="dummy"><li>
883
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line627">line 627</a>
883
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line629">line 629</a>
884
884
  </li></ul></dd>
885
885
 
886
886
 
@@ -1058,7 +1058,7 @@ If the user is authorized, it deletes both the playlist and its associated items
1058
1058
 
1059
1059
  <dt class="tag-source">Source:</dt>
1060
1060
  <dd class="tag-source"><ul class="dummy"><li>
1061
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line562">line 562</a>
1061
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line564">line 564</a>
1062
1062
  </li></ul></dd>
1063
1063
 
1064
1064
 
@@ -1234,7 +1234,7 @@ If the user is unauthorized or the playlist does not exist, the promise rejects
1234
1234
 
1235
1235
  <dt class="tag-source">Source:</dt>
1236
1236
  <dd class="tag-source"><ul class="dummy"><li>
1237
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line804">line 804</a>
1237
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line806">line 806</a>
1238
1238
  </li></ul></dd>
1239
1239
 
1240
1240
 
@@ -1499,7 +1499,7 @@ and checks if a like by the authenticated user already exists for the specified
1499
1499
 
1500
1500
  <dt class="tag-source">Source:</dt>
1501
1501
  <dd class="tag-source"><ul class="dummy"><li>
1502
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line687">line 687</a>
1502
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line689">line 689</a>
1503
1503
  </li></ul></dd>
1504
1504
 
1505
1505
 
@@ -1677,7 +1677,7 @@ to customize the duplicated playlist. If a new name is not provided, the server
1677
1677
 
1678
1678
  <dt class="tag-source">Source:</dt>
1679
1679
  <dd class="tag-source"><ul class="dummy"><li>
1680
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line534">line 534</a>
1680
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line536">line 536</a>
1681
1681
  </li></ul></dd>
1682
1682
 
1683
1683
 
@@ -3688,6 +3688,216 @@ Intended to be used on the index page for challenges</li></ul></dd>
3688
3688
 
3689
3689
 
3690
3690
 
3691
+ <h4 class="name" id=".fetchPinnedPlaylists"><span class="type-signature type-signature-static">(static) </span>fetchPinnedPlaylists<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
3692
+
3693
+
3694
+
3695
+
3696
+
3697
+
3698
+ <dl class="details">
3699
+
3700
+ <dt class="tag-description">Description:</dt>
3701
+ <dd class="tag-description"><ul class="dummy"><li>Fetches the list of pinned playlists for the authenticated user.</li></ul></dd>
3702
+
3703
+
3704
+
3705
+ <dt class="tag-source">Source:</dt>
3706
+ <dd class="tag-source"><ul class="dummy"><li>
3707
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line1020">line 1020</a>
3708
+ </li></ul></dd>
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+
3715
+
3716
+
3717
+
3718
+
3719
+
3720
+
3721
+
3722
+
3723
+
3724
+
3725
+
3726
+
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+
3733
+
3734
+
3735
+
3736
+
3737
+
3738
+
3739
+
3740
+ </dl>
3741
+
3742
+
3743
+
3744
+
3745
+
3746
+
3747
+
3748
+
3749
+
3750
+
3751
+
3752
+ <h5 class="h5-examples">Example</h5>
3753
+
3754
+ <pre class="prettyprint"><code>const brand = "drumeo";
3755
+
3756
+ fetchPinnedPlaylists(brand)
3757
+ .then(response => {
3758
+ if (response.success) {
3759
+ console.log("Pinned playlists:", response.data);
3760
+ } else {
3761
+ console.error("Error:", response.error);
3762
+ }
3763
+ })
3764
+ .catch(error => {
3765
+ console.error("Error fetching pinned playlists:", error);
3766
+ });</code></pre>
3767
+
3768
+
3769
+
3770
+
3771
+ <h5 class="h5-parameters">Parameters:</h5>
3772
+
3773
+
3774
+ <table class="params">
3775
+ <thead>
3776
+ <tr>
3777
+
3778
+ <th>Name</th>
3779
+
3780
+
3781
+ <th>Type</th>
3782
+
3783
+
3784
+
3785
+
3786
+
3787
+ <th class="last">Description</th>
3788
+ </tr>
3789
+ </thead>
3790
+
3791
+ <tbody>
3792
+
3793
+
3794
+ <tr>
3795
+
3796
+ <td class="name"><code>brand</code></td>
3797
+
3798
+
3799
+ <td class="type">
3800
+
3801
+
3802
+ <span class="param-type">string</span>
3803
+
3804
+
3805
+
3806
+
3807
+ </td>
3808
+
3809
+
3810
+
3811
+
3812
+
3813
+ <td class="description last">The brand associated with the playlists to fetch.</td>
3814
+ </tr>
3815
+
3816
+
3817
+ </tbody>
3818
+ </table>
3819
+
3820
+
3821
+
3822
+
3823
+
3824
+
3825
+
3826
+
3827
+
3828
+
3829
+
3830
+
3831
+
3832
+
3833
+ <h5 class="h5-throws">Throws:</h5>
3834
+
3835
+
3836
+
3837
+ <dl>
3838
+ <dt>
3839
+ <div class="param-desc usertext">
3840
+ - Throws an error if the request fails.
3841
+ </div>
3842
+ </dt>
3843
+ <dd></dd>
3844
+ <dt>
3845
+ <dl class="param-type">
3846
+ <dt>
3847
+ Type
3848
+ </dt>
3849
+ <dd>
3850
+
3851
+ <span class="param-type">Error</span>
3852
+
3853
+
3854
+
3855
+ </dd>
3856
+ </dl>
3857
+ </dt>
3858
+ <dd></dd>
3859
+ </dl>
3860
+
3861
+
3862
+
3863
+
3864
+
3865
+ <h5 class="h5-returns">Returns:</h5>
3866
+
3867
+
3868
+ <div class="param-desc">
3869
+ - A promise that resolves to an object containing:
3870
+ - `success` (boolean): Indicates if the fetching operation was successful (`true` for success).
3871
+ - `data` (Array): An array of pinned playlists.
3872
+ - `error` (string): An error message if the fetching operation fails.
3873
+
3874
+ Resolves to an error message if the request fails.
3875
+ </div>
3876
+
3877
+
3878
+
3879
+ <dl class="param-type">
3880
+ <dt>
3881
+ Type
3882
+ </dt>
3883
+ <dd>
3884
+
3885
+ <span class="param-type">Promise.&lt;Object></span>
3886
+
3887
+
3888
+
3889
+ </dd>
3890
+ </dl>
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+
3897
+
3898
+
3899
+
3900
+
3691
3901
  <h4 class="name" id=".fetchPlaylist"><span class="type-signature type-signature-static">(static) </span>fetchPlaylist<span class="signature">(playlistId)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
3692
3902
 
3693
3903
 
@@ -3707,7 +3917,7 @@ The server validates the user's access to the playlist and returns playlist deta
3707
3917
 
3708
3918
  <dt class="tag-source">Source:</dt>
3709
3919
  <dd class="tag-source"><ul class="dummy"><li>
3710
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line709">line 709</a>
3920
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line711">line 711</a>
3711
3921
  </li></ul></dd>
3712
3922
 
3713
3923
 
@@ -3876,7 +4086,7 @@ The server validates the user's access to the playlist and returns playlist deta
3876
4086
 
3877
4087
  <dt class="tag-source">Source:</dt>
3878
4088
  <dd class="tag-source"><ul class="dummy"><li>
3879
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line836">line 836</a>
4089
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line838">line 838</a>
3880
4090
  </li></ul></dd>
3881
4091
 
3882
4092
 
@@ -4138,7 +4348,7 @@ The server combines data from the playlist and additional metadata from Sanity t
4138
4348
 
4139
4349
  <dt class="tag-source">Source:</dt>
4140
4350
  <dd class="tag-source"><ul class="dummy"><li>
4141
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line729">line 729</a>
4351
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line731">line 731</a>
4142
4352
  </li></ul></dd>
4143
4353
 
4144
4354
 
@@ -4930,7 +5140,7 @@ Allows optional pagination, sorting, and search parameters to control the result
4930
5140
 
4931
5141
  <dt class="tag-source">Source:</dt>
4932
5142
  <dd class="tag-source"><ul class="dummy"><li>
4933
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line496">line 496</a>
5143
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line497">line 497</a>
4934
5144
  </li></ul></dd>
4935
5145
 
4936
5146
 
@@ -5204,6 +5414,47 @@ Allows optional pagination, sorting, and search parameters to control the result
5204
5414
  </tr>
5205
5415
 
5206
5416
 
5417
+
5418
+ <tr>
5419
+
5420
+ <td class="name"><code>params.content_id</code></td>
5421
+
5422
+
5423
+ <td class="type">
5424
+
5425
+
5426
+ <span class="param-type">int</span>
5427
+ |
5428
+
5429
+ <span class="param-type">string</span>
5430
+
5431
+
5432
+
5433
+
5434
+ </td>
5435
+
5436
+
5437
+ <td class="attributes">
5438
+
5439
+ &lt;optional><br>
5440
+
5441
+
5442
+
5443
+
5444
+
5445
+ </td>
5446
+
5447
+
5448
+
5449
+ <td class="default">
5450
+
5451
+ </td>
5452
+
5453
+
5454
+ <td class="description last">If content_id exists, the endpoint checks in each playlist if we have the content in the items.</td>
5455
+ </tr>
5456
+
5457
+
5207
5458
  </tbody>
5208
5459
  </table>
5209
5460
 
@@ -5272,7 +5523,7 @@ if the authenticated user has already liked the playlist. If not, it creates a n
5272
5523
 
5273
5524
  <dt class="tag-source">Source:</dt>
5274
5525
  <dd class="tag-source"><ul class="dummy"><li>
5275
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line660">line 660</a>
5526
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line662">line 662</a>
5276
5527
  </li></ul></dd>
5277
5528
 
5278
5529
 
@@ -5437,7 +5688,7 @@ The `like` object in the response includes:
5437
5688
 
5438
5689
 
5439
5690
 
5440
- <h4 class="name" id=".postChallengesCommunityNotification"><span class="type-signature type-signature-static">(static) </span>postChallengesCommunityNotification<span class="signature">(contentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(any|null)>}</span></h4>
5691
+ <h4 class="name" id=".pinPlaylist"><span class="type-signature type-signature-static">(static) </span>pinPlaylist<span class="signature">(playlistId)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
5441
5692
 
5442
5693
 
5443
5694
 
@@ -5447,13 +5698,13 @@ The `like` object in the response includes:
5447
5698
  <dl class="details">
5448
5699
 
5449
5700
  <dt class="tag-description">Description:</dt>
5450
- <dd class="tag-description"><ul class="dummy"><li>Enable community notifications for the provided challenge</li></ul></dd>
5701
+ <dd class="tag-description"><ul class="dummy"><li>Pins a playlist to the user's playlist menu.</li></ul></dd>
5451
5702
 
5452
5703
 
5453
5704
 
5454
5705
  <dt class="tag-source">Source:</dt>
5455
5706
  <dd class="tag-source"><ul class="dummy"><li>
5456
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line462">line 462</a>
5707
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line956">line 956</a>
5457
5708
  </li></ul></dd>
5458
5709
 
5459
5710
 
@@ -5498,6 +5749,23 @@ The `like` object in the response includes:
5498
5749
 
5499
5750
 
5500
5751
 
5752
+ <h5 class="h5-examples">Example</h5>
5753
+
5754
+ <pre class="prettyprint"><code>const playlistId = 123;
5755
+
5756
+ pinPlaylist(playlistId)
5757
+ .then(response => {
5758
+ if (response.success) {
5759
+ console.log("Playlist pinned successfully:", response.message);
5760
+ } else {
5761
+ console.error("Error:", response.error);
5762
+ }
5763
+ })
5764
+ .catch(error => {
5765
+ console.error("Error pinning playlist:", error);
5766
+ });</code></pre>
5767
+
5768
+
5501
5769
 
5502
5770
 
5503
5771
  <h5 class="h5-parameters">Parameters:</h5>
@@ -5525,13 +5793,206 @@ The `like` object in the response includes:
5525
5793
 
5526
5794
  <tr>
5527
5795
 
5528
- <td class="name"><code>contentId</code></td>
5796
+ <td class="name"><code>playlistId</code></td>
5529
5797
 
5530
5798
 
5531
5799
  <td class="type">
5532
5800
 
5533
5801
 
5534
- <span class="param-type">int</span>
5802
+ <span class="param-type">number</span>
5803
+
5804
+
5805
+
5806
+
5807
+ </td>
5808
+
5809
+
5810
+
5811
+
5812
+
5813
+ <td class="description last">The ID of the playlist to pin.</td>
5814
+ </tr>
5815
+
5816
+
5817
+ </tbody>
5818
+ </table>
5819
+
5820
+
5821
+
5822
+
5823
+
5824
+
5825
+
5826
+
5827
+
5828
+
5829
+
5830
+
5831
+
5832
+
5833
+ <h5 class="h5-throws">Throws:</h5>
5834
+
5835
+
5836
+
5837
+ <dl>
5838
+ <dt>
5839
+ <div class="param-desc usertext">
5840
+ - Throws an error if the request fails.
5841
+ </div>
5842
+ </dt>
5843
+ <dd></dd>
5844
+ <dt>
5845
+ <dl class="param-type">
5846
+ <dt>
5847
+ Type
5848
+ </dt>
5849
+ <dd>
5850
+
5851
+ <span class="param-type">Error</span>
5852
+
5853
+
5854
+
5855
+ </dd>
5856
+ </dl>
5857
+ </dt>
5858
+ <dd></dd>
5859
+ </dl>
5860
+
5861
+
5862
+
5863
+
5864
+
5865
+ <h5 class="h5-returns">Returns:</h5>
5866
+
5867
+
5868
+ <div class="param-desc">
5869
+ - A promise that resolves to an object containing:
5870
+ - `success` (boolean): Indicates if the pinning operation was successful (`true` for success).
5871
+ - `message` (string): A success message if the playlist was pinned successfully.
5872
+ - `error` (string): An error message if the pinning operation fails.
5873
+
5874
+ Resolves to an error message if the request fails.
5875
+ </div>
5876
+
5877
+
5878
+
5879
+ <dl class="param-type">
5880
+ <dt>
5881
+ Type
5882
+ </dt>
5883
+ <dd>
5884
+
5885
+ <span class="param-type">Promise.&lt;Object></span>
5886
+
5887
+
5888
+
5889
+ </dd>
5890
+ </dl>
5891
+
5892
+
5893
+
5894
+
5895
+
5896
+
5897
+
5898
+
5899
+
5900
+
5901
+ <h4 class="name" id=".postChallengesCommunityNotification"><span class="type-signature type-signature-static">(static) </span>postChallengesCommunityNotification<span class="signature">(contentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(any|null)>}</span></h4>
5902
+
5903
+
5904
+
5905
+
5906
+
5907
+
5908
+ <dl class="details">
5909
+
5910
+ <dt class="tag-description">Description:</dt>
5911
+ <dd class="tag-description"><ul class="dummy"><li>Enable community notifications for the provided challenge</li></ul></dd>
5912
+
5913
+
5914
+
5915
+ <dt class="tag-source">Source:</dt>
5916
+ <dd class="tag-source"><ul class="dummy"><li>
5917
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line462">line 462</a>
5918
+ </li></ul></dd>
5919
+
5920
+
5921
+
5922
+
5923
+
5924
+
5925
+
5926
+
5927
+
5928
+
5929
+
5930
+
5931
+
5932
+
5933
+
5934
+
5935
+
5936
+
5937
+
5938
+
5939
+
5940
+
5941
+
5942
+
5943
+
5944
+
5945
+
5946
+
5947
+
5948
+
5949
+
5950
+ </dl>
5951
+
5952
+
5953
+
5954
+
5955
+
5956
+
5957
+
5958
+
5959
+
5960
+
5961
+
5962
+
5963
+
5964
+ <h5 class="h5-parameters">Parameters:</h5>
5965
+
5966
+
5967
+ <table class="params">
5968
+ <thead>
5969
+ <tr>
5970
+
5971
+ <th>Name</th>
5972
+
5973
+
5974
+ <th>Type</th>
5975
+
5976
+
5977
+
5978
+
5979
+
5980
+ <th class="last">Description</th>
5981
+ </tr>
5982
+ </thead>
5983
+
5984
+ <tbody>
5985
+
5986
+
5987
+ <tr>
5988
+
5989
+ <td class="name"><code>contentId</code></td>
5990
+
5991
+
5992
+ <td class="type">
5993
+
5994
+
5995
+ <span class="param-type">int</span>
5535
5996
  |
5536
5997
 
5537
5998
  <span class="param-type">string</span>
@@ -6568,6 +7029,216 @@ Clears any current progress data for this challenge</li></ul></dd>
6568
7029
 
6569
7030
 
6570
7031
 
7032
+ <h4 class="name" id=".unpinPlaylist"><span class="type-signature type-signature-static">(static) </span>unpinPlaylist<span class="signature">(playlistId)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
7033
+
7034
+
7035
+
7036
+
7037
+
7038
+
7039
+ <dl class="details">
7040
+
7041
+ <dt class="tag-description">Description:</dt>
7042
+ <dd class="tag-description"><ul class="dummy"><li>Unpins a playlist</li></ul></dd>
7043
+
7044
+
7045
+
7046
+ <dt class="tag-source">Source:</dt>
7047
+ <dd class="tag-source"><ul class="dummy"><li>
7048
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line988">line 988</a>
7049
+ </li></ul></dd>
7050
+
7051
+
7052
+
7053
+
7054
+
7055
+
7056
+
7057
+
7058
+
7059
+
7060
+
7061
+
7062
+
7063
+
7064
+
7065
+
7066
+
7067
+
7068
+
7069
+
7070
+
7071
+
7072
+
7073
+
7074
+
7075
+
7076
+
7077
+
7078
+
7079
+
7080
+
7081
+ </dl>
7082
+
7083
+
7084
+
7085
+
7086
+
7087
+
7088
+
7089
+
7090
+
7091
+
7092
+
7093
+ <h5 class="h5-examples">Example</h5>
7094
+
7095
+ <pre class="prettyprint"><code>const playlistId = 123;
7096
+
7097
+ unpinPlaylist(playlistId)
7098
+ .then(response => {
7099
+ if (response.success) {
7100
+ console.log("Playlist unpinned successfully:", response.message);
7101
+ } else {
7102
+ console.error("Error:", response.error);
7103
+ }
7104
+ })
7105
+ .catch(error => {
7106
+ console.error("Error unpinning playlist:", error);
7107
+ });</code></pre>
7108
+
7109
+
7110
+
7111
+
7112
+ <h5 class="h5-parameters">Parameters:</h5>
7113
+
7114
+
7115
+ <table class="params">
7116
+ <thead>
7117
+ <tr>
7118
+
7119
+ <th>Name</th>
7120
+
7121
+
7122
+ <th>Type</th>
7123
+
7124
+
7125
+
7126
+
7127
+
7128
+ <th class="last">Description</th>
7129
+ </tr>
7130
+ </thead>
7131
+
7132
+ <tbody>
7133
+
7134
+
7135
+ <tr>
7136
+
7137
+ <td class="name"><code>playlistId</code></td>
7138
+
7139
+
7140
+ <td class="type">
7141
+
7142
+
7143
+ <span class="param-type">number</span>
7144
+
7145
+
7146
+
7147
+
7148
+ </td>
7149
+
7150
+
7151
+
7152
+
7153
+
7154
+ <td class="description last">The ID of the playlist to unpin.</td>
7155
+ </tr>
7156
+
7157
+
7158
+ </tbody>
7159
+ </table>
7160
+
7161
+
7162
+
7163
+
7164
+
7165
+
7166
+
7167
+
7168
+
7169
+
7170
+
7171
+
7172
+
7173
+
7174
+ <h5 class="h5-throws">Throws:</h5>
7175
+
7176
+
7177
+
7178
+ <dl>
7179
+ <dt>
7180
+ <div class="param-desc usertext">
7181
+ - Throws an error if the request fails.
7182
+ </div>
7183
+ </dt>
7184
+ <dd></dd>
7185
+ <dt>
7186
+ <dl class="param-type">
7187
+ <dt>
7188
+ Type
7189
+ </dt>
7190
+ <dd>
7191
+
7192
+ <span class="param-type">Error</span>
7193
+
7194
+
7195
+
7196
+ </dd>
7197
+ </dl>
7198
+ </dt>
7199
+ <dd></dd>
7200
+ </dl>
7201
+
7202
+
7203
+
7204
+
7205
+
7206
+ <h5 class="h5-returns">Returns:</h5>
7207
+
7208
+
7209
+ <div class="param-desc">
7210
+ - A promise that resolves to an object containing:
7211
+ - `success` (boolean): Indicates if the unpinning operation was successful (`true` for success).
7212
+ - `message` (string): A success message if the playlist was unpinned successfully.
7213
+ - `error` (string): An error message if the unpinning operation fails.
7214
+
7215
+ Resolves to an error message if the request fails.
7216
+ </div>
7217
+
7218
+
7219
+
7220
+ <dl class="param-type">
7221
+ <dt>
7222
+ Type
7223
+ </dt>
7224
+ <dd>
7225
+
7226
+ <span class="param-type">Promise.&lt;Object></span>
7227
+
7228
+
7229
+
7230
+ </dd>
7231
+ </dl>
7232
+
7233
+
7234
+
7235
+
7236
+
7237
+
7238
+
7239
+
7240
+
7241
+
6571
7242
  <h4 class="name" id=".updatePlaylist"><span class="type-signature type-signature-static">(static) </span>updatePlaylist<span class="signature">(playlistId, updatedData)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
6572
7243
 
6573
7244
 
@@ -6587,7 +7258,7 @@ and verifies that the authenticated user is the playlist owner. If authorized, i
6587
7258
 
6588
7259
  <dt class="tag-source">Source:</dt>
6589
7260
  <dd class="tag-source"><ul class="dummy"><li>
6590
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line597">line 597</a>
7261
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line599">line 599</a>
6591
7262
  </li></ul></dd>
6592
7263
 
6593
7264
 
@@ -6793,7 +7464,7 @@ If the user is unauthorized or the data validation fails, the promise rejects wi
6793
7464
 
6794
7465
  <dt class="tag-source">Source:</dt>
6795
7466
  <dd class="tag-source"><ul class="dummy"><li>
6796
- <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line769">line 769</a>
7467
+ <a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line771">line 771</a>
6797
7468
  </li></ul></dd>
6798
7469
 
6799
7470
 
@@ -7201,7 +7872,7 @@ Resolves to `null` if the request fails.
7201
7872
  <br class="clear">
7202
7873
 
7203
7874
  <footer>
7204
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 14 2024 23:44:16 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7875
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Nov 15 2024 13:01:14 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7205
7876
  </footer>
7206
7877
 
7207
7878
  <script>prettyPrint();</script>