musora-content-services 1.0.59 → 1.0.62
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 +6 -0
- package/docs/config.js.html +2 -2
- package/docs/index.html +2 -2
- package/docs/module-Config.html +2 -2
- package/docs/module-Railcontent-Services.html +2 -2
- package/docs/module-Sanity-Services.html +851 -97
- package/docs/railcontent.js.html +2 -2
- package/docs/sanity.js.html +189 -150
- package/package.json +1 -1
- package/src/contentTypeConfig.js +71 -2
- package/src/index.d.ts +6 -2
- package/src/index.js +10 -2
- package/src/services/sanity.js +181 -141
- package/test/sanityQueryService.test.js +78 -13
|
@@ -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#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCurrentSongComplete">fetchCurrentSongComplete</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</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#.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#.fetchChildren">fetchChildren</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#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.
|
|
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#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCurrentSongComplete">fetchCurrentSongComplete</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</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#.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#.fetchCatalogMetadata">fetchCatalogMetadata</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#.fetchCourseOverview">fetchCourseOverview</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#.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#
|
|
103
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line384">line 384</a>
|
|
104
104
|
</li></ul></dd>
|
|
105
105
|
|
|
106
106
|
|
|
@@ -593,7 +593,7 @@ The filter options are dynamically generated based on the provided filters, styl
|
|
|
593
593
|
|
|
594
594
|
<dt class="tag-source">Source:</dt>
|
|
595
595
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
596
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
596
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line517">line 517</a>
|
|
597
597
|
</li></ul></dd>
|
|
598
598
|
|
|
599
599
|
|
|
@@ -935,7 +935,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
935
935
|
|
|
936
936
|
<dt class="tag-source">Source:</dt>
|
|
937
937
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
938
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
938
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line165">line 165</a>
|
|
939
939
|
</li></ul></dd>
|
|
940
940
|
|
|
941
941
|
|
|
@@ -1401,7 +1401,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1401
1401
|
|
|
1402
1402
|
<dt class="tag-source">Source:</dt>
|
|
1403
1403
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1404
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
1404
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line41">line 41</a>
|
|
1405
1405
|
</li></ul></dd>
|
|
1406
1406
|
|
|
1407
1407
|
|
|
@@ -1566,7 +1566,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1566
1566
|
|
|
1567
1567
|
<dt class="tag-source">Source:</dt>
|
|
1568
1568
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1569
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
1569
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line332">line 332</a>
|
|
1570
1570
|
</li></ul></dd>
|
|
1571
1571
|
|
|
1572
1572
|
|
|
@@ -1715,7 +1715,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1715
1715
|
|
|
1716
1716
|
|
|
1717
1717
|
|
|
1718
|
-
<h4 class="name" id=".fetchByRailContentIds"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentIds<span class="signature">(ids)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
1718
|
+
<h4 class="name" id=".fetchByRailContentIds"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentIds<span class="signature">(ids, contentType<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
1719
1719
|
|
|
1720
1720
|
|
|
1721
1721
|
|
|
@@ -1731,7 +1731,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1731
1731
|
|
|
1732
1732
|
<dt class="tag-source">Source:</dt>
|
|
1733
1733
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1734
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
1734
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line351">line 351</a>
|
|
1735
1735
|
</li></ul></dd>
|
|
1736
1736
|
|
|
1737
1737
|
|
|
@@ -1798,6 +1798,8 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1798
1798
|
<th>Type</th>
|
|
1799
1799
|
|
|
1800
1800
|
|
|
1801
|
+
<th>Attributes</th>
|
|
1802
|
+
|
|
1801
1803
|
|
|
1802
1804
|
|
|
1803
1805
|
|
|
@@ -1824,6 +1826,14 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1824
1826
|
</td>
|
|
1825
1827
|
|
|
1826
1828
|
|
|
1829
|
+
<td class="attributes">
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
</td>
|
|
1836
|
+
|
|
1827
1837
|
|
|
1828
1838
|
|
|
1829
1839
|
|
|
@@ -1831,6 +1841,40 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1831
1841
|
</tr>
|
|
1832
1842
|
|
|
1833
1843
|
|
|
1844
|
+
|
|
1845
|
+
<tr>
|
|
1846
|
+
|
|
1847
|
+
<td class="name"><code>contentType</code></td>
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
<td class="type">
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
<span class="param-type">string</span>
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
</td>
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
<td class="attributes">
|
|
1862
|
+
|
|
1863
|
+
<optional><br>
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
</td>
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
<td class="description last">The content type the IDs to add needed fields to the response.</td>
|
|
1875
|
+
</tr>
|
|
1876
|
+
|
|
1877
|
+
|
|
1834
1878
|
</tbody>
|
|
1835
1879
|
</table>
|
|
1836
1880
|
|
|
@@ -1880,7 +1924,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1880
1924
|
|
|
1881
1925
|
|
|
1882
1926
|
|
|
1883
|
-
<h4 class="name" id=".
|
|
1927
|
+
<h4 class="name" id=".fetchCatalogMetadata"><span class="type-signature type-signature-static">(static) </span>fetchCatalogMetadata<span class="signature">(contentType)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
1884
1928
|
|
|
1885
1929
|
|
|
1886
1930
|
|
|
@@ -1890,13 +1934,14 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1890
1934
|
<dl class="details">
|
|
1891
1935
|
|
|
1892
1936
|
<dt class="tag-description">Description:</dt>
|
|
1893
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
1937
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch CatalogueMetadata from Sanity. This information may be duplicated in the contentTypeConfig.js.
|
|
1938
|
+
It's an ongoing discussion (Aug 2024), but it's been included here if necessary</li></ul></dd>
|
|
1894
1939
|
|
|
1895
1940
|
|
|
1896
1941
|
|
|
1897
1942
|
<dt class="tag-source">Source:</dt>
|
|
1898
1943
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1899
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
1944
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line921">line 921</a>
|
|
1900
1945
|
</li></ul></dd>
|
|
1901
1946
|
|
|
1902
1947
|
|
|
@@ -1941,6 +1986,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1941
1986
|
|
|
1942
1987
|
|
|
1943
1988
|
|
|
1989
|
+
<h5 class="h5-examples">Example</h5>
|
|
1990
|
+
|
|
1991
|
+
<pre class="prettyprint"><code>fetchCatalogMetadata('song')
|
|
1992
|
+
.then(data => console.log(data))
|
|
1993
|
+
.catch(error => console.error(error));</code></pre>
|
|
1994
|
+
|
|
1995
|
+
|
|
1944
1996
|
|
|
1945
1997
|
|
|
1946
1998
|
<h5 class="h5-parameters">Parameters:</h5>
|
|
@@ -1968,7 +2020,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1968
2020
|
|
|
1969
2021
|
<tr>
|
|
1970
2022
|
|
|
1971
|
-
<td class="name"><code>
|
|
2023
|
+
<td class="name"><code>contentType</code></td>
|
|
1972
2024
|
|
|
1973
2025
|
|
|
1974
2026
|
<td class="type">
|
|
@@ -1985,7 +2037,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
1985
2037
|
|
|
1986
2038
|
|
|
1987
2039
|
|
|
1988
|
-
<td class="description last">
|
|
2040
|
+
<td class="description last">name of the contentype to pull</td>
|
|
1989
2041
|
</tr>
|
|
1990
2042
|
|
|
1991
2043
|
|
|
@@ -2011,7 +2063,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2011
2063
|
|
|
2012
2064
|
|
|
2013
2065
|
<div class="param-desc">
|
|
2014
|
-
-
|
|
2066
|
+
- A promise that resolves to the fetched data or null if an error occurs or no results are found.
|
|
2015
2067
|
</div>
|
|
2016
2068
|
|
|
2017
2069
|
|
|
@@ -2022,7 +2074,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2022
2074
|
</dt>
|
|
2023
2075
|
<dd>
|
|
2024
2076
|
|
|
2025
|
-
<span class="param-type">Promise.<(
|
|
2077
|
+
<span class="param-type">Promise.<(Object|null)></span>
|
|
2026
2078
|
|
|
2027
2079
|
|
|
2028
2080
|
|
|
@@ -2038,7 +2090,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2038
2090
|
|
|
2039
2091
|
|
|
2040
2092
|
|
|
2041
|
-
<h4 class="name" id=".
|
|
2093
|
+
<h4 class="name" id=".fetchChildren"><span class="type-signature type-signature-static">(static) </span>fetchChildren<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
2042
2094
|
|
|
2043
2095
|
|
|
2044
2096
|
|
|
@@ -2048,13 +2100,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2048
2100
|
<dl class="details">
|
|
2049
2101
|
|
|
2050
2102
|
<dt class="tag-description">Description:</dt>
|
|
2051
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
2103
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch children content by Railcontent ID.</li></ul></dd>
|
|
2052
2104
|
|
|
2053
2105
|
|
|
2054
2106
|
|
|
2055
2107
|
<dt class="tag-source">Source:</dt>
|
|
2056
2108
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2057
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2109
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line567">line 567</a>
|
|
2058
2110
|
</li></ul></dd>
|
|
2059
2111
|
|
|
2060
2112
|
|
|
@@ -2099,13 +2151,6 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2099
2151
|
|
|
2100
2152
|
|
|
2101
2153
|
|
|
2102
|
-
<h5 class="h5-examples">Example</h5>
|
|
2103
|
-
|
|
2104
|
-
<pre class="prettyprint"><code>fetchCourseOverview('course123')
|
|
2105
|
-
.then(course => console.log(course))
|
|
2106
|
-
.catch(error => console.error(error));</code></pre>
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
2154
|
|
|
2110
2155
|
|
|
2111
2156
|
<h5 class="h5-parameters">Parameters:</h5>
|
|
@@ -2133,7 +2178,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2133
2178
|
|
|
2134
2179
|
<tr>
|
|
2135
2180
|
|
|
2136
|
-
<td class="name"><code>
|
|
2181
|
+
<td class="name"><code>railcontentId</code></td>
|
|
2137
2182
|
|
|
2138
2183
|
|
|
2139
2184
|
<td class="type">
|
|
@@ -2150,7 +2195,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2150
2195
|
|
|
2151
2196
|
|
|
2152
2197
|
|
|
2153
|
-
<td class="description last">The Railcontent ID of the
|
|
2198
|
+
<td class="description last">The Railcontent ID of the parent content.</td>
|
|
2154
2199
|
</tr>
|
|
2155
2200
|
|
|
2156
2201
|
|
|
@@ -2176,7 +2221,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2176
2221
|
|
|
2177
2222
|
|
|
2178
2223
|
<div class="param-desc">
|
|
2179
|
-
- The
|
|
2224
|
+
- The fetched children content data or [] if not found.
|
|
2180
2225
|
</div>
|
|
2181
2226
|
|
|
2182
2227
|
|
|
@@ -2187,7 +2232,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2187
2232
|
</dt>
|
|
2188
2233
|
<dd>
|
|
2189
2234
|
|
|
2190
|
-
<span class="param-type">Promise.<(Object
|
|
2235
|
+
<span class="param-type">Promise.<(Array.<Object>|null)></span>
|
|
2191
2236
|
|
|
2192
2237
|
|
|
2193
2238
|
|
|
@@ -2203,7 +2248,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2203
2248
|
|
|
2204
2249
|
|
|
2205
2250
|
|
|
2206
|
-
<h4 class="name" id=".
|
|
2251
|
+
<h4 class="name" id=".fetchCourseOverview"><span class="type-signature type-signature-static">(static) </span>fetchCourseOverview<span class="signature">(id)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
2207
2252
|
|
|
2208
2253
|
|
|
2209
2254
|
|
|
@@ -2213,13 +2258,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2213
2258
|
<dl class="details">
|
|
2214
2259
|
|
|
2215
2260
|
<dt class="tag-description">Description:</dt>
|
|
2216
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch the
|
|
2261
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the Course Overview screen.</li></ul></dd>
|
|
2217
2262
|
|
|
2218
2263
|
|
|
2219
2264
|
|
|
2220
2265
|
<dt class="tag-source">Source:</dt>
|
|
2221
2266
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2222
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2267
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line829">line 829</a>
|
|
2223
2268
|
</li></ul></dd>
|
|
2224
2269
|
|
|
2225
2270
|
|
|
@@ -2266,8 +2311,8 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2266
2311
|
|
|
2267
2312
|
<h5 class="h5-examples">Example</h5>
|
|
2268
2313
|
|
|
2269
|
-
<pre class="prettyprint"><code>
|
|
2270
|
-
.then(
|
|
2314
|
+
<pre class="prettyprint"><code>fetchCourseOverview('course123')
|
|
2315
|
+
.then(course => console.log(course))
|
|
2271
2316
|
.catch(error => console.error(error));</code></pre>
|
|
2272
2317
|
|
|
2273
2318
|
|
|
@@ -2298,7 +2343,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2298
2343
|
|
|
2299
2344
|
<tr>
|
|
2300
2345
|
|
|
2301
|
-
<td class="name"><code>
|
|
2346
|
+
<td class="name"><code>id</code></td>
|
|
2302
2347
|
|
|
2303
2348
|
|
|
2304
2349
|
<td class="type">
|
|
@@ -2315,7 +2360,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2315
2360
|
|
|
2316
2361
|
|
|
2317
2362
|
|
|
2318
|
-
<td class="description last">The Railcontent ID of the
|
|
2363
|
+
<td class="description last">The Railcontent ID of the course</td>
|
|
2319
2364
|
</tr>
|
|
2320
2365
|
|
|
2321
2366
|
|
|
@@ -2341,7 +2386,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2341
2386
|
|
|
2342
2387
|
|
|
2343
2388
|
<div class="param-desc">
|
|
2344
|
-
- The
|
|
2389
|
+
- The course information and lessons or null if not found.
|
|
2345
2390
|
</div>
|
|
2346
2391
|
|
|
2347
2392
|
|
|
@@ -2368,7 +2413,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2368
2413
|
|
|
2369
2414
|
|
|
2370
2415
|
|
|
2371
|
-
<h4 class="name" id=".
|
|
2416
|
+
<h4 class="name" id=".fetchLessonContent"><span class="type-signature type-signature-static">(static) </span>fetchLessonContent<span class="signature">(railContentId)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
2372
2417
|
|
|
2373
2418
|
|
|
2374
2419
|
|
|
@@ -2378,13 +2423,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2378
2423
|
<dl class="details">
|
|
2379
2424
|
|
|
2380
2425
|
<dt class="tag-description">Description:</dt>
|
|
2381
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
2426
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the page data for a specific lesson by Railcontent ID.</li></ul></dd>
|
|
2382
2427
|
|
|
2383
2428
|
|
|
2384
2429
|
|
|
2385
2430
|
<dt class="tag-source">Source:</dt>
|
|
2386
2431
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2387
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2432
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line742">line 742</a>
|
|
2388
2433
|
</li></ul></dd>
|
|
2389
2434
|
|
|
2390
2435
|
|
|
@@ -2429,6 +2474,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2429
2474
|
|
|
2430
2475
|
|
|
2431
2476
|
|
|
2477
|
+
<h5 class="h5-examples">Example</h5>
|
|
2478
|
+
|
|
2479
|
+
<pre class="prettyprint"><code>fetchLessonContent('lesson123')
|
|
2480
|
+
.then(data => console.log(data))
|
|
2481
|
+
.catch(error => console.error(error));</code></pre>
|
|
2482
|
+
|
|
2483
|
+
|
|
2432
2484
|
|
|
2433
2485
|
|
|
2434
2486
|
<h5 class="h5-parameters">Parameters:</h5>
|
|
@@ -2456,7 +2508,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2456
2508
|
|
|
2457
2509
|
<tr>
|
|
2458
2510
|
|
|
2459
|
-
<td class="name"><code>
|
|
2511
|
+
<td class="name"><code>railContentId</code></td>
|
|
2460
2512
|
|
|
2461
2513
|
|
|
2462
2514
|
<td class="type">
|
|
@@ -2473,7 +2525,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2473
2525
|
|
|
2474
2526
|
|
|
2475
2527
|
|
|
2476
|
-
<td class="description last">The Railcontent ID of the
|
|
2528
|
+
<td class="description last">The Railcontent ID of the current lesson.</td>
|
|
2477
2529
|
</tr>
|
|
2478
2530
|
|
|
2479
2531
|
|
|
@@ -2499,7 +2551,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2499
2551
|
|
|
2500
2552
|
|
|
2501
2553
|
<div class="param-desc">
|
|
2502
|
-
- The fetched
|
|
2554
|
+
- The fetched page data or null if found.
|
|
2503
2555
|
</div>
|
|
2504
2556
|
|
|
2505
2557
|
|
|
@@ -2510,7 +2562,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2510
2562
|
</dt>
|
|
2511
2563
|
<dd>
|
|
2512
2564
|
|
|
2513
|
-
<span class="param-type">Promise.<(
|
|
2565
|
+
<span class="param-type">Promise.<(Object|null)></span>
|
|
2514
2566
|
|
|
2515
2567
|
|
|
2516
2568
|
|
|
@@ -2526,7 +2578,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2526
2578
|
|
|
2527
2579
|
|
|
2528
2580
|
|
|
2529
|
-
<h4 class="name" id=".
|
|
2581
|
+
<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"> → {Promise.<(Object|null)>}</span></h4>
|
|
2530
2582
|
|
|
2531
2583
|
|
|
2532
2584
|
|
|
@@ -2536,13 +2588,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2536
2588
|
<dl class="details">
|
|
2537
2589
|
|
|
2538
2590
|
<dt class="tag-description">Description:</dt>
|
|
2539
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch the
|
|
2591
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the Method (learning-paths) for a specific brand.</li></ul></dd>
|
|
2540
2592
|
|
|
2541
2593
|
|
|
2542
2594
|
|
|
2543
2595
|
<dt class="tag-source">Source:</dt>
|
|
2544
2596
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2545
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2597
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line615">line 615</a>
|
|
2546
2598
|
</li></ul></dd>
|
|
2547
2599
|
|
|
2548
2600
|
|
|
@@ -2614,7 +2666,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2614
2666
|
|
|
2615
2667
|
<tr>
|
|
2616
2668
|
|
|
2617
|
-
<td class="name"><code>
|
|
2669
|
+
<td class="name"><code>brand</code></td>
|
|
2618
2670
|
|
|
2619
2671
|
|
|
2620
2672
|
<td class="type">
|
|
@@ -2631,7 +2683,31 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2631
2683
|
|
|
2632
2684
|
|
|
2633
2685
|
|
|
2634
|
-
<td class="description last">The
|
|
2686
|
+
<td class="description last">The brand for which to fetch methods.</td>
|
|
2687
|
+
</tr>
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
|
|
2691
|
+
<tr>
|
|
2692
|
+
|
|
2693
|
+
<td class="name"><code>slug</code></td>
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
<td class="type">
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
<span class="param-type">string</span>
|
|
2700
|
+
|
|
2701
|
+
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
</td>
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
<td class="description last">The slug of the method.</td>
|
|
2635
2711
|
</tr>
|
|
2636
2712
|
|
|
2637
2713
|
|
|
@@ -2657,7 +2733,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2657
2733
|
|
|
2658
2734
|
|
|
2659
2735
|
<div class="param-desc">
|
|
2660
|
-
- The fetched
|
|
2736
|
+
- The fetched methods data or null if not found.
|
|
2661
2737
|
</div>
|
|
2662
2738
|
|
|
2663
2739
|
|
|
@@ -2684,7 +2760,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2684
2760
|
|
|
2685
2761
|
|
|
2686
2762
|
|
|
2687
|
-
<h4 class="name" id=".
|
|
2763
|
+
<h4 class="name" id=".fetchMethodChildrenIds"><span class="type-signature type-signature-static">(static) </span>fetchMethodChildrenIds<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
2688
2764
|
|
|
2689
2765
|
|
|
2690
2766
|
|
|
@@ -2694,13 +2770,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2694
2770
|
<dl class="details">
|
|
2695
2771
|
|
|
2696
2772
|
<dt class="tag-description">Description:</dt>
|
|
2697
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
2773
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch all children of a specific method by Railcontent ID.</li></ul></dd>
|
|
2698
2774
|
|
|
2699
2775
|
|
|
2700
2776
|
|
|
2701
2777
|
<dt class="tag-source">Source:</dt>
|
|
2702
2778
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2703
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2779
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line680">line 680</a>
|
|
2704
2780
|
</li></ul></dd>
|
|
2705
2781
|
|
|
2706
2782
|
|
|
@@ -2772,7 +2848,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2772
2848
|
|
|
2773
2849
|
<tr>
|
|
2774
2850
|
|
|
2775
|
-
<td class="name"><code>
|
|
2851
|
+
<td class="name"><code>railcontentId</code></td>
|
|
2776
2852
|
|
|
2777
2853
|
|
|
2778
2854
|
<td class="type">
|
|
@@ -2789,7 +2865,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2789
2865
|
|
|
2790
2866
|
|
|
2791
2867
|
|
|
2792
|
-
<td class="description last">The
|
|
2868
|
+
<td class="description last">The Railcontent ID of the method.</td>
|
|
2793
2869
|
</tr>
|
|
2794
2870
|
|
|
2795
2871
|
|
|
@@ -2815,7 +2891,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2815
2891
|
|
|
2816
2892
|
|
|
2817
2893
|
<div class="param-desc">
|
|
2818
|
-
- The fetched
|
|
2894
|
+
- The fetched children data or null if not found.
|
|
2819
2895
|
</div>
|
|
2820
2896
|
|
|
2821
2897
|
|
|
@@ -2826,7 +2902,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2826
2902
|
</dt>
|
|
2827
2903
|
<dd>
|
|
2828
2904
|
|
|
2829
|
-
<span class="param-type">Promise.<(Object
|
|
2905
|
+
<span class="param-type">Promise.<(Array.<Object>|null)></span>
|
|
2830
2906
|
|
|
2831
2907
|
|
|
2832
2908
|
|
|
@@ -2842,7 +2918,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2842
2918
|
|
|
2843
2919
|
|
|
2844
2920
|
|
|
2845
|
-
<h4 class="name" id=".
|
|
2921
|
+
<h4 class="name" id=".fetchMethodNextLesson"><span class="type-signature type-signature-static">(static) </span>fetchMethodNextLesson<span class="signature">(railcontentId, methodId)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
2846
2922
|
|
|
2847
2923
|
|
|
2848
2924
|
|
|
@@ -2852,13 +2928,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2852
2928
|
<dl class="details">
|
|
2853
2929
|
|
|
2854
2930
|
<dt class="tag-description">Description:</dt>
|
|
2855
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch the
|
|
2931
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the next lesson for a specific method by Railcontent ID.</li></ul></dd>
|
|
2856
2932
|
|
|
2857
2933
|
|
|
2858
2934
|
|
|
2859
2935
|
<dt class="tag-source">Source:</dt>
|
|
2860
2936
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2861
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
2937
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line646">line 646</a>
|
|
2862
2938
|
</li></ul></dd>
|
|
2863
2939
|
|
|
2864
2940
|
|
|
@@ -2930,7 +3006,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2930
3006
|
|
|
2931
3007
|
<tr>
|
|
2932
3008
|
|
|
2933
|
-
<td class="name"><code>
|
|
3009
|
+
<td class="name"><code>railcontentId</code></td>
|
|
2934
3010
|
|
|
2935
3011
|
|
|
2936
3012
|
<td class="type">
|
|
@@ -2947,7 +3023,31 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2947
3023
|
|
|
2948
3024
|
|
|
2949
3025
|
|
|
2950
|
-
<td class="description last">The
|
|
3026
|
+
<td class="description last">The Railcontent ID of the current lesson.</td>
|
|
3027
|
+
</tr>
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
<tr>
|
|
3032
|
+
|
|
3033
|
+
<td class="name"><code>methodId</code></td>
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
<td class="type">
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
<span class="param-type">string</span>
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
</td>
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
<td class="description last">The RailcontentID of the method</td>
|
|
2951
3051
|
</tr>
|
|
2952
3052
|
|
|
2953
3053
|
|
|
@@ -2973,7 +3073,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
2973
3073
|
|
|
2974
3074
|
|
|
2975
3075
|
<div class="param-desc">
|
|
2976
|
-
- The fetched
|
|
3076
|
+
- The fetched next lesson data or null if not found.
|
|
2977
3077
|
</div>
|
|
2978
3078
|
|
|
2979
3079
|
|
|
@@ -3000,7 +3100,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3000
3100
|
|
|
3001
3101
|
|
|
3002
3102
|
|
|
3003
|
-
<h4 class="name" id=".
|
|
3103
|
+
<h4 class="name" id=".fetchMethodPreviousNextLesson"><span class="type-signature type-signature-static">(static) </span>fetchMethodPreviousNextLesson<span class="signature">(railcontentId, methodId)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
3004
3104
|
|
|
3005
3105
|
|
|
3006
3106
|
|
|
@@ -3010,13 +3110,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3010
3110
|
<dl class="details">
|
|
3011
3111
|
|
|
3012
3112
|
<dt class="tag-description">Description:</dt>
|
|
3013
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch the next
|
|
3113
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the next lesson for a specific method by Railcontent ID.</li></ul></dd>
|
|
3014
3114
|
|
|
3015
3115
|
|
|
3016
3116
|
|
|
3017
3117
|
<dt class="tag-source">Source:</dt>
|
|
3018
3118
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3019
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
3119
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line664">line 664</a>
|
|
3020
3120
|
</li></ul></dd>
|
|
3021
3121
|
|
|
3022
3122
|
|
|
@@ -3061,6 +3161,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3061
3161
|
|
|
3062
3162
|
|
|
3063
3163
|
|
|
3164
|
+
<h5 class="h5-examples">Example</h5>
|
|
3165
|
+
|
|
3166
|
+
<pre class="prettyprint"><code>fetchMethodPreviousNextLesson(241284, 241247)
|
|
3167
|
+
.then(data => { console.log('nextLesson', data.nextLesson); console.log('prevlesson', data.prevLesson);})
|
|
3168
|
+
.catch(error => console.error(error));</code></pre>
|
|
3169
|
+
|
|
3170
|
+
|
|
3064
3171
|
|
|
3065
3172
|
|
|
3066
3173
|
<h5 class="h5-parameters">Parameters:</h5>
|
|
@@ -3109,6 +3216,30 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3109
3216
|
</tr>
|
|
3110
3217
|
|
|
3111
3218
|
|
|
3219
|
+
|
|
3220
|
+
<tr>
|
|
3221
|
+
|
|
3222
|
+
<td class="name"><code>methodId</code></td>
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
<td class="type">
|
|
3226
|
+
|
|
3227
|
+
|
|
3228
|
+
<span class="param-type">string</span>
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
</td>
|
|
3234
|
+
|
|
3235
|
+
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
<td class="description last">The RailcontentID of the method</td>
|
|
3240
|
+
</tr>
|
|
3241
|
+
|
|
3242
|
+
|
|
3112
3243
|
</tbody>
|
|
3113
3244
|
</table>
|
|
3114
3245
|
|
|
@@ -3131,7 +3262,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3131
3262
|
|
|
3132
3263
|
|
|
3133
3264
|
<div class="param-desc">
|
|
3134
|
-
-
|
|
3265
|
+
- object with `nextLesson` and `previousLesson` attributes
|
|
3135
3266
|
</div>
|
|
3136
3267
|
|
|
3137
3268
|
|
|
@@ -3158,7 +3289,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3158
3289
|
|
|
3159
3290
|
|
|
3160
3291
|
|
|
3161
|
-
<h4 class="name" id=".
|
|
3292
|
+
<h4 class="name" id=".fetchMethods"><span class="type-signature type-signature-static">(static) </span>fetchMethods<span class="signature">(brand)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
3162
3293
|
|
|
3163
3294
|
|
|
3164
3295
|
|
|
@@ -3168,13 +3299,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3168
3299
|
<dl class="details">
|
|
3169
3300
|
|
|
3170
3301
|
<dt class="tag-description">Description:</dt>
|
|
3171
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
3302
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the Methods (learning-paths) for a specific brand.</li></ul></dd>
|
|
3172
3303
|
|
|
3173
3304
|
|
|
3174
3305
|
|
|
3175
3306
|
<dt class="tag-source">Source:</dt>
|
|
3176
3307
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3177
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
3308
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line599">line 599</a>
|
|
3178
3309
|
</li></ul></dd>
|
|
3179
3310
|
|
|
3180
3311
|
|
|
@@ -3246,7 +3377,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3246
3377
|
|
|
3247
3378
|
<tr>
|
|
3248
3379
|
|
|
3249
|
-
<td class="name"><code>
|
|
3380
|
+
<td class="name"><code>brand</code></td>
|
|
3250
3381
|
|
|
3251
3382
|
|
|
3252
3383
|
<td class="type">
|
|
@@ -3263,7 +3394,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3263
3394
|
|
|
3264
3395
|
|
|
3265
3396
|
|
|
3266
|
-
<td class="description last">The
|
|
3397
|
+
<td class="description last">The brand for which to fetch methods.</td>
|
|
3267
3398
|
</tr>
|
|
3268
3399
|
|
|
3269
3400
|
|
|
@@ -3289,7 +3420,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3289
3420
|
|
|
3290
3421
|
|
|
3291
3422
|
<div class="param-desc">
|
|
3292
|
-
- The fetched
|
|
3423
|
+
- The fetched methods data or null if not found.
|
|
3293
3424
|
</div>
|
|
3294
3425
|
|
|
3295
3426
|
|
|
@@ -3300,7 +3431,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3300
3431
|
</dt>
|
|
3301
3432
|
<dd>
|
|
3302
3433
|
|
|
3303
|
-
<span class="param-type">Promise.<(
|
|
3434
|
+
<span class="param-type">Promise.<(Object|null)></span>
|
|
3304
3435
|
|
|
3305
3436
|
|
|
3306
3437
|
|
|
@@ -3316,7 +3447,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3316
3447
|
|
|
3317
3448
|
|
|
3318
3449
|
|
|
3319
|
-
<h4 class="name" id=".
|
|
3450
|
+
<h4 class="name" id=".fetchNewReleases"><span class="type-signature type-signature-static">(static) </span>fetchNewReleases<span class="signature">(brand)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
3320
3451
|
|
|
3321
3452
|
|
|
3322
3453
|
|
|
@@ -3326,13 +3457,13 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3326
3457
|
<dl class="details">
|
|
3327
3458
|
|
|
3328
3459
|
<dt class="tag-description">Description:</dt>
|
|
3329
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetch
|
|
3460
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the latest new releases for a specific brand.</li></ul></dd>
|
|
3330
3461
|
|
|
3331
3462
|
|
|
3332
3463
|
|
|
3333
3464
|
<dt class="tag-source">Source:</dt>
|
|
3334
3465
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3335
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
3466
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line256">line 256</a>
|
|
3336
3467
|
</li></ul></dd>
|
|
3337
3468
|
|
|
3338
3469
|
|
|
@@ -3377,13 +3508,6 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3377
3508
|
|
|
3378
3509
|
|
|
3379
3510
|
|
|
3380
|
-
<h5 class="h5-examples">Example</h5>
|
|
3381
|
-
|
|
3382
|
-
<pre class="prettyprint"><code>fetchPackChildren('pack123')
|
|
3383
|
-
.then(children => console.log(children))
|
|
3384
|
-
.catch(error => console.error(error));</code></pre>
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
3511
|
|
|
3388
3512
|
|
|
3389
3513
|
<h5 class="h5-parameters">Parameters:</h5>
|
|
@@ -3411,7 +3535,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3411
3535
|
|
|
3412
3536
|
<tr>
|
|
3413
3537
|
|
|
3414
|
-
<td class="name"><code>
|
|
3538
|
+
<td class="name"><code>brand</code></td>
|
|
3415
3539
|
|
|
3416
3540
|
|
|
3417
3541
|
<td class="type">
|
|
@@ -3428,7 +3552,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3428
3552
|
|
|
3429
3553
|
|
|
3430
3554
|
|
|
3431
|
-
<td class="description last">The
|
|
3555
|
+
<td class="description last">The brand for which to fetch new releases.</td>
|
|
3432
3556
|
</tr>
|
|
3433
3557
|
|
|
3434
3558
|
|
|
@@ -3454,7 +3578,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3454
3578
|
|
|
3455
3579
|
|
|
3456
3580
|
<div class="param-desc">
|
|
3457
|
-
- The fetched
|
|
3581
|
+
- The fetched new releases data or null if not found.
|
|
3458
3582
|
</div>
|
|
3459
3583
|
|
|
3460
3584
|
|
|
@@ -3465,7 +3589,637 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3465
3589
|
</dt>
|
|
3466
3590
|
<dd>
|
|
3467
3591
|
|
|
3468
|
-
<span class="param-type">Promise.<(
|
|
3592
|
+
<span class="param-type">Promise.<(Object|null)></span>
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
|
|
3596
|
+
</dd>
|
|
3597
|
+
</dl>
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
|
|
3603
|
+
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
|
|
3607
|
+
|
|
3608
|
+
<h4 class="name" id=".fetchNextPreviousLesson"><span class="type-signature type-signature-static">(static) </span>fetchNextPreviousLesson<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
<dl class="details">
|
|
3616
|
+
|
|
3617
|
+
<dt class="tag-description">Description:</dt>
|
|
3618
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch the next and previous lessons for a specific lesson by Railcontent ID.</li></ul></dd>
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
<dt class="tag-source">Source:</dt>
|
|
3623
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
3624
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line716">line 716</a>
|
|
3625
|
+
</li></ul></dd>
|
|
3626
|
+
|
|
3627
|
+
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3652
|
+
|
|
3653
|
+
|
|
3654
|
+
|
|
3655
|
+
|
|
3656
|
+
|
|
3657
|
+
</dl>
|
|
3658
|
+
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
<table class="params">
|
|
3675
|
+
<thead>
|
|
3676
|
+
<tr>
|
|
3677
|
+
|
|
3678
|
+
<th>Name</th>
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
<th>Type</th>
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
<th class="last">Description</th>
|
|
3688
|
+
</tr>
|
|
3689
|
+
</thead>
|
|
3690
|
+
|
|
3691
|
+
<tbody>
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
<tr>
|
|
3695
|
+
|
|
3696
|
+
<td class="name"><code>railcontentId</code></td>
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
<td class="type">
|
|
3700
|
+
|
|
3701
|
+
|
|
3702
|
+
<span class="param-type">string</span>
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
</td>
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
|
|
3713
|
+
<td class="description last">The Railcontent ID of the current lesson.</td>
|
|
3714
|
+
</tr>
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
</tbody>
|
|
3718
|
+
</table>
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
|
|
3722
|
+
|
|
3723
|
+
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
<div class="param-desc">
|
|
3739
|
+
- The fetched next and previous lesson data or null if found.
|
|
3740
|
+
</div>
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
|
|
3744
|
+
<dl class="param-type">
|
|
3745
|
+
<dt>
|
|
3746
|
+
Type
|
|
3747
|
+
</dt>
|
|
3748
|
+
<dd>
|
|
3749
|
+
|
|
3750
|
+
<span class="param-type">Promise.<(Object|null)></span>
|
|
3751
|
+
|
|
3752
|
+
|
|
3753
|
+
|
|
3754
|
+
</dd>
|
|
3755
|
+
</dl>
|
|
3756
|
+
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
<h4 class="name" id=".fetchPackAll"><span class="type-signature type-signature-static">(static) </span>fetchPackAll<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
<dl class="details">
|
|
3774
|
+
|
|
3775
|
+
<dt class="tag-description">Description:</dt>
|
|
3776
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch all content for a specific pack by Railcontent ID.</li></ul></dd>
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
<dt class="tag-source">Source:</dt>
|
|
3781
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
3782
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line789">line 789</a>
|
|
3783
|
+
</li></ul></dd>
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
|
|
3793
|
+
|
|
3794
|
+
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
</dl>
|
|
3816
|
+
|
|
3817
|
+
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
|
|
3828
|
+
|
|
3829
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
<table class="params">
|
|
3833
|
+
<thead>
|
|
3834
|
+
<tr>
|
|
3835
|
+
|
|
3836
|
+
<th>Name</th>
|
|
3837
|
+
|
|
3838
|
+
|
|
3839
|
+
<th>Type</th>
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
<th class="last">Description</th>
|
|
3846
|
+
</tr>
|
|
3847
|
+
</thead>
|
|
3848
|
+
|
|
3849
|
+
<tbody>
|
|
3850
|
+
|
|
3851
|
+
|
|
3852
|
+
<tr>
|
|
3853
|
+
|
|
3854
|
+
<td class="name"><code>railcontentId</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 Railcontent ID of the pack.</td>
|
|
3872
|
+
</tr>
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
</tbody>
|
|
3876
|
+
</table>
|
|
3877
|
+
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
|
|
3885
|
+
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
<div class="param-desc">
|
|
3897
|
+
- The fetched pack content data or null if not found.
|
|
3898
|
+
</div>
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
<dl class="param-type">
|
|
3903
|
+
<dt>
|
|
3904
|
+
Type
|
|
3905
|
+
</dt>
|
|
3906
|
+
<dd>
|
|
3907
|
+
|
|
3908
|
+
<span class="param-type">Promise.<(Array.<Object>|null)></span>
|
|
3909
|
+
|
|
3910
|
+
|
|
3911
|
+
|
|
3912
|
+
</dd>
|
|
3913
|
+
</dl>
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
|
|
3924
|
+
<h4 class="name" id=".fetchPackChildren"><span class="type-signature type-signature-static">(static) </span>fetchPackChildren<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Array.<Object>|null)>}</span></h4>
|
|
3925
|
+
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
<dl class="details">
|
|
3932
|
+
|
|
3933
|
+
<dt class="tag-description">Description:</dt>
|
|
3934
|
+
<dd class="tag-description"><ul class="dummy"><li>Fetch all children of a specific pack by Railcontent ID.</li></ul></dd>
|
|
3935
|
+
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
<dt class="tag-source">Source:</dt>
|
|
3939
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
3940
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line815">line 815</a>
|
|
3941
|
+
</li></ul></dd>
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
|
|
3948
|
+
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
|
|
3955
|
+
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
|
|
3973
|
+
</dl>
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
|
|
3980
|
+
|
|
3981
|
+
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
<h5 class="h5-examples">Example</h5>
|
|
3986
|
+
|
|
3987
|
+
<pre class="prettyprint"><code>fetchPackChildren('pack123')
|
|
3988
|
+
.then(children => console.log(children))
|
|
3989
|
+
.catch(error => console.error(error));</code></pre>
|
|
3990
|
+
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
<table class="params">
|
|
3998
|
+
<thead>
|
|
3999
|
+
<tr>
|
|
4000
|
+
|
|
4001
|
+
<th>Name</th>
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
<th>Type</th>
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
|
|
4009
|
+
|
|
4010
|
+
<th class="last">Description</th>
|
|
4011
|
+
</tr>
|
|
4012
|
+
</thead>
|
|
4013
|
+
|
|
4014
|
+
<tbody>
|
|
4015
|
+
|
|
4016
|
+
|
|
4017
|
+
<tr>
|
|
4018
|
+
|
|
4019
|
+
<td class="name"><code>railcontentId</code></td>
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
<td class="type">
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
<span class="param-type">string</span>
|
|
4026
|
+
|
|
4027
|
+
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
</td>
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
<td class="description last">The Railcontent ID of the pack.</td>
|
|
4037
|
+
</tr>
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
</tbody>
|
|
4041
|
+
</table>
|
|
4042
|
+
|
|
4043
|
+
|
|
4044
|
+
|
|
4045
|
+
|
|
4046
|
+
|
|
4047
|
+
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
<div class="param-desc">
|
|
4062
|
+
- The fetched pack children data or null if not found.
|
|
4063
|
+
</div>
|
|
4064
|
+
|
|
4065
|
+
|
|
4066
|
+
|
|
4067
|
+
<dl class="param-type">
|
|
4068
|
+
<dt>
|
|
4069
|
+
Type
|
|
4070
|
+
</dt>
|
|
4071
|
+
<dd>
|
|
4072
|
+
|
|
4073
|
+
<span class="param-type">Promise.<(Array.<Object>|null)></span>
|
|
4074
|
+
|
|
4075
|
+
|
|
4076
|
+
|
|
4077
|
+
</dd>
|
|
4078
|
+
</dl>
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
|
|
4087
|
+
|
|
4088
|
+
|
|
4089
|
+
<h4 class="name" id=".fetchParentByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchParentByRailContentId<span class="signature">(railcontentId)</span><span class="type-signature"> → {Promise.<(Array.<string>|null)>}</span></h4>
|
|
4090
|
+
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
|
|
4095
|
+
|
|
4096
|
+
<dl class="details">
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
|
|
4100
|
+
<dt class="tag-source">Source:</dt>
|
|
4101
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
4102
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line582">line 582</a>
|
|
4103
|
+
</li></ul></dd>
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
</dl>
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
<table class="params">
|
|
4153
|
+
<thead>
|
|
4154
|
+
<tr>
|
|
4155
|
+
|
|
4156
|
+
<th>Name</th>
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
<th>Type</th>
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
<th class="last">Description</th>
|
|
4166
|
+
</tr>
|
|
4167
|
+
</thead>
|
|
4168
|
+
|
|
4169
|
+
<tbody>
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
<tr>
|
|
4173
|
+
|
|
4174
|
+
<td class="name"><code>railcontentId</code></td>
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
<td class="type">
|
|
4178
|
+
|
|
4179
|
+
</td>
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
<td class="description last">railcontent id of the child</td>
|
|
4186
|
+
</tr>
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
</tbody>
|
|
4190
|
+
</table>
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
|
|
4200
|
+
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
<div class="param-desc">
|
|
4211
|
+
- The fetched parent content data or [] if not found
|
|
4212
|
+
</div>
|
|
4213
|
+
|
|
4214
|
+
|
|
4215
|
+
|
|
4216
|
+
<dl class="param-type">
|
|
4217
|
+
<dt>
|
|
4218
|
+
Type
|
|
4219
|
+
</dt>
|
|
4220
|
+
<dd>
|
|
4221
|
+
|
|
4222
|
+
<span class="param-type">Promise.<(Array.<string>|null)></span>
|
|
3469
4223
|
|
|
3470
4224
|
|
|
3471
4225
|
|
|
@@ -3497,7 +4251,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3497
4251
|
|
|
3498
4252
|
<dt class="tag-source">Source:</dt>
|
|
3499
4253
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3500
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
4254
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line768">line 768</a>
|
|
3501
4255
|
</li></ul></dd>
|
|
3502
4256
|
|
|
3503
4257
|
|
|
@@ -3679,7 +4433,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3679
4433
|
|
|
3680
4434
|
<dt class="tag-source">Source:</dt>
|
|
3681
4435
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3682
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
4436
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line72">line 72</a>
|
|
3683
4437
|
</li></ul></dd>
|
|
3684
4438
|
|
|
3685
4439
|
|
|
@@ -3868,7 +4622,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
|
|
|
3868
4622
|
|
|
3869
4623
|
<dt class="tag-source">Source:</dt>
|
|
3870
4624
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3871
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
4625
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line870">line 870</a>
|
|
3872
4626
|
</li></ul></dd>
|
|
3873
4627
|
|
|
3874
4628
|
|
|
@@ -4058,7 +4812,7 @@ fetchSanity(query, true)
|
|
|
4058
4812
|
|
|
4059
4813
|
<dt class="tag-source">Source:</dt>
|
|
4060
4814
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4061
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
4815
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line55">line 55</a>
|
|
4062
4816
|
</li></ul></dd>
|
|
4063
4817
|
|
|
4064
4818
|
|
|
@@ -4381,7 +5135,7 @@ fetchSanity(query, true)
|
|
|
4381
5135
|
|
|
4382
5136
|
<dt class="tag-source">Source:</dt>
|
|
4383
5137
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4384
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
5138
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line216">line 216</a>
|
|
4385
5139
|
</li></ul></dd>
|
|
4386
5140
|
|
|
4387
5141
|
|
|
@@ -4539,7 +5293,7 @@ fetchSanity(query, true)
|
|
|
4539
5293
|
|
|
4540
5294
|
<dt class="tag-source">Source:</dt>
|
|
4541
5295
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4542
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
5296
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line187">line 187</a>
|
|
4543
5297
|
</li></ul></dd>
|
|
4544
5298
|
|
|
4545
5299
|
|
|
@@ -4704,7 +5458,7 @@ fetchSanity(query, true)
|
|
|
4704
5458
|
|
|
4705
5459
|
<dt class="tag-source">Source:</dt>
|
|
4706
5460
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4707
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
5461
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line293">line 293</a>
|
|
4708
5462
|
</li></ul></dd>
|
|
4709
5463
|
|
|
4710
5464
|
|
|
@@ -4871,7 +5625,7 @@ It also includes completion status and progress percentage for each workout by f
|
|
|
4871
5625
|
|
|
4872
5626
|
<dt class="tag-source">Source:</dt>
|
|
4873
5627
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4874
|
-
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#
|
|
5628
|
+
<a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line234">line 234</a>
|
|
4875
5629
|
</li></ul></dd>
|
|
4876
5630
|
|
|
4877
5631
|
|
|
@@ -5035,7 +5789,7 @@ It also includes completion status and progress percentage for each workout by f
|
|
|
5035
5789
|
<br class="clear">
|
|
5036
5790
|
|
|
5037
5791
|
<footer>
|
|
5038
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
5792
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Mon Aug 26 2024 20:15:19 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
5039
5793
|
</footer>
|
|
5040
5794
|
|
|
5041
5795
|
<script>prettyPrint();</script>
|