musora-content-services 2.17.0 → 2.18.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 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.18.0](https://github.com/railroadmedia/musora-content-services/compare/v2.17.0...v2.18.0) (2025-07-08)
6
+
7
+
8
+ ### Features
9
+
10
+ * GC enroll patch ([c8dc053](https://github.com/railroadmedia/musora-content-services/commit/c8dc0530abd63d7354f9772f938c3769a401702b))
11
+
5
12
  ## [2.17.0](https://github.com/railroadmedia/musora-content-services/compare/v2.15.1...v2.17.0) (2025-07-07)
6
13
 
7
14
 
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.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
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
@@ -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
- return fetch(`${baseUrl}/v1/sessions`, {
32
+ const res = await fetch(`${baseUrl}/v1/sessions`, {
33
33
  method: 'POST',
34
34
  headers: {
35
35
  'Content-Type': 'application/json',
@@ -42,7 +42,8 @@ export async function login(email, password, deviceName, deviceToken, platform)
42
42
  device_token: deviceToken,
43
43
  platform: platform,
44
44
  }),
45
- })
45
+ });
46
+ return res.json();
46
47
  }
47
48
 
48
49
  /**
@@ -57,11 +58,12 @@ export async function login(email, password, deviceName, deviceToken, platform)
57
58
  */
58
59
  export async function logout() {
59
60
  const baseUrl = `${globalConfig.baseUrl}/api/user-management-system`
60
- await fetch(`${baseUrl}/v1/sessions`, {
61
+ const res = await fetch(`${baseUrl}/v1/sessions`, {
61
62
  method: 'DELETE',
62
63
  headers: {
63
64
  Authorization: `Bearer ${globalConfig.sessionConfig.authToken}`,
64
65
  'Content-Type': 'application/json',
65
66
  },
66
67
  })
68
+ return res.json();
67
69
  }
File without changes