musora-content-services 1.0.98 → 1.0.100

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.
@@ -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#.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#.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#.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#.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#.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#.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#.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#line389">line 389</a>
103
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line397">line 397</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#line525">line 525</a>
717
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line535">line 535</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#line851">line 851</a>
1093
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line861">line 861</a>
1094
1094
  </li></ul></dd>
1095
1095
 
1096
1096
 
@@ -1794,6 +1794,219 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
1794
1794
 
1795
1795
 
1796
1796
 
1797
+ <h4 class="name" id=".fetchArtistLessons"><span class="type-signature type-signature-static">(static) </span>fetchArtistLessons<span class="signature">(brand, name, contentType)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+ <dl class="details">
1805
+
1806
+ <dt class="tag-description">Description:</dt>
1807
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the artist's lessons.</li></ul></dd>
1808
+
1809
+
1810
+
1811
+ <dt class="tag-source">Source:</dt>
1812
+ <dd class="tag-source"><ul class="dummy"><li>
1813
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1067">line 1067</a>
1814
+ </li></ul></dd>
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+ </dl>
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+ <h5 class="h5-examples">Example</h5>
1859
+
1860
+ <pre class="prettyprint"><code>fetchArtistLessons('10 Years', 'song')
1861
+ .then(lessons => console.log(lessons))
1862
+ .catch(error => console.error(error));</code></pre>
1863
+
1864
+
1865
+
1866
+
1867
+ <h5 class="h5-parameters">Parameters:</h5>
1868
+
1869
+
1870
+ <table class="params">
1871
+ <thead>
1872
+ <tr>
1873
+
1874
+ <th>Name</th>
1875
+
1876
+
1877
+ <th>Type</th>
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+ <th class="last">Description</th>
1884
+ </tr>
1885
+ </thead>
1886
+
1887
+ <tbody>
1888
+
1889
+
1890
+ <tr>
1891
+
1892
+ <td class="name"><code>brand</code></td>
1893
+
1894
+
1895
+ <td class="type">
1896
+
1897
+
1898
+ <span class="param-type">string</span>
1899
+
1900
+
1901
+
1902
+
1903
+ </td>
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+ <td class="description last">The brand for which to fetch lessons.</td>
1910
+ </tr>
1911
+
1912
+
1913
+
1914
+ <tr>
1915
+
1916
+ <td class="name"><code>name</code></td>
1917
+
1918
+
1919
+ <td class="type">
1920
+
1921
+
1922
+ <span class="param-type">string</span>
1923
+
1924
+
1925
+
1926
+
1927
+ </td>
1928
+
1929
+
1930
+
1931
+
1932
+
1933
+ <td class="description last">The name of the artist</td>
1934
+ </tr>
1935
+
1936
+
1937
+
1938
+ <tr>
1939
+
1940
+ <td class="name"><code>contentType</code></td>
1941
+
1942
+
1943
+ <td class="type">
1944
+
1945
+
1946
+ <span class="param-type">string</span>
1947
+
1948
+
1949
+
1950
+
1951
+ </td>
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+ <td class="description last">The type of the lessons we need to get from the artist. If not defined, groq will get lessons from all content types</td>
1958
+ </tr>
1959
+
1960
+
1961
+ </tbody>
1962
+ </table>
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+ <h5 class="h5-returns">Returns:</h5>
1980
+
1981
+
1982
+ <div class="param-desc">
1983
+ - The lessons for the artist and some details about the artist (name and thumbnail).
1984
+ </div>
1985
+
1986
+
1987
+
1988
+ <dl class="param-type">
1989
+ <dt>
1990
+ Type
1991
+ </dt>
1992
+ <dd>
1993
+
1994
+ <span class="param-type">Promise.&lt;(Object|null)></span>
1995
+
1996
+
1997
+
1998
+ </dd>
1999
+ </dl>
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
1797
2010
  <h4 class="name" id=".fetchArtists"><span class="type-signature type-signature-static">(static) </span>fetchArtists<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1798
2011
 
1799
2012
 
@@ -1975,7 +2188,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
1975
2188
 
1976
2189
  <dt class="tag-source">Source:</dt>
1977
2190
  <dd class="tag-source"><ul class="dummy"><li>
1978
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line331">line 331</a>
2191
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line339">line 339</a>
1979
2192
  </li></ul></dd>
1980
2193
 
1981
2194
 
@@ -2140,7 +2353,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2140
2353
 
2141
2354
  <dt class="tag-source">Source:</dt>
2142
2355
  <dd class="tag-source"><ul class="dummy"><li>
2143
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line350">line 350</a>
2356
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line358">line 358</a>
2144
2357
  </li></ul></dd>
2145
2358
 
2146
2359
 
@@ -2349,7 +2562,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
2349
2562
 
2350
2563
  <dt class="tag-source">Source:</dt>
2351
2564
  <dd class="tag-source"><ul class="dummy"><li>
2352
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1020">line 1020</a>
2565
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1030">line 1030</a>
2353
2566
  </li></ul></dd>
2354
2567
 
2355
2568
 
@@ -2515,7 +2728,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2515
2728
 
2516
2729
  <dt class="tag-source">Source:</dt>
2517
2730
  <dd class="tag-source"><ul class="dummy"><li>
2518
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1110">line 1110</a>
2731
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1203">line 1203</a>
2519
2732
  </li></ul></dd>
2520
2733
 
2521
2734
 
@@ -2680,7 +2893,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2680
2893
 
2681
2894
  <dt class="tag-source">Source:</dt>
2682
2895
  <dd class="tag-source"><ul class="dummy"><li>
2683
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line943">line 943</a>
2896
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line953">line 953</a>
2684
2897
  </li></ul></dd>
2685
2898
 
2686
2899
 
@@ -2845,7 +3058,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2845
3058
 
2846
3059
  <dt class="tag-source">Source:</dt>
2847
3060
  <dd class="tag-source"><ul class="dummy"><li>
2848
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line573">line 573</a>
3061
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line583">line 583</a>
2849
3062
  </li></ul></dd>
2850
3063
 
2851
3064
 
@@ -3047,7 +3260,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3047
3260
 
3048
3261
  <dt class="tag-source">Source:</dt>
3049
3262
  <dd class="tag-source"><ul class="dummy"><li>
3050
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line971">line 971</a>
3263
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line981">line 981</a>
3051
3264
  </li></ul></dd>
3052
3265
 
3053
3266
 
@@ -3212,7 +3425,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3212
3425
 
3213
3426
  <dt class="tag-source">Source:</dt>
3214
3427
  <dd class="tag-source"><ul class="dummy"><li>
3215
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1002">line 1002</a>
3428
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1012">line 1012</a>
3216
3429
  </li></ul></dd>
3217
3430
 
3218
3431
 
@@ -3377,7 +3590,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3377
3590
 
3378
3591
  <dt class="tag-source">Source:</dt>
3379
3592
  <dd class="tag-source"><ul class="dummy"><li>
3380
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line619">line 619</a>
3593
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line629">line 629</a>
3381
3594
  </li></ul></dd>
3382
3595
 
3383
3596
 
@@ -3519,6 +3732,219 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3519
3732
 
3520
3733
 
3521
3734
 
3735
+ <h4 class="name" id=".fetchGenreLessons"><span class="type-signature type-signature-static">(static) </span>fetchGenreLessons<span class="signature">(brand, name, contentType)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3736
+
3737
+
3738
+
3739
+
3740
+
3741
+
3742
+ <dl class="details">
3743
+
3744
+ <dt class="tag-description">Description:</dt>
3745
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the genre's lessons.</li></ul></dd>
3746
+
3747
+
3748
+
3749
+ <dt class="tag-source">Source:</dt>
3750
+ <dd class="tag-source"><ul class="dummy"><li>
3751
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1108">line 1108</a>
3752
+ </li></ul></dd>
3753
+
3754
+
3755
+
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+
3774
+
3775
+
3776
+
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+
3783
+
3784
+ </dl>
3785
+
3786
+
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+ <h5 class="h5-examples">Example</h5>
3797
+
3798
+ <pre class="prettyprint"><code>fetchGenreLessons('Blues', 'song')
3799
+ .then(lessons => console.log(lessons))
3800
+ .catch(error => console.error(error));</code></pre>
3801
+
3802
+
3803
+
3804
+
3805
+ <h5 class="h5-parameters">Parameters:</h5>
3806
+
3807
+
3808
+ <table class="params">
3809
+ <thead>
3810
+ <tr>
3811
+
3812
+ <th>Name</th>
3813
+
3814
+
3815
+ <th>Type</th>
3816
+
3817
+
3818
+
3819
+
3820
+
3821
+ <th class="last">Description</th>
3822
+ </tr>
3823
+ </thead>
3824
+
3825
+ <tbody>
3826
+
3827
+
3828
+ <tr>
3829
+
3830
+ <td class="name"><code>brand</code></td>
3831
+
3832
+
3833
+ <td class="type">
3834
+
3835
+
3836
+ <span class="param-type">string</span>
3837
+
3838
+
3839
+
3840
+
3841
+ </td>
3842
+
3843
+
3844
+
3845
+
3846
+
3847
+ <td class="description last">The brand for which to fetch lessons.</td>
3848
+ </tr>
3849
+
3850
+
3851
+
3852
+ <tr>
3853
+
3854
+ <td class="name"><code>name</code></td>
3855
+
3856
+
3857
+ <td class="type">
3858
+
3859
+
3860
+ <span class="param-type">string</span>
3861
+
3862
+
3863
+
3864
+
3865
+ </td>
3866
+
3867
+
3868
+
3869
+
3870
+
3871
+ <td class="description last">The name of the genre</td>
3872
+ </tr>
3873
+
3874
+
3875
+
3876
+ <tr>
3877
+
3878
+ <td class="name"><code>contentType</code></td>
3879
+
3880
+
3881
+ <td class="type">
3882
+
3883
+
3884
+ <span class="param-type">string</span>
3885
+
3886
+
3887
+
3888
+
3889
+ </td>
3890
+
3891
+
3892
+
3893
+
3894
+
3895
+ <td class="description last">The type of the lessons we need to get from the genre. If not defined, groq will get lessons from all content types</td>
3896
+ </tr>
3897
+
3898
+
3899
+ </tbody>
3900
+ </table>
3901
+
3902
+
3903
+
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+
3915
+
3916
+
3917
+ <h5 class="h5-returns">Returns:</h5>
3918
+
3919
+
3920
+ <div class="param-desc">
3921
+ - The lessons for the genre and some details about the genre (name and thumbnail).
3922
+ </div>
3923
+
3924
+
3925
+
3926
+ <dl class="param-type">
3927
+ <dt>
3928
+ Type
3929
+ </dt>
3930
+ <dd>
3931
+
3932
+ <span class="param-type">Promise.&lt;(Object|null)></span>
3933
+
3934
+
3935
+
3936
+ </dd>
3937
+ </dl>
3938
+
3939
+
3940
+
3941
+
3942
+
3943
+
3944
+
3945
+
3946
+
3947
+
3522
3948
  <h4 class="name" id=".fetchLessonContent"><span class="type-signature type-signature-static">(static) </span>fetchLessonContent<span class="signature">(railContentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3523
3949
 
3524
3950
 
@@ -3535,7 +3961,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3535
3961
 
3536
3962
  <dt class="tag-source">Source:</dt>
3537
3963
  <dd class="tag-source"><ul class="dummy"><li>
3538
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line785">line 785</a>
3964
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line795">line 795</a>
3539
3965
  </li></ul></dd>
3540
3966
 
3541
3967
 
@@ -3700,7 +4126,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3700
4126
 
3701
4127
  <dt class="tag-source">Source:</dt>
3702
4128
  <dd class="tag-source"><ul class="dummy"><li>
3703
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line632">line 632</a>
4129
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line642">line 642</a>
3704
4130
  </li></ul></dd>
3705
4131
 
3706
4132
 
@@ -3882,7 +4308,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3882
4308
 
3883
4309
  <dt class="tag-source">Source:</dt>
3884
4310
  <dd class="tag-source"><ul class="dummy"><li>
3885
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line668">line 668</a>
4311
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line678">line 678</a>
3886
4312
  </li></ul></dd>
3887
4313
 
3888
4314
 
@@ -4040,7 +4466,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4040
4466
 
4041
4467
  <dt class="tag-source">Source:</dt>
4042
4468
  <dd class="tag-source"><ul class="dummy"><li>
4043
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line723">line 723</a>
4469
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line733">line 733</a>
4044
4470
  </li></ul></dd>
4045
4471
 
4046
4472
 
@@ -4198,7 +4624,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4198
4624
 
4199
4625
  <dt class="tag-source">Source:</dt>
4200
4626
  <dd class="tag-source"><ul class="dummy"><li>
4201
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line689">line 689</a>
4627
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line699">line 699</a>
4202
4628
  </li></ul></dd>
4203
4629
 
4204
4630
 
@@ -4380,7 +4806,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4380
4806
 
4381
4807
  <dt class="tag-source">Source:</dt>
4382
4808
  <dd class="tag-source"><ul class="dummy"><li>
4383
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line707">line 707</a>
4809
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line717">line 717</a>
4384
4810
  </li></ul></dd>
4385
4811
 
4386
4812
 
@@ -4569,7 +4995,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4569
4995
 
4570
4996
  <dt class="tag-source">Source:</dt>
4571
4997
  <dd class="tag-source"><ul class="dummy"><li>
4572
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line607">line 607</a>
4998
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line617">line 617</a>
4573
4999
  </li></ul></dd>
4574
5000
 
4575
5001
 
@@ -4885,7 +5311,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4885
5311
 
4886
5312
  <dt class="tag-source">Source:</dt>
4887
5313
  <dd class="tag-source"><ul class="dummy"><li>
4888
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line759">line 759</a>
5314
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line769">line 769</a>
4889
5315
  </li></ul></dd>
4890
5316
 
4891
5317
 
@@ -5043,7 +5469,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5043
5469
 
5044
5470
  <dt class="tag-source">Source:</dt>
5045
5471
  <dd class="tag-source"><ul class="dummy"><li>
5046
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line865">line 865</a>
5472
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line875">line 875</a>
5047
5473
  </li></ul></dd>
5048
5474
 
5049
5475
 
@@ -5201,7 +5627,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5201
5627
 
5202
5628
  <dt class="tag-source">Source:</dt>
5203
5629
  <dd class="tag-source"><ul class="dummy"><li>
5204
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line929">line 929</a>
5630
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line939">line 939</a>
5205
5631
  </li></ul></dd>
5206
5632
 
5207
5633
 
@@ -5363,7 +5789,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5363
5789
 
5364
5790
  <dt class="tag-source">Source:</dt>
5365
5791
  <dd class="tag-source"><ul class="dummy"><li>
5366
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line590">line 590</a>
5792
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line600">line 600</a>
5367
5793
  </li></ul></dd>
5368
5794
 
5369
5795
 
@@ -5515,7 +5941,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5515
5941
 
5516
5942
  <dt class="tag-source">Source:</dt>
5517
5943
  <dd class="tag-source"><ul class="dummy"><li>
5518
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line828">line 828</a>
5944
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line838">line 838</a>
5519
5945
  </li></ul></dd>
5520
5946
 
5521
5947
 
@@ -5886,7 +6312,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5886
6312
 
5887
6313
  <dt class="tag-source">Source:</dt>
5888
6314
  <dd class="tag-source"><ul class="dummy"><li>
5889
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1059">line 1059</a>
6315
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1152">line 1152</a>
5890
6316
  </li></ul></dd>
5891
6317
 
5892
6318
 
@@ -6722,7 +7148,7 @@ fetchSanity(query, true)
6722
7148
 
6723
7149
  <dt class="tag-source">Source:</dt>
6724
7150
  <dd class="tag-source"><ul class="dummy"><li>
6725
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line293">line 293</a>
7151
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line299">line 299</a>
6726
7152
  </li></ul></dd>
6727
7153
 
6728
7154
 
@@ -6769,7 +7195,10 @@ fetchSanity(query, true)
6769
7195
 
6770
7196
  <h5 class="h5-examples">Example</h5>
6771
7197
 
6772
- <pre class="prettyprint"><code>fetchUpcomingEvents('drumeo')
7198
+ <pre class="prettyprint"><code>fetchUpcomingEvents('drumeo', {
7199
+ page: 2,
7200
+ limit: 20,
7201
+ })
6773
7202
  .then(events => console.log(events))
6774
7203
  .catch(error => console.error(error));</code></pre>
6775
7204
 
@@ -7053,7 +7482,7 @@ It also includes completion status and progress percentage for each workout by f
7053
7482
  <br class="clear">
7054
7483
 
7055
7484
  <footer>
7056
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Wed Sep 11 2024 20:19:27 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7485
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Sep 12 2024 18:08:47 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7057
7486
  </footer>
7058
7487
 
7059
7488
  <script>prettyPrint();</script>