musora-content-services 1.0.144 → 1.0.145

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.145](https://github.com/railroadmedia/musora-content-services/compare/v1.0.144...v1.0.145) (2024-10-25)
6
+
5
7
  ### [1.0.144](https://github.com/railroadmedia/musora-content-services/compare/v1.0.143...v1.0.144) (2024-10-25)
6
8
 
7
9
  ### [1.0.143](https://github.com/railroadmedia/musora-content-services/compare/v1.0.142...v1.0.143) (2024-10-24)
package/link_mcs.sh CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -165,8 +165,10 @@ const commonMetadata ={
165
165
  sortBy: '-published_on',
166
166
  },
167
167
  'workout': {
168
+ name: "Workouts",
169
+ shortname: 'Workouts',
168
170
  allowableFilters: ['difficulty', 'genre', 'topic'],
169
- tabs: [
171
+ tabs: [
170
172
  {
171
173
  name: 'All',
172
174
  short_name: 'ALL',
@@ -1071,6 +1073,8 @@ const contentMetadata = {
1071
1073
  }
1072
1074
  },
1073
1075
  'workout': {
1076
+ name: "Workouts",
1077
+ shortname: 'Workouts',
1074
1078
  tabs: [
1075
1079
  {
1076
1080
  name: 'All',
@@ -644,6 +644,7 @@ export async function fetchAllFilterOptions(
644
644
  const metaData = processMetadata(brand, contentType, true);
645
645
  const allowableFilters = metaData?.allowableFilters || [];
646
646
  const tabs = metaData?.tabs || [];
647
+ const catalogName = metaData?.shortname || metaData?.name;
647
648
 
648
649
  const dynamicFilterOptions = allowableFilters.map(filter => getFilterOptions(filter, constructCommonFilter(filter), contentType, brand)).join(' ');
649
650
 
@@ -660,7 +661,7 @@ export async function fetchAllFilterOptions(
660
661
 
661
662
  const results = await fetchSanity(query, true, { processNeedAccess: false });
662
663
 
663
- return includeTabs ? { ...results, tabs } : results;
664
+ return includeTabs ? { ...results, tabs, catalogName } : results;
664
665
  }
665
666
 
666
667