musora-content-services 2.8.2 → 2.8.3

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 (160) hide show
  1. package/.coderabbit.yaml +0 -0
  2. package/.editorconfig +0 -0
  3. package/.github/pull_request_template.md +0 -0
  4. package/.github/workflows/node.js.yml +0 -0
  5. package/.prettierignore +0 -0
  6. package/.prettierrc +0 -0
  7. package/.yarnrc.yml +1 -0
  8. package/CHANGELOG.md +2 -0
  9. package/README.md +0 -0
  10. package/babel.config.cjs +0 -0
  11. package/docs/Content-Organization.html +0 -0
  12. package/docs/ContentOrganization.html +2 -2
  13. package/docs/Gamification.html +2 -2
  14. package/docs/UserManagement.html +0 -0
  15. package/docs/UserManagementSystem.html +2 -2
  16. package/docs/api_types.js.html +2 -2
  17. package/docs/config.js.html +2 -2
  18. package/docs/content-org_content-org.js.html +2 -2
  19. package/docs/content-org_playlists-types.js.html +2 -2
  20. package/docs/content-org_playlists.js.html +14 -2
  21. package/docs/content.js.html +2 -2
  22. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  23. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  24. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  25. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  26. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  27. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  28. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  29. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  30. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  31. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  32. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  33. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  34. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  35. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  36. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  37. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  38. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  39. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  40. package/docs/gamification_awards.js.html +2 -2
  41. package/docs/gamification_gamification.js.html +2 -2
  42. package/docs/gamification_types.js.html +2 -2
  43. package/docs/global.html +2 -2
  44. package/docs/global.html#User +0 -0
  45. package/docs/index.html +2 -2
  46. package/docs/module-Awards.html +2 -2
  47. package/docs/module-Config.html +2 -2
  48. package/docs/module-Content-Services-V2.html +2 -2
  49. package/docs/module-Content-Services.html +763 -0
  50. package/docs/module-Interests.html +2 -2
  51. package/docs/module-Notifications.html +1183 -0
  52. package/docs/module-Permissions.html +2 -2
  53. package/docs/module-Playlists.html +322 -12
  54. package/docs/module-Railcontent-Services.html +2 -2
  55. package/docs/module-Sanity-Services.html +2 -2
  56. package/docs/module-Session-Management.html +0 -0
  57. package/docs/module-Sessions.html +2 -2
  58. package/docs/module-User-Activity.html +0 -0
  59. package/docs/module-User-Management.html +0 -0
  60. package/docs/module-User-Permissions.html +0 -0
  61. package/docs/module-UserActivity.html +4410 -0
  62. package/docs/module-UserManagement.html +2 -2
  63. package/docs/module-UserNotifications.html +1183 -0
  64. package/docs/module-UserProfile.html +2 -2
  65. package/docs/railcontent.js.html +2 -2
  66. package/docs/sanity.js.html +2 -2
  67. package/docs/scripts/collapse.js +0 -0
  68. package/docs/scripts/commonNav.js +0 -0
  69. package/docs/scripts/linenumber.js +0 -0
  70. package/docs/scripts/nav.js +0 -0
  71. package/docs/scripts/polyfill.js +0 -0
  72. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  73. package/docs/scripts/prettify/lang-css.js +0 -0
  74. package/docs/scripts/prettify/prettify.js +0 -0
  75. package/docs/scripts/search.js +0 -0
  76. package/docs/styles/jsdoc.css +0 -0
  77. package/docs/styles/prettify.css +0 -0
  78. package/docs/types.js.html +0 -0
  79. package/docs/userActivity.js.html +197 -46
  80. package/docs/user_interests.js.html +2 -2
  81. package/docs/user_management.js.html +2 -2
  82. package/docs/user_notifications.js.html +189 -0
  83. package/docs/user_permissions.js.html +2 -2
  84. package/docs/user_profile.js.html +2 -2
  85. package/docs/user_sessions.js.html +2 -2
  86. package/docs/user_types.js.html +2 -2
  87. package/docs/user_user-management-system.js.html +2 -2
  88. package/docs/user_user-management.js.html +0 -0
  89. package/jest.config.js +0 -0
  90. package/jsdoc.json +0 -0
  91. package/package.json +1 -1
  92. package/src/contentMetaData.js +0 -0
  93. package/src/filterBuilder.js +0 -0
  94. package/src/index.d.ts +13 -0
  95. package/src/index.js +13 -0
  96. package/src/infrastructure/http/HttpClient.ts +0 -0
  97. package/src/infrastructure/http/executors/FetchRequestExecutor.ts +0 -0
  98. package/src/infrastructure/http/index.ts +0 -0
  99. package/src/infrastructure/http/interfaces/HeaderProvider.ts +0 -0
  100. package/src/infrastructure/http/interfaces/HttpError.ts +0 -0
  101. package/src/infrastructure/http/interfaces/NetworkError.ts +0 -0
  102. package/src/infrastructure/http/interfaces/RequestExecutor.ts +0 -0
  103. package/src/infrastructure/http/interfaces/RequestOptions.ts +0 -0
  104. package/src/infrastructure/http/providers/DefaultHeaderProvider.ts +0 -0
  105. package/src/lib/httpHelper.js +0 -0
  106. package/src/lib/lastUpdated.js +0 -0
  107. package/src/services/api/types.js +0 -0
  108. package/src/services/config.js +0 -0
  109. package/src/services/content-org/content-org.js +0 -0
  110. package/src/services/content-org/playlists-types.js +11 -0
  111. package/src/services/content-org/playlists.js +2 -1
  112. package/src/services/content.js +0 -0
  113. package/src/services/contentAggregator.js +0 -0
  114. package/src/services/contentLikes.js +0 -0
  115. package/src/services/contentProgress.js +0 -0
  116. package/src/services/dataContext.js +0 -0
  117. package/src/services/dateUtils.js +0 -0
  118. package/src/services/forum.js +0 -0
  119. package/src/services/gamification/awards.js +0 -0
  120. package/src/services/gamification/gamification.js +0 -0
  121. package/src/services/gamification/types.js +0 -0
  122. package/src/services/imageSRCBuilder.js +0 -0
  123. package/src/services/imageSRCVerify.js +0 -0
  124. package/src/services/railcontent.js +0 -0
  125. package/src/services/recommendations.js +0 -0
  126. package/src/services/sanity.js +13 -1
  127. package/src/services/types.js +0 -0
  128. package/src/services/user/interests.js +0 -0
  129. package/src/services/user/management.js +0 -0
  130. package/src/services/user/notifications.js +120 -0
  131. package/src/services/user/permissions.js +0 -0
  132. package/src/services/user/profile.js +0 -0
  133. package/src/services/user/sessions.js +0 -0
  134. package/src/services/user/types.js +0 -0
  135. package/src/services/user/user-management-system.js +0 -0
  136. package/src/services/userActivity.js +2 -1
  137. package/test/HttpClient.test.js +0 -0
  138. package/test/content.test.js +0 -0
  139. package/test/contentLikes.test.js +0 -0
  140. package/test/contentProgress.test.js +0 -0
  141. package/test/dataContext.test.js +0 -0
  142. package/test/forum.test.js +0 -0
  143. package/test/imageSRCBuilder.test.js +0 -0
  144. package/test/imageSRCVerify.test.js +0 -0
  145. package/test/initializeTests.js +0 -0
  146. package/test/lib/lastUpdated.test.js +0 -0
  147. package/test/live/contentProgressLive.test.js +0 -0
  148. package/test/live/railcontentLive.test.js +0 -0
  149. package/test/localStorageMock.js +0 -0
  150. package/test/log.js +0 -0
  151. package/test/mockData/mockData_fetchByRailContentIds_one_content.json +0 -0
  152. package/test/mockData/mockData_progress_content.json +0 -0
  153. package/test/mockData/mockData_sanity_progress_content.json +0 -0
  154. package/test/mockData/mockData_user_practices.json +0 -0
  155. package/test/progressRows.test.js +0 -0
  156. package/test/sanityQueryService.test.js +0 -0
  157. package/test/streakMessage.test.js +0 -0
  158. package/test/user/permissions.test.js +0 -0
  159. package/test/userActivity.test.js +0 -0
  160. package/tools/generate-index.cjs +0 -0
@@ -0,0 +1,1183 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Notifications - 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-Notifications.html">Notifications</a><ul class='methods'><li data-type='method'><a href="module-Notifications.html#.deleteNotification">deleteNotification</a></li><li data-type='method'><a href="module-Notifications.html#.fetchNotifications">fetchNotifications</a></li><li data-type='method'><a href="module-Notifications.html#.markAllNotificationsAsRead">markAllNotificationsAsRead</a></li><li data-type='method'><a href="module-Notifications.html#.markNotificationAsRead">markNotificationAsRead</a></li><li data-type='method'><a href="module-Notifications.html#.markNotificationAsUnread">markNotificationAsUnread</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-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-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">Notifications</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#line110">line 110</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 unread notifications for a given brand with an optional 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#line25">line 25</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 })
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
+ </tbody>
518
+ </table>
519
+
520
+ </td>
521
+ </tr>
522
+
523
+
524
+ </tbody>
525
+ </table>
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ <h5 class="h5-throws">Throws:</h5>
541
+
542
+
543
+
544
+ <dl>
545
+ <dt>
546
+ <div class="param-desc usertext">
547
+ - Throws an error if the brand is not provided.
548
+ </div>
549
+ </dt>
550
+ <dd></dd>
551
+ <dt>
552
+ <dl class="param-type">
553
+ <dt>
554
+ Type
555
+ </dt>
556
+ <dd>
557
+
558
+ <span class="param-type">Error</span>
559
+
560
+
561
+
562
+ </dd>
563
+ </dl>
564
+ </dt>
565
+ <dd></dd>
566
+ </dl>
567
+
568
+
569
+
570
+
571
+
572
+ <h5 class="h5-returns">Returns:</h5>
573
+
574
+
575
+ <div class="param-desc">
576
+ - A promise that resolves to an array of unread notifications.
577
+ </div>
578
+
579
+
580
+
581
+ <dl class="param-type">
582
+ <dt>
583
+ Type
584
+ </dt>
585
+ <dd>
586
+
587
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
588
+
589
+
590
+
591
+ </dd>
592
+ </dl>
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+ <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>
604
+
605
+
606
+
607
+
608
+
609
+
610
+ <dl class="details">
611
+
612
+ <dt class="tag-description">Description:</dt>
613
+ <dd class="tag-description"><ul class="dummy"><li>Marks all notifications as read for a specific brand.</li></ul></dd>
614
+
615
+
616
+
617
+ <dt class="tag-source">Source:</dt>
618
+ <dd class="tag-source"><ul class="dummy"><li>
619
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line68">line 68</a>
620
+ </li></ul></dd>
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+ </dl>
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+ <h5 class="h5-examples">Example</h5>
665
+
666
+ <pre class="prettyprint"><code>markAllNotificationsAsRead('drumeo')
667
+ .then(response => console.log(response))
668
+ .catch(error => console.error(error));</code></pre>
669
+
670
+
671
+
672
+
673
+ <h5 class="h5-parameters">Parameters:</h5>
674
+
675
+
676
+ <table class="params">
677
+ <thead>
678
+ <tr>
679
+
680
+ <th>Name</th>
681
+
682
+
683
+ <th>Type</th>
684
+
685
+
686
+
687
+
688
+
689
+ <th class="last">Description</th>
690
+ </tr>
691
+ </thead>
692
+
693
+ <tbody>
694
+
695
+
696
+ <tr>
697
+
698
+ <td class="name"><code>brand</code></td>
699
+
700
+
701
+ <td class="type">
702
+
703
+
704
+ <span class="param-type">string</span>
705
+
706
+
707
+
708
+
709
+ </td>
710
+
711
+
712
+
713
+
714
+
715
+ <td class="description last">The brand to filter notifications by.</td>
716
+ </tr>
717
+
718
+
719
+ </tbody>
720
+ </table>
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+ <h5 class="h5-returns">Returns:</h5>
738
+
739
+
740
+ <div class="param-desc">
741
+ - A promise that resolves when all notifications are marked as read.
742
+ </div>
743
+
744
+
745
+
746
+ <dl class="param-type">
747
+ <dt>
748
+ Type
749
+ </dt>
750
+ <dd>
751
+
752
+ <span class="param-type">Promise.&lt;any></span>
753
+
754
+
755
+
756
+ </dd>
757
+ </dl>
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+ <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>
769
+
770
+
771
+
772
+
773
+
774
+
775
+ <dl class="details">
776
+
777
+ <dt class="tag-description">Description:</dt>
778
+ <dd class="tag-description"><ul class="dummy"><li>Marks a specific notification as read.</li></ul></dd>
779
+
780
+
781
+
782
+ <dt class="tag-source">Source:</dt>
783
+ <dd class="tag-source"><ul class="dummy"><li>
784
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line47">line 47</a>
785
+ </li></ul></dd>
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+ </dl>
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+ <h5 class="h5-examples">Example</h5>
830
+
831
+ <pre class="prettyprint"><code>markNotificationAsRead(123)
832
+ .then(response => console.log(response))
833
+ .catch(error => console.error(error));</code></pre>
834
+
835
+
836
+
837
+
838
+ <h5 class="h5-parameters">Parameters:</h5>
839
+
840
+
841
+ <table class="params">
842
+ <thead>
843
+ <tr>
844
+
845
+ <th>Name</th>
846
+
847
+
848
+ <th>Type</th>
849
+
850
+
851
+
852
+
853
+
854
+ <th class="last">Description</th>
855
+ </tr>
856
+ </thead>
857
+
858
+ <tbody>
859
+
860
+
861
+ <tr>
862
+
863
+ <td class="name"><code>notificationId</code></td>
864
+
865
+
866
+ <td class="type">
867
+
868
+
869
+ <span class="param-type">number</span>
870
+
871
+
872
+
873
+
874
+ </td>
875
+
876
+
877
+
878
+
879
+
880
+ <td class="description last">The ID of the notification to mark as read.</td>
881
+ </tr>
882
+
883
+
884
+ </tbody>
885
+ </table>
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+ <h5 class="h5-throws">Throws:</h5>
901
+
902
+
903
+
904
+ <dl>
905
+ <dt>
906
+ <div class="param-desc usertext">
907
+ - Throws an error if notificationId is not provided.
908
+ </div>
909
+ </dt>
910
+ <dd></dd>
911
+ <dt>
912
+ <dl class="param-type">
913
+ <dt>
914
+ Type
915
+ </dt>
916
+ <dd>
917
+
918
+ <span class="param-type">Error</span>
919
+
920
+
921
+
922
+ </dd>
923
+ </dl>
924
+ </dt>
925
+ <dd></dd>
926
+ </dl>
927
+
928
+
929
+
930
+
931
+
932
+ <h5 class="h5-returns">Returns:</h5>
933
+
934
+
935
+ <div class="param-desc">
936
+ - A promise that resolves when the notification is successfully marked as read.
937
+ </div>
938
+
939
+
940
+
941
+ <dl class="param-type">
942
+ <dt>
943
+ Type
944
+ </dt>
945
+ <dd>
946
+
947
+ <span class="param-type">Promise.&lt;any></span>
948
+
949
+
950
+
951
+ </dd>
952
+ </dl>
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+ <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>
964
+
965
+
966
+
967
+
968
+
969
+
970
+ <dl class="details">
971
+
972
+ <dt class="tag-description">Description:</dt>
973
+ <dd class="tag-description"><ul class="dummy"><li>Marks a specific notification as unread.</li></ul></dd>
974
+
975
+
976
+
977
+ <dt class="tag-source">Source:</dt>
978
+ <dd class="tag-source"><ul class="dummy"><li>
979
+ <a href="user_notifications.js.html">user/notifications.js</a>, <a href="user_notifications.js.html#line87">line 87</a>
980
+ </li></ul></dd>
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+ </dl>
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+ <h5 class="h5-examples">Example</h5>
1025
+
1026
+ <pre class="prettyprint"><code>markNotificationAsUnread(123)
1027
+ .then(response => console.log(response))
1028
+ .catch(error => console.error(error));</code></pre>
1029
+
1030
+
1031
+
1032
+
1033
+ <h5 class="h5-parameters">Parameters:</h5>
1034
+
1035
+
1036
+ <table class="params">
1037
+ <thead>
1038
+ <tr>
1039
+
1040
+ <th>Name</th>
1041
+
1042
+
1043
+ <th>Type</th>
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+ <th class="last">Description</th>
1050
+ </tr>
1051
+ </thead>
1052
+
1053
+ <tbody>
1054
+
1055
+
1056
+ <tr>
1057
+
1058
+ <td class="name"><code>notificationId</code></td>
1059
+
1060
+
1061
+ <td class="type">
1062
+
1063
+
1064
+ <span class="param-type">number</span>
1065
+
1066
+
1067
+
1068
+
1069
+ </td>
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+ <td class="description last">The ID of the notification to mark as unread.</td>
1076
+ </tr>
1077
+
1078
+
1079
+ </tbody>
1080
+ </table>
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+ <h5 class="h5-throws">Throws:</h5>
1096
+
1097
+
1098
+
1099
+ <dl>
1100
+ <dt>
1101
+ <div class="param-desc usertext">
1102
+ - Throws an error if notificationId is not provided.
1103
+ </div>
1104
+ </dt>
1105
+ <dd></dd>
1106
+ <dt>
1107
+ <dl class="param-type">
1108
+ <dt>
1109
+ Type
1110
+ </dt>
1111
+ <dd>
1112
+
1113
+ <span class="param-type">Error</span>
1114
+
1115
+
1116
+
1117
+ </dd>
1118
+ </dl>
1119
+ </dt>
1120
+ <dd></dd>
1121
+ </dl>
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+ <h5 class="h5-returns">Returns:</h5>
1128
+
1129
+
1130
+ <div class="param-desc">
1131
+ - A promise that resolves when the notification is successfully marked as unread.
1132
+ </div>
1133
+
1134
+
1135
+
1136
+ <dl class="param-type">
1137
+ <dt>
1138
+ Type
1139
+ </dt>
1140
+ <dd>
1141
+
1142
+ <span class="param-type">Promise.&lt;any></span>
1143
+
1144
+
1145
+
1146
+ </dd>
1147
+ </dl>
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+ </article>
1160
+
1161
+ </section>
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ </div>
1169
+
1170
+ <br class="clear">
1171
+
1172
+ <footer>
1173
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Jun 03 2025 12:19:30 GMT+0300 (Eastern European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1174
+ </footer>
1175
+
1176
+ <script>prettyPrint();</script>
1177
+ <script src="scripts/polyfill.js"></script>
1178
+ <script src="scripts/linenumber.js"></script>
1179
+
1180
+
1181
+
1182
+ </body>
1183
+ </html>