musora-content-services 2.18.0 → 2.19.0

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 (46) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/docs/ContentOrganization.html +0 -0
  3. package/docs/Gamification.html +0 -0
  4. package/docs/UserManagementSystem.html +0 -0
  5. package/docs/api_types.js.html +0 -0
  6. package/docs/config.js.html +0 -0
  7. package/docs/content-org_content-org.js.html +0 -0
  8. package/docs/content-org_playlists-types.js.html +0 -0
  9. package/docs/content-org_playlists.js.html +0 -0
  10. package/docs/content.js.html +0 -0
  11. package/docs/gamification_awards.js.html +0 -0
  12. package/docs/gamification_gamification.js.html +0 -0
  13. package/docs/gamification_types.js.html +0 -0
  14. package/docs/global.html +0 -0
  15. package/docs/index.html +0 -0
  16. package/docs/module-Awards.html +0 -0
  17. package/docs/module-Config.html +0 -0
  18. package/docs/module-Content-Services-V2.html +0 -0
  19. package/docs/module-Interests.html +0 -0
  20. package/docs/module-Permissions.html +0 -0
  21. package/docs/module-Playlists.html +0 -0
  22. package/docs/module-Railcontent-Services.html +0 -0
  23. package/docs/module-Sanity-Services.html +0 -0
  24. package/docs/module-Sessions.html +0 -0
  25. package/docs/module-UserActivity.html +0 -0
  26. package/docs/module-UserChat.html +0 -0
  27. package/docs/module-UserManagement.html +0 -0
  28. package/docs/module-UserNotifications.html +0 -0
  29. package/docs/module-UserProfile.html +0 -0
  30. package/docs/railcontent.js.html +0 -0
  31. package/docs/sanity.js.html +0 -0
  32. package/docs/userActivity.js.html +0 -0
  33. package/docs/user_chat.js.html +0 -0
  34. package/docs/user_interests.js.html +0 -0
  35. package/docs/user_management.js.html +0 -0
  36. package/docs/user_notifications.js.html +0 -0
  37. package/docs/user_permissions.js.html +0 -0
  38. package/docs/user_profile.js.html +0 -0
  39. package/docs/user_sessions.js.html +0 -0
  40. package/docs/user_types.js.html +0 -0
  41. package/docs/user_user-management-system.js.html +0 -0
  42. package/link_mcs.sh +0 -0
  43. package/package.json +1 -1
  44. package/src/services/content-org/guided-courses.ts +0 -0
  45. package/src/services/user/notifications.js +2 -2
  46. package/src/services/user/sessions.js +3 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.19.0](https://github.com/railroadmedia/musora-content-services/compare/v2.18.0...v2.19.0) (2025-07-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * MU2-583: Update notification settings routes ([014ba93](https://github.com/railroadmedia/musora-content-services/commit/014ba9370a58a374c048f4d02fd6130b2758c956))
11
+
5
12
  ## [2.18.0](https://github.com/railroadmedia/musora-content-services/compare/v2.17.0...v2.18.0) (2025-07-08)
6
13
 
7
14
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/docs/global.html CHANGED
File without changes
package/docs/index.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/link_mcs.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.18.0",
3
+ "version": "2.19.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
@@ -153,7 +153,7 @@ export async function fetchUnreadCount({ brand = null} = {}) {
153
153
  * });
154
154
  */
155
155
  export async function fetchNotificationSettings() {
156
- const url = `/api/notification-settings/v1`;
156
+ const url = `/api/notifications/v1/settings`;
157
157
  const settings = await fetchHandler(url, 'get');
158
158
 
159
159
  if (!settings || typeof settings !== 'object') return {};
@@ -219,7 +219,7 @@ export async function updateNotificationSetting({ brand, settingName, email, pus
219
219
  }
220
220
 
221
221
  const payload = { settings };
222
- const url = '/api/notification-settings/v1';
222
+ const url = '/api/notifications/v1/settings';
223
223
 
224
224
  return fetchHandler(url, 'PUT', null, payload);
225
225
  }
@@ -29,7 +29,7 @@ const excludeFromGeneratedIndex = []
29
29
  */
30
30
  export async function login(email, password, deviceName, deviceToken, platform) {
31
31
  const baseUrl = `${globalConfig.baseUrl}/api/user-management-system`
32
- const res = await fetch(`${baseUrl}/v1/sessions`, {
32
+ return fetch(`${baseUrl}/v1/sessions`, {
33
33
  method: 'POST',
34
34
  headers: {
35
35
  'Content-Type': 'application/json',
@@ -42,8 +42,7 @@ export async function login(email, password, deviceName, deviceToken, platform)
42
42
  device_token: deviceToken,
43
43
  platform: platform,
44
44
  }),
45
- });
46
- return res.json();
45
+ })
47
46
  }
48
47
 
49
48
  /**
@@ -58,12 +57,11 @@ export async function login(email, password, deviceName, deviceToken, platform)
58
57
  */
59
58
  export async function logout() {
60
59
  const baseUrl = `${globalConfig.baseUrl}/api/user-management-system`
61
- const res = await fetch(`${baseUrl}/v1/sessions`, {
60
+ await fetch(`${baseUrl}/v1/sessions`, {
62
61
  method: 'DELETE',
63
62
  headers: {
64
63
  Authorization: `Bearer ${globalConfig.sessionConfig.authToken}`,
65
64
  'Content-Type': 'application/json',
66
65
  },
67
66
  })
68
- return res.json();
69
67
  }