musora-content-services 2.95.3 → 2.95.5
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
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.95.5](https://github.com/railroadmedia/musora-content-services/compare/v2.95.4...v2.95.5) (2025-12-08)
|
|
6
|
+
|
|
7
|
+
### [2.95.4](https://github.com/railroadmedia/musora-content-services/compare/v2.95.3...v2.95.4) (2025-12-08)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **onboarding:** update hard-coded data ([e33f309](https://github.com/railroadmedia/musora-content-services/commit/e33f309d0b051829e58f631f4b1368501bafc72b))
|
|
13
|
+
|
|
5
14
|
### [2.95.3](https://github.com/railroadmedia/musora-content-services/compare/v2.95.2...v2.95.3) (2025-12-08)
|
|
6
15
|
|
|
7
16
|
|
package/package.json
CHANGED
package/src/lib/sanity/query.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Monoid } from '../ads/monoid'
|
|
2
|
-
import { Semigroup } from '../ads/semigroup'
|
|
3
2
|
|
|
4
3
|
export interface BuildQueryOptions {
|
|
5
4
|
sort?: string
|
|
@@ -50,8 +49,9 @@ const slice: Monoid<string> = {
|
|
|
50
49
|
concat: (a, b) => b || a,
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
const project:
|
|
54
|
-
|
|
52
|
+
const project: Monoid<string> = {
|
|
53
|
+
empty: '',
|
|
54
|
+
concat: (a, b) => (!a ? b : !b ? a : `${a}, ${b}`),
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export const query = (): QueryBuilder => {
|
|
@@ -59,7 +59,7 @@ export const query = (): QueryBuilder => {
|
|
|
59
59
|
filter: and.empty,
|
|
60
60
|
ordering: order.empty,
|
|
61
61
|
slice: slice.empty,
|
|
62
|
-
projection:
|
|
62
|
+
projection: project.empty,
|
|
63
63
|
postFilter: and.empty,
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -113,7 +113,7 @@ export const query = (): QueryBuilder => {
|
|
|
113
113
|
*[${filter}]
|
|
114
114
|
${ordering}
|
|
115
115
|
${slice}
|
|
116
|
-
{ ${projection} }
|
|
116
|
+
${projection.length > 0 ? `{ ${projection} }` : ''}
|
|
117
117
|
${state.postFilter ? `[${state.postFilter}]` : ''}
|
|
118
118
|
`.trim()
|
|
119
119
|
},
|
|
@@ -55,7 +55,7 @@ export async function fetchArtists(
|
|
|
55
55
|
|
|
56
56
|
const q = `{
|
|
57
57
|
"data": ${data},
|
|
58
|
-
"total": ${total}
|
|
58
|
+
"total": count(${total})
|
|
59
59
|
}`
|
|
60
60
|
|
|
61
61
|
return fetchSanity(q, true, { processNeedAccess: false, processPageType: false })
|
|
@@ -162,7 +162,7 @@ export async function fetchArtistLessons(
|
|
|
162
162
|
|
|
163
163
|
const q = `{
|
|
164
164
|
"data": ${data},
|
|
165
|
-
"total": ${total}
|
|
165
|
+
"total": count(${total})
|
|
166
166
|
}`
|
|
167
167
|
|
|
168
168
|
return fetchSanity(q, true, { processNeedAccess: false, processPageType: false })
|
|
@@ -55,7 +55,7 @@ export async function fetchGenres(
|
|
|
55
55
|
|
|
56
56
|
const q = `{
|
|
57
57
|
"data": ${data},
|
|
58
|
-
"total": ${total}
|
|
58
|
+
"total": count(${total})
|
|
59
59
|
}`
|
|
60
60
|
|
|
61
61
|
return fetchSanity(q, true, { processNeedAccess: false, processPageType: false })
|
|
@@ -151,7 +151,6 @@ export async function fetchGenreLessons(
|
|
|
151
151
|
sort = getSortOrder(sort, brand)
|
|
152
152
|
const data = query()
|
|
153
153
|
.and(filterWithRestrictions)
|
|
154
|
-
.and(`brand == ${brand}`)
|
|
155
154
|
.order(sort)
|
|
156
155
|
.slice(offset, offset + limit)
|
|
157
156
|
.select(...(fieldsString ? [fieldsString] : []))
|
|
@@ -161,7 +160,7 @@ export async function fetchGenreLessons(
|
|
|
161
160
|
|
|
162
161
|
const q = `{
|
|
163
162
|
"data": ${data},
|
|
164
|
-
"total": ${total}
|
|
163
|
+
"total": count(${total})
|
|
165
164
|
}`
|
|
166
165
|
|
|
167
166
|
return fetchSanity(q, true, { processNeedAccess: false, processPageType: false })
|
|
@@ -134,8 +134,8 @@ export interface OnboardingRecommendedContent {
|
|
|
134
134
|
|
|
135
135
|
const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent } = {
|
|
136
136
|
drumeo: {
|
|
137
|
-
id:
|
|
138
|
-
title: '
|
|
137
|
+
id: 415737,
|
|
138
|
+
title: 'The Power Of Your Left Hand (Beginner)',
|
|
139
139
|
difficulty: 'Beginner',
|
|
140
140
|
lesson_count: 12,
|
|
141
141
|
skill_count: 1,
|
|
@@ -146,7 +146,7 @@ const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent }
|
|
|
146
146
|
video: {
|
|
147
147
|
external_id: '1002267396',
|
|
148
148
|
hlsManifestUrl:
|
|
149
|
-
'https://player.vimeo.com/external/
|
|
149
|
+
'https://player.vimeo.com/external/250467786.m3u8?s=52dc97fc96fe903d80bf71bc1b1709cc444db407&oauth2_token_id=1284792283',
|
|
150
150
|
type: 'vimeo-video',
|
|
151
151
|
},
|
|
152
152
|
},
|
|
@@ -168,8 +168,8 @@ const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent }
|
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
170
|
guitareo: {
|
|
171
|
-
id:
|
|
172
|
-
title: '
|
|
171
|
+
id: 191346,
|
|
172
|
+
title: 'Understanding Your Instrument',
|
|
173
173
|
difficulty: 'Beginner',
|
|
174
174
|
lesson_count: 6,
|
|
175
175
|
skill_count: 5,
|
|
@@ -180,13 +180,13 @@ const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent }
|
|
|
180
180
|
video: {
|
|
181
181
|
external_id: '1003267397',
|
|
182
182
|
hlsManifestUrl:
|
|
183
|
-
'https://player.vimeo.com/external/
|
|
183
|
+
'https://player.vimeo.com/external/166972298.m3u8?s=a93bfe96a4ce9ac5a4eba3441838847ef2eafc9b&oauth2_token_id=1284792283',
|
|
184
184
|
type: 'vimeo-video',
|
|
185
185
|
},
|
|
186
186
|
},
|
|
187
187
|
singeo: {
|
|
188
|
-
id:
|
|
189
|
-
title: '
|
|
188
|
+
id: 415737,
|
|
189
|
+
title: 'Sound Like A Star — Mastering Iconic Pop Voices',
|
|
190
190
|
difficulty: 'Beginner',
|
|
191
191
|
lesson_count: 5,
|
|
192
192
|
skill_count: 4,
|
|
@@ -197,13 +197,13 @@ const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent }
|
|
|
197
197
|
video: {
|
|
198
198
|
external_id: '1004267398',
|
|
199
199
|
hlsManifestUrl:
|
|
200
|
-
'https://player.vimeo.com/external/
|
|
200
|
+
'https://player.vimeo.com/external/1040159819.m3u8?s=f238ad1a650fb30a49c36d61996c982f06ffffb1&oauth2_token_id=1284792283',
|
|
201
201
|
type: 'vimeo-video',
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
204
|
playbass: {
|
|
205
|
-
id:
|
|
206
|
-
title: '
|
|
205
|
+
id: 191346,
|
|
206
|
+
title: 'Understanding Your Instrument',
|
|
207
207
|
difficulty: 'Beginner',
|
|
208
208
|
lesson_count: 6,
|
|
209
209
|
skill_count: 5,
|
|
@@ -214,7 +214,7 @@ const recommendedContentCache: { [brand: string]: OnboardingRecommendedContent }
|
|
|
214
214
|
video: {
|
|
215
215
|
external_id: '1003267397',
|
|
216
216
|
hlsManifestUrl:
|
|
217
|
-
'https://player.vimeo.com/external/
|
|
217
|
+
'https://player.vimeo.com/external/166972298.m3u8?s=a93bfe96a4ce9ac5a4eba3441838847ef2eafc9b&oauth2_token_id=1284792283',
|
|
218
218
|
type: 'vimeo-video',
|
|
219
219
|
},
|
|
220
220
|
},
|