musora-content-services 2.66.0 → 2.67.1

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 (62) hide show
  1. package/.claude/settings.local.json +8 -0
  2. package/CHANGELOG.md +9 -0
  3. package/docs/ContentOrganization.html +2 -2
  4. package/docs/Forums.html +2 -2
  5. package/docs/Gamification.html +2 -2
  6. package/docs/UserManagementSystem.html +2 -2
  7. package/docs/api_types.js.html +2 -2
  8. package/docs/config.js.html +2 -2
  9. package/docs/content-org_content-org.js.html +2 -2
  10. package/docs/content-org_guided-courses.ts.html +2 -2
  11. package/docs/content-org_learning-paths.ts.html +22 -2
  12. package/docs/content-org_playlists-types.js.html +2 -2
  13. package/docs/content-org_playlists.js.html +2 -2
  14. package/docs/content.js.html +32 -8
  15. package/docs/forums_categories.ts.html +2 -2
  16. package/docs/forums_forums.ts.html +2 -2
  17. package/docs/forums_posts.ts.html +2 -2
  18. package/docs/forums_threads.ts.html +2 -2
  19. package/docs/gamification_awards.ts.html +2 -2
  20. package/docs/gamification_gamification.js.html +2 -2
  21. package/docs/global.html +2 -2
  22. package/docs/index.html +2 -2
  23. package/docs/module-Accounts.html +2 -2
  24. package/docs/module-Awards.html +2 -2
  25. package/docs/module-Config.html +2 -2
  26. package/docs/module-Content-Services-V2.html +168 -2
  27. package/docs/module-Forums.html +2 -2
  28. package/docs/module-GuidedCourses.html +518 -2
  29. package/docs/module-Interests.html +2 -2
  30. package/docs/module-Onboarding.html +2 -2
  31. package/docs/module-Payments.html +2 -2
  32. package/docs/module-Permissions.html +2 -2
  33. package/docs/module-Playlists.html +2 -2
  34. package/docs/module-Railcontent-Services.html +2 -2
  35. package/docs/module-Sanity-Services.html +2 -2
  36. package/docs/module-Sessions.html +2 -2
  37. package/docs/module-UserActivity.html +2 -2
  38. package/docs/module-UserChat.html +2 -2
  39. package/docs/module-UserManagement.html +2 -2
  40. package/docs/module-UserMemberships.html +2 -2
  41. package/docs/module-UserNotifications.html +2 -2
  42. package/docs/module-UserProfile.html +2 -2
  43. package/docs/railcontent.js.html +2 -2
  44. package/docs/sanity.js.html +2 -2
  45. package/docs/userActivity.js.html +2 -2
  46. package/docs/user_account.ts.html +2 -2
  47. package/docs/user_chat.js.html +2 -2
  48. package/docs/user_interests.js.html +2 -2
  49. package/docs/user_management.js.html +2 -2
  50. package/docs/user_memberships.ts.html +2 -2
  51. package/docs/user_notifications.js.html +2 -2
  52. package/docs/user_onboarding.ts.html +2 -2
  53. package/docs/user_payments.ts.html +2 -2
  54. package/docs/user_permissions.js.html +2 -2
  55. package/docs/user_profile.js.html +2 -2
  56. package/docs/user_sessions.js.html +2 -2
  57. package/docs/user_types.js.html +2 -2
  58. package/docs/user_user-management-system.js.html +2 -2
  59. package/package.json +1 -1
  60. package/src/index.d.ts +4 -0
  61. package/src/index.js +4 -0
  62. package/src/services/content-org/learning-paths.ts +20 -0
@@ -29,3 +29,23 @@ export async function updateDailySession(brand: string, userDate: Date, keepFirs
29
29
  const body = { brand: brand, userDate: stringDate, keepFirstLearningPath: keepFirstLearningPath }
30
30
  return await fetchHandler(url, 'POST', null, body)
31
31
  }
32
+
33
+ /**
34
+ * Gets user's active learning path.
35
+ * @param brand
36
+ */
37
+ export async function getActivePath(brand: string) {
38
+ const url: string = `${BASE_PATH}/v1/user/learning-paths/active-path/get-or-create`
39
+ const body = { brand: brand }
40
+ return await fetchHandler(url, 'POST', null, body)
41
+ }
42
+
43
+ /**
44
+ * Updates user's active learning path.
45
+ * @param brand
46
+ */
47
+ export async function updateActivePath(brand: string) {
48
+ const url: string = `${BASE_PATH}/v1/user/learning-paths/active-path/update`
49
+ const body = { brand: brand }
50
+ return await fetchHandler(url, 'POST', null, body)
51
+ }