musora-content-services 2.167.6 → 2.168.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/.idea/codeStyles/Project.xml +61 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/modules.xml +8 -0
- package/.idea/musora-content-services.iml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +7 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/services/content/counts.ts +20 -0
- package/src/services/user/memberships.ts +12 -0
- package/src/version-info.js +1 -1
- package/.claude/settings.local.json +0 -57
|
@@ -0,0 +1,61 @@
|
|
|
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>
|
|
@@ -0,0 +1,8 @@
|
|
|
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>
|
|
@@ -0,0 +1,8 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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/vcs.xml
ADDED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.168.0](https://github.com/railroadmedia/musora-content-services/compare/v2.167.6...v2.168.0) (2026-07-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **BEHLTP-186:** split membership and subscriber data for membership controller- [#1414](https://github.com/railroadmedia/musora-content-services/issues/1414) ([#1022](https://github.com/railroadmedia/musora-content-services/issues/1022)) ([728f03a](https://github.com/railroadmedia/musora-content-services/commit/728f03ae25a8ddb0ee337a7dd6034bb65ba56297))
|
|
11
|
+
|
|
5
12
|
### [2.167.6](https://github.com/railroadmedia/musora-content-services/compare/v2.167.5...v2.167.6) (2026-07-29)
|
|
6
13
|
|
|
7
14
|
### [2.167.5](https://github.com/railroadmedia/musora-content-services/compare/v2.167.4...v2.167.5) (2026-07-24)
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
} from './services/content/artist.ts';
|
|
31
31
|
|
|
32
32
|
import {
|
|
33
|
+
fetchLearningPathCount,
|
|
33
34
|
fetchSongAndLessonCounts
|
|
34
35
|
} from './services/content/counts.ts';
|
|
35
36
|
|
|
@@ -619,6 +620,7 @@ declare module 'musora-content-services' {
|
|
|
619
620
|
fetchInvite,
|
|
620
621
|
fetchLastSubscriptionPlatform,
|
|
621
622
|
fetchLatestThreads,
|
|
623
|
+
fetchLearningPathCount,
|
|
622
624
|
fetchLearningPathLessons,
|
|
623
625
|
fetchLearningPathProgressCheckLessons,
|
|
624
626
|
fetchLeaving,
|
package/src/index.js
CHANGED
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
} from './services/content/artist.ts';
|
|
35
35
|
|
|
36
36
|
import {
|
|
37
|
+
fetchLearningPathCount,
|
|
37
38
|
fetchSongAndLessonCounts
|
|
38
39
|
} from './services/content/counts.ts';
|
|
39
40
|
|
|
@@ -618,6 +619,7 @@ export {
|
|
|
618
619
|
fetchInvite,
|
|
619
620
|
fetchLastSubscriptionPlatform,
|
|
620
621
|
fetchLatestThreads,
|
|
622
|
+
fetchLearningPathCount,
|
|
621
623
|
fetchLearningPathLessons,
|
|
622
624
|
fetchLearningPathProgressCheckLessons,
|
|
623
625
|
fetchLeaving,
|
|
@@ -45,3 +45,23 @@ export async function fetchSongAndLessonCounts(
|
|
|
45
45
|
|
|
46
46
|
return { ...counts, total: counts.songs + counts.lessons }
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
export interface LearningPathCount {
|
|
50
|
+
total: number
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function fetchLearningPathCount(brand?: Brands | string): Promise<LearningPathCount> {
|
|
54
|
+
const learningPathFilter = f.combine(
|
|
55
|
+
f.typeIn(['learning-path-v2']),
|
|
56
|
+
f.statusIn(['published']),
|
|
57
|
+
f.defined('railcontent_id'),
|
|
58
|
+
brand ? f.brand(brand) : f.empty
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
const q = `{
|
|
62
|
+
"total": count(${query().and(learningPathFilter)})
|
|
63
|
+
}`
|
|
64
|
+
|
|
65
|
+
const count = (await sanityClient.executeQuery<LearningPathCount>(q)) ?? { total: 0 }
|
|
66
|
+
return count
|
|
67
|
+
}
|
|
@@ -27,6 +27,18 @@ export interface UserMembershipResponse {
|
|
|
27
27
|
sub_account_data: MultiUserAccountResponse // post multiUserAccount data
|
|
28
28
|
upgrade_options: UpgradeOption[] // post multiuser account data
|
|
29
29
|
user_subscriber_data: {
|
|
30
|
+
active_subscription: {
|
|
31
|
+
subscribed_on: string
|
|
32
|
+
renews_on: string
|
|
33
|
+
plan: string
|
|
34
|
+
platform: 'web' | 'apple' | 'google'
|
|
35
|
+
product_sku: string
|
|
36
|
+
rc_product_ids: {
|
|
37
|
+
apple: string
|
|
38
|
+
google: string
|
|
39
|
+
}
|
|
40
|
+
tier_key: string
|
|
41
|
+
}
|
|
30
42
|
has_had_apple_subscription: boolean
|
|
31
43
|
has_had_google_subscription: boolean
|
|
32
44
|
has_had_web_subscription: boolean
|
package/src/version-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MCS_VERSION = '2.
|
|
1
|
+
export const MCS_VERSION = '2.168.0'
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
}
|