musora-content-services 1.0.101 → 1.0.102

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,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
+ ### [1.0.102](https://github.com/railroadmedia/musora-content-services/compare/v1.0.101...v1.0.102) (2024-09-17)
6
+
5
7
  ### [1.0.101](https://github.com/railroadmedia/musora-content-services/compare/v1.0.100...v1.0.101) (2024-09-17)
6
8
 
7
9
  ### [1.0.100](https://github.com/railroadmedia/musora-content-services/compare/v1.0.99...v1.0.100) (2024-09-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -8,7 +8,6 @@ import {
8
8
  fetchAllSongs,
9
9
  fetchSongFilterOptions,
10
10
  fetchSongCount,
11
- fetchWorkouts,
12
11
  fetchNewReleases,
13
12
  fetchUpcomingEvents,
14
13
  fetchByRailContentId,
@@ -59,7 +58,6 @@ export {
59
58
  fetchAllSongs,
60
59
  fetchSongFilterOptions,
61
60
  fetchSongCount,
62
- fetchWorkouts,
63
61
  fetchNewReleases,
64
62
  fetchUpcomingEvents,
65
63
  fetchByRailContentId,
@@ -229,27 +229,6 @@ export async function fetchSongCount(brand) {
229
229
  return fetchSanity(query, true);
230
230
  }
231
231
 
232
- /**
233
- * Fetch the latest workouts for a specific brand, including completion status and progress.
234
- * This function retrieves up to five of the latest workout content for a given brand, sorted in descending order by their publication date.
235
- * It also includes completion status and progress percentage for each workout by fetching additional data about user progress.
236
- *
237
- * @param {string} brand - The brand for which to fetch workouts (e.g., 'drumeo', 'pianote').
238
- * @returns {Promise<Array<Object>|null>} - A promise that resolves to an array of workout data objects with additional properties for completion status and progress percentage, or null if no workouts are found.
239
- *
240
- * @example
241
- * fetchWorkouts('drumeo')
242
- * .then(workouts => console.log(workouts))
243
- * .catch(error => console.error(error));
244
- */
245
- export async function fetchWorkouts(brand) {
246
- const fields = getFieldsForContentType('workout');
247
- const query = `*[_type == 'workout' && brand == '${brand}'] [0...5] {
248
- ${fields.toString()}
249
- } | order(published_on desc)[0...5]`
250
- return fetchSanity(query, true);
251
- }
252
-
253
232
  /**
254
233
  * Fetch the latest new releases for a specific brand.
255
234
  * @param {string} brand - The brand for which to fetch new releases.