musora-content-services 2.80.0 → 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.
- package/CHANGELOG.md +8 -0
- package/docs/ContentOrganization.html +1 -1
- package/docs/Forums.html +1 -1
- package/docs/Gamification.html +1 -1
- package/docs/TestUser.html +1 -1
- package/docs/UserManagementSystem.html +1 -1
- package/docs/api_types.js.html +1 -1
- package/docs/config.js.html +1 -1
- package/docs/content-org_content-org.js.html +1 -1
- package/docs/content-org_guided-courses.ts.html +1 -1
- package/docs/content-org_learning-paths.ts.html +4 -1
- package/docs/content-org_playlists-types.js.html +1 -1
- package/docs/content-org_playlists.js.html +1 -1
- package/docs/content.js.html +1 -1
- package/docs/content_artist.ts.html +1 -2
- package/docs/content_genre.ts.html +1 -1
- package/docs/content_instructor.ts.html +1 -1
- package/docs/forums_categories.ts.html +1 -1
- package/docs/forums_forums.ts.html +1 -1
- package/docs/forums_posts.ts.html +1 -1
- package/docs/forums_threads.ts.html +1 -1
- package/docs/gamification_awards.ts.html +1 -1
- package/docs/gamification_gamification.js.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/docs/liveTesting.ts.html +1 -1
- package/docs/module-Accounts.html +13 -13
- package/docs/module-Artist.html +4 -4
- package/docs/module-Awards.html +1 -1
- package/docs/module-Config.html +1 -1
- package/docs/module-Content-Services-V2.html +1 -1
- package/docs/module-Forums.html +1 -1
- package/docs/module-Genre.html +1 -1
- package/docs/module-GuidedCourses.html +1 -1
- package/docs/module-Instructor.html +1 -1
- package/docs/module-Interests.html +1 -1
- package/docs/module-LearningPaths.html +3 -3
- package/docs/module-Onboarding.html +1 -1
- package/docs/module-Payments.html +1 -1
- package/docs/module-Permissions.html +1 -1
- package/docs/module-Playlists.html +1 -1
- package/docs/module-ProgressRow.html +1 -1
- package/docs/module-Railcontent-Services.html +1 -1
- package/docs/module-Sanity-Services.html +1 -1
- package/docs/module-Sessions.html +1 -1
- package/docs/module-UserActivity.html +3 -3
- package/docs/module-UserChat.html +1 -1
- package/docs/module-UserManagement.html +1 -1
- package/docs/module-UserMemberships.html +1 -1
- package/docs/module-UserNotifications.html +1 -1
- package/docs/module-UserProfile.html +1 -1
- package/docs/progress-row_method-card.js.html +1 -1
- package/docs/railcontent.js.html +1 -1
- package/docs/sanity.js.html +1 -1
- package/docs/userActivity.js.html +2 -1
- package/docs/user_account.ts.html +10 -3
- package/docs/user_chat.js.html +1 -1
- package/docs/user_interests.js.html +1 -1
- package/docs/user_management.js.html +1 -1
- package/docs/user_memberships.ts.html +1 -1
- package/docs/user_notifications.js.html +1 -1
- package/docs/user_onboarding.ts.html +1 -1
- package/docs/user_payments.ts.html +1 -1
- package/docs/user_permissions.js.html +1 -1
- package/docs/user_profile.js.html +1 -1
- package/docs/user_sessions.js.html +1 -1
- package/docs/user_types.js.html +1 -1
- package/docs/user_user-management-system.js.html +1 -1
- package/package.json +1 -1
- package/src/services/content-org/learning-paths.ts +3 -0
- package/src/services/user/account.ts +9 -2
- package/src/services/user/types.d.ts +133 -0
- package/src/services/userActivity.js +1 -0
|
@@ -3017,7 +3017,7 @@ try {
|
|
|
3017
3017
|
<br class="clear">
|
|
3018
3018
|
|
|
3019
3019
|
<footer>
|
|
3020
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
3020
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
3021
3021
|
</footer>
|
|
3022
3022
|
|
|
3023
3023
|
<script>prettyPrint();</script>
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<br class="clear">
|
|
96
96
|
|
|
97
97
|
<footer>
|
|
98
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
98
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
99
99
|
</footer>
|
|
100
100
|
|
|
101
101
|
<script>prettyPrint();</script>
|
|
@@ -6455,7 +6455,7 @@
|
|
|
6455
6455
|
<br class="clear">
|
|
6456
6456
|
|
|
6457
6457
|
<footer>
|
|
6458
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
6458
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
6459
6459
|
</footer>
|
|
6460
6460
|
|
|
6461
6461
|
<script>prettyPrint();</script>
|
|
@@ -7622,7 +7622,7 @@ fetchSanity(query, true)
|
|
|
7622
7622
|
<br class="clear">
|
|
7623
7623
|
|
|
7624
7624
|
<footer>
|
|
7625
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
7625
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
7626
7626
|
</footer>
|
|
7627
7627
|
|
|
7628
7628
|
<script>prettyPrint();</script>
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
<br class="clear">
|
|
563
563
|
|
|
564
564
|
<footer>
|
|
565
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
565
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
566
566
|
</footer>
|
|
567
567
|
|
|
568
568
|
<script>prettyPrint();</script>
|
|
@@ -2142,7 +2142,7 @@ getUserWeeklyStats()
|
|
|
2142
2142
|
|
|
2143
2143
|
<dt class="tag-source">Source:</dt>
|
|
2144
2144
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2145
|
-
<a href="userActivity.js.html">userActivity.js</a>, <a href="userActivity.js.html#
|
|
2145
|
+
<a href="userActivity.js.html">userActivity.js</a>, <a href="userActivity.js.html#line1461">line 1461</a>
|
|
2146
2146
|
</li></ul></dd>
|
|
2147
2147
|
|
|
2148
2148
|
|
|
@@ -3805,7 +3805,7 @@ restoreUserPractice(123)
|
|
|
3805
3805
|
|
|
3806
3806
|
<dt class="tag-source">Source:</dt>
|
|
3807
3807
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3808
|
-
<a href="userActivity.js.html">userActivity.js</a>, <a href="userActivity.js.html#
|
|
3808
|
+
<a href="userActivity.js.html">userActivity.js</a>, <a href="userActivity.js.html#line1484">line 1484</a>
|
|
3809
3809
|
</li></ul></dd>
|
|
3810
3810
|
|
|
3811
3811
|
|
|
@@ -4567,7 +4567,7 @@ updateUserPractice(456, { auto: false, category_id: 8 })
|
|
|
4567
4567
|
<br class="clear">
|
|
4568
4568
|
|
|
4569
4569
|
<footer>
|
|
4570
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
4570
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
4571
4571
|
</footer>
|
|
4572
4572
|
|
|
4573
4573
|
<script>prettyPrint();</script>
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
<br class="clear">
|
|
398
398
|
|
|
399
399
|
<footer>
|
|
400
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
400
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
401
401
|
</footer>
|
|
402
402
|
|
|
403
403
|
<script>prettyPrint();</script>
|
|
@@ -1919,7 +1919,7 @@
|
|
|
1919
1919
|
<br class="clear">
|
|
1920
1920
|
|
|
1921
1921
|
<footer>
|
|
1922
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
1922
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1923
1923
|
</footer>
|
|
1924
1924
|
|
|
1925
1925
|
<script>prettyPrint();</script>
|
|
@@ -816,7 +816,7 @@ restorePurchases('rc_user_123')
|
|
|
816
816
|
<br class="clear">
|
|
817
817
|
|
|
818
818
|
<footer>
|
|
819
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
819
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
820
820
|
</footer>
|
|
821
821
|
|
|
822
822
|
<script>prettyPrint();</script>
|
|
@@ -2582,7 +2582,7 @@ polling is not paused.</li></ul></dd>
|
|
|
2582
2582
|
<br class="clear">
|
|
2583
2583
|
|
|
2584
2584
|
<footer>
|
|
2585
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
2585
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
2586
2586
|
</footer>
|
|
2587
2587
|
|
|
2588
2588
|
<script>prettyPrint();</script>
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
<br class="clear">
|
|
358
358
|
|
|
359
359
|
<footer>
|
|
360
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
360
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
361
361
|
</footer>
|
|
362
362
|
|
|
363
363
|
<script>prettyPrint();</script>
|
|
@@ -170,7 +170,7 @@ function getMethodActionCTA(item) {
|
|
|
170
170
|
<br class="clear">
|
|
171
171
|
|
|
172
172
|
<footer>
|
|
173
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
173
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
174
174
|
</footer>
|
|
175
175
|
|
|
176
176
|
<script>prettyPrint();</script>
|
package/docs/railcontent.js.html
CHANGED
|
@@ -822,7 +822,7 @@ export async function fetchHandler(url, method = 'get', dataVersion = null, body
|
|
|
822
822
|
<br class="clear">
|
|
823
823
|
|
|
824
824
|
<footer>
|
|
825
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
825
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
826
826
|
</footer>
|
|
827
827
|
|
|
828
828
|
<script>prettyPrint();</script>
|
package/docs/sanity.js.html
CHANGED
|
@@ -2223,7 +2223,7 @@ export async function fetchMethodV2Structure(brand) {
|
|
|
2223
2223
|
<br class="clear">
|
|
2224
2224
|
|
|
2225
2225
|
<footer>
|
|
2226
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
2226
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
2227
2227
|
</footer>
|
|
2228
2228
|
|
|
2229
2229
|
<script>prettyPrint();</script>
|
|
@@ -1162,6 +1162,7 @@ export async function getProgressRows({ brand = 'drumeo', limit = 8 } = {}) {
|
|
|
1162
1162
|
switch (item.type) {
|
|
1163
1163
|
case 'playlist':
|
|
1164
1164
|
return processPlaylistItem(item)
|
|
1165
|
+
case 'learning-path-v2':
|
|
1165
1166
|
case 'method':
|
|
1166
1167
|
return item
|
|
1167
1168
|
default:
|
|
@@ -1574,7 +1575,7 @@ export async function fetchRecentActivitiesActiveTabs() {
|
|
|
1574
1575
|
<br class="clear">
|
|
1575
1576
|
|
|
1576
1577
|
<footer>
|
|
1577
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
1578
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1578
1579
|
</footer>
|
|
1579
1580
|
|
|
1580
1581
|
<script>prettyPrint();</script>
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
import { HttpClient } from '../../infrastructure/http/HttpClient'
|
|
52
52
|
import { HttpError } from '../../infrastructure/http/interfaces/HttpError'
|
|
53
53
|
import { globalConfig } from '../config.js'
|
|
54
|
+
import { Onboarding } from './onboarding'
|
|
55
|
+
import { AuthResponse } from './types'
|
|
54
56
|
|
|
55
57
|
/**
|
|
56
58
|
* @param {string} email - The email address to check the account status for.
|
|
@@ -89,6 +91,11 @@ export interface AccountSetupProps {
|
|
|
89
91
|
from?: string
|
|
90
92
|
}
|
|
91
93
|
|
|
94
|
+
export interface AccountSetupResponse {
|
|
95
|
+
auth: AuthResponse
|
|
96
|
+
onboarding: Onboarding
|
|
97
|
+
}
|
|
98
|
+
|
|
92
99
|
/**
|
|
93
100
|
* @param {Object} props - The parameters for setting up the account.
|
|
94
101
|
* @property {string} email - The email address for the account.
|
|
@@ -98,11 +105,11 @@ export interface AccountSetupProps {
|
|
|
98
105
|
* @property {string} [revenuecatAppUserId] - The RevenueCat App User ID for MA environments. Required for MA requests
|
|
99
106
|
* @property {string} [deviceName] - The device name for MA environments. Required for MA requests
|
|
100
107
|
*
|
|
101
|
-
* @returns {Promise<
|
|
108
|
+
* @returns {Promise<AccountSetupResponse>} - A promise that resolves when the account setup is complete or an HttpError if the request fails.
|
|
102
109
|
* @throws {Error} - Throws an error if required parameters are missing based on the environment.
|
|
103
110
|
* @throws {HttpError} - Throws an HttpError if the HTTP request fails.
|
|
104
111
|
*/
|
|
105
|
-
export async function setupAccount(props: AccountSetupProps): Promise<
|
|
112
|
+
export async function setupAccount(props: AccountSetupProps): Promise<AccountSetupResponse> {
|
|
106
113
|
const httpClient = new HttpClient(globalConfig.baseUrl)
|
|
107
114
|
if ((!globalConfig.isMA || props.from === 'mobile-ios-app') && !props.token) {
|
|
108
115
|
throw new Error('Token is required for non-MA environments')
|
|
@@ -245,7 +252,7 @@ export async function toggleStudentView(useStudentView: boolean): Promise<Use
|
|
|
245
252
|
<br class="clear">
|
|
246
253
|
|
|
247
254
|
<footer>
|
|
248
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
255
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
249
256
|
</footer>
|
|
250
257
|
|
|
251
258
|
<script>prettyPrint();</script>
|
package/docs/user_chat.js.html
CHANGED
|
@@ -85,7 +85,7 @@ export async function fetchChatSettings({ brand = null, liveEventIsGlobal = fals
|
|
|
85
85
|
<br class="clear">
|
|
86
86
|
|
|
87
87
|
<footer>
|
|
88
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
88
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
89
89
|
</footer>
|
|
90
90
|
|
|
91
91
|
<script>prettyPrint();</script>
|
|
@@ -137,7 +137,7 @@ export async function removeContentAsNotInterested(contentId) {
|
|
|
137
137
|
<br class="clear">
|
|
138
138
|
|
|
139
139
|
<footer>
|
|
140
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
140
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
141
141
|
</footer>
|
|
142
142
|
|
|
143
143
|
<script>prettyPrint();</script>
|
|
@@ -245,7 +245,7 @@ export async function toggleSignaturePrivate(showSignature = true) {
|
|
|
245
245
|
<br class="clear">
|
|
246
246
|
|
|
247
247
|
<footer>
|
|
248
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
248
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
249
249
|
</footer>
|
|
250
250
|
|
|
251
251
|
<script>prettyPrint();</script>
|
|
@@ -279,7 +279,7 @@ export async function restorePurchases(
|
|
|
279
279
|
<br class="clear">
|
|
280
280
|
|
|
281
281
|
<footer>
|
|
282
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
282
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
283
283
|
</footer>
|
|
284
284
|
|
|
285
285
|
<script>prettyPrint();</script>
|
|
@@ -361,7 +361,7 @@ export async function fetchLiveEventPollingState() {
|
|
|
361
361
|
<br class="clear">
|
|
362
362
|
|
|
363
363
|
<footer>
|
|
364
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
364
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
365
365
|
</footer>
|
|
366
366
|
|
|
367
367
|
<script>prettyPrint();</script>
|
|
@@ -221,7 +221,7 @@ export async function getOnboardingRecommendedContent(
|
|
|
221
221
|
<br class="clear">
|
|
222
222
|
|
|
223
223
|
<footer>
|
|
224
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
224
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
225
225
|
</footer>
|
|
226
226
|
|
|
227
227
|
<script>prettyPrint();</script>
|
|
@@ -133,7 +133,7 @@ export async function fetchCustomerPayments(
|
|
|
133
133
|
<br class="clear">
|
|
134
134
|
|
|
135
135
|
<footer>
|
|
136
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
136
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
137
137
|
</footer>
|
|
138
138
|
|
|
139
139
|
<script>prettyPrint();</script>
|
|
@@ -97,7 +97,7 @@ export async function reset() {
|
|
|
97
97
|
<br class="clear">
|
|
98
98
|
|
|
99
99
|
<footer>
|
|
100
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
100
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
101
101
|
</footer>
|
|
102
102
|
|
|
103
103
|
<script>prettyPrint();</script>
|
|
@@ -102,7 +102,7 @@ export async function deleteProfilePicture() {
|
|
|
102
102
|
<br class="clear">
|
|
103
103
|
|
|
104
104
|
<footer>
|
|
105
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
105
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
106
106
|
</footer>
|
|
107
107
|
|
|
108
108
|
<script>prettyPrint();</script>
|
|
@@ -157,7 +157,7 @@ export async function logout() {
|
|
|
157
157
|
<br class="clear">
|
|
158
158
|
|
|
159
159
|
<footer>
|
|
160
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
160
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
161
161
|
</footer>
|
|
162
162
|
|
|
163
163
|
<script>prettyPrint();</script>
|
package/docs/user_types.js.html
CHANGED
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
<br class="clear">
|
|
212
212
|
|
|
213
213
|
<footer>
|
|
214
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
214
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
215
215
|
</footer>
|
|
216
216
|
|
|
217
217
|
<script>prettyPrint();</script>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<br class="clear">
|
|
67
67
|
|
|
68
68
|
<footer>
|
|
69
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
69
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Nov 20 2025 18:26:49 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
70
70
|
</footer>
|
|
71
71
|
|
|
72
72
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -218,9 +218,12 @@ export async function fetchLearningPathLessons(
|
|
|
218
218
|
) {
|
|
219
219
|
// Daily sessions first lessons are the active learning path and the next lessons are not
|
|
220
220
|
// load next lessons from next learning path
|
|
221
|
+
// TODO: update item status to locked when the current learning path is not complete
|
|
221
222
|
nextLPLessons = await getLearningPathLessonsByIds(nextContentIds, nextLearningPathId)
|
|
222
223
|
}
|
|
223
224
|
|
|
225
|
+
|
|
226
|
+
|
|
224
227
|
return {
|
|
225
228
|
...learningPath,
|
|
226
229
|
is_active_learning_path: isActiveLearningPath,
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import { HttpClient } from '../../infrastructure/http/HttpClient'
|
|
5
5
|
import { HttpError } from '../../infrastructure/http/interfaces/HttpError'
|
|
6
6
|
import { globalConfig } from '../config.js'
|
|
7
|
+
import { Onboarding } from './onboarding'
|
|
8
|
+
import { AuthResponse } from './types'
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @param {string} email - The email address to check the account status for.
|
|
@@ -42,6 +44,11 @@ export interface AccountSetupProps {
|
|
|
42
44
|
from?: string
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
export interface AccountSetupResponse {
|
|
48
|
+
auth: AuthResponse
|
|
49
|
+
onboarding: Onboarding
|
|
50
|
+
}
|
|
51
|
+
|
|
45
52
|
/**
|
|
46
53
|
* @param {Object} props - The parameters for setting up the account.
|
|
47
54
|
* @property {string} email - The email address for the account.
|
|
@@ -51,11 +58,11 @@ export interface AccountSetupProps {
|
|
|
51
58
|
* @property {string} [revenuecatAppUserId] - The RevenueCat App User ID for MA environments. Required for MA requests
|
|
52
59
|
* @property {string} [deviceName] - The device name for MA environments. Required for MA requests
|
|
53
60
|
*
|
|
54
|
-
* @returns {Promise<
|
|
61
|
+
* @returns {Promise<AccountSetupResponse>} - A promise that resolves when the account setup is complete or an HttpError if the request fails.
|
|
55
62
|
* @throws {Error} - Throws an error if required parameters are missing based on the environment.
|
|
56
63
|
* @throws {HttpError} - Throws an HttpError if the HTTP request fails.
|
|
57
64
|
*/
|
|
58
|
-
export async function setupAccount(props: AccountSetupProps): Promise<
|
|
65
|
+
export async function setupAccount(props: AccountSetupProps): Promise<AccountSetupResponse> {
|
|
59
66
|
const httpClient = new HttpClient(globalConfig.baseUrl)
|
|
60
67
|
if ((!globalConfig.isMA || props.from === 'mobile-ios-app') && !props.token) {
|
|
61
68
|
throw new Error('Token is required for non-MA environments')
|
|
@@ -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
|
+
}
|