musora-content-services 2.77.1 → 2.77.2

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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(rg:*)"
5
+ ],
6
+ "deny": []
7
+ }
8
+ }
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.77.2](https://github.com/railroadmedia/musora-content-services/compare/v2.77.1...v2.77.2) (2025-11-14)
6
+
5
7
  ### [2.77.1](https://github.com/railroadmedia/musora-content-services/compare/v2.77.0...v2.77.1) (2025-11-13)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.77.1",
3
+ "version": "2.77.2",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -299,8 +299,7 @@ export const progressTypesMapping = {
299
299
  'play along': playAlongLessonTypes,
300
300
  'guided course': ['guided-course'],
301
301
  pack: ['pack', 'semester-pack'],
302
- method: ['method-card', 'method-intro'],
303
- 'learning path': ['learning-path'],
302
+ 'learning path': ['learning-path-v2'],
304
303
  'jam track': jamTrackLessonTypes,
305
304
  'course video': ['course-part'],
306
305
  }
@@ -346,7 +345,7 @@ export const recentTypes = {
346
345
  ...transcriptionsLessonTypes,
347
346
  ...playAlongLessonTypes,
348
347
  'guided-course',
349
- 'learning-path',
348
+ 'learning-path-v2',
350
349
  'live',
351
350
  'course',
352
351
  'pack',
@@ -460,28 +459,9 @@ export let contentTypeConfig = {
460
459
  )`,
461
460
  ],
462
461
  },
463
- method: {
464
- fields: [
465
- `"description": ${descriptionField}`,
466
- 'hide_from_recsys',
467
- '"image": thumbnail.asset->url',
468
- '"instructors":instructor[]->name',
469
- '"lesson_count": child_count',
470
- 'length_in_seconds',
471
- 'permission',
472
- 'popularity',
473
- 'published_on',
474
- 'railcontent_id',
475
- '"thumbnail_logo": logo_image_url.asset->url',
476
- 'title',
477
- 'total_xp',
478
- '"type": _type',
479
- 'xp',
480
- ],
481
- },
482
462
  'learning-path-v2': {
483
463
  fields: [
484
- `"intro_video": intro_video->{ ${getIntroVideoFields('learning-path').join(', ')} }`,
464
+ `"intro_video": intro_video->{ ${getIntroVideoFields('learning-path-v2').join(', ')} }`,
485
465
  'total_skills',
486
466
  `"resource": ${resourcesField}`,
487
467
  `"badge": *[
@@ -491,40 +471,6 @@ export let contentTypeConfig = {
491
471
  ],
492
472
  includeChildFields: true,
493
473
  },
494
- 'learning-path-course': {
495
- fields: [
496
- '"lesson_count": child_count',
497
- '"instructors": instructor[]->name',
498
- `"description": ${descriptionField}`,
499
- `"resource": ${resourcesField}`,
500
- 'xp',
501
- 'total_xp',
502
- `"lessons": child[]->{
503
- "id": railcontent_id,
504
- title,
505
- "image": thumbnail.asset->url,
506
- "instructors": instructor[]->name,
507
- length_in_seconds,
508
- }`,
509
- ],
510
- },
511
- 'learning-path-level': {
512
- fields: [
513
- '"lesson_count": child_count',
514
- '"instructors": instructor[]->name',
515
- `"description": ${descriptionField}`,
516
- `"resource": ${resourcesField}`,
517
- 'xp',
518
- 'total_xp',
519
- `"lessons": child[]->{
520
- "id": railcontent_id,
521
- title,
522
- "image": thumbnail.asset->url,
523
- "instructors": instructor[]->name,
524
- length_in_seconds,
525
- }`,
526
- ],
527
- },
528
474
  workout: {
529
475
  fields: [artistOrInstructorNameAsArray()],
530
476
  slug: 'workouts',
@@ -680,7 +626,7 @@ export let contentTypeConfig = {
680
626
  `"type":_type`,
681
627
  'title',
682
628
  'brand',
683
- `"intro_video": intro_video->{ ${getIntroVideoFields('method').join(', ')} }`,
629
+ `"intro_video": intro_video->{ ${getIntroVideoFields('method-v2').join(', ')} }`,
684
630
  `child[]->{
685
631
  "resource": ${resourcesField},
686
632
  total_skills,
@@ -740,7 +686,6 @@ export function getNewReleasesTypes(brand) {
740
686
  'podcasts',
741
687
  'pack',
742
688
  'song',
743
- 'learning-path-level',
744
689
  'play-along',
745
690
  'course',
746
691
  'unit',
@@ -198,6 +198,7 @@ export async function fetchLearningPathLessons(
198
198
  upcoming_lessons: upcomingLessons,
199
199
  todays_lessons: todaysLessons,
200
200
  next_learning_path_lessons: nextLPLessons,
201
+ next_learning_path_id: nextLearningPathId,
201
202
  completed_lessons: completedLessons,
202
203
  previous_learning_path_todays: previousLearningPathTodays,
203
204
  }
@@ -878,6 +878,7 @@ export async function fetchAllFilterOptions(
878
878
  return includeTabs ? { ...results, tabs, catalogName } : results
879
879
  }
880
880
 
881
+ //Daniel Nov 14 2025 note - keeping this for when we migrate foundations to packs, so we know what fields to use.
881
882
  /**
882
883
  * Fetch the Foundations 2019.
883
884
  * @param {string} slug - The slug of the method.