musora-content-services 1.0.142 → 1.0.144

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 (60) 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 +8 -4
  6. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  14. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  24. package/docs/index.html +2 -2
  25. package/docs/module-Config.html +30 -5
  26. package/docs/module-Railcontent-Services.html +2 -2
  27. package/docs/module-Sanity-Services.html +285 -46
  28. package/docs/railcontent.js.html +19 -2
  29. package/docs/sanity.js.html +79 -73
  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/link_mcs.sh +0 -0
  44. package/package.json +1 -1
  45. package/src/contentMetaData.js +0 -0
  46. package/src/contentTypeConfig.js +1 -0
  47. package/src/filterBuilder.js +0 -0
  48. package/src/index.d.ts +6 -0
  49. package/src/index.js +6 -0
  50. package/src/services/config.js +0 -0
  51. package/src/services/contentLikes.js +0 -0
  52. package/src/services/dataContext.js +0 -0
  53. package/src/services/railcontent.js +17 -0
  54. package/src/services/sanity.js +55 -71
  55. package/test/contentLikes.test.js +0 -0
  56. package/test/localStorageMock.js +0 -0
  57. package/test/log.js +0 -0
  58. package/test/sanityQueryService.test.js +0 -0
  59. package/tools/generate-index.js +0 -0
  60. package/test/playlists.test.js +0 -86
@@ -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></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>
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#.fetchParentForDownload">fetchParentForDownload</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
 
@@ -777,7 +777,7 @@
777
777
 
778
778
 
779
779
 
780
- <h4 class="name" id=".fetchAllFilterOptions"><span class="type-signature type-signature-static">(static) </span>fetchAllFilterOptions<span class="signature">(brand, filters, style<span class="signature-attributes">opt</span>, artist<span class="signature-attributes">opt</span>, contentType, term<span class="signature-attributes">opt</span>, progressIds<span class="signature-attributes">opt</span>, coachId<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
780
+ <h4 class="name" id=".fetchAllFilterOptions"><span class="type-signature type-signature-static">(static) </span>fetchAllFilterOptions<span class="signature">(brand, filters, style<span class="signature-attributes">opt</span>, artist<span class="signature-attributes">opt</span>, contentType, term<span class="signature-attributes">opt</span>, progressIds<span class="signature-attributes">opt</span>, coachId<span class="signature-attributes">opt</span>, includeTabs<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
781
781
 
782
782
 
783
783
 
@@ -787,7 +787,7 @@
787
787
  <dl class="details">
788
788
 
789
789
  <dt class="tag-description">Description:</dt>
790
- <dd class="tag-description"><ul class="dummy"><li>Fetches all available filter options based on various criteria such as brand, filters, style, artist, content type, and search term.
790
+ <dd class="tag-description"><ul class="dummy"><li>Fetches all available filter options based on brand, filters, and various optional criteria.
791
791
 
792
792
  This function constructs a query to retrieve the total number of results and filter options such as difficulty, instrument type, and genre.
793
793
  The filter options are dynamically generated based on the provided filters, style, artist, and content type.
@@ -844,13 +844,13 @@ If a coachId is provided, the content type must be 'coach-lessons'.</li></ul></d
844
844
 
845
845
  <h5 class="h5-examples">Examples</h5>
846
846
 
847
- <pre class="prettyprint"><code>// Example usage:
848
- fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'song', 'Love')
847
+ <pre class="prettyprint"><code>// Fetch filter options for 'song' content type:
848
+ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'song', 'Love')
849
849
  .then(options => console.log(options))
850
850
  .catch(error => console.error(error));</code></pre>
851
851
 
852
- <pre class="prettyprint"><code>// Example usage with coachId:
853
- fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love', undefined, '123')
852
+ <pre class="prettyprint"><code>// Fetch filter options for a coach's lessons with coachId:
853
+ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love', undefined, '123')
854
854
  .then(options => console.log(options))
855
855
  .catch(error => console.error(error));</code></pre>
856
856
 
@@ -874,6 +874,8 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
874
874
 
875
875
 
876
876
 
877
+ <th>Default</th>
878
+
877
879
 
878
880
  <th class="last">Description</th>
879
881
  </tr>
@@ -908,8 +910,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
908
910
 
909
911
 
910
912
 
913
+ <td class="default">
914
+
915
+ </td>
916
+
911
917
 
912
- <td class="description last">The brand for which to fetch the filter options.</td>
918
+ <td class="description last">Brand to filter.</td>
913
919
  </tr>
914
920
 
915
921
 
@@ -940,8 +946,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
940
946
 
941
947
 
942
948
 
949
+ <td class="default">
950
+
951
+ </td>
952
+
943
953
 
944
- <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>
954
+ <td class="description last">Key-value pairs to filter the query.</td>
945
955
  </tr>
946
956
 
947
957
 
@@ -974,8 +984,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
974
984
 
975
985
 
976
986
 
987
+ <td class="default">
988
+
989
+ </td>
990
+
977
991
 
978
- <td class="description last">Optional style or genre to filter the results. If provided, the query will check if the style exists in the genre array.</td>
992
+ <td class="description last">Optional style/genre filter.</td>
979
993
  </tr>
980
994
 
981
995
 
@@ -1008,8 +1022,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1008
1022
 
1009
1023
 
1010
1024
 
1025
+ <td class="default">
1026
+
1027
+ </td>
1028
+
1011
1029
 
1012
- <td class="description last">Optional artist name to filter the results. If provided, the query will check if the artist's name matches.</td>
1030
+ <td class="description last">Optional artist name filter.</td>
1013
1031
  </tr>
1014
1032
 
1015
1033
 
@@ -1040,8 +1058,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1040
1058
 
1041
1059
 
1042
1060
 
1061
+ <td class="default">
1062
+
1063
+ </td>
1064
+
1043
1065
 
1044
- <td class="description last">The content type to fetch (e.g., 'song', 'lesson').</td>
1066
+ <td class="description last">Content type (e.g., 'song', 'lesson').</td>
1045
1067
  </tr>
1046
1068
 
1047
1069
 
@@ -1074,8 +1096,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1074
1096
 
1075
1097
 
1076
1098
 
1099
+ <td class="default">
1100
+
1101
+ </td>
1102
+
1077
1103
 
1078
- <td class="description last">Optional search term to match against various fields such as title, album, artist name, and genre.</td>
1104
+ <td class="description last">Optional search term for title, album, artist, or genre.</td>
1079
1105
  </tr>
1080
1106
 
1081
1107
 
@@ -1108,8 +1134,12 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1108
1134
 
1109
1135
 
1110
1136
 
1137
+ <td class="default">
1138
+
1139
+ </td>
1140
+
1111
1141
 
1112
- <td class="description last">An array of railcontent IDs to filter the results by. Used for filtering by progress.</td>
1142
+ <td class="description last">Optional array of progress IDs to filter by.</td>
1113
1143
  </tr>
1114
1144
 
1115
1145
 
@@ -1142,8 +1172,52 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1142
1172
 
1143
1173
 
1144
1174
 
1175
+ <td class="default">
1176
+
1177
+ </td>
1178
+
1145
1179
 
1146
- <td class="description last">Optional coach ID to filter the results by a specific coach. If provided, contentType must be 'coach-lessons'.</td>
1180
+ <td class="description last">Optional coach ID (only valid if contentType is 'coach-lessons').</td>
1181
+ </tr>
1182
+
1183
+
1184
+
1185
+ <tr>
1186
+
1187
+ <td class="name"><code>includeTabs</code></td>
1188
+
1189
+
1190
+ <td class="type">
1191
+
1192
+
1193
+ <span class="param-type">boolean</span>
1194
+
1195
+
1196
+
1197
+
1198
+ </td>
1199
+
1200
+
1201
+ <td class="attributes">
1202
+
1203
+ &lt;optional><br>
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+ </td>
1210
+
1211
+
1212
+
1213
+ <td class="default">
1214
+
1215
+ <code>false</code>
1216
+
1217
+ </td>
1218
+
1219
+
1220
+ <td class="description last">Whether to include tabs in the returned metadata.</td>
1147
1221
  </tr>
1148
1222
 
1149
1223
 
@@ -1170,7 +1244,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1170
1244
  <dl>
1171
1245
  <dt>
1172
1246
  <div class="param-desc usertext">
1173
- Will throw an error if coachId is provided but contentType is not 'coach-lessons'.
1247
+ If coachId is provided but contentType isn't 'coach-lessons'.
1174
1248
  </div>
1175
1249
  </dt>
1176
1250
  <dd></dd>
@@ -1199,7 +1273,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1199
1273
 
1200
1274
 
1201
1275
  <div class="param-desc">
1202
- - A promise that resolves to an object containing the total results and filter options, or null if the query fails.
1276
+ - The filter options and metadata.
1203
1277
  </div>
1204
1278
 
1205
1279
 
@@ -1210,7 +1284,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1210
1284
  </dt>
1211
1285
  <dd>
1212
1286
 
1213
- <span class="param-type">Promise.&lt;(Object|null)></span>
1287
+ <span class="param-type">Promise.&lt;Object></span>
1214
1288
 
1215
1289
 
1216
1290
 
@@ -1242,7 +1316,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
1242
1316
 
1243
1317
  <dt class="tag-source">Source:</dt>
1244
1318
  <dd class="tag-source"><ul class="dummy"><li>
1245
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1028">line 1028</a>
1319
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1012">line 1012</a>
1246
1320
  </li></ul></dd>
1247
1321
 
1248
1322
 
@@ -2042,7 +2116,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
2042
2116
 
2043
2117
  <dt class="tag-source">Source:</dt>
2044
2118
  <dd class="tag-source"><ul class="dummy"><li>
2045
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1271">line 1271</a>
2119
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1277">line 1277</a>
2046
2120
  </li></ul></dd>
2047
2121
 
2048
2122
 
@@ -3110,7 +3184,7 @@ fetchAllFilterOptions('myBrand', '', 'Rock', 'John Doe', 'coach-lessons', 'Love'
3110
3184
 
3111
3185
  <dt class="tag-source">Source:</dt>
3112
3186
  <dd class="tag-source"><ul class="dummy"><li>
3113
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1225">line 1225</a>
3187
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1231">line 1231</a>
3114
3188
  </li></ul></dd>
3115
3189
 
3116
3190
 
@@ -3276,7 +3350,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3276
3350
 
3277
3351
  <dt class="tag-source">Source:</dt>
3278
3352
  <dd class="tag-source"><ul class="dummy"><li>
3279
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1480">line 1480</a>
3353
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1486">line 1486</a>
3280
3354
  </li></ul></dd>
3281
3355
 
3282
3356
 
@@ -3441,7 +3515,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3441
3515
 
3442
3516
  <dt class="tag-source">Source:</dt>
3443
3517
  <dd class="tag-source"><ul class="dummy"><li>
3444
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1146">line 1146</a>
3518
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1130">line 1130</a>
3445
3519
  </li></ul></dd>
3446
3520
 
3447
3521
 
@@ -3606,7 +3680,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3606
3680
 
3607
3681
  <dt class="tag-source">Source:</dt>
3608
3682
  <dd class="tag-source"><ul class="dummy"><li>
3609
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line690">line 690</a>
3683
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line673">line 673</a>
3610
3684
  </li></ul></dd>
3611
3685
 
3612
3686
 
@@ -3808,7 +3882,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
3808
3882
 
3809
3883
  <dt class="tag-source">Source:</dt>
3810
3884
  <dd class="tag-source"><ul class="dummy"><li>
3811
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1171">line 1171</a>
3885
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1155">line 1155</a>
3812
3886
  </li></ul></dd>
3813
3887
 
3814
3888
 
@@ -4251,7 +4325,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4251
4325
 
4252
4326
  <dt class="tag-source">Source:</dt>
4253
4327
  <dd class="tag-source"><ul class="dummy"><li>
4254
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1210">line 1210</a>
4328
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1194">line 1194</a>
4255
4329
  </li></ul></dd>
4256
4330
 
4257
4331
 
@@ -4416,7 +4490,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4416
4490
 
4417
4491
  <dt class="tag-source">Source:</dt>
4418
4492
  <dd class="tag-source"><ul class="dummy"><li>
4419
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line736">line 736</a>
4493
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line719">line 719</a>
4420
4494
  </li></ul></dd>
4421
4495
 
4422
4496
 
@@ -4574,7 +4648,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
4574
4648
 
4575
4649
  <dt class="tag-source">Source:</dt>
4576
4650
  <dd class="tag-source"><ul class="dummy"><li>
4577
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1323">line 1323</a>
4651
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1329">line 1329</a>
4578
4652
  </li></ul></dd>
4579
4653
 
4580
4654
 
@@ -5055,7 +5129,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5055
5129
 
5056
5130
  <dt class="tag-source">Source:</dt>
5057
5131
  <dd class="tag-source"><ul class="dummy"><li>
5058
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line921">line 921</a>
5132
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line904">line 904</a>
5059
5133
  </li></ul></dd>
5060
5134
 
5061
5135
 
@@ -5220,7 +5294,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5220
5294
 
5221
5295
  <dt class="tag-source">Source:</dt>
5222
5296
  <dd class="tag-source"><ul class="dummy"><li>
5223
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1530">line 1530</a>
5297
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1536">line 1536</a>
5224
5298
  </li></ul></dd>
5225
5299
 
5226
5300
 
@@ -5405,7 +5479,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5405
5479
 
5406
5480
  <dt class="tag-source">Source:</dt>
5407
5481
  <dd class="tag-source"><ul class="dummy"><li>
5408
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line756">line 756</a>
5482
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line739">line 739</a>
5409
5483
  </li></ul></dd>
5410
5484
 
5411
5485
 
@@ -5587,7 +5661,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5587
5661
 
5588
5662
  <dt class="tag-source">Source:</dt>
5589
5663
  <dd class="tag-source"><ul class="dummy"><li>
5590
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line795">line 795</a>
5664
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line778">line 778</a>
5591
5665
  </li></ul></dd>
5592
5666
 
5593
5667
 
@@ -5745,7 +5819,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5745
5819
 
5746
5820
  <dt class="tag-source">Source:</dt>
5747
5821
  <dd class="tag-source"><ul class="dummy"><li>
5748
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line849">line 849</a>
5822
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line832">line 832</a>
5749
5823
  </li></ul></dd>
5750
5824
 
5751
5825
 
@@ -5903,7 +5977,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
5903
5977
 
5904
5978
  <dt class="tag-source">Source:</dt>
5905
5979
  <dd class="tag-source"><ul class="dummy"><li>
5906
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line816">line 816</a>
5980
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line799">line 799</a>
5907
5981
  </li></ul></dd>
5908
5982
 
5909
5983
 
@@ -6085,7 +6159,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6085
6159
 
6086
6160
  <dt class="tag-source">Source:</dt>
6087
6161
  <dd class="tag-source"><ul class="dummy"><li>
6088
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line833">line 833</a>
6162
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line816">line 816</a>
6089
6163
  </li></ul></dd>
6090
6164
 
6091
6165
 
@@ -6274,7 +6348,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6274
6348
 
6275
6349
  <dt class="tag-source">Source:</dt>
6276
6350
  <dd class="tag-source"><ul class="dummy"><li>
6277
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line724">line 724</a>
6351
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line707">line 707</a>
6278
6352
  </li></ul></dd>
6279
6353
 
6280
6354
 
@@ -6590,7 +6664,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6590
6664
 
6591
6665
  <dt class="tag-source">Source:</dt>
6592
6666
  <dd class="tag-source"><ul class="dummy"><li>
6593
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line887">line 887</a>
6667
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line870">line 870</a>
6594
6668
  </li></ul></dd>
6595
6669
 
6596
6670
 
@@ -6748,7 +6822,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6748
6822
 
6749
6823
  <dt class="tag-source">Source:</dt>
6750
6824
  <dd class="tag-source"><ul class="dummy"><li>
6751
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1055">line 1055</a>
6825
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1039">line 1039</a>
6752
6826
  </li></ul></dd>
6753
6827
 
6754
6828
 
@@ -6906,7 +6980,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
6906
6980
 
6907
6981
  <dt class="tag-source">Source:</dt>
6908
6982
  <dd class="tag-source"><ul class="dummy"><li>
6909
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1115">line 1115</a>
6983
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1099">line 1099</a>
6910
6984
  </li></ul></dd>
6911
6985
 
6912
6986
 
@@ -7071,7 +7145,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7071
7145
 
7072
7146
  <dt class="tag-source">Source:</dt>
7073
7147
  <dd class="tag-source"><ul class="dummy"><li>
7074
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1129">line 1129</a>
7148
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1113">line 1113</a>
7075
7149
  </li></ul></dd>
7076
7150
 
7077
7151
 
@@ -7233,7 +7307,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7233
7307
 
7234
7308
  <dt class="tag-source">Source:</dt>
7235
7309
  <dd class="tag-source"><ul class="dummy"><li>
7236
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line707">line 707</a>
7310
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line690">line 690</a>
7237
7311
  </li></ul></dd>
7238
7312
 
7239
7313
 
@@ -7369,6 +7443,171 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7369
7443
 
7370
7444
 
7371
7445
 
7446
+ <h4 class="name" id=".fetchParentForDownload"><span class="type-signature type-signature-static">(static) </span>fetchParentForDownload<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
7447
+
7448
+
7449
+
7450
+
7451
+
7452
+
7453
+ <dl class="details">
7454
+
7455
+ <dt class="tag-description">Description:</dt>
7456
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the Course Overview screen.</li></ul></dd>
7457
+
7458
+
7459
+
7460
+ <dt class="tag-source">Source:</dt>
7461
+ <dd class="tag-source"><ul class="dummy"><li>
7462
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1208">line 1208</a>
7463
+ </li></ul></dd>
7464
+
7465
+
7466
+
7467
+
7468
+
7469
+
7470
+
7471
+
7472
+
7473
+
7474
+
7475
+
7476
+
7477
+
7478
+
7479
+
7480
+
7481
+
7482
+
7483
+
7484
+
7485
+
7486
+
7487
+
7488
+
7489
+
7490
+
7491
+
7492
+
7493
+
7494
+
7495
+ </dl>
7496
+
7497
+
7498
+
7499
+
7500
+
7501
+
7502
+
7503
+
7504
+
7505
+
7506
+
7507
+ <h5 class="h5-examples">Example</h5>
7508
+
7509
+ <pre class="prettyprint"><code>fetchParentForDownload('course123')
7510
+ .then(course => console.log(course))
7511
+ .catch(error => console.error(error));</code></pre>
7512
+
7513
+
7514
+
7515
+
7516
+ <h5 class="h5-parameters">Parameters:</h5>
7517
+
7518
+
7519
+ <table class="params">
7520
+ <thead>
7521
+ <tr>
7522
+
7523
+ <th>Name</th>
7524
+
7525
+
7526
+ <th>Type</th>
7527
+
7528
+
7529
+
7530
+
7531
+
7532
+ <th class="last">Description</th>
7533
+ </tr>
7534
+ </thead>
7535
+
7536
+ <tbody>
7537
+
7538
+
7539
+ <tr>
7540
+
7541
+ <td class="name"><code>id</code></td>
7542
+
7543
+
7544
+ <td class="type">
7545
+
7546
+
7547
+ <span class="param-type">string</span>
7548
+
7549
+
7550
+
7551
+
7552
+ </td>
7553
+
7554
+
7555
+
7556
+
7557
+
7558
+ <td class="description last">The Railcontent ID of the course</td>
7559
+ </tr>
7560
+
7561
+
7562
+ </tbody>
7563
+ </table>
7564
+
7565
+
7566
+
7567
+
7568
+
7569
+
7570
+
7571
+
7572
+
7573
+
7574
+
7575
+
7576
+
7577
+
7578
+
7579
+
7580
+ <h5 class="h5-returns">Returns:</h5>
7581
+
7582
+
7583
+ <div class="param-desc">
7584
+ - The course information and lessons or null if not found.
7585
+ </div>
7586
+
7587
+
7588
+
7589
+ <dl class="param-type">
7590
+ <dt>
7591
+ Type
7592
+ </dt>
7593
+ <dd>
7594
+
7595
+ <span class="param-type">Promise.&lt;(Object|null)></span>
7596
+
7597
+
7598
+
7599
+ </dd>
7600
+ </dl>
7601
+
7602
+
7603
+
7604
+
7605
+
7606
+
7607
+
7608
+
7609
+
7610
+
7372
7611
  <h4 class="name" id=".fetchRelatedLessons"><span class="type-signature type-signature-static">(static) </span>fetchRelatedLessons<span class="signature">(railContentId, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
7373
7612
 
7374
7613
 
@@ -7385,7 +7624,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7385
7624
 
7386
7625
  <dt class="tag-source">Source:</dt>
7387
7626
  <dd class="tag-source"><ul class="dummy"><li>
7388
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line982">line 982</a>
7627
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line966">line 966</a>
7389
7628
  </li></ul></dd>
7390
7629
 
7391
7630
 
@@ -7567,7 +7806,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7567
7806
 
7568
7807
  <dt class="tag-source">Source:</dt>
7569
7808
  <dd class="tag-source"><ul class="dummy"><li>
7570
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1001">line 1001</a>
7809
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line985">line 985</a>
7571
7810
  </li></ul></dd>
7572
7811
 
7573
7812
 
@@ -7935,7 +8174,7 @@ It's an ongoing discussion (Aug 2024), but it's been included here if necessary<
7935
8174
 
7936
8175
  <dt class="tag-source">Source:</dt>
7937
8176
  <dd class="tag-source"><ul class="dummy"><li>
7938
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1371">line 1371</a>
8177
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1377">line 1377</a>
7939
8178
  </li></ul></dd>
7940
8179
 
7941
8180
 
@@ -8401,7 +8640,7 @@ fetchSanity(query, true)
8401
8640
 
8402
8641
  <dt class="tag-source">Source:</dt>
8403
8642
  <dd class="tag-source"><ul class="dummy"><li>
8404
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1505">line 1505</a>
8643
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1511">line 1511</a>
8405
8644
  </li></ul></dd>
8406
8645
 
8407
8646
 
@@ -9537,7 +9776,7 @@ It also includes completion status and progress percentage for each workout by f
9537
9776
  <br class="clear">
9538
9777
 
9539
9778
  <footer>
9540
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Wed Oct 16 2024 19:36:10 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
9779
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Oct 24 2024 18:49:53 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
9541
9780
  </footer>
9542
9781
 
9543
9782
  <script>prettyPrint();</script>