musora-content-services 2.17.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 +14 -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/package.json +1 -1
- package/src/index.d.ts +0 -0
- package/src/index.js +0 -0
- package/src/services/content-org/guided-courses.ts +2 -2
- package/src/services/railcontent.js +0 -0
- package/src/services/user/notifications.js +2 -2
- package/src/services/user/sessions.js +0 -0
- package/test/notifications.test.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
|
|
12
|
+
## [2.18.0](https://github.com/railroadmedia/musora-content-services/compare/v2.17.0...v2.18.0) (2025-07-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* GC enroll patch ([c8dc053](https://github.com/railroadmedia/musora-content-services/commit/c8dc0530abd63d7354f9772f938c3769a401702b))
|
|
18
|
+
|
|
5
19
|
## [2.17.0](https://github.com/railroadmedia/musora-content-services/compare/v2.15.1...v2.17.0) (2025-07-07)
|
|
6
20
|
|
|
7
21
|
|
|
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/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
File without changes
|
package/src/index.js
CHANGED
|
File without changes
|
|
@@ -10,9 +10,9 @@ const excludeFromGeneratedIndex: string[] = []
|
|
|
10
10
|
|
|
11
11
|
const BASE_PATH: string = `/api/content-org`
|
|
12
12
|
|
|
13
|
-
export async function enrollUserInGuidedCourse(guidedCourse) {
|
|
13
|
+
export async function enrollUserInGuidedCourse(guidedCourse, { notifications_enabled = false }) {
|
|
14
14
|
const url: string = `${BASE_PATH}/v1/user/guided-courses/enroll-user/${guidedCourse}`
|
|
15
|
-
return await fetchHandler(url, 'POST')
|
|
15
|
+
return await fetchHandler(url, 'POST', null, { notifications_enabled })
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export async function unEnrollUserInGuidedCourse(guidedCourse) {
|
|
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
|
}
|
|
File without changes
|
|
File without changes
|