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.
- package/CHANGELOG.md +2 -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-User-Activity.html +0 -0
- package/docs/module-UserManagement.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_interests.js.html +0 -0
- package/docs/user_management.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 +8 -6
- package/package.json +1 -1
- package/src/contentMetaData.js +0 -0
- package/src/contentTypeConfig.js +2 -2
- package/src/services/content.js +0 -0
- package/src/services/contentProgress.js +0 -0
- package/src/services/dateUtils.js +0 -0
- package/test/mockData/mockData_progress_content.json +0 -0
- package/test/mockData/mockData_sanity_progress_content.json +0 -0
- package/test/progressRows.test.js +0 -0
- 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
|
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
|
package/docs/railcontent.js.html
CHANGED
|
File without changes
|
package/docs/sanity.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
|
@@ -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
|
-
|
|
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-
|
|
16
|
-
echo "Linking musora-content-services to musora-
|
|
17
|
-
cd "$
|
|
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:
|
|
23
|
-
npm
|
|
24
|
+
# Optional: If you want to run the frontend with the linked package
|
|
25
|
+
#npm run dev
|
package/package.json
CHANGED
package/src/contentMetaData.js
CHANGED
|
File without changes
|
package/src/contentTypeConfig.js
CHANGED
|
@@ -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', '
|
|
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'];
|
package/src/services/content.js
CHANGED
|
File without changes
|
|
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
|
-
|
|
80
|
-
|
|
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 () => {
|