musora-content-services 1.0.107 → 1.0.109

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.
Files changed (55) hide show
  1. package/.github/workflows/node.js.yml +0 -0
  2. package/CHANGELOG.md +4 -0
  3. package/README.md +0 -0
  4. package/babel.config.js +0 -0
  5. package/docs/config.js.html +2 -2
  6. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  14. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  24. package/docs/index.html +2 -2
  25. package/docs/module-Config.html +2 -2
  26. package/docs/module-Railcontent-Services.html +2 -2
  27. package/docs/module-Sanity-Services.html +393 -42
  28. package/docs/railcontent.js.html +2 -2
  29. package/docs/sanity.js.html +307 -86
  30. package/docs/scripts/collapse.js +0 -0
  31. package/docs/scripts/commonNav.js +0 -0
  32. package/docs/scripts/linenumber.js +0 -0
  33. package/docs/scripts/nav.js +0 -0
  34. package/docs/scripts/polyfill.js +0 -0
  35. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  36. package/docs/scripts/prettify/lang-css.js +0 -0
  37. package/docs/scripts/prettify/prettify.js +0 -0
  38. package/docs/scripts/search.js +0 -0
  39. package/docs/styles/jsdoc.css +0 -0
  40. package/docs/styles/prettify.css +0 -0
  41. package/jest.config.js +0 -0
  42. package/jsdoc.json +0 -0
  43. package/package.json +1 -1
  44. package/src/contentTypeConfig.js +1330 -11
  45. package/src/filterBuilder.js +0 -0
  46. package/src/index.d.ts +4 -0
  47. package/src/index.js +4 -0
  48. package/src/services/config.js +0 -0
  49. package/src/services/railcontent.js +0 -0
  50. package/src/services/sanity.js +68 -3
  51. package/src/services/userContext.js +0 -0
  52. package/test/localStorageMock.js +0 -0
  53. package/test/log.js +0 -0
  54. package/test/sanityQueryService.test.js +15 -0
  55. package/test/userContext.test.js +0 -0
@@ -29,7 +29,7 @@
29
29
  <nav >
30
30
 
31
31
 
32
- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchVimeoData">fetchVimeoData</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllSongs">fetchAllSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCatalogMetadata">fetchCatalogMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChallengeOverview">fetchChallengeOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChildren">fetchChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCourseOverview">fetchCourseOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodNextLesson">fetchMethodNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethods">fetchMethods</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackChildren">fetchPackChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentByRailContentId">fetchParentByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedMethodLessons">fetchRelatedMethodLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongCount">fetchSongCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongFilterOptions">fetchSongFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchWorkouts">fetchWorkouts</a></li></ul></li></ul>
32
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchVimeoData">fetchVimeoData</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllSongs">fetchAllSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCatalogMetadata">fetchCatalogMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChallengeOverview">fetchChallengeOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChildren">fetchChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCourseOverview">fetchCourseOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMetadata">fetchMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodNextLesson">fetchMethodNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethods">fetchMethods</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackChildren">fetchPackChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentByRailContentId">fetchParentByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedMethodLessons">fetchRelatedMethodLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchShowsData">fetchShowsData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongCount">fetchSongCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongFilterOptions">fetchSongFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchWorkouts">fetchWorkouts</a></li></ul></li></ul>
33
33
 
34
34
  </nav>
35
35
 
@@ -100,7 +100,7 @@
100
100
 
101
101
  <dt class="tag-source">Source:</dt>
102
102
  <dd class="tag-source"><ul class="dummy"><li>
103
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line422">line 422</a>
103
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line454">line 454</a>
104
104
  </li></ul></dd>
105
105
 
106
106
 
@@ -714,7 +714,7 @@ The filter options are dynamically generated based on the provided filters, styl
714
714
 
715
715
  <dt class="tag-source">Source:</dt>
716
716
  <dd class="tag-source"><ul class="dummy"><li>
717
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line564">line 564</a>
717
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line599">line 599</a>
718
718
  </li></ul></dd>
719
719
 
720
720
 
@@ -1090,7 +1090,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
1090
1090
 
1091
1091
  <dt class="tag-source">Source:</dt>
1092
1092
  <dd class="tag-source"><ul class="dummy"><li>
1093
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line921">line 921</a>
1093
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line973">line 973</a>
1094
1094
  </li></ul></dd>
1095
1095
 
1096
1096
 
@@ -1344,7 +1344,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
1344
1344
 
1345
1345
  <dt class="tag-source">Source:</dt>
1346
1346
  <dd class="tag-source"><ul class="dummy"><li>
1347
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line173">line 173</a>
1347
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line180">line 180</a>
1348
1348
  </li></ul></dd>
1349
1349
 
1350
1350
 
@@ -1810,7 +1810,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
1810
1810
 
1811
1811
  <dt class="tag-source">Source:</dt>
1812
1812
  <dd class="tag-source"><ul class="dummy"><li>
1813
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1127">line 1127</a>
1813
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1183">line 1183</a>
1814
1814
  </li></ul></dd>
1815
1815
 
1816
1816
 
@@ -2023,7 +2023,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2023
2023
 
2024
2024
  <dt class="tag-source">Source:</dt>
2025
2025
  <dd class="tag-source"><ul class="dummy"><li>
2026
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line52">line 52</a>
2026
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line58">line 58</a>
2027
2027
  </li></ul></dd>
2028
2028
 
2029
2029
 
@@ -2172,7 +2172,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2172
2172
 
2173
2173
 
2174
2174
 
2175
- <h4 class="name" id=".fetchByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentId<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2175
+ <h4 class="name" id=".fetchByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentId<span class="signature">(id, contentType)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2176
2176
 
2177
2177
 
2178
2178
 
@@ -2188,7 +2188,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2188
2188
 
2189
2189
  <dt class="tag-source">Source:</dt>
2190
2190
  <dd class="tag-source"><ul class="dummy"><li>
2191
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line364">line 364</a>
2191
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line389">line 389</a>
2192
2192
  </li></ul></dd>
2193
2193
 
2194
2194
 
@@ -2288,6 +2288,30 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2288
2288
  </tr>
2289
2289
 
2290
2290
 
2291
+
2292
+ <tr>
2293
+
2294
+ <td class="name"><code>contentType</code></td>
2295
+
2296
+
2297
+ <td class="type">
2298
+
2299
+
2300
+ <span class="param-type">string</span>
2301
+
2302
+
2303
+
2304
+
2305
+ </td>
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+ <td class="description last">The document type of content to fetch</td>
2312
+ </tr>
2313
+
2314
+
2291
2315
  </tbody>
2292
2316
  </table>
2293
2317
 
@@ -2353,7 +2377,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2353
2377
 
2354
2378
  <dt class="tag-source">Source:</dt>
2355
2379
  <dd class="tag-source"><ul class="dummy"><li>
2356
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line383">line 383</a>
2380
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line414">line 414</a>
2357
2381
  </li></ul></dd>
2358
2382
 
2359
2383
 
@@ -2562,7 +2586,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2562
2586
 
2563
2587
  <dt class="tag-source">Source:</dt>
2564
2588
  <dd class="tag-source"><ul class="dummy"><li>
2565
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1090">line 1090</a>
2589
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1144">line 1144</a>
2566
2590
  </li></ul></dd>
2567
2591
 
2568
2592
 
@@ -2728,7 +2752,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2728
2752
 
2729
2753
  <dt class="tag-source">Source:</dt>
2730
2754
  <dd class="tag-source"><ul class="dummy"><li>
2731
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1263">line 1263</a>
2755
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1319">line 1319</a>
2732
2756
  </li></ul></dd>
2733
2757
 
2734
2758
 
@@ -2893,7 +2917,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2893
2917
 
2894
2918
  <dt class="tag-source">Source:</dt>
2895
2919
  <dd class="tag-source"><ul class="dummy"><li>
2896
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1013">line 1013</a>
2920
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1067">line 1067</a>
2897
2921
  </li></ul></dd>
2898
2922
 
2899
2923
 
@@ -3058,7 +3082,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3058
3082
 
3059
3083
  <dt class="tag-source">Source:</dt>
3060
3084
  <dd class="tag-source"><ul class="dummy"><li>
3061
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line612">line 612</a>
3085
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line647">line 647</a>
3062
3086
  </li></ul></dd>
3063
3087
 
3064
3088
 
@@ -3260,7 +3284,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3260
3284
 
3261
3285
  <dt class="tag-source">Source:</dt>
3262
3286
  <dd class="tag-source"><ul class="dummy"><li>
3263
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1041">line 1041</a>
3287
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1095">line 1095</a>
3264
3288
  </li></ul></dd>
3265
3289
 
3266
3290
 
@@ -3425,7 +3449,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3425
3449
 
3426
3450
  <dt class="tag-source">Source:</dt>
3427
3451
  <dd class="tag-source"><ul class="dummy"><li>
3428
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1072">line 1072</a>
3452
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1129">line 1129</a>
3429
3453
  </li></ul></dd>
3430
3454
 
3431
3455
 
@@ -3590,7 +3614,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3590
3614
 
3591
3615
  <dt class="tag-source">Source:</dt>
3592
3616
  <dd class="tag-source"><ul class="dummy"><li>
3593
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line658">line 658</a>
3617
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line693">line 693</a>
3594
3618
  </li></ul></dd>
3595
3619
 
3596
3620
 
@@ -3748,7 +3772,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3748
3772
 
3749
3773
  <dt class="tag-source">Source:</dt>
3750
3774
  <dd class="tag-source"><ul class="dummy"><li>
3751
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1168">line 1168</a>
3775
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1224">line 1224</a>
3752
3776
  </li></ul></dd>
3753
3777
 
3754
3778
 
@@ -3961,7 +3985,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3961
3985
 
3962
3986
  <dt class="tag-source">Source:</dt>
3963
3987
  <dd class="tag-source"><ul class="dummy"><li>
3964
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line825">line 825</a>
3988
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line866">line 866</a>
3965
3989
  </li></ul></dd>
3966
3990
 
3967
3991
 
@@ -4110,6 +4134,191 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4110
4134
 
4111
4135
 
4112
4136
 
4137
+ <h4 class="name" id=".fetchMetadata"><span class="type-signature type-signature-static">(static) </span>fetchMetadata<span class="signature">(brand, type)</span><span class="type-signature"> &rarr; {Promise.&lt;{name, description, type: *, thumbnailUrl}>}</span></h4>
4138
+
4139
+
4140
+
4141
+
4142
+
4143
+
4144
+ <dl class="details">
4145
+
4146
+ <dt class="tag-description">Description:</dt>
4147
+ <dd class="tag-description"><ul class="dummy"><li>Fetch metadata from the contentTypeConfig.js based on brand and type.</li></ul></dd>
4148
+
4149
+
4150
+
4151
+ <dt class="tag-source">Source:</dt>
4152
+ <dd class="tag-source"><ul class="dummy"><li>
4153
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1369">line 1369</a>
4154
+ </li></ul></dd>
4155
+
4156
+
4157
+
4158
+
4159
+
4160
+
4161
+
4162
+
4163
+
4164
+
4165
+
4166
+
4167
+
4168
+
4169
+
4170
+
4171
+
4172
+
4173
+
4174
+
4175
+
4176
+
4177
+
4178
+
4179
+
4180
+
4181
+
4182
+
4183
+
4184
+
4185
+
4186
+ </dl>
4187
+
4188
+
4189
+
4190
+
4191
+
4192
+
4193
+
4194
+
4195
+
4196
+
4197
+
4198
+ <h5 class="h5-examples">Example</h5>
4199
+
4200
+ <pre class="prettyprint"><code>fetchMetadata('drumeo','song')
4201
+ .then(data => console.log(data))
4202
+ .catch(error => console.error(error));</code></pre>
4203
+
4204
+
4205
+
4206
+
4207
+ <h5 class="h5-parameters">Parameters:</h5>
4208
+
4209
+
4210
+ <table class="params">
4211
+ <thead>
4212
+ <tr>
4213
+
4214
+ <th>Name</th>
4215
+
4216
+
4217
+ <th>Type</th>
4218
+
4219
+
4220
+
4221
+
4222
+
4223
+ <th class="last">Description</th>
4224
+ </tr>
4225
+ </thead>
4226
+
4227
+ <tbody>
4228
+
4229
+
4230
+ <tr>
4231
+
4232
+ <td class="name"><code>brand</code></td>
4233
+
4234
+
4235
+ <td class="type">
4236
+
4237
+
4238
+ <span class="param-type">string</span>
4239
+
4240
+
4241
+
4242
+
4243
+ </td>
4244
+
4245
+
4246
+
4247
+
4248
+
4249
+ <td class="description last">The brand for which to fetch metadata.</td>
4250
+ </tr>
4251
+
4252
+
4253
+
4254
+ <tr>
4255
+
4256
+ <td class="name"><code>type</code></td>
4257
+
4258
+
4259
+ <td class="type">
4260
+
4261
+
4262
+ <span class="param-type">string</span>
4263
+
4264
+
4265
+
4266
+
4267
+ </td>
4268
+
4269
+
4270
+
4271
+
4272
+
4273
+ <td class="description last">The type for which to fetch metadata.</td>
4274
+ </tr>
4275
+
4276
+
4277
+ </tbody>
4278
+ </table>
4279
+
4280
+
4281
+
4282
+
4283
+
4284
+
4285
+
4286
+
4287
+
4288
+
4289
+
4290
+
4291
+
4292
+
4293
+
4294
+
4295
+ <h5 class="h5-returns">Returns:</h5>
4296
+
4297
+
4298
+
4299
+
4300
+ <dl class="param-type">
4301
+ <dt>
4302
+ Type
4303
+ </dt>
4304
+ <dd>
4305
+
4306
+ <span class="param-type">Promise.&lt;{name, description, type: *, thumbnailUrl}></span>
4307
+
4308
+
4309
+
4310
+ </dd>
4311
+ </dl>
4312
+
4313
+
4314
+
4315
+
4316
+
4317
+
4318
+
4319
+
4320
+
4321
+
4113
4322
  <h4 class="name" id=".fetchMethod"><span class="type-signature type-signature-static">(static) </span>fetchMethod<span class="signature">(brand, slug)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4114
4323
 
4115
4324
 
@@ -4126,7 +4335,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4126
4335
 
4127
4336
  <dt class="tag-source">Source:</dt>
4128
4337
  <dd class="tag-source"><ul class="dummy"><li>
4129
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line671">line 671</a>
4338
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line713">line 713</a>
4130
4339
  </li></ul></dd>
4131
4340
 
4132
4341
 
@@ -4308,7 +4517,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4308
4517
 
4309
4518
  <dt class="tag-source">Source:</dt>
4310
4519
  <dd class="tag-source"><ul class="dummy"><li>
4311
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line709">line 709</a>
4520
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line751">line 751</a>
4312
4521
  </li></ul></dd>
4313
4522
 
4314
4523
 
@@ -4466,7 +4675,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4466
4675
 
4467
4676
  <dt class="tag-source">Source:</dt>
4468
4677
  <dd class="tag-source"><ul class="dummy"><li>
4469
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line763">line 763</a>
4678
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line805">line 805</a>
4470
4679
  </li></ul></dd>
4471
4680
 
4472
4681
 
@@ -4624,7 +4833,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4624
4833
 
4625
4834
  <dt class="tag-source">Source:</dt>
4626
4835
  <dd class="tag-source"><ul class="dummy"><li>
4627
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line730">line 730</a>
4836
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line772">line 772</a>
4628
4837
  </li></ul></dd>
4629
4838
 
4630
4839
 
@@ -4806,7 +5015,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4806
5015
 
4807
5016
  <dt class="tag-source">Source:</dt>
4808
5017
  <dd class="tag-source"><ul class="dummy"><li>
4809
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line747">line 747</a>
5018
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line789">line 789</a>
4810
5019
  </li></ul></dd>
4811
5020
 
4812
5021
 
@@ -4995,7 +5204,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4995
5204
 
4996
5205
  <dt class="tag-source">Source:</dt>
4997
5206
  <dd class="tag-source"><ul class="dummy"><li>
4998
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line646">line 646</a>
5207
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line681">line 681</a>
4999
5208
  </li></ul></dd>
5000
5209
 
5001
5210
 
@@ -5153,7 +5362,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5153
5362
 
5154
5363
  <dt class="tag-source">Source:</dt>
5155
5364
  <dd class="tag-source"><ul class="dummy"><li>
5156
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line255">line 255</a>
5365
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line262">line 262</a>
5157
5366
  </li></ul></dd>
5158
5367
 
5159
5368
 
@@ -5311,7 +5520,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5311
5520
 
5312
5521
  <dt class="tag-source">Source:</dt>
5313
5522
  <dd class="tag-source"><ul class="dummy"><li>
5314
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line799">line 799</a>
5523
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line840">line 840</a>
5315
5524
  </li></ul></dd>
5316
5525
 
5317
5526
 
@@ -5469,7 +5678,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5469
5678
 
5470
5679
  <dt class="tag-source">Source:</dt>
5471
5680
  <dd class="tag-source"><ul class="dummy"><li>
5472
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line935">line 935</a>
5681
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line993">line 993</a>
5473
5682
  </li></ul></dd>
5474
5683
 
5475
5684
 
@@ -5627,7 +5836,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5627
5836
 
5628
5837
  <dt class="tag-source">Source:</dt>
5629
5838
  <dd class="tag-source"><ul class="dummy"><li>
5630
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line999">line 999</a>
5839
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1053">line 1053</a>
5631
5840
  </li></ul></dd>
5632
5841
 
5633
5842
 
@@ -5789,7 +5998,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5789
5998
 
5790
5999
  <dt class="tag-source">Source:</dt>
5791
6000
  <dd class="tag-source"><ul class="dummy"><li>
5792
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line629">line 629</a>
6001
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line664">line 664</a>
5793
6002
  </li></ul></dd>
5794
6003
 
5795
6004
 
@@ -5941,7 +6150,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5941
6150
 
5942
6151
  <dt class="tag-source">Source:</dt>
5943
6152
  <dd class="tag-source"><ul class="dummy"><li>
5944
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line874">line 874</a>
6153
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line926">line 926</a>
5945
6154
  </li></ul></dd>
5946
6155
 
5947
6156
 
@@ -6123,7 +6332,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6123
6332
 
6124
6333
  <dt class="tag-source">Source:</dt>
6125
6334
  <dd class="tag-source"><ul class="dummy"><li>
6126
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line896">line 896</a>
6335
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line948">line 948</a>
6127
6336
  </li></ul></dd>
6128
6337
 
6129
6338
 
@@ -6288,7 +6497,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6288
6497
 
6289
6498
  <dt class="tag-source">Source:</dt>
6290
6499
  <dd class="tag-source"><ul class="dummy"><li>
6291
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line83">line 83</a>
6500
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line90">line 90</a>
6292
6501
  </li></ul></dd>
6293
6502
 
6294
6503
 
@@ -6477,7 +6686,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6477
6686
 
6478
6687
  <dt class="tag-source">Source:</dt>
6479
6688
  <dd class="tag-source"><ul class="dummy"><li>
6480
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1212">line 1212</a>
6689
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1268">line 1268</a>
6481
6690
  </li></ul></dd>
6482
6691
 
6483
6692
 
@@ -6667,7 +6876,7 @@ fetchSanity(query, true)
6667
6876
 
6668
6877
  <dt class="tag-source">Source:</dt>
6669
6878
  <dd class="tag-source"><ul class="dummy"><li>
6670
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line328">line 328</a>
6879
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line352">line 352</a>
6671
6880
  </li></ul></dd>
6672
6881
 
6673
6882
 
@@ -6819,6 +7028,148 @@ fetchSanity(query, true)
6819
7028
 
6820
7029
 
6821
7030
 
7031
+ <h4 class="name" id=".fetchShowsData"><span class="type-signature type-signature-static">(static) </span>fetchShowsData<span class="signature">(brand)</span><span class="type-signature"></span></h4>
7032
+
7033
+
7034
+
7035
+
7036
+
7037
+
7038
+ <dl class="details">
7039
+
7040
+ <dt class="tag-description">Description:</dt>
7041
+ <dd class="tag-description"><ul class="dummy"><li>Fetch shows data for a brand.</li></ul></dd>
7042
+
7043
+
7044
+
7045
+ <dt class="tag-source">Source:</dt>
7046
+ <dd class="tag-source"><ul class="dummy"><li>
7047
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1344">line 1344</a>
7048
+ </li></ul></dd>
7049
+
7050
+
7051
+
7052
+
7053
+
7054
+
7055
+
7056
+
7057
+
7058
+
7059
+
7060
+
7061
+
7062
+
7063
+
7064
+
7065
+
7066
+
7067
+
7068
+
7069
+
7070
+
7071
+
7072
+
7073
+
7074
+
7075
+
7076
+
7077
+
7078
+
7079
+
7080
+ </dl>
7081
+
7082
+
7083
+
7084
+
7085
+
7086
+
7087
+
7088
+
7089
+
7090
+
7091
+
7092
+ <h5 class="h5-examples">Example</h5>
7093
+
7094
+ <pre class="prettyprint"><code>fetchShowsData('drumeo')
7095
+ .then(data => console.log(data))
7096
+ .catch(error => console.error(error));</code></pre>
7097
+
7098
+
7099
+
7100
+
7101
+ <h5 class="h5-parameters">Parameters:</h5>
7102
+
7103
+
7104
+ <table class="params">
7105
+ <thead>
7106
+ <tr>
7107
+
7108
+ <th>Name</th>
7109
+
7110
+
7111
+ <th>Type</th>
7112
+
7113
+
7114
+
7115
+
7116
+
7117
+ <th class="last">Description</th>
7118
+ </tr>
7119
+ </thead>
7120
+
7121
+ <tbody>
7122
+
7123
+
7124
+ <tr>
7125
+
7126
+ <td class="name"><code>brand</code></td>
7127
+
7128
+
7129
+ <td class="type">
7130
+
7131
+ </td>
7132
+
7133
+
7134
+
7135
+
7136
+
7137
+ <td class="description last">The brand for which to fetch shows.</td>
7138
+ </tr>
7139
+
7140
+
7141
+ </tbody>
7142
+ </table>
7143
+
7144
+
7145
+
7146
+
7147
+
7148
+
7149
+
7150
+
7151
+
7152
+
7153
+
7154
+
7155
+
7156
+
7157
+
7158
+
7159
+ <h5 class="h5-returns">Returns:</h5>
7160
+
7161
+
7162
+
7163
+
7164
+
7165
+
7166
+
7167
+
7168
+
7169
+
7170
+
7171
+
7172
+
6822
7173
  <h4 class="name" id=".fetchSongArtistCount"><span class="type-signature type-signature-static">(static) </span>fetchSongArtistCount<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(int|null)>}</span></h4>
6823
7174
 
6824
7175
 
@@ -6835,7 +7186,7 @@ fetchSanity(query, true)
6835
7186
 
6836
7187
  <dt class="tag-source">Source:</dt>
6837
7188
  <dd class="tag-source"><ul class="dummy"><li>
6838
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line66">line 66</a>
7189
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line73">line 73</a>
6839
7190
  </li></ul></dd>
6840
7191
 
6841
7192
 
@@ -6993,7 +7344,7 @@ fetchSanity(query, true)
6993
7344
 
6994
7345
  <dt class="tag-source">Source:</dt>
6995
7346
  <dd class="tag-source"><ul class="dummy"><li>
6996
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line31">line 31</a>
7347
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line34">line 34</a>
6997
7348
  </li></ul></dd>
6998
7349
 
6999
7350
 
@@ -7158,7 +7509,7 @@ fetchSanity(query, true)
7158
7509
 
7159
7510
  <dt class="tag-source">Source:</dt>
7160
7511
  <dd class="tag-source"><ul class="dummy"><li>
7161
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line224">line 224</a>
7512
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line231">line 231</a>
7162
7513
  </li></ul></dd>
7163
7514
 
7164
7515
 
@@ -7316,7 +7667,7 @@ fetchSanity(query, true)
7316
7667
 
7317
7668
  <dt class="tag-source">Source:</dt>
7318
7669
  <dd class="tag-source"><ul class="dummy"><li>
7319
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line195">line 195</a>
7670
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line202">line 202</a>
7320
7671
  </li></ul></dd>
7321
7672
 
7322
7673
 
@@ -7481,7 +7832,7 @@ fetchSanity(query, true)
7481
7832
 
7482
7833
  <dt class="tag-source">Source:</dt>
7483
7834
  <dd class="tag-source"><ul class="dummy"><li>
7484
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line292">line 292</a>
7835
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line308">line 308</a>
7485
7836
  </li></ul></dd>
7486
7837
 
7487
7838
 
@@ -7651,7 +8002,7 @@ It also includes completion status and progress percentage for each workout by f
7651
8002
 
7652
8003
  <dt class="tag-source">Source:</dt>
7653
8004
  <dd class="tag-source"><ul class="dummy"><li>
7654
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line242">line 242</a>
8005
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line249">line 249</a>
7655
8006
  </li></ul></dd>
7656
8007
 
7657
8008
 
@@ -7815,7 +8166,7 @@ It also includes completion status and progress percentage for each workout by f
7815
8166
  <br class="clear">
7816
8167
 
7817
8168
  <footer>
7818
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Sep 19 2024 14:19:19 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
8169
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Sep 20 2024 13:45:33 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7819
8170
  </footer>
7820
8171
 
7821
8172
  <script>prettyPrint();</script>