musora-content-services 1.0.137 → 1.0.139

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 (58) 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 +10 -3
  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 +8 -2
  25. package/docs/module-Config.html +85 -3
  26. package/docs/module-Railcontent-Services.html +90 -173
  27. package/docs/module-Sanity-Services.html +960 -72
  28. package/docs/railcontent.js.html +44 -42
  29. package/docs/sanity.js.html +99 -54
  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/contentMetaData.js +0 -0
  45. package/src/contentTypeConfig.js +11 -1
  46. package/src/filterBuilder.js +0 -0
  47. package/src/index.d.ts +2 -0
  48. package/src/index.js +2 -0
  49. package/src/services/config.js +0 -0
  50. package/src/services/contentLikes.js +0 -0
  51. package/src/services/dataContext.js +0 -0
  52. package/src/services/railcontent.js +0 -0
  53. package/src/services/sanity.js +62 -21
  54. package/test/contentLikes.test.js +0 -0
  55. package/test/localStorageMock.js +0 -0
  56. package/test/log.js +0 -0
  57. package/test/sanityQueryService.test.js +38 -1
  58. package/tools/generate-index.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#.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>
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></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#.fetchPackData">fetchPackData</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
 
@@ -75,6 +75,88 @@
75
75
 
76
76
 
77
77
 
78
+ <h3 class="subsection-title">Members</h3>
79
+
80
+
81
+
82
+ <h4 class="name" id="~excludeFromGeneratedIndex"><span class="type-signature type-signature-inner, constant">(inner, constant) </span>excludeFromGeneratedIndex<span class="type-signature"> :Array.&lt;string></span></h4>
83
+
84
+
85
+
86
+
87
+
88
+ <dl class="details">
89
+
90
+ <dt class="tag-description">Description:</dt>
91
+ <dd class="tag-description"><ul class="dummy"><li>Exported functions that are excluded from index generation.</li></ul></dd>
92
+
93
+
94
+
95
+ <dt class="tag-source">Source:</dt>
96
+ <dd class="tag-source"><ul class="dummy"><li>
97
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line34">line 34</a>
98
+ </li></ul></dd>
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ </dl>
131
+
132
+
133
+
134
+
135
+
136
+ <div class="description usertext">
137
+ Exported functions that are excluded from index generation.
138
+ </div>
139
+
140
+
141
+
142
+ <h5 class="h5-types">Type:</h5>
143
+ <ul>
144
+ <li>
145
+
146
+ <span class="param-type">Array.&lt;string></span>
147
+
148
+
149
+
150
+ </li>
151
+ </ul>
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
78
160
 
79
161
 
80
162
  <h3 class="subsection-title">Methods</h3>
@@ -100,7 +182,7 @@
100
182
 
101
183
  <dt class="tag-source">Source:</dt>
102
184
  <dd class="tag-source"><ul class="dummy"><li>
103
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line458">line 458</a>
185
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line471">line 471</a>
104
186
  </li></ul></dd>
105
187
 
106
188
 
@@ -715,7 +797,7 @@ If a coachId is provided, the content type must be 'coach-lessons'.</li></ul></d
715
797
 
716
798
  <dt class="tag-source">Source:</dt>
717
799
  <dd class="tag-source"><ul class="dummy"><li>
718
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line606">line 606</a>
800
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line619">line 619</a>
719
801
  </li></ul></dd>
720
802
 
721
803
 
@@ -1160,7 +1242,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1160
1242
 
1161
1243
  <dt class="tag-source">Source:</dt>
1162
1244
  <dd class="tag-source"><ul class="dummy"><li>
1163
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1001">line 1001</a>
1245
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1012">line 1012</a>
1164
1246
  </li></ul></dd>
1165
1247
 
1166
1248
 
@@ -1349,6 +1431,86 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1349
1431
  </tr>
1350
1432
 
1351
1433
 
1434
+
1435
+ <tr>
1436
+
1437
+ <td class="name"><code>params.page</code></td>
1438
+
1439
+
1440
+ <td class="type">
1441
+
1442
+
1443
+ <span class="param-type">number</span>
1444
+
1445
+
1446
+
1447
+
1448
+ </td>
1449
+
1450
+
1451
+ <td class="attributes">
1452
+
1453
+ &lt;optional><br>
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+ </td>
1460
+
1461
+
1462
+
1463
+ <td class="default">
1464
+
1465
+ <code>1</code>
1466
+
1467
+ </td>
1468
+
1469
+
1470
+ <td class="description last">The page number for pagination.</td>
1471
+ </tr>
1472
+
1473
+
1474
+
1475
+ <tr>
1476
+
1477
+ <td class="name"><code>params.limit</code></td>
1478
+
1479
+
1480
+ <td class="type">
1481
+
1482
+
1483
+ <span class="param-type">number</span>
1484
+
1485
+
1486
+
1487
+
1488
+ </td>
1489
+
1490
+
1491
+ <td class="attributes">
1492
+
1493
+ &lt;optional><br>
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+ </td>
1500
+
1501
+
1502
+
1503
+ <td class="default">
1504
+
1505
+ <code>10</code>
1506
+
1507
+ </td>
1508
+
1509
+
1510
+ <td class="description last">The number of items per page.</td>
1511
+ </tr>
1512
+
1513
+
1352
1514
  </tbody>
1353
1515
  </table>
1354
1516
 
@@ -1414,7 +1576,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1414
1576
 
1415
1577
  <dt class="tag-source">Source:</dt>
1416
1578
  <dd class="tag-source"><ul class="dummy"><li>
1417
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line185">line 185</a>
1579
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line192">line 192</a>
1418
1580
  </li></ul></dd>
1419
1581
 
1420
1582
 
@@ -1864,7 +2026,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1864
2026
 
1865
2027
 
1866
2028
 
1867
- <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>
2029
+ <h4 class="name" id=".fetchArtistLessons"><span class="type-signature type-signature-static">(static) </span>fetchArtistLessons<span class="signature">(brand, name, contentType, params)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1868
2030
 
1869
2031
 
1870
2032
 
@@ -1880,7 +2042,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1880
2042
 
1881
2043
  <dt class="tag-source">Source:</dt>
1882
2044
  <dd class="tag-source"><ul class="dummy"><li>
1883
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1227">line 1227</a>
2045
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1255">line 1255</a>
1884
2046
  </li></ul></dd>
1885
2047
 
1886
2048
 
@@ -1927,7 +2089,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1927
2089
 
1928
2090
  <h5 class="h5-examples">Example</h5>
1929
2091
 
1930
- <pre class="prettyprint"><code>fetchArtistLessons('10 Years', 'song')
2092
+ <pre class="prettyprint"><code>fetchArtistLessons('drumeo', '10 Years', 'song', {'-published_on', '', 1, 10, ["difficulty,Intermediate"], [232168, 232824, 303375, 232194, 393125]})
1931
2093
  .then(lessons => console.log(lessons))
1932
2094
  .catch(error => console.error(error));</code></pre>
1933
2095
 
@@ -1976,20 +2138,275 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1976
2138
 
1977
2139
 
1978
2140
 
1979
- <td class="description last">The brand for which to fetch lessons.</td>
2141
+ <td class="description last">The brand for which to fetch lessons.</td>
2142
+ </tr>
2143
+
2144
+
2145
+
2146
+ <tr>
2147
+
2148
+ <td class="name"><code>name</code></td>
2149
+
2150
+
2151
+ <td class="type">
2152
+
2153
+
2154
+ <span class="param-type">string</span>
2155
+
2156
+
2157
+
2158
+
2159
+ </td>
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+ <td class="description last">The name of the artist</td>
2166
+ </tr>
2167
+
2168
+
2169
+
2170
+ <tr>
2171
+
2172
+ <td class="name"><code>contentType</code></td>
2173
+
2174
+
2175
+ <td class="type">
2176
+
2177
+
2178
+ <span class="param-type">string</span>
2179
+
2180
+
2181
+
2182
+
2183
+ </td>
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+ <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>
2190
+ </tr>
2191
+
2192
+
2193
+
2194
+ <tr>
2195
+
2196
+ <td class="name"><code>params</code></td>
2197
+
2198
+
2199
+ <td class="type">
2200
+
2201
+
2202
+ <span class="param-type">Object</span>
2203
+
2204
+
2205
+
2206
+
2207
+ </td>
2208
+
2209
+
2210
+
2211
+
2212
+
2213
+ <td class="description last">Parameters for sorting, searching, pagination and filtering.
2214
+ <h6>Properties</h6>
2215
+
2216
+
2217
+ <table class="params">
2218
+ <thead>
2219
+ <tr>
2220
+
2221
+ <th>Name</th>
2222
+
2223
+
2224
+ <th>Type</th>
2225
+
2226
+
2227
+ <th>Attributes</th>
2228
+
2229
+
2230
+
2231
+ <th>Default</th>
2232
+
2233
+
2234
+ <th class="last">Description</th>
2235
+ </tr>
2236
+ </thead>
2237
+
2238
+ <tbody>
2239
+
2240
+
2241
+ <tr>
2242
+
2243
+ <td class="name"><code>sort</code></td>
2244
+
2245
+
2246
+ <td class="type">
2247
+
2248
+
2249
+ <span class="param-type">string</span>
2250
+
2251
+
2252
+
2253
+
2254
+ </td>
2255
+
2256
+
2257
+ <td class="attributes">
2258
+
2259
+ &lt;optional><br>
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+ </td>
2266
+
2267
+
2268
+
2269
+ <td class="default">
2270
+
2271
+ <code>"-published_on"</code>
2272
+
2273
+ </td>
2274
+
2275
+
2276
+ <td class="description last">The field to sort the lessons by.</td>
2277
+ </tr>
2278
+
2279
+
2280
+
2281
+ <tr>
2282
+
2283
+ <td class="name"><code>searchTerm</code></td>
2284
+
2285
+
2286
+ <td class="type">
2287
+
2288
+
2289
+ <span class="param-type">string</span>
2290
+
2291
+
2292
+
2293
+
2294
+ </td>
2295
+
2296
+
2297
+ <td class="attributes">
2298
+
2299
+ &lt;optional><br>
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+ </td>
2306
+
2307
+
2308
+
2309
+ <td class="default">
2310
+
2311
+ <code>""</code>
2312
+
2313
+ </td>
2314
+
2315
+
2316
+ <td class="description last">The search term to filter the lessons.</td>
2317
+ </tr>
2318
+
2319
+
2320
+
2321
+ <tr>
2322
+
2323
+ <td class="name"><code>page</code></td>
2324
+
2325
+
2326
+ <td class="type">
2327
+
2328
+
2329
+ <span class="param-type">number</span>
2330
+
2331
+
2332
+
2333
+
2334
+ </td>
2335
+
2336
+
2337
+ <td class="attributes">
2338
+
2339
+ &lt;optional><br>
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+ </td>
2346
+
2347
+
2348
+
2349
+ <td class="default">
2350
+
2351
+ <code>1</code>
2352
+
2353
+ </td>
2354
+
2355
+
2356
+ <td class="description last">The page number for pagination.</td>
2357
+ </tr>
2358
+
2359
+
2360
+
2361
+ <tr>
2362
+
2363
+ <td class="name"><code>limit</code></td>
2364
+
2365
+
2366
+ <td class="type">
2367
+
2368
+
2369
+ <span class="param-type">number</span>
2370
+
2371
+
2372
+
2373
+
2374
+ </td>
2375
+
2376
+
2377
+ <td class="attributes">
2378
+
2379
+ &lt;optional><br>
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+ </td>
2386
+
2387
+
2388
+
2389
+ <td class="default">
2390
+
2391
+ <code>10</code>
2392
+
2393
+ </td>
2394
+
2395
+
2396
+ <td class="description last">The number of items per page.</td>
1980
2397
  </tr>
1981
2398
 
1982
2399
 
1983
2400
 
1984
2401
  <tr>
1985
2402
 
1986
- <td class="name"><code>name</code></td>
2403
+ <td class="name"><code>includedFields</code></td>
1987
2404
 
1988
2405
 
1989
2406
  <td class="type">
1990
2407
 
1991
2408
 
1992
- <span class="param-type">string</span>
2409
+ <span class="param-type">Array.&lt;string></span>
1993
2410
 
1994
2411
 
1995
2412
 
@@ -1997,23 +2414,39 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1997
2414
  </td>
1998
2415
 
1999
2416
 
2417
+ <td class="attributes">
2418
+
2419
+ &lt;optional><br>
2420
+
2421
+
2422
+
2423
+
2424
+
2425
+ </td>
2426
+
2000
2427
 
2001
2428
 
2429
+ <td class="default">
2430
+
2431
+ <code>[]</code>
2432
+
2433
+ </td>
2434
+
2002
2435
 
2003
- <td class="description last">The name of the artist</td>
2436
+ <td class="description last">Additional filters to apply to the query in the format of a key,value array. eg. ['difficulty,Intermediate', 'genre,rock'].</td>
2004
2437
  </tr>
2005
2438
 
2006
2439
 
2007
2440
 
2008
2441
  <tr>
2009
2442
 
2010
- <td class="name"><code>contentType</code></td>
2443
+ <td class="name"><code>progressIds</code></td>
2011
2444
 
2012
2445
 
2013
2446
  <td class="type">
2014
2447
 
2015
2448
 
2016
- <span class="param-type">string</span>
2449
+ <span class="param-type">Array.&lt;number></span>
2017
2450
 
2018
2451
 
2019
2452
 
@@ -2021,10 +2454,31 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2021
2454
  </td>
2022
2455
 
2023
2456
 
2457
+ <td class="attributes">
2458
+
2459
+ &lt;optional><br>
2460
+
2461
+
2462
+
2024
2463
 
2464
+
2465
+ </td>
2025
2466
 
2026
2467
 
2027
- <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>
2468
+
2469
+ <td class="default">
2470
+
2471
+ </td>
2472
+
2473
+
2474
+ <td class="description last">The ids of the lessons that are in progress or completed</td>
2475
+ </tr>
2476
+
2477
+
2478
+ </tbody>
2479
+ </table>
2480
+
2481
+ </td>
2028
2482
  </tr>
2029
2483
 
2030
2484
 
@@ -2093,7 +2547,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2093
2547
 
2094
2548
  <dt class="tag-source">Source:</dt>
2095
2549
  <dd class="tag-source"><ul class="dummy"><li>
2096
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line63">line 63</a>
2550
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line70">line 70</a>
2097
2551
  </li></ul></dd>
2098
2552
 
2099
2553
 
@@ -2258,7 +2712,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2258
2712
 
2259
2713
  <dt class="tag-source">Source:</dt>
2260
2714
  <dd class="tag-source"><ul class="dummy"><li>
2261
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line393">line 393</a>
2715
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line406">line 406</a>
2262
2716
  </li></ul></dd>
2263
2717
 
2264
2718
 
@@ -2447,7 +2901,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2447
2901
 
2448
2902
  <dt class="tag-source">Source:</dt>
2449
2903
  <dd class="tag-source"><ul class="dummy"><li>
2450
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line418">line 418</a>
2904
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line431">line 431</a>
2451
2905
  </li></ul></dd>
2452
2906
 
2453
2907
 
@@ -2656,7 +3110,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2656
3110
 
2657
3111
  <dt class="tag-source">Source:</dt>
2658
3112
  <dd class="tag-source"><ul class="dummy"><li>
2659
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1188">line 1188</a>
3113
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1209">line 1209</a>
2660
3114
  </li></ul></dd>
2661
3115
 
2662
3116
 
@@ -2822,7 +3276,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2822
3276
 
2823
3277
  <dt class="tag-source">Source:</dt>
2824
3278
  <dd class="tag-source"><ul class="dummy"><li>
2825
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1406">line 1406</a>
3279
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1451">line 1451</a>
2826
3280
  </li></ul></dd>
2827
3281
 
2828
3282
 
@@ -2987,7 +3441,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
2987
3441
 
2988
3442
  <dt class="tag-source">Source:</dt>
2989
3443
  <dd class="tag-source"><ul class="dummy"><li>
2990
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1097">line 1097</a>
3444
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1130">line 1130</a>
2991
3445
  </li></ul></dd>
2992
3446
 
2993
3447
 
@@ -3152,7 +3606,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3152
3606
 
3153
3607
  <dt class="tag-source">Source:</dt>
3154
3608
  <dd class="tag-source"><ul class="dummy"><li>
3155
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line676">line 676</a>
3609
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line690">line 690</a>
3156
3610
  </li></ul></dd>
3157
3611
 
3158
3612
 
@@ -3354,7 +3808,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3354
3808
 
3355
3809
  <dt class="tag-source">Source:</dt>
3356
3810
  <dd class="tag-source"><ul class="dummy"><li>
3357
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1134">line 1134</a>
3811
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1155">line 1155</a>
3358
3812
  </li></ul></dd>
3359
3813
 
3360
3814
 
@@ -3797,7 +4251,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3797
4251
 
3798
4252
  <dt class="tag-source">Source:</dt>
3799
4253
  <dd class="tag-source"><ul class="dummy"><li>
3800
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1173">line 1173</a>
4254
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1194">line 1194</a>
3801
4255
  </li></ul></dd>
3802
4256
 
3803
4257
 
@@ -3962,7 +4416,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3962
4416
 
3963
4417
  <dt class="tag-source">Source:</dt>
3964
4418
  <dd class="tag-source"><ul class="dummy"><li>
3965
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line722">line 722</a>
4419
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line736">line 736</a>
3966
4420
  </li></ul></dd>
3967
4421
 
3968
4422
 
@@ -4104,7 +4558,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4104
4558
 
4105
4559
 
4106
4560
 
4107
- <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>
4561
+ <h4 class="name" id=".fetchGenreLessons"><span class="type-signature type-signature-static">(static) </span>fetchGenreLessons<span class="signature">(brand, name, params)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4108
4562
 
4109
4563
 
4110
4564
 
@@ -4120,7 +4574,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4120
4574
 
4121
4575
  <dt class="tag-source">Source:</dt>
4122
4576
  <dd class="tag-source"><ul class="dummy"><li>
4123
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1268">line 1268</a>
4577
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1307">line 1307</a>
4124
4578
  </li></ul></dd>
4125
4579
 
4126
4580
 
@@ -4167,7 +4621,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4167
4621
 
4168
4622
  <h5 class="h5-examples">Example</h5>
4169
4623
 
4170
- <pre class="prettyprint"><code>fetchGenreLessons('Blues', 'song')
4624
+ <pre class="prettyprint"><code>fetchGenreLessons('drumeo', 'Blues', 'song', {'-published_on', '', 1, 10, ["difficulty,Intermediate"], [232168, 232824, 303375, 232194, 393125]})
4171
4625
  .then(lessons => console.log(lessons))
4172
4626
  .catch(error => console.error(error));</code></pre>
4173
4627
 
@@ -4184,28 +4638,243 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4184
4638
  <th>Name</th>
4185
4639
 
4186
4640
 
4187
- <th>Type</th>
4641
+ <th>Type</th>
4642
+
4643
+
4644
+
4645
+
4646
+
4647
+ <th class="last">Description</th>
4648
+ </tr>
4649
+ </thead>
4650
+
4651
+ <tbody>
4652
+
4653
+
4654
+ <tr>
4655
+
4656
+ <td class="name"><code>brand</code></td>
4657
+
4658
+
4659
+ <td class="type">
4660
+
4661
+
4662
+ <span class="param-type">string</span>
4663
+
4664
+
4665
+
4666
+
4667
+ </td>
4668
+
4669
+
4670
+
4671
+
4672
+
4673
+ <td class="description last">The brand for which to fetch lessons.</td>
4674
+ </tr>
4675
+
4676
+
4677
+
4678
+ <tr>
4679
+
4680
+ <td class="name"><code>name</code></td>
4681
+
4682
+
4683
+ <td class="type">
4684
+
4685
+
4686
+ <span class="param-type">string</span>
4687
+
4688
+
4689
+
4690
+
4691
+ </td>
4692
+
4693
+
4694
+
4695
+
4696
+
4697
+ <td class="description last">The name of the genre</td>
4698
+ </tr>
4699
+
4700
+
4701
+
4702
+ <tr>
4703
+
4704
+ <td class="name"><code>params</code></td>
4705
+
4706
+
4707
+ <td class="type">
4708
+
4709
+
4710
+ <span class="param-type">Object</span>
4711
+
4712
+
4713
+
4714
+
4715
+ </td>
4716
+
4717
+
4718
+
4719
+
4720
+
4721
+ <td class="description last">Parameters for sorting, searching, pagination and filtering.
4722
+ <h6>Properties</h6>
4723
+
4724
+
4725
+ <table class="params">
4726
+ <thead>
4727
+ <tr>
4728
+
4729
+ <th>Name</th>
4730
+
4731
+
4732
+ <th>Type</th>
4733
+
4734
+
4735
+ <th>Attributes</th>
4736
+
4737
+
4738
+
4739
+ <th>Default</th>
4740
+
4741
+
4742
+ <th class="last">Description</th>
4743
+ </tr>
4744
+ </thead>
4745
+
4746
+ <tbody>
4747
+
4748
+
4749
+ <tr>
4750
+
4751
+ <td class="name"><code>sort</code></td>
4752
+
4753
+
4754
+ <td class="type">
4755
+
4756
+
4757
+ <span class="param-type">string</span>
4758
+
4759
+
4760
+
4761
+
4762
+ </td>
4763
+
4764
+
4765
+ <td class="attributes">
4766
+
4767
+ &lt;optional><br>
4768
+
4769
+
4770
+
4771
+
4772
+
4773
+ </td>
4774
+
4775
+
4776
+
4777
+ <td class="default">
4778
+
4779
+ <code>"-published_on"</code>
4780
+
4781
+ </td>
4782
+
4783
+
4784
+ <td class="description last">The field to sort the lessons by.</td>
4785
+ </tr>
4786
+
4787
+
4788
+
4789
+ <tr>
4790
+
4791
+ <td class="name"><code>searchTerm</code></td>
4792
+
4793
+
4794
+ <td class="type">
4795
+
4796
+
4797
+ <span class="param-type">string</span>
4798
+
4799
+
4800
+
4801
+
4802
+ </td>
4803
+
4804
+
4805
+ <td class="attributes">
4806
+
4807
+ &lt;optional><br>
4808
+
4809
+
4810
+
4811
+
4812
+
4813
+ </td>
4814
+
4815
+
4816
+
4817
+ <td class="default">
4818
+
4819
+ <code>""</code>
4820
+
4821
+ </td>
4822
+
4823
+
4824
+ <td class="description last">The search term to filter the lessons.</td>
4825
+ </tr>
4826
+
4827
+
4828
+
4829
+ <tr>
4830
+
4831
+ <td class="name"><code>page</code></td>
4832
+
4833
+
4834
+ <td class="type">
4835
+
4836
+
4837
+ <span class="param-type">number</span>
4838
+
4839
+
4840
+
4841
+
4842
+ </td>
4843
+
4844
+
4845
+ <td class="attributes">
4846
+
4847
+ &lt;optional><br>
4848
+
4188
4849
 
4189
-
4850
+
4190
4851
 
4191
-
4852
+
4853
+ </td>
4854
+
4192
4855
 
4193
- <th class="last">Description</th>
4194
- </tr>
4195
- </thead>
4856
+
4857
+ <td class="default">
4858
+
4859
+ <code>1</code>
4860
+
4861
+ </td>
4862
+
4863
+
4864
+ <td class="description last">The page number for pagination.</td>
4865
+ </tr>
4196
4866
 
4197
- <tbody>
4198
4867
 
4199
4868
 
4200
4869
  <tr>
4201
4870
 
4202
- <td class="name"><code>brand</code></td>
4871
+ <td class="name"><code>limit</code></td>
4203
4872
 
4204
4873
 
4205
4874
  <td class="type">
4206
4875
 
4207
4876
 
4208
- <span class="param-type">string</span>
4877
+ <span class="param-type">number</span>
4209
4878
 
4210
4879
 
4211
4880
 
@@ -4213,23 +4882,39 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4213
4882
  </td>
4214
4883
 
4215
4884
 
4885
+ <td class="attributes">
4886
+
4887
+ &lt;optional><br>
4888
+
4216
4889
 
4890
+
4891
+
4892
+
4893
+ </td>
4217
4894
 
4218
4895
 
4219
- <td class="description last">The brand for which to fetch lessons.</td>
4896
+
4897
+ <td class="default">
4898
+
4899
+ <code>10</code>
4900
+
4901
+ </td>
4902
+
4903
+
4904
+ <td class="description last">The number of items per page.</td>
4220
4905
  </tr>
4221
4906
 
4222
4907
 
4223
4908
 
4224
4909
  <tr>
4225
4910
 
4226
- <td class="name"><code>name</code></td>
4911
+ <td class="name"><code>includedFields</code></td>
4227
4912
 
4228
4913
 
4229
4914
  <td class="type">
4230
4915
 
4231
4916
 
4232
- <span class="param-type">string</span>
4917
+ <span class="param-type">Array.&lt;string></span>
4233
4918
 
4234
4919
 
4235
4920
 
@@ -4237,23 +4922,39 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4237
4922
  </td>
4238
4923
 
4239
4924
 
4925
+ <td class="attributes">
4926
+
4927
+ &lt;optional><br>
4928
+
4929
+
4930
+
4240
4931
 
4932
+
4933
+ </td>
4241
4934
 
4242
4935
 
4243
- <td class="description last">The name of the genre</td>
4936
+
4937
+ <td class="default">
4938
+
4939
+ <code>[]</code>
4940
+
4941
+ </td>
4942
+
4943
+
4944
+ <td class="description last">Additional filters to apply to the query in the format of a key,value array. eg. ['difficulty,Intermediate', 'genre,rock'].</td>
4244
4945
  </tr>
4245
4946
 
4246
4947
 
4247
4948
 
4248
4949
  <tr>
4249
4950
 
4250
- <td class="name"><code>contentType</code></td>
4951
+ <td class="name"><code>progressIds</code></td>
4251
4952
 
4252
4953
 
4253
4954
  <td class="type">
4254
4955
 
4255
4956
 
4256
- <span class="param-type">string</span>
4957
+ <span class="param-type">Array.&lt;number></span>
4257
4958
 
4258
4959
 
4259
4960
 
@@ -4261,10 +4962,31 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4261
4962
  </td>
4262
4963
 
4263
4964
 
4965
+ <td class="attributes">
4966
+
4967
+ &lt;optional><br>
4968
+
4969
+
4970
+
4971
+
4972
+
4973
+ </td>
4974
+
4264
4975
 
4265
4976
 
4977
+ <td class="default">
4978
+
4979
+ </td>
4980
+
4981
+
4982
+ <td class="description last">The ids of the lessons that are in progress or completed</td>
4983
+ </tr>
4984
+
4985
+
4986
+ </tbody>
4987
+ </table>
4266
4988
 
4267
- <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>
4989
+ </td>
4268
4990
  </tr>
4269
4991
 
4270
4992
 
@@ -4290,7 +5012,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4290
5012
 
4291
5013
 
4292
5014
  <div class="param-desc">
4293
- - The lessons for the genre and some details about the genre (name and thumbnail).
5015
+ - The lessons for the artist and some details about the artist (name and thumbnail).
4294
5016
  </div>
4295
5017
 
4296
5018
 
@@ -4333,7 +5055,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4333
5055
 
4334
5056
  <dt class="tag-source">Source:</dt>
4335
5057
  <dd class="tag-source"><ul class="dummy"><li>
4336
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line893">line 893</a>
5058
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line908">line 908</a>
4337
5059
  </li></ul></dd>
4338
5060
 
4339
5061
 
@@ -4498,7 +5220,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4498
5220
 
4499
5221
  <dt class="tag-source">Source:</dt>
4500
5222
  <dd class="tag-source"><ul class="dummy"><li>
4501
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1456">line 1456</a>
5223
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1501">line 1501</a>
4502
5224
  </li></ul></dd>
4503
5225
 
4504
5226
 
@@ -4683,7 +5405,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4683
5405
 
4684
5406
  <dt class="tag-source">Source:</dt>
4685
5407
  <dd class="tag-source"><ul class="dummy"><li>
4686
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line742">line 742</a>
5408
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line756">line 756</a>
4687
5409
  </li></ul></dd>
4688
5410
 
4689
5411
 
@@ -4865,7 +5587,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4865
5587
 
4866
5588
  <dt class="tag-source">Source:</dt>
4867
5589
  <dd class="tag-source"><ul class="dummy"><li>
4868
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line780">line 780</a>
5590
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line795">line 795</a>
4869
5591
  </li></ul></dd>
4870
5592
 
4871
5593
 
@@ -5023,7 +5745,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5023
5745
 
5024
5746
  <dt class="tag-source">Source:</dt>
5025
5747
  <dd class="tag-source"><ul class="dummy"><li>
5026
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line834">line 834</a>
5748
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line849">line 849</a>
5027
5749
  </li></ul></dd>
5028
5750
 
5029
5751
 
@@ -5181,7 +5903,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5181
5903
 
5182
5904
  <dt class="tag-source">Source:</dt>
5183
5905
  <dd class="tag-source"><ul class="dummy"><li>
5184
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line801">line 801</a>
5906
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line816">line 816</a>
5185
5907
  </li></ul></dd>
5186
5908
 
5187
5909
 
@@ -5363,7 +6085,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5363
6085
 
5364
6086
  <dt class="tag-source">Source:</dt>
5365
6087
  <dd class="tag-source"><ul class="dummy"><li>
5366
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line818">line 818</a>
6088
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line833">line 833</a>
5367
6089
  </li></ul></dd>
5368
6090
 
5369
6091
 
@@ -5552,7 +6274,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5552
6274
 
5553
6275
  <dt class="tag-source">Source:</dt>
5554
6276
  <dd class="tag-source"><ul class="dummy"><li>
5555
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line710">line 710</a>
6277
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line724">line 724</a>
5556
6278
  </li></ul></dd>
5557
6279
 
5558
6280
 
@@ -5710,7 +6432,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5710
6432
 
5711
6433
  <dt class="tag-source">Source:</dt>
5712
6434
  <dd class="tag-source"><ul class="dummy"><li>
5713
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line266">line 266</a>
6435
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line274">line 274</a>
5714
6436
  </li></ul></dd>
5715
6437
 
5716
6438
 
@@ -5868,7 +6590,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5868
6590
 
5869
6591
  <dt class="tag-source">Source:</dt>
5870
6592
  <dd class="tag-source"><ul class="dummy"><li>
5871
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line867">line 867</a>
6593
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line882">line 882</a>
5872
6594
  </li></ul></dd>
5873
6595
 
5874
6596
 
@@ -6026,7 +6748,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6026
6748
 
6027
6749
  <dt class="tag-source">Source:</dt>
6028
6750
  <dd class="tag-source"><ul class="dummy"><li>
6029
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1023">line 1023</a>
6751
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1039">line 1039</a>
6030
6752
  </li></ul></dd>
6031
6753
 
6032
6754
 
@@ -6184,7 +6906,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6184
6906
 
6185
6907
  <dt class="tag-source">Source:</dt>
6186
6908
  <dd class="tag-source"><ul class="dummy"><li>
6187
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1083">line 1083</a>
6909
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1099">line 1099</a>
6188
6910
  </li></ul></dd>
6189
6911
 
6190
6912
 
@@ -6333,6 +7055,171 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6333
7055
 
6334
7056
 
6335
7057
 
7058
+ <h4 class="name" id=".fetchPackData"><span class="type-signature type-signature-static">(static) </span>fetchPackData<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
7059
+
7060
+
7061
+
7062
+
7063
+
7064
+
7065
+ <dl class="details">
7066
+
7067
+ <dt class="tag-description">Description:</dt>
7068
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the Pack Overview screen.</li></ul></dd>
7069
+
7070
+
7071
+
7072
+ <dt class="tag-source">Source:</dt>
7073
+ <dd class="tag-source"><ul class="dummy"><li>
7074
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1113">line 1113</a>
7075
+ </li></ul></dd>
7076
+
7077
+
7078
+
7079
+
7080
+
7081
+
7082
+
7083
+
7084
+
7085
+
7086
+
7087
+
7088
+
7089
+
7090
+
7091
+
7092
+
7093
+
7094
+
7095
+
7096
+
7097
+
7098
+
7099
+
7100
+
7101
+
7102
+
7103
+
7104
+
7105
+
7106
+
7107
+ </dl>
7108
+
7109
+
7110
+
7111
+
7112
+
7113
+
7114
+
7115
+
7116
+
7117
+
7118
+
7119
+ <h5 class="h5-examples">Example</h5>
7120
+
7121
+ <pre class="prettyprint"><code>fetchPackData(404048)
7122
+ .then(challenge => console.log(challenge))
7123
+ .catch(error => console.error(error));</code></pre>
7124
+
7125
+
7126
+
7127
+
7128
+ <h5 class="h5-parameters">Parameters:</h5>
7129
+
7130
+
7131
+ <table class="params">
7132
+ <thead>
7133
+ <tr>
7134
+
7135
+ <th>Name</th>
7136
+
7137
+
7138
+ <th>Type</th>
7139
+
7140
+
7141
+
7142
+
7143
+
7144
+ <th class="last">Description</th>
7145
+ </tr>
7146
+ </thead>
7147
+
7148
+ <tbody>
7149
+
7150
+
7151
+ <tr>
7152
+
7153
+ <td class="name"><code>id</code></td>
7154
+
7155
+
7156
+ <td class="type">
7157
+
7158
+
7159
+ <span class="param-type">number</span>
7160
+
7161
+
7162
+
7163
+
7164
+ </td>
7165
+
7166
+
7167
+
7168
+
7169
+
7170
+ <td class="description last">The Railcontent ID of the pack</td>
7171
+ </tr>
7172
+
7173
+
7174
+ </tbody>
7175
+ </table>
7176
+
7177
+
7178
+
7179
+
7180
+
7181
+
7182
+
7183
+
7184
+
7185
+
7186
+
7187
+
7188
+
7189
+
7190
+
7191
+
7192
+ <h5 class="h5-returns">Returns:</h5>
7193
+
7194
+
7195
+ <div class="param-desc">
7196
+ - The pack information and lessons or null if not found.
7197
+ </div>
7198
+
7199
+
7200
+
7201
+ <dl class="param-type">
7202
+ <dt>
7203
+ Type
7204
+ </dt>
7205
+ <dd>
7206
+
7207
+ <span class="param-type">Promise.&lt;(Object|null)></span>
7208
+
7209
+
7210
+
7211
+ </dd>
7212
+ </dl>
7213
+
7214
+
7215
+
7216
+
7217
+
7218
+
7219
+
7220
+
7221
+
7222
+
6336
7223
  <h4 class="name" id=".fetchParentByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchParentByRailContentId<span class="signature">(railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;string>|null)>}</span></h4>
6337
7224
 
6338
7225
 
@@ -6346,7 +7233,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6346
7233
 
6347
7234
  <dt class="tag-source">Source:</dt>
6348
7235
  <dd class="tag-source"><ul class="dummy"><li>
6349
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line693">line 693</a>
7236
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line707">line 707</a>
6350
7237
  </li></ul></dd>
6351
7238
 
6352
7239
 
@@ -6498,7 +7385,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6498
7385
 
6499
7386
  <dt class="tag-source">Source:</dt>
6500
7387
  <dd class="tag-source"><ul class="dummy"><li>
6501
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line954">line 954</a>
7388
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line966">line 966</a>
6502
7389
  </li></ul></dd>
6503
7390
 
6504
7391
 
@@ -6680,7 +7567,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6680
7567
 
6681
7568
  <dt class="tag-source">Source:</dt>
6682
7569
  <dd class="tag-source"><ul class="dummy"><li>
6683
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line976">line 976</a>
7570
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line985">line 985</a>
6684
7571
  </li></ul></dd>
6685
7572
 
6686
7573
 
@@ -6862,7 +7749,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6862
7749
 
6863
7750
  <dt class="tag-source">Source:</dt>
6864
7751
  <dd class="tag-source"><ul class="dummy"><li>
6865
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line95">line 95</a>
7752
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line102">line 102</a>
6866
7753
  </li></ul></dd>
6867
7754
 
6868
7755
 
@@ -7048,7 +7935,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7048
7935
 
7049
7936
  <dt class="tag-source">Source:</dt>
7050
7937
  <dd class="tag-source"><ul class="dummy"><li>
7051
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1313">line 1313</a>
7938
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1355">line 1355</a>
7052
7939
  </li></ul></dd>
7053
7940
 
7054
7941
 
@@ -7346,7 +8233,7 @@ fetchSanity(query, true)
7346
8233
 
7347
8234
  <dt class="tag-source">Source:</dt>
7348
8235
  <dd class="tag-source"><ul class="dummy"><li>
7349
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line356">line 356</a>
8236
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line368">line 368</a>
7350
8237
  </li></ul></dd>
7351
8238
 
7352
8239
 
@@ -7514,7 +8401,7 @@ fetchSanity(query, true)
7514
8401
 
7515
8402
  <dt class="tag-source">Source:</dt>
7516
8403
  <dd class="tag-source"><ul class="dummy"><li>
7517
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1431">line 1431</a>
8404
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1476">line 1476</a>
7518
8405
  </li></ul></dd>
7519
8406
 
7520
8407
 
@@ -7669,7 +8556,7 @@ fetchSanity(query, true)
7669
8556
 
7670
8557
  <dt class="tag-source">Source:</dt>
7671
8558
  <dd class="tag-source"><ul class="dummy"><li>
7672
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line78">line 78</a>
8559
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line85">line 85</a>
7673
8560
  </li></ul></dd>
7674
8561
 
7675
8562
 
@@ -7827,7 +8714,7 @@ fetchSanity(query, true)
7827
8714
 
7828
8715
  <dt class="tag-source">Source:</dt>
7829
8716
  <dd class="tag-source"><ul class="dummy"><li>
7830
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line39">line 39</a>
8717
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line46">line 46</a>
7831
8718
  </li></ul></dd>
7832
8719
 
7833
8720
 
@@ -7992,7 +8879,7 @@ fetchSanity(query, true)
7992
8879
 
7993
8880
  <dt class="tag-source">Source:</dt>
7994
8881
  <dd class="tag-source"><ul class="dummy"><li>
7995
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line235">line 235</a>
8882
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line242">line 242</a>
7996
8883
  </li></ul></dd>
7997
8884
 
7998
8885
 
@@ -8150,7 +9037,7 @@ fetchSanity(query, true)
8150
9037
 
8151
9038
  <dt class="tag-source">Source:</dt>
8152
9039
  <dd class="tag-source"><ul class="dummy"><li>
8153
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line207">line 207</a>
9040
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line214">line 214</a>
8154
9041
  </li></ul></dd>
8155
9042
 
8156
9043
 
@@ -8315,7 +9202,7 @@ fetchSanity(query, true)
8315
9202
 
8316
9203
  <dt class="tag-source">Source:</dt>
8317
9204
  <dd class="tag-source"><ul class="dummy"><li>
8318
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line312">line 312</a>
9205
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line323">line 323</a>
8319
9206
  </li></ul></dd>
8320
9207
 
8321
9208
 
@@ -8485,7 +9372,7 @@ It also includes completion status and progress percentage for each workout by f
8485
9372
 
8486
9373
  <dt class="tag-source">Source:</dt>
8487
9374
  <dd class="tag-source"><ul class="dummy"><li>
8488
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line253">line 253</a>
9375
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line261">line 261</a>
8489
9376
  </li></ul></dd>
8490
9377
 
8491
9378
 
@@ -8607,7 +9494,8 @@ It also includes completion status and progress percentage for each workout by f
8607
9494
 
8608
9495
 
8609
9496
  <div class="param-desc">
8610
- - A promise that resolves to an array of workout data objects with additional properties for completion status and progress percentage, or null if no workouts are found.
9497
+ - A promise that resolves to an array of workout data objects with additional properties for completion status and progress percentage,
9498
+ or null if no workouts are found.
8611
9499
  </div>
8612
9500
 
8613
9501
 
@@ -8649,7 +9537,7 @@ It also includes completion status and progress percentage for each workout by f
8649
9537
  <br class="clear">
8650
9538
 
8651
9539
  <footer>
8652
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Wed Oct 02 2024 12:20:08 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
9540
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Oct 15 2024 11:28:17 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
8653
9541
  </footer>
8654
9542
 
8655
9543
  <script>prettyPrint();</script>