musora-content-services 1.6.5 → 1.6.6

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.
Files changed (84) hide show
  1. package/.github/workflows/conventional-commits.yaml +16 -0
  2. package/.github/workflows/docs.js.yml +58 -0
  3. package/CHANGELOG.md +2 -0
  4. package/README.md +1 -2
  5. package/docs/v2/Content-Organization.html +245 -0
  6. package/docs/v2/ContentOrganization.html +245 -0
  7. package/docs/v2/Gamification.html +245 -0
  8. package/docs/v2/UserManagement.html +269 -0
  9. package/docs/v2/UserManagementSystem.html +317 -0
  10. package/docs/v2/api_types.js.html +97 -0
  11. package/docs/v2/config.js.html +143 -0
  12. package/docs/v2/content-org_content-org.js.html +76 -0
  13. package/docs/v2/content-org_playlists-types.js.html +116 -0
  14. package/docs/v2/content-org_playlists.js.html +418 -0
  15. package/docs/v2/content.js.html +466 -0
  16. package/docs/v2/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  17. package/docs/v2/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  18. package/docs/v2/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  19. package/docs/v2/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  20. package/docs/v2/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  21. package/docs/v2/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  22. package/docs/v2/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  23. package/docs/v2/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  24. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  25. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  26. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  27. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  28. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  29. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  30. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  31. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  32. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  33. package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  34. package/docs/v2/gamification_awards.js.html +664 -0
  35. package/docs/v2/gamification_gamification.js.html +76 -0
  36. package/docs/v2/gamification_types.js.html +98 -0
  37. package/docs/v2/global.html +5812 -0
  38. package/docs/v2/global.html#User +293 -0
  39. package/docs/v2/index.html +168 -0
  40. package/docs/v2/module-Awards.html +354 -0
  41. package/docs/v2/module-Config.html +434 -0
  42. package/docs/v2/module-Content-Services-V2.html +2434 -0
  43. package/docs/v2/module-Interests.html +1066 -0
  44. package/docs/v2/module-Notifications.html +1183 -0
  45. package/docs/v2/module-Permissions.html +406 -0
  46. package/docs/v2/module-Playlists.html +2862 -0
  47. package/docs/v2/module-Railcontent-Services.html +7954 -0
  48. package/docs/v2/module-Sanity-Services.html +9608 -0
  49. package/docs/v2/module-Session-Management.html +575 -0
  50. package/docs/v2/module-Sessions.html +575 -0
  51. package/docs/v2/module-User-Activity.html +4410 -0
  52. package/docs/v2/module-User-Management.html +490 -0
  53. package/docs/v2/module-User-Permissions.html +406 -0
  54. package/docs/v2/module-UserActivity.html +4410 -0
  55. package/docs/v2/module-UserManagement.html +915 -0
  56. package/docs/v2/module-UserNotifications.html +1223 -0
  57. package/docs/v2/module-UserProfile.html +266 -0
  58. package/docs/v2/railcontent.js.html +984 -0
  59. package/docs/v2/sanity.js.html +2459 -0
  60. package/docs/v2/scripts/collapse.js +39 -0
  61. package/docs/v2/scripts/commonNav.js +28 -0
  62. package/docs/v2/scripts/linenumber.js +25 -0
  63. package/docs/v2/scripts/nav.js +12 -0
  64. package/docs/v2/scripts/polyfill.js +4 -0
  65. package/docs/v2/scripts/prettify/Apache-License-2.0.txt +202 -0
  66. package/docs/v2/scripts/prettify/lang-css.js +2 -0
  67. package/docs/v2/scripts/prettify/prettify.js +28 -0
  68. package/docs/v2/scripts/search.js +99 -0
  69. package/docs/v2/styles/jsdoc.css +776 -0
  70. package/docs/v2/styles/prettify.css +80 -0
  71. package/docs/v2/types.js.html +122 -0
  72. package/docs/v2/userActivity.js.html +1451 -0
  73. package/docs/v2/user_interests.js.html +150 -0
  74. package/docs/v2/user_management.js.html +178 -0
  75. package/docs/v2/user_notifications.js.html +192 -0
  76. package/docs/v2/user_permissions.js.html +110 -0
  77. package/docs/v2/user_profile.js.html +105 -0
  78. package/docs/v2/user_sessions.js.html +139 -0
  79. package/docs/v2/user_types.js.html +208 -0
  80. package/docs/v2/user_user-management-system.js.html +79 -0
  81. package/docs/v2/user_user-management.js.html +78 -0
  82. package/package.json +1 -1
  83. package/src/contentTypeConfig.js +27 -12
  84. package/src/services/sanity.js +120 -81
@@ -0,0 +1,1223 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>UserNotifications - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Awards.html">Awards</a><ul class='methods'><li data-type='method'><a href="module-Awards.html#.fetchAwardsForUser">fetchAwardsForUser</a></li></ul></li><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-Content-Services-V2.html">Content-Services-V2</a><ul class='methods'><li data-type='method'><a href="module-Content-Services-V2.html#.getContentRows">getContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getNewAndUpcoming">getNewAndUpcoming</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecent">getRecent</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecommendedForYou">getRecommendedForYou</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getScheduleContentRows">getScheduleContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getTabResults">getTabResults</a></li></ul></li><li><a href="module-Interests.html">Interests</a><ul class='methods'><li data-type='method'><a href="module-Interests.html#.fetchInterests">fetchInterests</a></li><li data-type='method'><a href="module-Interests.html#.fetchUninterests">fetchUninterests</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsInterested">markContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsNotInterested">markContentAsNotInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsInterested">removeContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsNotInterested">removeContentAsNotInterested</a></li></ul></li><li><a href="module-Permissions.html">Permissions</a><ul class='methods'><li data-type='method'><a href="module-Permissions.html#.fetchUserPermissions">fetchUserPermissions</a></li><li data-type='method'><a href="module-Permissions.html#.reset">reset</a></li></ul></li><li><a href="module-Playlists.html">Playlists</a><ul class='methods'><li data-type='method'><a href="module-Playlists.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Playlists.html#.fetchUserPlaylists">fetchUserPlaylists</a></li><li data-type='method'><a href="module-Playlists.html#.togglePlaylistPrivate">togglePlaylistPrivate</a></li><li data-type='method'><a href="module-Playlists.html#.undeletePlaylist">undeletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~reportPlaylist">reportPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~togglePlaylistPrivate">togglePlaylistPrivate</a></li><li data-type='method'><a href="module-Playlists.html#~unlikePlaylist">unlikePlaylist</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#.assignModeratorToComment">assignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.closeComment">closeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createComment">createComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deleteComment">deleteComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.editComment">editComment</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#.fetchCarouselCardData">fetchCarouselCardData</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#.fetchCommentRelies">fetchCommentRelies</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComments">fetchComments</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedChallenges">fetchCompletedChallenges</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#.fetchNextContentDataForParent">fetchNextContentDataForParent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchOwnedChallenges">fetchOwnedChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchRecentUserActivities">fetchRecentUserActivities</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#.fetchTopComment">fetchTopComment</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#.fetchUserPracticeNotes">fetchUserPracticeNotes</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likeComment">likeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.openComment">openComment</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#.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#.postChallengesHideCompletedBanner">postChallengesHideCompletedBanner</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#.postChallengesSoloNotification">postChallengesSoloNotification</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#.replyToComment">replyToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.reportComment">reportComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.setStudentViewForUser">setStudentViewForUser</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unassignModeratorToComment">unassignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unlikeComment">unlikeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#~fetchLastInteractedChild">fetchLastInteractedChild</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#.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#.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#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchComingSoon">fetchComingSoon</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#.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#.fetchLeaving">fetchLeaving</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#.fetchLessonsFeaturingThisContent">fetchLessonsFeaturingThisContent</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#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</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#.fetchOtherSongVersions">fetchOtherSongVersions</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#.fetchPackData">fetchPackData</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#.fetchRelatedRecommendedContent">fetchRelatedRecommendedContent</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#.fetchReturning">fetchReturning</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#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.jumpToContinueContent">jumpToContinueContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#~fetchRelatedByLicense">fetchRelatedByLicense</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getNextAndPreviousQuarterDates">getNextAndPreviousQuarterDates</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getQueryFromPage">getQueryFromPage</a></li><li data-type='method'><a href="module-Sanity-Services.html#~handleCustomFetchAll">handleCustomFetchAll</a></li></ul></li><li><a href="module-Sessions.html">Sessions</a><ul class='methods'><li data-type='method'><a href="module-Sessions.html#.login">login</a></li><li data-type='method'><a href="module-Sessions.html#.logout">logout</a></li></ul></li><li><a href="module-UserActivity.html">UserActivity</a><ul class='methods'><li data-type='method'><a href="module-UserActivity.html#.calculateLongestStreaks">calculateLongestStreaks</a></li><li data-type='method'><a href="module-UserActivity.html#.createPracticeNotes">createPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.deletePracticeSession">deletePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.deleteUserActivity">deleteUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeNotes">getPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeSessions">getPracticeSessions</a></li><li data-type='method'><a href="module-UserActivity.html#.getProgressRows">getProgressRows</a></li><li data-type='method'><a href="module-UserActivity.html#.getRecentActivity">getRecentActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserMonthlyStats">getUserMonthlyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserWeeklyStats">getUserWeeklyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.pinProgressRow">pinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserActivity">recordUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserPractice">recordUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.removeUserPractice">removeUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.restorePracticeSession">restorePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.restoreUserPractice">restoreUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.unpinProgressRow">unpinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.updatePracticeNotes">updatePracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.updateUserPractice">updateUserPractice</a></li></ul></li><li><a href="module-UserChat.html">UserChat</a><ul class='methods'><li data-type='method'><a href="module-UserChat.html#.fetchChatSettings">fetchChatSettings</a></li></ul></li><li><a href="module-UserManagement.html">UserManagement</a><ul class='methods'><li data-type='method'><a href="module-UserManagement.html#.blockUser">blockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.deletePicture">deletePicture</a></li><li data-type='method'><a href="module-UserManagement.html#.unblockUser">unblockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPicture">uploadPicture</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPictureFromS3">uploadPictureFromS3</a></li></ul></li><li><a href="module-UserNotifications.html">UserNotifications</a><ul class='methods'><li data-type='method'><a href="module-UserNotifications.html#.deleteNotification">deleteNotification</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchNotifications">fetchNotifications</a></li><li data-type='method'><a href="module-UserNotifications.html#.markAllNotificationsAsRead">markAllNotificationsAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsRead">markNotificationAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsUnread">markNotificationAsUnread</a></li></ul></li><li><a href="module-UserProfile.html">UserProfile</a><ul class='methods'><li data-type='method'><a href="module-UserProfile.html#.otherStats">otherStats</a></li></ul></li></ul><h3>Namespaces</h3><ul><li><a href="ContentOrganization.html">ContentOrganization</a></li><li><a href="Gamification.html">Gamification</a></li><li><a href="UserManagementSystem.html">UserManagementSystem</a></li></ul><h3><a href="global.html">Global</a></h3>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">UserNotifications</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+
51
+
52
+ </header>
53
+
54
+ <article>
55
+
56
+ <div class="container-overview">
57
+
58
+
59
+
60
+
61
+
62
+ </div>
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+ <h3 class="subsection-title">Methods</h3>
81
+
82
+
83
+
84
+
85
+
86
+
87
+ <h4 class="name" id=".deleteNotification"><span class="type-signature type-signature-static">(static) </span>deleteNotification<span class="signature">(notificationId)</span><span class="type-signature"> &rarr; {Promise.&lt;any>}</span></h4>
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <dl class="details">
95
+
96
+ <dt class="tag-description">Description:</dt>
97
+ <dd class="tag-description"><ul class="dummy"><li>Deletes a specific notification.</li></ul></dd>
98
+
99
+
100
+
101
+ <dt class="tag-source">Source:</dt>
102
+ <dd class="tag-source"><ul class="dummy"><li>
103
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line113">line 113</a>
104
+ </li></ul></dd>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ </dl>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ <h5 class="h5-examples">Example</h5>
149
+
150
+ <pre class="prettyprint"><code>deleteNotification(123)
151
+ .then(response => console.log(response))
152
+ .catch(error => console.error(error));</code></pre>
153
+
154
+
155
+
156
+
157
+ <h5 class="h5-parameters">Parameters:</h5>
158
+
159
+
160
+ <table class="params">
161
+ <thead>
162
+ <tr>
163
+
164
+ <th>Name</th>
165
+
166
+
167
+ <th>Type</th>
168
+
169
+
170
+
171
+
172
+
173
+ <th class="last">Description</th>
174
+ </tr>
175
+ </thead>
176
+
177
+ <tbody>
178
+
179
+
180
+ <tr>
181
+
182
+ <td class="name"><code>notificationId</code></td>
183
+
184
+
185
+ <td class="type">
186
+
187
+
188
+ <span class="param-type">number</span>
189
+
190
+
191
+
192
+
193
+ </td>
194
+
195
+
196
+
197
+
198
+
199
+ <td class="description last">The ID of the notification to delete.</td>
200
+ </tr>
201
+
202
+
203
+ </tbody>
204
+ </table>
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <h5 class="h5-throws">Throws:</h5>
220
+
221
+
222
+
223
+ <dl>
224
+ <dt>
225
+ <div class="param-desc usertext">
226
+ - Throws an error if notificationId is not provided.
227
+ </div>
228
+ </dt>
229
+ <dd></dd>
230
+ <dt>
231
+ <dl class="param-type">
232
+ <dt>
233
+ Type
234
+ </dt>
235
+ <dd>
236
+
237
+ <span class="param-type">Error</span>
238
+
239
+
240
+
241
+ </dd>
242
+ </dl>
243
+ </dt>
244
+ <dd></dd>
245
+ </dl>
246
+
247
+
248
+
249
+
250
+
251
+ <h5 class="h5-returns">Returns:</h5>
252
+
253
+
254
+ <div class="param-desc">
255
+ - A promise that resolves when the notification is successfully deleted.
256
+ </div>
257
+
258
+
259
+
260
+ <dl class="param-type">
261
+ <dt>
262
+ Type
263
+ </dt>
264
+ <dd>
265
+
266
+ <span class="param-type">Promise.&lt;any></span>
267
+
268
+
269
+
270
+ </dd>
271
+ </dl>
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+ <h4 class="name" id=".fetchNotifications"><span class="type-signature type-signature-static">(static) </span>fetchNotifications<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Object>>}</span></h4>
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <dl class="details">
290
+
291
+ <dt class="tag-description">Description:</dt>
292
+ <dd class="tag-description"><ul class="dummy"><li>Fetches notifications for a given brand with optional filters for unread status and limit.</li></ul></dd>
293
+
294
+
295
+
296
+ <dt class="tag-source">Source:</dt>
297
+ <dd class="tag-source"><ul class="dummy"><li>
298
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line26">line 26</a>
299
+ </li></ul></dd>
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+ </dl>
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ <h5 class="h5-examples">Example</h5>
344
+
345
+ <pre class="prettyprint"><code>fetchNotifications({ brand: 'drumeo', limit: 5, onlyUnread: true })
346
+ .then(notifications => console.log(notifications))
347
+ .catch(error => console.error(error));</code></pre>
348
+
349
+
350
+
351
+
352
+ <h5 class="h5-parameters">Parameters:</h5>
353
+
354
+
355
+ <table class="params">
356
+ <thead>
357
+ <tr>
358
+
359
+ <th>Name</th>
360
+
361
+
362
+ <th>Type</th>
363
+
364
+
365
+ <th>Attributes</th>
366
+
367
+
368
+
369
+ <th>Default</th>
370
+
371
+
372
+ <th class="last">Description</th>
373
+ </tr>
374
+ </thead>
375
+
376
+ <tbody>
377
+
378
+
379
+ <tr>
380
+
381
+ <td class="name"><code>options</code></td>
382
+
383
+
384
+ <td class="type">
385
+
386
+
387
+ <span class="param-type">Object</span>
388
+
389
+
390
+
391
+
392
+ </td>
393
+
394
+
395
+ <td class="attributes">
396
+
397
+ &lt;optional><br>
398
+
399
+
400
+
401
+
402
+
403
+ </td>
404
+
405
+
406
+
407
+ <td class="default">
408
+
409
+ <code>{}</code>
410
+
411
+ </td>
412
+
413
+
414
+ <td class="description last">Options for fetching notifications.
415
+ <h6>Properties</h6>
416
+
417
+
418
+ <table class="params">
419
+ <thead>
420
+ <tr>
421
+
422
+ <th>Name</th>
423
+
424
+
425
+ <th>Type</th>
426
+
427
+
428
+ <th>Attributes</th>
429
+
430
+
431
+
432
+ <th>Default</th>
433
+
434
+
435
+ <th class="last">Description</th>
436
+ </tr>
437
+ </thead>
438
+
439
+ <tbody>
440
+
441
+
442
+ <tr>
443
+
444
+ <td class="name"><code>brand</code></td>
445
+
446
+
447
+ <td class="type">
448
+
449
+
450
+ <span class="param-type">string</span>
451
+
452
+
453
+
454
+
455
+ </td>
456
+
457
+
458
+ <td class="attributes">
459
+
460
+
461
+
462
+
463
+
464
+ </td>
465
+
466
+
467
+
468
+ <td class="default">
469
+
470
+ </td>
471
+
472
+
473
+ <td class="description last">The brand to filter notifications by. (Required)</td>
474
+ </tr>
475
+
476
+
477
+
478
+ <tr>
479
+
480
+ <td class="name"><code>limit</code></td>
481
+
482
+
483
+ <td class="type">
484
+
485
+
486
+ <span class="param-type">number</span>
487
+
488
+
489
+
490
+
491
+ </td>
492
+
493
+
494
+ <td class="attributes">
495
+
496
+ &lt;optional><br>
497
+
498
+
499
+
500
+
501
+
502
+ </td>
503
+
504
+
505
+
506
+ <td class="default">
507
+
508
+ <code>10</code>
509
+
510
+ </td>
511
+
512
+
513
+ <td class="description last">The maximum number of notifications to fetch.</td>
514
+ </tr>
515
+
516
+
517
+
518
+ <tr>
519
+
520
+ <td class="name"><code>onlyUnread</code></td>
521
+
522
+
523
+ <td class="type">
524
+
525
+
526
+ <span class="param-type">boolean</span>
527
+
528
+
529
+
530
+
531
+ </td>
532
+
533
+
534
+ <td class="attributes">
535
+
536
+ &lt;optional><br>
537
+
538
+
539
+
540
+
541
+
542
+ </td>
543
+
544
+
545
+
546
+ <td class="default">
547
+
548
+ <code>false</code>
549
+
550
+ </td>
551
+
552
+
553
+ <td class="description last">Whether to fetch only unread notifications. If true, adds `unread=1` to the query.</td>
554
+ </tr>
555
+
556
+
557
+ </tbody>
558
+ </table>
559
+
560
+ </td>
561
+ </tr>
562
+
563
+
564
+ </tbody>
565
+ </table>
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+ <h5 class="h5-throws">Throws:</h5>
581
+
582
+
583
+
584
+ <dl>
585
+ <dt>
586
+ <div class="param-desc usertext">
587
+ - Throws an error if the brand is not provided.
588
+ </div>
589
+ </dt>
590
+ <dd></dd>
591
+ <dt>
592
+ <dl class="param-type">
593
+ <dt>
594
+ Type
595
+ </dt>
596
+ <dd>
597
+
598
+ <span class="param-type">Error</span>
599
+
600
+
601
+
602
+ </dd>
603
+ </dl>
604
+ </dt>
605
+ <dd></dd>
606
+ </dl>
607
+
608
+
609
+
610
+
611
+
612
+ <h5 class="h5-returns">Returns:</h5>
613
+
614
+
615
+ <div class="param-desc">
616
+ - A promise that resolves to an array of notifications.
617
+ </div>
618
+
619
+
620
+
621
+ <dl class="param-type">
622
+ <dt>
623
+ Type
624
+ </dt>
625
+ <dd>
626
+
627
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
628
+
629
+
630
+
631
+ </dd>
632
+ </dl>
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+ <h4 class="name" id=".markAllNotificationsAsRead"><span class="type-signature type-signature-static">(static) </span>markAllNotificationsAsRead<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;any>}</span></h4>
644
+
645
+
646
+
647
+
648
+
649
+
650
+ <dl class="details">
651
+
652
+ <dt class="tag-description">Description:</dt>
653
+ <dd class="tag-description"><ul class="dummy"><li>Marks all notifications as read for a specific brand.</li></ul></dd>
654
+
655
+
656
+
657
+ <dt class="tag-source">Source:</dt>
658
+ <dd class="tag-source"><ul class="dummy"><li>
659
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line71">line 71</a>
660
+ </li></ul></dd>
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+ </dl>
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+ <h5 class="h5-examples">Example</h5>
705
+
706
+ <pre class="prettyprint"><code>markAllNotificationsAsRead('drumeo')
707
+ .then(response => console.log(response))
708
+ .catch(error => console.error(error));</code></pre>
709
+
710
+
711
+
712
+
713
+ <h5 class="h5-parameters">Parameters:</h5>
714
+
715
+
716
+ <table class="params">
717
+ <thead>
718
+ <tr>
719
+
720
+ <th>Name</th>
721
+
722
+
723
+ <th>Type</th>
724
+
725
+
726
+
727
+
728
+
729
+ <th class="last">Description</th>
730
+ </tr>
731
+ </thead>
732
+
733
+ <tbody>
734
+
735
+
736
+ <tr>
737
+
738
+ <td class="name"><code>brand</code></td>
739
+
740
+
741
+ <td class="type">
742
+
743
+
744
+ <span class="param-type">string</span>
745
+
746
+
747
+
748
+
749
+ </td>
750
+
751
+
752
+
753
+
754
+
755
+ <td class="description last">The brand to filter notifications by.</td>
756
+ </tr>
757
+
758
+
759
+ </tbody>
760
+ </table>
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+ <h5 class="h5-returns">Returns:</h5>
778
+
779
+
780
+ <div class="param-desc">
781
+ - A promise that resolves when all notifications are marked as read.
782
+ </div>
783
+
784
+
785
+
786
+ <dl class="param-type">
787
+ <dt>
788
+ Type
789
+ </dt>
790
+ <dd>
791
+
792
+ <span class="param-type">Promise.&lt;any></span>
793
+
794
+
795
+
796
+ </dd>
797
+ </dl>
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+ <h4 class="name" id=".markNotificationAsRead"><span class="type-signature type-signature-static">(static) </span>markNotificationAsRead<span class="signature">(notificationId)</span><span class="type-signature"> &rarr; {Promise.&lt;any>}</span></h4>
809
+
810
+
811
+
812
+
813
+
814
+
815
+ <dl class="details">
816
+
817
+ <dt class="tag-description">Description:</dt>
818
+ <dd class="tag-description"><ul class="dummy"><li>Marks a specific notification as read.</li></ul></dd>
819
+
820
+
821
+
822
+ <dt class="tag-source">Source:</dt>
823
+ <dd class="tag-source"><ul class="dummy"><li>
824
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line50">line 50</a>
825
+ </li></ul></dd>
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+ </dl>
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+ <h5 class="h5-examples">Example</h5>
870
+
871
+ <pre class="prettyprint"><code>markNotificationAsRead(123)
872
+ .then(response => console.log(response))
873
+ .catch(error => console.error(error));</code></pre>
874
+
875
+
876
+
877
+
878
+ <h5 class="h5-parameters">Parameters:</h5>
879
+
880
+
881
+ <table class="params">
882
+ <thead>
883
+ <tr>
884
+
885
+ <th>Name</th>
886
+
887
+
888
+ <th>Type</th>
889
+
890
+
891
+
892
+
893
+
894
+ <th class="last">Description</th>
895
+ </tr>
896
+ </thead>
897
+
898
+ <tbody>
899
+
900
+
901
+ <tr>
902
+
903
+ <td class="name"><code>notificationId</code></td>
904
+
905
+
906
+ <td class="type">
907
+
908
+
909
+ <span class="param-type">number</span>
910
+
911
+
912
+
913
+
914
+ </td>
915
+
916
+
917
+
918
+
919
+
920
+ <td class="description last">The ID of the notification to mark as read.</td>
921
+ </tr>
922
+
923
+
924
+ </tbody>
925
+ </table>
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ <h5 class="h5-throws">Throws:</h5>
941
+
942
+
943
+
944
+ <dl>
945
+ <dt>
946
+ <div class="param-desc usertext">
947
+ - Throws an error if notificationId is not provided.
948
+ </div>
949
+ </dt>
950
+ <dd></dd>
951
+ <dt>
952
+ <dl class="param-type">
953
+ <dt>
954
+ Type
955
+ </dt>
956
+ <dd>
957
+
958
+ <span class="param-type">Error</span>
959
+
960
+
961
+
962
+ </dd>
963
+ </dl>
964
+ </dt>
965
+ <dd></dd>
966
+ </dl>
967
+
968
+
969
+
970
+
971
+
972
+ <h5 class="h5-returns">Returns:</h5>
973
+
974
+
975
+ <div class="param-desc">
976
+ - A promise that resolves when the notification is successfully marked as read.
977
+ </div>
978
+
979
+
980
+
981
+ <dl class="param-type">
982
+ <dt>
983
+ Type
984
+ </dt>
985
+ <dd>
986
+
987
+ <span class="param-type">Promise.&lt;any></span>
988
+
989
+
990
+
991
+ </dd>
992
+ </dl>
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+ <h4 class="name" id=".markNotificationAsUnread"><span class="type-signature type-signature-static">(static) </span>markNotificationAsUnread<span class="signature">(notificationId)</span><span class="type-signature"> &rarr; {Promise.&lt;any>}</span></h4>
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+ <dl class="details">
1011
+
1012
+ <dt class="tag-description">Description:</dt>
1013
+ <dd class="tag-description"><ul class="dummy"><li>Marks a specific notification as unread.</li></ul></dd>
1014
+
1015
+
1016
+
1017
+ <dt class="tag-source">Source:</dt>
1018
+ <dd class="tag-source"><ul class="dummy"><li>
1019
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line90">line 90</a>
1020
+ </li></ul></dd>
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+ </dl>
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+ <h5 class="h5-examples">Example</h5>
1065
+
1066
+ <pre class="prettyprint"><code>markNotificationAsUnread(123)
1067
+ .then(response => console.log(response))
1068
+ .catch(error => console.error(error));</code></pre>
1069
+
1070
+
1071
+
1072
+
1073
+ <h5 class="h5-parameters">Parameters:</h5>
1074
+
1075
+
1076
+ <table class="params">
1077
+ <thead>
1078
+ <tr>
1079
+
1080
+ <th>Name</th>
1081
+
1082
+
1083
+ <th>Type</th>
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ <th class="last">Description</th>
1090
+ </tr>
1091
+ </thead>
1092
+
1093
+ <tbody>
1094
+
1095
+
1096
+ <tr>
1097
+
1098
+ <td class="name"><code>notificationId</code></td>
1099
+
1100
+
1101
+ <td class="type">
1102
+
1103
+
1104
+ <span class="param-type">number</span>
1105
+
1106
+
1107
+
1108
+
1109
+ </td>
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+ <td class="description last">The ID of the notification to mark as unread.</td>
1116
+ </tr>
1117
+
1118
+
1119
+ </tbody>
1120
+ </table>
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+ <h5 class="h5-throws">Throws:</h5>
1136
+
1137
+
1138
+
1139
+ <dl>
1140
+ <dt>
1141
+ <div class="param-desc usertext">
1142
+ - Throws an error if notificationId is not provided.
1143
+ </div>
1144
+ </dt>
1145
+ <dd></dd>
1146
+ <dt>
1147
+ <dl class="param-type">
1148
+ <dt>
1149
+ Type
1150
+ </dt>
1151
+ <dd>
1152
+
1153
+ <span class="param-type">Error</span>
1154
+
1155
+
1156
+
1157
+ </dd>
1158
+ </dl>
1159
+ </dt>
1160
+ <dd></dd>
1161
+ </dl>
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+ <h5 class="h5-returns">Returns:</h5>
1168
+
1169
+
1170
+ <div class="param-desc">
1171
+ - A promise that resolves when the notification is successfully marked as unread.
1172
+ </div>
1173
+
1174
+
1175
+
1176
+ <dl class="param-type">
1177
+ <dt>
1178
+ Type
1179
+ </dt>
1180
+ <dd>
1181
+
1182
+ <span class="param-type">Promise.&lt;any></span>
1183
+
1184
+
1185
+
1186
+ </dd>
1187
+ </dl>
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ </article>
1200
+
1201
+ </section>
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+ </div>
1209
+
1210
+ <br class="clear">
1211
+
1212
+ <footer>
1213
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Mon Jun 16 2025 14:26:22 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1214
+ </footer>
1215
+
1216
+ <script>prettyPrint();</script>
1217
+ <script src="scripts/polyfill.js"></script>
1218
+ <script src="scripts/linenumber.js"></script>
1219
+
1220
+
1221
+
1222
+ </body>
1223
+ </html>