musora-content-services 2.167.5 → 2.167.6
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/.claude/settings.local.json +57 -0
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/index.d.ts +14 -0
- package/src/index.js +14 -0
- package/src/services/user/practiceGoals.ts +27 -0
- package/src/services/user/types.d.ts +11 -0
- package/src/version-info.js +1 -1
- package/.idea/codeStyles/Project.xml +0 -61
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/musora-content-services.iml +0 -8
- package/.idea/php.xml +0 -19
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -7
- package/.yarn/install-state.gz +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(npx jest *)",
|
|
5
|
+
"Bash(npx tsc *)",
|
|
6
|
+
"Skill(counselors)",
|
|
7
|
+
"Bash(counselors ls *)",
|
|
8
|
+
"Bash(counselors groups *)",
|
|
9
|
+
"Bash(counselors run *)",
|
|
10
|
+
"Bash(npm test *)",
|
|
11
|
+
"Bash(gh pr *)",
|
|
12
|
+
"Bash(gh api *)",
|
|
13
|
+
"Bash(mkdir -p /tmp/pr-review-v2)",
|
|
14
|
+
"Read(//tmp/pr-review-v2/**)",
|
|
15
|
+
"Bash(cat /home/alesevero/railenvironment/applications/musora-content-services/AGENTS.md)",
|
|
16
|
+
"Bash(echo \"no AGENTS.md\")",
|
|
17
|
+
"Bash(echo \"exit=$?\")",
|
|
18
|
+
"Bash(git checkout *)",
|
|
19
|
+
"Skill(pr)",
|
|
20
|
+
"Skill(create-decision)",
|
|
21
|
+
"mcp__github__pull_request_read",
|
|
22
|
+
"mcp__github__push_files",
|
|
23
|
+
"Bash(git push *)",
|
|
24
|
+
"mcp__github__create_pull_request",
|
|
25
|
+
"mcp__github__search_pull_requests",
|
|
26
|
+
"Bash(git commit *)",
|
|
27
|
+
"Bash(git add *)",
|
|
28
|
+
"mcp__github__list_pull_requests",
|
|
29
|
+
"mcp__sanity__get_schema",
|
|
30
|
+
"mcp__sanity__query_documents",
|
|
31
|
+
"Bash(git rm *)",
|
|
32
|
+
"Bash(git rebase *)"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"model": "sonnet",
|
|
36
|
+
"enabledMcpjsonServers": [
|
|
37
|
+
"atlassian",
|
|
38
|
+
"figma",
|
|
39
|
+
"google-workspace",
|
|
40
|
+
"snowflake",
|
|
41
|
+
"aws",
|
|
42
|
+
"hex",
|
|
43
|
+
"sanity",
|
|
44
|
+
"mysql",
|
|
45
|
+
"slack",
|
|
46
|
+
"langfuse",
|
|
47
|
+
"chrome-devtools",
|
|
48
|
+
"railway",
|
|
49
|
+
"github",
|
|
50
|
+
"asana"
|
|
51
|
+
],
|
|
52
|
+
"disabledMcpjsonServers": [
|
|
53
|
+
"nightwatch",
|
|
54
|
+
"1password"
|
|
55
|
+
],
|
|
56
|
+
"effortLevel": "medium"
|
|
57
|
+
}
|
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.167.6](https://github.com/railroadmedia/musora-content-services/compare/v2.167.5...v2.167.6) (2026-07-29)
|
|
6
|
+
|
|
5
7
|
### [2.167.5](https://github.com/railroadmedia/musora-content-services/compare/v2.167.4...v2.167.5) (2026-07-24)
|
|
6
8
|
|
|
7
9
|
### [2.167.4](https://github.com/railroadmedia/musora-content-services/compare/v2.167.3...v2.167.4) (2026-07-22)
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from './services/awards/award-query.js';
|
|
18
18
|
|
|
19
19
|
import {
|
|
20
|
+
getMCSVersion,
|
|
20
21
|
globalConfig,
|
|
21
22
|
initializeEnvVar,
|
|
22
23
|
initializeService
|
|
@@ -28,6 +29,10 @@ import {
|
|
|
28
29
|
fetchArtists
|
|
29
30
|
} from './services/content/artist.ts';
|
|
30
31
|
|
|
32
|
+
import {
|
|
33
|
+
fetchSongAndLessonCounts
|
|
34
|
+
} from './services/content/counts.ts';
|
|
35
|
+
|
|
31
36
|
import {
|
|
32
37
|
fetchGenreBySlug,
|
|
33
38
|
fetchGenreLessons,
|
|
@@ -467,6 +472,11 @@ import {
|
|
|
467
472
|
updatePlayerSettings
|
|
468
473
|
} from './services/user/playerSettings.ts';
|
|
469
474
|
|
|
475
|
+
import {
|
|
476
|
+
fetchPracticeGoals,
|
|
477
|
+
updatePracticeGoals
|
|
478
|
+
} from './services/user/practiceGoals.ts';
|
|
479
|
+
|
|
470
480
|
import {
|
|
471
481
|
deleteProfilePicture,
|
|
472
482
|
otherStats,
|
|
@@ -636,6 +646,7 @@ declare module 'musora-content-services' {
|
|
|
636
646
|
fetchPlaylistItems,
|
|
637
647
|
fetchPost,
|
|
638
648
|
fetchPosts,
|
|
649
|
+
fetchPracticeGoals,
|
|
639
650
|
fetchRecent,
|
|
640
651
|
fetchRecentActivitiesActiveTabs,
|
|
641
652
|
fetchRecentUserActivities,
|
|
@@ -651,6 +662,7 @@ declare module 'musora-content-services' {
|
|
|
651
662
|
fetchShowsData,
|
|
652
663
|
fetchSiblingContent,
|
|
653
664
|
fetchSimilarItems,
|
|
665
|
+
fetchSongAndLessonCounts,
|
|
654
666
|
fetchSongArtistCount,
|
|
655
667
|
fetchSongById,
|
|
656
668
|
fetchTabData,
|
|
@@ -702,6 +714,7 @@ declare module 'musora-content-services' {
|
|
|
702
714
|
getLearningPathLessonsByIds,
|
|
703
715
|
getLegacyMethods,
|
|
704
716
|
getLessonContentRows,
|
|
717
|
+
getMCSVersion,
|
|
705
718
|
getMonday,
|
|
706
719
|
getNavigateTo,
|
|
707
720
|
getNavigateToForMethod,
|
|
@@ -854,6 +867,7 @@ declare module 'musora-content-services' {
|
|
|
854
867
|
updatePlayerSettings,
|
|
855
868
|
updatePlaylist,
|
|
856
869
|
updatePost,
|
|
870
|
+
updatePracticeGoals,
|
|
857
871
|
updatePracticeNotes,
|
|
858
872
|
updateProfileVisibility,
|
|
859
873
|
updateThread,
|
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from './services/awards/award-query.js';
|
|
22
22
|
|
|
23
23
|
import {
|
|
24
|
+
getMCSVersion,
|
|
24
25
|
globalConfig,
|
|
25
26
|
initializeEnvVar,
|
|
26
27
|
initializeService
|
|
@@ -32,6 +33,10 @@ import {
|
|
|
32
33
|
fetchArtists
|
|
33
34
|
} from './services/content/artist.ts';
|
|
34
35
|
|
|
36
|
+
import {
|
|
37
|
+
fetchSongAndLessonCounts
|
|
38
|
+
} from './services/content/counts.ts';
|
|
39
|
+
|
|
35
40
|
import {
|
|
36
41
|
fetchGenreBySlug,
|
|
37
42
|
fetchGenreLessons,
|
|
@@ -471,6 +476,11 @@ import {
|
|
|
471
476
|
updatePlayerSettings
|
|
472
477
|
} from './services/user/playerSettings.ts';
|
|
473
478
|
|
|
479
|
+
import {
|
|
480
|
+
fetchPracticeGoals,
|
|
481
|
+
updatePracticeGoals
|
|
482
|
+
} from './services/user/practiceGoals.ts';
|
|
483
|
+
|
|
474
484
|
import {
|
|
475
485
|
deleteProfilePicture,
|
|
476
486
|
otherStats,
|
|
@@ -635,6 +645,7 @@ export {
|
|
|
635
645
|
fetchPlaylistItems,
|
|
636
646
|
fetchPost,
|
|
637
647
|
fetchPosts,
|
|
648
|
+
fetchPracticeGoals,
|
|
638
649
|
fetchRecent,
|
|
639
650
|
fetchRecentActivitiesActiveTabs,
|
|
640
651
|
fetchRecentUserActivities,
|
|
@@ -650,6 +661,7 @@ export {
|
|
|
650
661
|
fetchShowsData,
|
|
651
662
|
fetchSiblingContent,
|
|
652
663
|
fetchSimilarItems,
|
|
664
|
+
fetchSongAndLessonCounts,
|
|
653
665
|
fetchSongArtistCount,
|
|
654
666
|
fetchSongById,
|
|
655
667
|
fetchTabData,
|
|
@@ -701,6 +713,7 @@ export {
|
|
|
701
713
|
getLearningPathLessonsByIds,
|
|
702
714
|
getLegacyMethods,
|
|
703
715
|
getLessonContentRows,
|
|
716
|
+
getMCSVersion,
|
|
704
717
|
getMonday,
|
|
705
718
|
getNavigateTo,
|
|
706
719
|
getNavigateToForMethod,
|
|
@@ -853,6 +866,7 @@ export {
|
|
|
853
866
|
updatePlayerSettings,
|
|
854
867
|
updatePlaylist,
|
|
855
868
|
updatePost,
|
|
869
|
+
updatePracticeGoals,
|
|
856
870
|
updatePracticeNotes,
|
|
857
871
|
updateProfileVisibility,
|
|
858
872
|
updateThread,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module PracticeGoals
|
|
3
|
+
*/
|
|
4
|
+
import { HttpClient } from '../../infrastructure/http/HttpClient'
|
|
5
|
+
import { globalConfig } from '../config.js'
|
|
6
|
+
import type { PracticeGoals, UpdatePracticeGoalsData } from './types'
|
|
7
|
+
|
|
8
|
+
const baseUrl = '/api/user/practices/v1/goals'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @returns {Promise<PracticeGoals>}
|
|
12
|
+
* @throws {HttpError}
|
|
13
|
+
*/
|
|
14
|
+
export async function fetchPracticeGoals(): Promise<PracticeGoals> {
|
|
15
|
+
const httpClient = new HttpClient(globalConfig.baseUrl, globalConfig.sessionConfig.token)
|
|
16
|
+
return httpClient.get<PracticeGoals>(baseUrl)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @param {UpdatePracticeGoalsData} data
|
|
21
|
+
* @returns {Promise<PracticeGoals>}
|
|
22
|
+
* @throws {HttpError}
|
|
23
|
+
*/
|
|
24
|
+
export async function updatePracticeGoals(data: UpdatePracticeGoalsData): Promise<PracticeGoals> {
|
|
25
|
+
const httpClient = new HttpClient(globalConfig.baseUrl, globalConfig.sessionConfig.token)
|
|
26
|
+
return httpClient.patch<PracticeGoals>(baseUrl, data)
|
|
27
|
+
}
|
|
@@ -110,6 +110,17 @@ export interface UpdatePlayerSettingsData {
|
|
|
110
110
|
playlist_auto_next?: boolean
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
export interface PracticeGoals {
|
|
114
|
+
weekly_target_days: number | null
|
|
115
|
+
daily_target_minutes: number | null
|
|
116
|
+
updated_at: string | null
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface UpdatePracticeGoalsData {
|
|
120
|
+
weekly_target_days?: number
|
|
121
|
+
daily_target_minutes?: number
|
|
122
|
+
}
|
|
123
|
+
|
|
113
124
|
export interface StreakDTO {
|
|
114
125
|
type: 'week' | 'day'
|
|
115
126
|
length: number
|
package/src/version-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MCS_VERSION = '2.167.
|
|
1
|
+
export const MCS_VERSION = '2.167.6'
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
-
<code_scheme name="Project" version="173">
|
|
3
|
-
<HTMLCodeStyleSettings>
|
|
4
|
-
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
-
</HTMLCodeStyleSettings>
|
|
6
|
-
<JSCodeStyleSettings version="0">
|
|
7
|
-
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
8
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
9
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
10
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
11
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
12
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
13
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
14
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
15
|
-
</JSCodeStyleSettings>
|
|
16
|
-
<TypeScriptCodeStyleSettings version="0">
|
|
17
|
-
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
18
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
19
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
20
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
21
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
22
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
23
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
24
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
25
|
-
</TypeScriptCodeStyleSettings>
|
|
26
|
-
<VueCodeStyleSettings>
|
|
27
|
-
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
28
|
-
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
29
|
-
</VueCodeStyleSettings>
|
|
30
|
-
<codeStyleSettings language="HTML">
|
|
31
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
32
|
-
<indentOptions>
|
|
33
|
-
<option name="INDENT_SIZE" value="2" />
|
|
34
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
35
|
-
<option name="TAB_SIZE" value="2" />
|
|
36
|
-
</indentOptions>
|
|
37
|
-
</codeStyleSettings>
|
|
38
|
-
<codeStyleSettings language="JavaScript">
|
|
39
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
40
|
-
<indentOptions>
|
|
41
|
-
<option name="INDENT_SIZE" value="2" />
|
|
42
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
43
|
-
<option name="TAB_SIZE" value="2" />
|
|
44
|
-
</indentOptions>
|
|
45
|
-
</codeStyleSettings>
|
|
46
|
-
<codeStyleSettings language="TypeScript">
|
|
47
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
48
|
-
<indentOptions>
|
|
49
|
-
<option name="INDENT_SIZE" value="2" />
|
|
50
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
51
|
-
<option name="TAB_SIZE" value="2" />
|
|
52
|
-
</indentOptions>
|
|
53
|
-
</codeStyleSettings>
|
|
54
|
-
<codeStyleSettings language="Vue">
|
|
55
|
-
<option name="SOFT_MARGINS" value="100" />
|
|
56
|
-
<indentOptions>
|
|
57
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
58
|
-
</indentOptions>
|
|
59
|
-
</codeStyleSettings>
|
|
60
|
-
</code_scheme>
|
|
61
|
-
</component>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/musora-content-services.iml" filepath="$PROJECT_DIR$/.idea/musora-content-services.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.idea/php.xml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
-
<option name="transferred" value="true" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
-
<option name="transferred" value="true" />
|
|
8
|
-
</component>
|
|
9
|
-
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
-
<option name="highlightLevel" value="WARNING" />
|
|
11
|
-
<option name="transferred" value="true" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="PhpStanOptionsConfiguration">
|
|
14
|
-
<option name="transferred" value="true" />
|
|
15
|
-
</component>
|
|
16
|
-
<component name="PsalmOptionsConfiguration">
|
|
17
|
-
<option name="transferred" value="true" />
|
|
18
|
-
</component>
|
|
19
|
-
</project>
|
package/.idea/prettier.xml
DELETED
package/.idea/vcs.xml
DELETED
package/.yarn/install-state.gz
DELETED
|
Binary file
|