musora-content-services 2.65.0 → 2.66.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 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.66.0](https://github.com/railroadmedia/musora-content-services/compare/v2.65.0...v2.66.0) (2025-11-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * legacy methods function with mock data ([#534](https://github.com/railroadmedia/musora-content-services/issues/534)) ([76f74d2](https://github.com/railroadmedia/musora-content-services/commit/76f74d255ab6b6b35ef6422a7952b4f75b551b8c))
11
+
5
12
  ## [2.65.0](https://github.com/railroadmedia/musora-content-services/compare/v2.64.0...v2.65.0) (2025-11-03)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.65.0",
3
+ "version": "2.66.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
@@ -37,6 +37,7 @@ import {
37
37
 
38
38
  import {
39
39
  getContentRows,
40
+ getLegacyMethods,
40
41
  getLessonContentRows,
41
42
  getNewAndUpcoming,
42
43
  getRecent,
@@ -520,6 +521,7 @@ declare module 'musora-content-services' {
520
521
  getContentRows,
521
522
  getDailySession,
522
523
  getLastInteractedOf,
524
+ getLegacyMethods,
523
525
  getLessonContentRows,
524
526
  getMonday,
525
527
  getNavigateTo,
package/src/index.js CHANGED
@@ -37,6 +37,7 @@ import {
37
37
 
38
38
  import {
39
39
  getContentRows,
40
+ getLegacyMethods,
40
41
  getLessonContentRows,
41
42
  getNewAndUpcoming,
42
43
  getRecent,
@@ -519,6 +520,7 @@ export {
519
520
  getContentRows,
520
521
  getDailySession,
521
522
  getLastInteractedOf,
523
+ getLegacyMethods,
522
524
  getLessonContentRows,
523
525
  getMonday,
524
526
  getNavigateTo,
@@ -421,9 +421,34 @@ export async function getRecommendedForYou(brand, rowId = null, {
421
421
  }
422
422
 
423
423
 
424
+ /**
425
+ * Fetches legacy methods for a given brand by permission.
426
+ *
427
+ * @param {string} brand - The brand for which to fetch legacy methods.
428
+ * @returns {Promise<Object>} - A promise that resolves to an object containing legacy methods.
429
+ *
430
+ * @example
431
+ * // Fetch legacy methods for a brand by permission
432
+ * getLegacyMethods('drumeo')
433
+ * .then(content => console.log(content))
434
+ * .catch(error => console.error(error));
435
+ */
436
+ export async function getLegacyMethods(brand) {
424
437
 
425
-
426
-
427
-
428
-
429
-
438
+ // TODO: Replace with real data from Sanity when available with permissions
439
+
440
+ return [
441
+ {
442
+ id: 1,
443
+ title: '2020 Method',
444
+ type: 'pack',
445
+ child_count: 12,
446
+ },
447
+ {
448
+ id: 2,
449
+ title: '2016 Foundations',
450
+ type: 'pack',
451
+ child_count: 12,
452
+ },
453
+ ]
454
+ }