musora-content-services 2.79.1 → 2.81.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 (85) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/docs/Content.html +269 -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/TestUser.html +2 -2
  7. package/docs/UserManagementSystem.html +2 -2
  8. package/docs/api_types.js.html +2 -2
  9. package/docs/config.js.html +2 -2
  10. package/docs/content-org_content-org.js.html +2 -2
  11. package/docs/content-org_guided-courses.ts.html +2 -2
  12. package/docs/content-org_learning-paths.ts.html +24 -14
  13. package/docs/content-org_playlists-types.js.html +2 -2
  14. package/docs/content-org_playlists.js.html +2 -2
  15. package/docs/content.js.html +2 -2
  16. package/docs/content_artist.ts.html +211 -0
  17. package/docs/content_content.ts.html +77 -0
  18. package/docs/content_genre.ts.html +211 -0
  19. package/docs/content_instructor.ts.html +203 -0
  20. package/docs/forums_categories.ts.html +3 -3
  21. package/docs/forums_forums.ts.html +2 -2
  22. package/docs/forums_posts.ts.html +2 -2
  23. package/docs/forums_threads.ts.html +2 -2
  24. package/docs/gamification_awards.ts.html +2 -2
  25. package/docs/gamification_gamification.js.html +2 -2
  26. package/docs/global.html +2 -2
  27. package/docs/index.html +2 -2
  28. package/docs/liveTesting.ts.html +2 -2
  29. package/docs/module-Accounts.html +14 -14
  30. package/docs/module-Artist.html +991 -0
  31. package/docs/module-Awards.html +2 -2
  32. package/docs/module-Config.html +2 -2
  33. package/docs/module-Content-Services-V2.html +2 -2
  34. package/docs/module-Forums.html +2 -2
  35. package/docs/module-Genre.html +981 -0
  36. package/docs/module-GuidedCourses.html +2 -2
  37. package/docs/module-Instructor.html +929 -0
  38. package/docs/module-Interests.html +2 -2
  39. package/docs/module-LearningPaths.html +6 -6
  40. package/docs/module-Onboarding.html +2 -2
  41. package/docs/module-Payments.html +2 -2
  42. package/docs/module-Permissions.html +2 -2
  43. package/docs/module-Playlists.html +2 -2
  44. package/docs/module-ProgressRow.html +2 -2
  45. package/docs/module-Railcontent-Services.html +2 -2
  46. package/docs/module-Sanity-Services.html +326 -1854
  47. package/docs/module-Sessions.html +2 -2
  48. package/docs/module-UserActivity.html +4 -4
  49. package/docs/module-UserChat.html +2 -2
  50. package/docs/module-UserManagement.html +2 -2
  51. package/docs/module-UserMemberships.html +2 -2
  52. package/docs/module-UserNotifications.html +2 -2
  53. package/docs/module-UserProfile.html +2 -2
  54. package/docs/progress-row_method-card.js.html +2 -2
  55. package/docs/railcontent.js.html +2 -2
  56. package/docs/sanity.js.html +107 -268
  57. package/docs/userActivity.js.html +3 -2
  58. package/docs/user_account.ts.html +11 -4
  59. package/docs/user_chat.js.html +2 -2
  60. package/docs/user_interests.js.html +2 -2
  61. package/docs/user_management.js.html +2 -2
  62. package/docs/user_memberships.ts.html +2 -2
  63. package/docs/user_notifications.js.html +2 -2
  64. package/docs/user_onboarding.ts.html +2 -2
  65. package/docs/user_payments.ts.html +2 -2
  66. package/docs/user_permissions.js.html +2 -2
  67. package/docs/user_profile.js.html +2 -2
  68. package/docs/user_sessions.js.html +2 -2
  69. package/docs/user_types.js.html +2 -2
  70. package/docs/user_user-management-system.js.html +2 -2
  71. package/jsdoc.json +1 -0
  72. package/package.json +1 -1
  73. package/src/contentTypeConfig.js +2 -2
  74. package/src/index.d.ts +28 -5
  75. package/src/index.js +28 -5
  76. package/src/services/content/artist.ts +139 -0
  77. package/src/services/content/content.ts +38 -0
  78. package/src/services/content/genre.ts +139 -0
  79. package/src/services/content/instructor.ts +131 -0
  80. package/src/services/content-org/learning-paths.ts +3 -0
  81. package/src/services/sanity.js +105 -266
  82. package/src/services/user/account.ts +9 -2
  83. package/src/services/user/types.d.ts +133 -0
  84. package/src/services/userActivity.js +1 -0
  85. package/.claude/settings.local.json +0 -8
@@ -0,0 +1,133 @@
1
+ export interface BrandMethodLevels {
2
+ drumeo: string
3
+ pianote: string
4
+ guitareo: string
5
+ singeo: string
6
+ }
7
+
8
+ export interface BrandTotalXp {
9
+ drumeo: string
10
+ pianote: string
11
+ guitareo: string
12
+ singeo: string
13
+ }
14
+
15
+ export interface BrandTimePracticed {
16
+ drumeo: number
17
+ pianote: number
18
+ guitareo: number
19
+ singeo: number
20
+ }
21
+
22
+ export interface User {
23
+ id: number
24
+ email: string
25
+ display_name: string
26
+ first_name: string
27
+ last_name: string
28
+ gender: string | null
29
+ country: string
30
+ region: string | null
31
+ city: string | null
32
+ birthday: string
33
+ phone_number: string | null
34
+ profile_picture_url: string
35
+ timezone: string
36
+ permission_level: string
37
+ last_used_brand: string
38
+ membership_level: string
39
+ membership_start_date: string | null
40
+ membership_expiration_date: string
41
+ is_lifetime_member: number
42
+ revenuecat_origin_app_user_id: string | null
43
+ is_drumeo_lifetime_member: number
44
+ access_level: string
45
+ total_xp: number
46
+ brand_method_levels: BrandMethodLevels
47
+ brand_total_xp: BrandTotalXp
48
+ brand_minutes_practiced: BrandTimePracticed
49
+ brand_seconds_practiced: BrandTimePracticed
50
+ guitar_playing_since_year: number | null
51
+ drumeo_onboarding_skip_setup: number
52
+ pianote_onboarding_skip_setup: number
53
+ guitareo_onboarding_skip_setup: number
54
+ singeo_onboarding_skip_setup: number
55
+ drumeo_trial_section_hide: number
56
+ pianote_trial_section_hide: number
57
+ guitareo_trial_section_hide: number
58
+ singeo_trial_section_hide: number
59
+ notify_on_lesson_comment_like: number
60
+ notifications_summary_frequency_minutes: number | null
61
+ notify_on_forum_post_reply: number
62
+ notify_on_forum_followed_thread_reply: number
63
+ notify_on_forum_post_like: number
64
+ notify_weekly_update: number
65
+ notify_on_lesson_comment_reply: number
66
+ challenges_enrollment_notifications: number | null
67
+ challenges_community_notifications: number | null
68
+ challenges_solo_notifications: number | null
69
+ send_mobile_app_push_notifications: number
70
+ send_email_notifications: number
71
+ use_legacy_video_player: number
72
+ use_student_view: boolean
73
+ show_admin_toggle: boolean
74
+ drumeo_ship_magazine: number
75
+ magazine_shipping_address_id: string | null
76
+ ios_latest_review_display_date: string | null
77
+ ios_count_review_display: number
78
+ google_latest_review_display_date: string | null
79
+ google_count_review_display: number
80
+ biography: string | null
81
+ support_note: string | null
82
+ created_at: string
83
+ updated_at: string
84
+ is_pack_owner: number
85
+ has_recharge_subscription: number
86
+ recharge_interval: string | null
87
+ has_apple_subscription: number
88
+ has_google_subscription: number
89
+ requires_password_update: number
90
+ cio_synced_workspaces: number
91
+ recharge_renewal_date: string | null
92
+ trial_expiration_date: string | null
93
+ is_trial: number
94
+ legacy_expiration_date: string | null
95
+ needs_logout: boolean
96
+ primary_brand: string
97
+ first_access_at: string
98
+ is_challenge_owner: number
99
+ login_as_users: boolean
100
+ }
101
+
102
+ export interface AuthResponse {
103
+ token: string
104
+ user: User
105
+ }
106
+
107
+ export interface UserPermissions {
108
+ permissions: string[]
109
+ isAdmin: boolean
110
+ isABasicMember: boolean
111
+ }
112
+
113
+ export interface StreakDTO {
114
+ type: 'week' | 'day'
115
+ length: number
116
+ start_date: Date | null
117
+ end_date: Date | null
118
+ }
119
+
120
+ export interface OtherStatsDTO {
121
+ longest_day_streak: StreakDTO
122
+ longest_week_streak: StreakDTO
123
+ total_practice_time: number
124
+ comment_likes: number
125
+ forum_post_likes: number
126
+ experience_points: number
127
+ }
128
+
129
+ export interface BlockedUserDTO {
130
+ id: number
131
+ display_name: string
132
+ profile_picture_url: string | null
133
+ }
@@ -1115,6 +1115,7 @@ export async function getProgressRows({ brand = 'drumeo', limit = 8 } = {}) {
1115
1115
  switch (item.type) {
1116
1116
  case 'playlist':
1117
1117
  return processPlaylistItem(item)
1118
+ case 'learning-path-v2':
1118
1119
  case 'method':
1119
1120
  return item
1120
1121
  default:
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(rg:*)"
5
- ],
6
- "deny": []
7
- }
8
- }