musora-content-services 2.5.0 → 2.6.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 +9 -0
- package/docs/ContentOrganization.html +2 -2
- package/docs/Gamification.html +2 -2
- package/docs/UserManagementSystem.html +2 -2
- package/docs/api_types.js.html +2 -2
- package/docs/config.js.html +2 -2
- package/docs/content-org_content-org.js.html +2 -2
- package/docs/content-org_playlists-types.js.html +2 -2
- package/docs/content-org_playlists.js.html +2 -2
- package/docs/content.js.html +2 -4
- package/docs/gamification_awards.js.html +2 -2
- package/docs/gamification_gamification.js.html +2 -2
- package/docs/gamification_types.js.html +2 -2
- package/docs/global.html +448 -2
- package/docs/index.html +2 -2
- package/docs/module-Awards.html +2 -2
- package/docs/module-Config.html +2 -2
- package/docs/module-Content-Services-V2.html +8 -8
- package/docs/module-Interests.html +2 -2
- package/docs/module-Permissions.html +2 -2
- package/docs/module-Playlists.html +2 -2
- package/docs/module-Railcontent-Services.html +754 -44
- package/docs/module-Sanity-Services.html +2 -2
- package/docs/module-Sessions.html +2 -2
- package/docs/module-User-Activity.html +525 -16
- package/docs/module-UserManagement.html +2 -2
- package/docs/module-UserProfile.html +266 -0
- package/docs/railcontent.js.html +41 -2
- package/docs/sanity.js.html +2 -2
- package/docs/userActivity.js.html +348 -263
- package/docs/user_interests.js.html +2 -2
- package/docs/user_management.js.html +2 -2
- package/docs/user_permissions.js.html +2 -2
- package/docs/user_profile.js.html +105 -0
- package/docs/user_sessions.js.html +2 -2
- package/docs/user_types.js.html +22 -2
- package/docs/user_user-management-system.js.html +2 -2
- package/package.json +1 -1
- package/src/contentMetaData.js +14 -0
- package/src/index.d.ts +15 -0
- package/src/index.js +15 -0
- package/src/infrastructure/http/providers/DefaultHeaderProvider.ts +0 -0
- package/src/services/content.js +0 -2
- package/src/services/contentProgress.js +9 -0
- package/src/services/railcontent.js +39 -0
- package/src/services/user/interests.js +0 -0
- package/src/services/user/profile.js +33 -0
- package/src/services/user/types.js +20 -0
- package/src/services/user/user-management-system.js +0 -0
- package/src/services/userActivity.js +346 -261
- package/test/content.test.js +8 -6
- package/test/sanityQueryService.test.js +6 -0
package/test/content.test.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { initializeTestService } from './initializeTests.js'
|
|
2
|
-
import {
|
|
2
|
+
import {getContentRows, getNewAndUpcoming, getScheduleContentRows, getTabResults} from '../src/services/content.js'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const railContentModule = require('../src/services/railcontent.js')
|
|
3
6
|
|
|
4
7
|
describe('content', function () {
|
|
5
8
|
beforeEach(() => {
|
|
@@ -74,10 +77,10 @@ describe('content', function () {
|
|
|
74
77
|
expect(results.meta.sort).toBeDefined()
|
|
75
78
|
})
|
|
76
79
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
test('getContentRows', async () => {
|
|
81
|
+
const results = await getContentRows('drumeo', 'lessons', 'Your-Daily-Warmup')
|
|
82
|
+
console.log(results)
|
|
83
|
+
})
|
|
81
84
|
|
|
82
85
|
// test('getTabResults-Songs-For-You', async () => {
|
|
83
86
|
// const results = await getTabResults('drumeo','songs','For You')
|
|
@@ -112,5 +115,4 @@ describe('content', function () {
|
|
|
112
115
|
expect(results.data).toBeDefined()
|
|
113
116
|
expect(results.meta).toBeDefined()
|
|
114
117
|
})
|
|
115
|
-
|
|
116
118
|
})
|
|
@@ -986,6 +986,12 @@ describe('Recommended System', function() {
|
|
|
986
986
|
expect(results.meta).toBeDefined()
|
|
987
987
|
expect(results.data.length).toBeGreaterThanOrEqual(1)
|
|
988
988
|
})
|
|
989
|
+
|
|
990
|
+
test('fetchMetadata', async () => {
|
|
991
|
+
const response = await fetchMetadata('drumeo', 'recent-activities')
|
|
992
|
+
log(response)
|
|
993
|
+
expect(response.tabs.length).toBeGreaterThan(0)
|
|
994
|
+
})
|
|
989
995
|
})
|
|
990
996
|
|
|
991
997
|
|