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.
Files changed (52) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/docs/ContentOrganization.html +2 -2
  3. package/docs/Gamification.html +2 -2
  4. package/docs/UserManagementSystem.html +2 -2
  5. package/docs/api_types.js.html +2 -2
  6. package/docs/config.js.html +2 -2
  7. package/docs/content-org_content-org.js.html +2 -2
  8. package/docs/content-org_playlists-types.js.html +2 -2
  9. package/docs/content-org_playlists.js.html +2 -2
  10. package/docs/content.js.html +2 -4
  11. package/docs/gamification_awards.js.html +2 -2
  12. package/docs/gamification_gamification.js.html +2 -2
  13. package/docs/gamification_types.js.html +2 -2
  14. package/docs/global.html +448 -2
  15. package/docs/index.html +2 -2
  16. package/docs/module-Awards.html +2 -2
  17. package/docs/module-Config.html +2 -2
  18. package/docs/module-Content-Services-V2.html +8 -8
  19. package/docs/module-Interests.html +2 -2
  20. package/docs/module-Permissions.html +2 -2
  21. package/docs/module-Playlists.html +2 -2
  22. package/docs/module-Railcontent-Services.html +754 -44
  23. package/docs/module-Sanity-Services.html +2 -2
  24. package/docs/module-Sessions.html +2 -2
  25. package/docs/module-User-Activity.html +525 -16
  26. package/docs/module-UserManagement.html +2 -2
  27. package/docs/module-UserProfile.html +266 -0
  28. package/docs/railcontent.js.html +41 -2
  29. package/docs/sanity.js.html +2 -2
  30. package/docs/userActivity.js.html +348 -263
  31. package/docs/user_interests.js.html +2 -2
  32. package/docs/user_management.js.html +2 -2
  33. package/docs/user_permissions.js.html +2 -2
  34. package/docs/user_profile.js.html +105 -0
  35. package/docs/user_sessions.js.html +2 -2
  36. package/docs/user_types.js.html +22 -2
  37. package/docs/user_user-management-system.js.html +2 -2
  38. package/package.json +1 -1
  39. package/src/contentMetaData.js +14 -0
  40. package/src/index.d.ts +15 -0
  41. package/src/index.js +15 -0
  42. package/src/infrastructure/http/providers/DefaultHeaderProvider.ts +0 -0
  43. package/src/services/content.js +0 -2
  44. package/src/services/contentProgress.js +9 -0
  45. package/src/services/railcontent.js +39 -0
  46. package/src/services/user/interests.js +0 -0
  47. package/src/services/user/profile.js +33 -0
  48. package/src/services/user/types.js +20 -0
  49. package/src/services/user/user-management-system.js +0 -0
  50. package/src/services/userActivity.js +346 -261
  51. package/test/content.test.js +8 -6
  52. package/test/sanityQueryService.test.js +6 -0
@@ -1,5 +1,8 @@
1
1
  import { initializeTestService } from './initializeTests.js'
2
- import {getLessonContentRows, getNewAndUpcoming, getScheduleContentRows, getTabResults} from '../src/services/content.js'
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
- // test('getContentRows', async () => {
78
- // const results = await getLessonContentRows('songs')
79
- // console.log(results)
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