musora-content-services 2.7.2 → 2.7.3

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 (48) hide show
  1. package/CHANGELOG.md +2 -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-User-Activity.html +0 -0
  26. package/docs/module-UserManagement.html +0 -0
  27. package/docs/module-UserProfile.html +0 -0
  28. package/docs/railcontent.js.html +0 -0
  29. package/docs/sanity.js.html +0 -0
  30. package/docs/userActivity.js.html +0 -0
  31. package/docs/user_interests.js.html +0 -0
  32. package/docs/user_management.js.html +0 -0
  33. package/docs/user_permissions.js.html +0 -0
  34. package/docs/user_profile.js.html +0 -0
  35. package/docs/user_sessions.js.html +0 -0
  36. package/docs/user_types.js.html +0 -0
  37. package/docs/user_user-management-system.js.html +0 -0
  38. package/link_mcs.sh +8 -6
  39. package/package.json +1 -1
  40. package/src/contentMetaData.js +0 -0
  41. package/src/contentTypeConfig.js +2 -2
  42. package/src/services/content.js +0 -0
  43. package/src/services/contentProgress.js +0 -0
  44. package/src/services/dateUtils.js +0 -0
  45. package/test/mockData/mockData_progress_content.json +0 -0
  46. package/test/mockData/mockData_sanity_progress_content.json +0 -0
  47. package/test/progressRows.test.js +0 -0
  48. package/test/userActivity.test.js +4 -4
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.7.3](https://github.com/railroadmedia/musora-content-services/compare/v2.7.2...v2.7.3) (2025-05-26)
6
+
5
7
  ### [2.7.2](https://github.com/railroadmedia/musora-content-services/compare/v2.7.1...v2.7.2) (2025-05-23)
6
8
 
7
9
  ### [2.7.1](https://github.com/railroadmedia/musora-content-services/compare/v2.7.0...v2.7.1) (2025-05-22)
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
package/link_mcs.sh CHANGED
@@ -5,19 +5,21 @@
5
5
 
6
6
  # Define the paths (edit these paths according to your directory structure)
7
7
  MUSORA_CONTENT_SERVICES_DIR="../musora-content-services"
8
- MUSORA_WEB_PLATFORM_DIR="../musora-web-platform"
8
+ MUSORA_PLATFORM_FE_DIR="../musora-platform-frontend"
9
9
 
10
10
  # Navigate to the musora-content-services directory and create a symlink
11
11
  echo "Linking musora-content-services..."
12
12
  cd "$MUSORA_CONTENT_SERVICES_DIR" || { echo "Directory not found: $MUSORA_CONTENT_SERVICES_DIR"; exit 1; }
13
13
  npm link
14
14
 
15
- # Navigate to the musora-web-platform directory and link the package
16
- echo "Linking musora-content-services to musora-web-platform..."
17
- cd "$MUSORA_WEB_PLATFORM_DIR" || { echo "Directory not found: $MUSORA_WEB_PLATFORM_DIR"; exit 1; }
15
+ # Navigate to the musora-platform-frontend directory and link the package
16
+ echo "Linking musora-content-services to musora-platform-frontend ..."
17
+ cd "$MUSORA_PLATFORM_FE_DIR" || { echo "Directory not found: $MUSORA_PLATFORM_FE_DIR"; exit 1; }
18
+ npm rm -fr node-modules
19
+ npm install
18
20
  npm link musora-content-services
19
21
 
20
22
  echo "Symlink created successfully. You can now test your changes locally."
21
23
 
22
- # Optional: List the linked packages to verify
23
- npm ls musora-content-services
24
+ # Optional: If you want to run the frontend with the linked package
25
+ #npm run dev
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
File without changes
@@ -139,8 +139,8 @@ export const singleLessonTypes = ['quick-tips', 'rudiment', 'coach-lessons'];
139
139
  export const practiceAlongsLessonTypes = ['workout', 'boot-camp','challenges'];
140
140
  export const performancesLessonTypes = ['performance','solo','drum-fest-international-2022'];
141
141
  export const documentariesLessonTypes = ['tama','sonor','history-of-electronic-drums','paiste-cymbals'];
142
- export const liveArchivesLessonTypes = ['podcast', 'coach-stream', 'live-streams'];
143
- export const studentArchivesLessonTypes = ['student-review', 'question-and-answer', 'student-focus','student-collaboration'];
142
+ export const liveArchivesLessonTypes = ['podcast', 'coach-stream', 'question-and-answer', 'live-streams'];
143
+ export const studentArchivesLessonTypes = ['student-review', 'student-focus','student-collaboration'];
144
144
  export const tutorialsLessonTypes = ['song-tutorial'];
145
145
  export const transcriptionsLessonTypes = ['song'];
146
146
  export const playAlongLessonTypes = ['play-along'];
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -69,15 +69,15 @@ describe('User Activity API Tests', function () {
69
69
 
70
70
  test('fetches user practices from past', async () => {
71
71
  userActivityContext.clearCache()
72
- const practices = await getUserMonthlyStats( 2025, 1)
73
- consoleLog(practices)
72
+ const practices = await getUserMonthlyStats( {year:2025, month: 1} )
73
+ consoleLog(practices.data.dailyActiveStats)
74
74
 
75
75
  // Assert that dailyActiveStats contains correct data
76
76
  const dailyStats = practices.data.dailyActiveStats
77
77
  const feb10 = dailyStats.find(stat => stat.label === '2025-02-10')
78
78
  expect(feb10.inStreak).toBe(true)
79
- expect(feb10.type).toBe('tracked')
80
- expect(feb10.isActive).toBe(false)
79
+ expect(feb10.type).toBe('tracked')
80
+ expect(feb10.isActive).toBe(false)
81
81
  })
82
82
 
83
83
  test('fetches user practices for current week', async () => {