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.
- package/CHANGELOG.md +7 -0
- package/docs/ContentOrganization.html +0 -0
- package/docs/Gamification.html +0 -0
- package/docs/UserManagementSystem.html +0 -0
- package/docs/api_types.js.html +0 -0
- package/docs/config.js.html +0 -0
- package/docs/content-org_content-org.js.html +0 -0
- package/docs/content-org_playlists-types.js.html +0 -0
- package/docs/content-org_playlists.js.html +0 -0
- package/docs/content.js.html +0 -0
- package/docs/gamification_awards.js.html +0 -0
- package/docs/gamification_gamification.js.html +0 -0
- package/docs/gamification_types.js.html +0 -0
- package/docs/global.html +0 -0
- package/docs/index.html +0 -0
- package/docs/module-Awards.html +0 -0
- package/docs/module-Config.html +0 -0
- package/docs/module-Content-Services-V2.html +0 -0
- package/docs/module-Interests.html +0 -0
- package/docs/module-Permissions.html +0 -0
- package/docs/module-Playlists.html +0 -0
- package/docs/module-Railcontent-Services.html +0 -0
- package/docs/module-Sanity-Services.html +0 -0
- package/docs/module-Sessions.html +0 -0
- package/docs/module-UserActivity.html +0 -0
- package/docs/module-UserChat.html +0 -0
- package/docs/module-UserManagement.html +0 -0
- package/docs/module-UserNotifications.html +0 -0
- package/docs/module-UserProfile.html +0 -0
- package/docs/railcontent.js.html +0 -0
- package/docs/sanity.js.html +0 -0
- package/docs/userActivity.js.html +0 -0
- package/docs/user_chat.js.html +0 -0
- package/docs/user_interests.js.html +0 -0
- package/docs/user_management.js.html +0 -0
- package/docs/user_notifications.js.html +0 -0
- package/docs/user_permissions.js.html +0 -0
- package/docs/user_profile.js.html +0 -0
- package/docs/user_sessions.js.html +0 -0
- package/docs/user_types.js.html +0 -0
- package/docs/user_user-management-system.js.html +0 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/services/content-org/guided-courses.ts +0 -0
- package/src/services/user/notifications.js +2 -2
- 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
|
package/docs/Gamification.html
CHANGED
|
File without changes
|
|
File without changes
|
package/docs/api_types.js.html
CHANGED
|
File without changes
|
package/docs/config.js.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/content.js.html
CHANGED
|
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
|
package/docs/module-Awards.html
CHANGED
|
File without changes
|
package/docs/module-Config.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
|
package/docs/railcontent.js.html
CHANGED
|
File without changes
|
package/docs/sanity.js.html
CHANGED
|
File without changes
|
|
File without changes
|
package/docs/user_chat.js.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/user_types.js.html
CHANGED
|
File without changes
|
|
File without changes
|
package/link_mcs.sh
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
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/
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|