musora-content-services 2.84.0 → 2.85.1

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 (219) hide show
  1. package/.claude/settings.local.json +14 -0
  2. package/.coderabbit.yaml +0 -0
  3. package/.editorconfig +0 -0
  4. package/.github/pull_request_template.md +0 -0
  5. package/.github/workflows/conventional-commits.yaml +0 -0
  6. package/.github/workflows/docs.js.yml +0 -0
  7. package/.github/workflows/node.js.yml +0 -0
  8. package/.prettierignore +0 -0
  9. package/.prettierrc +0 -0
  10. package/.yarnrc.yml +1 -0
  11. package/CHANGELOG.md +15 -0
  12. package/README.md +0 -0
  13. package/babel.config.cjs +0 -0
  14. package/docs/Content.html +0 -0
  15. package/docs/ContentOrganization.html +2 -2
  16. package/docs/Forums.html +2 -2
  17. package/docs/Gamification.html +2 -2
  18. package/docs/TestUser.html +2 -2
  19. package/docs/UserManagementSystem.html +2 -2
  20. package/docs/api_types.js.html +2 -2
  21. package/docs/config.js.html +2 -5
  22. package/docs/content-org_content-org.js.html +2 -2
  23. package/docs/content-org_guided-courses.ts.html +2 -2
  24. package/docs/content-org_learning-paths.ts.html +24 -126
  25. package/docs/content-org_playlists-types.js.html +2 -2
  26. package/docs/content-org_playlists.js.html +2 -2
  27. package/docs/content.js.html +10 -88
  28. package/docs/content_artist.ts.html +0 -0
  29. package/docs/content_content.ts.html +0 -0
  30. package/docs/content_genre.ts.html +0 -0
  31. package/docs/content_instructor.ts.html +0 -0
  32. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  33. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  34. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  35. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  36. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  37. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  38. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  39. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  40. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  41. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  42. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  43. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  44. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  45. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  46. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  47. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  48. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  49. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  50. package/docs/forums_categories.ts.html +3 -22
  51. package/docs/forums_discussions.js.html +0 -0
  52. package/docs/forums_forum.js.html +0 -0
  53. package/docs/forums_forums.ts.html +2 -2
  54. package/docs/forums_posts.ts.html +2 -2
  55. package/docs/forums_threads.ts.html +2 -2
  56. package/docs/gamification_awards.js.html +0 -0
  57. package/docs/gamification_awards.ts.html +12 -26
  58. package/docs/gamification_gamification.js.html +2 -2
  59. package/docs/gamification_types.js.html +0 -0
  60. package/docs/global.html +2 -2
  61. package/docs/index.html +2 -2
  62. package/docs/liveTesting.ts.html +2 -2
  63. package/docs/module-Accounts.html +14 -14
  64. package/docs/module-Artist.html +0 -0
  65. package/docs/module-Awards.html +6 -106
  66. package/docs/module-Categories.html +0 -0
  67. package/docs/module-Config.html +4 -5
  68. package/docs/module-Content-Services-V2.html +9 -440
  69. package/docs/module-ForumCategories.html +0 -0
  70. package/docs/module-ForumDiscussions.html +0 -0
  71. package/docs/module-Forums.html +43 -607
  72. package/docs/module-Genre.html +0 -0
  73. package/docs/module-GuidedCourses.html +2 -2
  74. package/docs/module-Instructor.html +0 -0
  75. package/docs/module-Interests.html +2 -2
  76. package/docs/module-LearningPaths.html +12 -640
  77. package/docs/module-Onboarding.html +2 -2
  78. package/docs/module-Payments.html +2 -2
  79. package/docs/module-Permissions.html +2 -2
  80. package/docs/module-Playlists.html +2 -2
  81. package/docs/module-ProgressRow.html +2 -2
  82. package/docs/module-Railcontent-Services.html +298 -31
  83. package/docs/module-Sanity-Services.html +1901 -530
  84. package/docs/module-Sessions.html +2 -2
  85. package/docs/module-Threads.html +0 -0
  86. package/docs/module-UserActivity.html +5 -5
  87. package/docs/module-UserChat.html +2 -2
  88. package/docs/module-UserManagement.html +2 -2
  89. package/docs/module-UserMemberships.html +2 -2
  90. package/docs/module-UserNotifications.html +2 -2
  91. package/docs/module-UserProfile.html +2 -2
  92. package/docs/progress-row_method-card.js.html +3 -3
  93. package/docs/railcontent.js.html +20 -8
  94. package/docs/sanity.js.html +313 -199
  95. package/docs/scripts/collapse.js +0 -0
  96. package/docs/scripts/commonNav.js +0 -0
  97. package/docs/scripts/linenumber.js +0 -0
  98. package/docs/scripts/nav.js +0 -0
  99. package/docs/scripts/polyfill.js +0 -0
  100. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  101. package/docs/scripts/prettify/lang-css.js +0 -0
  102. package/docs/scripts/prettify/prettify.js +0 -0
  103. package/docs/scripts/search.js +0 -0
  104. package/docs/styles/jsdoc.css +0 -0
  105. package/docs/styles/prettify.css +0 -0
  106. package/docs/userActivity.js.html +5 -17
  107. package/docs/user_account.ts.html +13 -14
  108. package/docs/user_chat.js.html +2 -2
  109. package/docs/user_interests.js.html +2 -2
  110. package/docs/user_management.js.html +2 -2
  111. package/docs/user_memberships.js.html +0 -0
  112. package/docs/user_memberships.ts.html +2 -2
  113. package/docs/user_notifications.js.html +2 -2
  114. package/docs/user_onboarding.ts.html +2 -2
  115. package/docs/user_payments.ts.html +2 -2
  116. package/docs/user_permissions.js.html +3 -3
  117. package/docs/user_profile.js.html +2 -2
  118. package/docs/user_sessions.js.html +2 -2
  119. package/docs/user_types.js.html +2 -2
  120. package/docs/user_user-management-system.js.html +2 -2
  121. package/jest.config.js +0 -0
  122. package/jsdoc.json +0 -0
  123. package/package.json +1 -1
  124. package/src/contentMetaData.js +0 -0
  125. package/src/filterBuilder.js +0 -0
  126. package/src/index.d.ts +2 -2
  127. package/src/index.js +2 -2
  128. package/src/infrastructure/http/HttpClient.ts +0 -0
  129. package/src/infrastructure/http/executors/FetchRequestExecutor.ts +0 -0
  130. package/src/infrastructure/http/index.ts +0 -0
  131. package/src/infrastructure/http/interfaces/HeaderProvider.ts +0 -0
  132. package/src/infrastructure/http/interfaces/HttpError.ts +0 -0
  133. package/src/infrastructure/http/interfaces/NetworkError.ts +0 -0
  134. package/src/infrastructure/http/interfaces/RequestExecutor.ts +0 -0
  135. package/src/infrastructure/http/interfaces/RequestOptions.ts +0 -0
  136. package/src/infrastructure/http/providers/DefaultHeaderProvider.ts +0 -0
  137. package/src/lib/httpHelper.js +0 -0
  138. package/src/lib/lastUpdated.js +0 -0
  139. package/src/services/api/types.js +0 -0
  140. package/src/services/api/types.ts +0 -0
  141. package/src/services/config.js +0 -0
  142. package/src/services/content/artist.ts +0 -0
  143. package/src/services/content/content.ts +0 -0
  144. package/src/services/content/genre.ts +0 -0
  145. package/src/services/content/instructor.ts +0 -0
  146. package/src/services/content-org/content-org.js +0 -0
  147. package/src/services/content-org/guided-courses.ts +0 -0
  148. package/src/services/content-org/learning-paths.ts +0 -0
  149. package/src/services/content-org/playlists-types.js +0 -0
  150. package/src/services/content-org/playlists.js +0 -0
  151. package/src/services/content.js +0 -0
  152. package/src/services/contentAggregator.js +10 -23
  153. package/src/services/contentLikes.js +0 -0
  154. package/src/services/contentProgress.js +250 -147
  155. package/src/services/dataContext.js +0 -0
  156. package/src/services/dateUtils.js +0 -0
  157. package/src/services/eventsAPI.js +0 -0
  158. package/src/services/forums/categories.ts +0 -0
  159. package/src/services/forums/forums.ts +0 -0
  160. package/src/services/forums/posts.ts +0 -0
  161. package/src/services/forums/threads.ts +7 -7
  162. package/src/services/forums/types.ts +1 -0
  163. package/src/services/gamification/awards.ts +0 -0
  164. package/src/services/gamification/gamification.js +0 -0
  165. package/src/services/imageSRCBuilder.js +0 -0
  166. package/src/services/imageSRCVerify.js +0 -0
  167. package/src/services/liveTesting.ts +0 -0
  168. package/src/services/permissions/PermissionsAdapter.ts +0 -0
  169. package/src/services/permissions/PermissionsAdapterFactory.ts +0 -0
  170. package/src/services/permissions/PermissionsV1Adapter.ts +0 -0
  171. package/src/services/permissions/PermissionsV2Adapter.ts +0 -0
  172. package/src/services/permissions/README.md +0 -0
  173. package/src/services/permissions/index.ts +0 -0
  174. package/src/services/progress-row/method-card.js +0 -0
  175. package/src/services/railcontent.js +18 -6
  176. package/src/services/recommendations.js +0 -0
  177. package/src/services/sanity.js +18 -2
  178. package/src/services/types.js +0 -0
  179. package/src/services/user/account.ts +0 -0
  180. package/src/services/user/chat.js +0 -0
  181. package/src/services/user/interests.js +0 -0
  182. package/src/services/user/management.js +0 -0
  183. package/src/services/user/memberships.ts +0 -0
  184. package/src/services/user/notifications.js +0 -0
  185. package/src/services/user/onboarding.ts +0 -0
  186. package/src/services/user/payments.ts +0 -0
  187. package/src/services/user/permissions.js +0 -0
  188. package/src/services/user/profile.js +0 -0
  189. package/src/services/user/sessions.js +0 -0
  190. package/src/services/user/types.d.ts +0 -0
  191. package/src/services/user/types.js +0 -0
  192. package/src/services/user/user-management-system.js +0 -0
  193. package/src/services/userActivity.js +3 -14
  194. package/test/HttpClient.test.js +0 -0
  195. package/test/content.test.js +0 -0
  196. package/test/contentLikes.test.js +0 -0
  197. package/test/contentProgress.test.js +0 -0
  198. package/test/dataContext.test.js +0 -0
  199. package/test/forum.test.js +0 -0
  200. package/test/imageSRCBuilder.test.js +0 -0
  201. package/test/imageSRCVerify.test.js +0 -0
  202. package/test/initializeTests.js +0 -0
  203. package/test/learningPaths.test.js +0 -0
  204. package/test/lib/lastUpdated.test.js +0 -0
  205. package/test/live/contentProgressLive.test.js +0 -0
  206. package/test/live/railcontentLive.test.js +0 -0
  207. package/test/localStorageMock.js +0 -0
  208. package/test/log.js +0 -0
  209. package/test/mockData/mockData_fetchByRailContentIds_one_content.json +0 -0
  210. package/test/mockData/mockData_progress_content.json +0 -0
  211. package/test/mockData/mockData_sanity_progress_content.json +0 -0
  212. package/test/mockData/mockData_user_practices.json +0 -0
  213. package/test/notifications.test.js +0 -0
  214. package/test/progressRows.test.js +0 -0
  215. package/test/sanityQueryService.test.js +0 -0
  216. package/test/streakMessage.test.js +0 -0
  217. package/test/user/permissions.test.js +0 -0
  218. package/test/userActivity.test.js +0 -0
  219. package/tools/generate-index.cjs +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-Accounts.html">Accounts</a><ul class='methods'><li data-type='method'><a href="module-Accounts.html#~confirmEmailChange">confirmEmailChange</a></li><li data-type='method'><a href="module-Accounts.html#~deleteAccount">deleteAccount</a></li><li data-type='method'><a href="module-Accounts.html#~numberOfActiveUsers">numberOfActiveUsers</a></li><li data-type='method'><a href="module-Accounts.html#~requestEmailChange">requestEmailChange</a></li><li data-type='method'><a href="module-Accounts.html#~resetPassword">resetPassword</a></li><li data-type='method'><a href="module-Accounts.html#~sendAccountSetupEmail">sendAccountSetupEmail</a></li><li data-type='method'><a href="module-Accounts.html#~sendPasswordResetEmail">sendPasswordResetEmail</a></li><li data-type='method'><a href="module-Accounts.html#~setupAccount">setupAccount</a></li><li data-type='method'><a href="module-Accounts.html#~status">status</a></li><li data-type='method'><a href="module-Accounts.html#~toggleStudentView">toggleStudentView</a></li></ul></li><li><a href="module-Artist.html">Artist</a><ul class='methods'><li data-type='method'><a href="module-Artist.html#~fetchArtistBySlug">fetchArtistBySlug</a></li><li data-type='method'><a href="module-Artist.html#~fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Artist.html#~fetchArtists">fetchArtists</a></li></ul></li><li><a href="module-Awards.html">Awards</a><ul class='methods'><li data-type='method'><a href="module-Awards.html#~fetchAwardsForUser">fetchAwardsForUser</a></li><li data-type='method'><a href="module-Awards.html#~fetchCertificate">fetchCertificate</a></li><li data-type='method'><a href="module-Awards.html#~getAwardDataForGuidedContent">getAwardDataForGuidedContent</a></li></ul></li><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-Content-Services-V2.html">Content-Services-V2</a><ul class='methods'><li data-type='method'><a href="module-Content-Services-V2.html#.getContentRows">getContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getLegacyMethods">getLegacyMethods</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getNewAndUpcoming">getNewAndUpcoming</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getOwnedContent">getOwnedContent</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecent">getRecent</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecommendedForYou">getRecommendedForYou</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getScheduleContentRows">getScheduleContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getTabResults">getTabResults</a></li></ul></li><li><a href="module-Forums.html">Forums</a><ul class='methods'><li data-type='method'><a href="module-Forums.html#~createForumCategory">createForumCategory</a></li><li data-type='method'><a href="module-Forums.html#~createPost">createPost</a></li><li data-type='method'><a href="module-Forums.html#~createThread">createThread</a></li><li data-type='method'><a href="module-Forums.html#~deleteForumCategory">deleteForumCategory</a></li><li data-type='method'><a href="module-Forums.html#~deletePost">deletePost</a></li><li data-type='method'><a href="module-Forums.html#~deleteThread">deleteThread</a></li><li data-type='method'><a href="module-Forums.html#~fetchCommunityGuidelines">fetchCommunityGuidelines</a></li><li data-type='method'><a href="module-Forums.html#~fetchFollowedThreads">fetchFollowedThreads</a></li><li data-type='method'><a href="module-Forums.html#~fetchForumCategories">fetchForumCategories</a></li><li data-type='method'><a href="module-Forums.html#~fetchLatestThreads">fetchLatestThreads</a></li><li data-type='method'><a href="module-Forums.html#~fetchPosts">fetchPosts</a></li><li data-type='method'><a href="module-Forums.html#~fetchThreads">fetchThreads</a></li><li data-type='method'><a href="module-Forums.html#~followThread">followThread</a></li><li data-type='method'><a href="module-Forums.html#~jumpToPost">jumpToPost</a></li><li data-type='method'><a href="module-Forums.html#~likePost">likePost</a></li><li data-type='method'><a href="module-Forums.html#~lockThread">lockThread</a></li><li data-type='method'><a href="module-Forums.html#~markThreadAsRead">markThreadAsRead</a></li><li data-type='method'><a href="module-Forums.html#~pinThread">pinThread</a></li><li data-type='method'><a href="module-Forums.html#~search">search</a></li><li data-type='method'><a href="module-Forums.html#~unfollowThread">unfollowThread</a></li><li data-type='method'><a href="module-Forums.html#~unlikePost">unlikePost</a></li><li data-type='method'><a href="module-Forums.html#~unlockThread">unlockThread</a></li><li data-type='method'><a href="module-Forums.html#~unpinThread">unpinThread</a></li><li data-type='method'><a href="module-Forums.html#~updateForumCategory">updateForumCategory</a></li><li data-type='method'><a href="module-Forums.html#~updatePost">updatePost</a></li><li data-type='method'><a href="module-Forums.html#~updateThread">updateThread</a></li></ul></li><li></li><li></li><li><a href="module-Genre.html">Genre</a><ul class='methods'><li data-type='method'><a href="module-Genre.html#~fetchGenreBySlug">fetchGenreBySlug</a></li><li data-type='method'><a href="module-Genre.html#~fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Genre.html#~fetchGenres">fetchGenres</a></li></ul></li><li><a href="module-GuidedCourses.html">GuidedCourses</a></li><li><a href="module-Instructor.html">Instructor</a><ul class='methods'><li data-type='method'><a href="module-Instructor.html#~fetchInstructorBySlug">fetchInstructorBySlug</a></li><li data-type='method'><a href="module-Instructor.html#~fetchInstructorLessons">fetchInstructorLessons</a></li><li data-type='method'><a href="module-Instructor.html#~fetchInstructors">fetchInstructors</a></li></ul></li><li><a href="module-Interests.html">Interests</a><ul class='methods'><li data-type='method'><a href="module-Interests.html#.fetchInterests">fetchInterests</a></li><li data-type='method'><a href="module-Interests.html#.fetchUninterests">fetchUninterests</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsInterested">markContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsNotInterested">markContentAsNotInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsInterested">removeContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsNotInterested">removeContentAsNotInterested</a></li></ul></li><li><a href="module-LearningPaths.html">LearningPaths</a><ul class='methods'><li data-type='method'><a href="module-LearningPaths.html#~completeLearningPathIntroVideo">completeLearningPathIntroVideo</a></li><li data-type='method'><a href="module-LearningPaths.html#~completeMethodIntroVideo">completeMethodIntroVideo</a></li><li data-type='method'><a href="module-LearningPaths.html#~fetchLearningPathLessons">fetchLearningPathLessons</a></li><li data-type='method'><a href="module-LearningPaths.html#~getActivePath">getActivePath</a></li><li data-type='method'><a href="module-LearningPaths.html#~getDailySession">getDailySession</a></li><li data-type='method'><a href="module-LearningPaths.html#~getEnrichedLearningPath">getEnrichedLearningPath</a></li><li data-type='method'><a href="module-LearningPaths.html#~getLearningPathLessonsByIds">getLearningPathLessonsByIds</a></li><li data-type='method'><a href="module-LearningPaths.html#~mapContentToParent">mapContentToParent</a></li><li data-type='method'><a href="module-LearningPaths.html#~resetAllLearningPaths">resetAllLearningPaths</a></li><li data-type='method'><a href="module-LearningPaths.html#~startLearningPath">startLearningPath</a></li><li data-type='method'><a href="module-LearningPaths.html#~updateActivePath">updateActivePath</a></li><li data-type='method'><a href="module-LearningPaths.html#~updateDailySession">updateDailySession</a></li></ul></li><li><a href="module-Onboarding.html">Onboarding</a><ul class='methods'><li data-type='method'><a href="module-Onboarding.html#~getOnboardingRecommendedContent">getOnboardingRecommendedContent</a></li><li data-type='method'><a href="module-Onboarding.html#~startOnboarding">startOnboarding</a></li><li data-type='method'><a href="module-Onboarding.html#~updateOnboarding">updateOnboarding</a></li><li data-type='method'><a href="module-Onboarding.html#~userOnboardingForBrand">userOnboardingForBrand</a></li></ul></li><li><a href="module-Payments.html">Payments</a><ul class='methods'><li data-type='method'><a href="module-Payments.html#~fetchCustomerPayments">fetchCustomerPayments</a></li></ul></li><li><a href="module-Permissions.html">Permissions</a><ul class='methods'><li data-type='method'><a href="module-Permissions.html#.fetchUserPermissions">fetchUserPermissions</a></li><li data-type='method'><a href="module-Permissions.html#.reset">reset</a></li></ul></li><li><a href="module-Playlists.html">Playlists</a><ul class='methods'><li data-type='method'><a href="module-Playlists.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Playlists.html#.fetchUserPlaylists">fetchUserPlaylists</a></li><li data-type='method'><a href="module-Playlists.html#.togglePlaylistPrivate">togglePlaylistPrivate</a></li><li data-type='method'><a href="module-Playlists.html#.undeletePlaylist">undeletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~deleteItemsFromPlaylist">deleteItemsFromPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~reportPlaylist">reportPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~restoreItemFromPlaylist">restoreItemFromPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~unlikePlaylist">unlikePlaylist</a></li></ul></li><li><a href="module-ProgressRow.html">ProgressRow</a></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.assignModeratorToComment">assignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.closeComment">closeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createComment">createComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deleteComment">deleteComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.editComment">editComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCarouselCardData">fetchCarouselCardData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComment">fetchComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCommentRelies">fetchCommentRelies</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComments">fetchComments</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#.fetchNextContentDataForParent">fetchNextContentDataForParent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchRecentUserActivities">fetchRecentUserActivities</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#.fetchTopComment">fetchTopComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserAward">fetchUserAward</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserBadges">fetchUserBadges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserPracticeNotes">fetchUserPracticeNotes</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likeComment">likeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.openComment">openComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentComplete">postContentComplete</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentReset">postContentReset</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentRestore">postContentRestore</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentStart">postContentStart</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.replyToComment">replyToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.reportComment">reportComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.restoreComment">restoreComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.setStudentViewForUser">setStudentViewForUser</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unassignModeratorToComment">unassignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unlikeComment">unlikeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#~fetchLastInteractedChild">fetchLastInteractedChild</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#.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#.fetchComingSoon">fetchComingSoon</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCommentModContentData">fetchCommentModContentData</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#.fetchLeaving">fetchLeaving</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#.fetchLessonsFeaturingThisContent">fetchLessonsFeaturingThisContent</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#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodV2IntroVideo">fetchMethodV2IntroVideo</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodV2Structure">fetchMethodV2Structure</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#.fetchOtherSongVersions">fetchOtherSongVersions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchOwnedContent">fetchOwnedContent</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#.fetchPackData">fetchPackData</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#.fetchRelatedRecommendedContent">fetchRelatedRecommendedContent</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#.fetchReturning">fetchReturning</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#.fetchSiblingContent">fetchSiblingContent</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#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.jumpToContinueContent">jumpToContinueContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#~fetchRelatedByLicense">fetchRelatedByLicense</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getQueryFromPage">getQueryFromPage</a></li></ul></li><li><a href="module-Sessions.html">Sessions</a><ul class='methods'><li data-type='method'><a href="module-Sessions.html#.login">login</a></li><li data-type='method'><a href="module-Sessions.html#.logout">logout</a></li></ul></li><li><a href="module-UserActivity.html">UserActivity</a><ul class='methods'><li data-type='method'><a href="module-UserActivity.html#.calculateLongestStreaks">calculateLongestStreaks</a></li><li data-type='method'><a href="module-UserActivity.html#.createPracticeNotes">createPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.deletePracticeSession">deletePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.deleteUserActivity">deleteUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeNotes">getPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeSessions">getPracticeSessions</a></li><li data-type='method'><a href="module-UserActivity.html#.getProgressRows">getProgressRows</a></li><li data-type='method'><a href="module-UserActivity.html#.getRecentActivity">getRecentActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserMonthlyStats">getUserMonthlyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserWeeklyStats">getUserWeeklyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.pinProgressRow">pinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserActivity">recordUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserPractice">recordUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.removeUserPractice">removeUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.restorePracticeSession">restorePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.restoreUserActivity">restoreUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.restoreUserPractice">restoreUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.unpinProgressRow">unpinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.updatePracticeNotes">updatePracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.updateUserPractice">updateUserPractice</a></li></ul></li><li><a href="module-UserChat.html">UserChat</a><ul class='methods'><li data-type='method'><a href="module-UserChat.html#.fetchChatSettings">fetchChatSettings</a></li></ul></li><li><a href="module-UserManagement.html">UserManagement</a><ul class='methods'><li data-type='method'><a href="module-UserManagement.html#.blockUser">blockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.blockedUsers">blockedUsers</a></li><li data-type='method'><a href="module-UserManagement.html#.deletePicture">deletePicture</a></li><li data-type='method'><a href="module-UserManagement.html#.getUserData">getUserData</a></li><li data-type='method'><a href="module-UserManagement.html#.getUserSignature">getUserSignature</a></li><li data-type='method'><a href="module-UserManagement.html#.isUsernameAvailable">isUsernameAvailable</a></li><li data-type='method'><a href="module-UserManagement.html#.setUserSignature">setUserSignature</a></li><li data-type='method'><a href="module-UserManagement.html#.toggleSignaturePrivate">toggleSignaturePrivate</a></li><li data-type='method'><a href="module-UserManagement.html#.unblockUser">unblockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.updateDisplayName">updateDisplayName</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPicture">uploadPicture</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPictureFromS3">uploadPictureFromS3</a></li></ul></li><li><a href="module-UserMemberships.html">UserMemberships</a><ul class='methods'><li data-type='method'><a href="module-UserMemberships.html#~fetchMemberships">fetchMemberships</a></li><li data-type='method'><a href="module-UserMemberships.html#~fetchRechargeTokens">fetchRechargeTokens</a></li><li data-type='method'><a href="module-UserMemberships.html#~restorePurchases">restorePurchases</a></li><li data-type='method'><a href="module-UserMemberships.html#~upgradeSubscription">upgradeSubscription</a></li></ul></li><li><a href="module-UserNotifications.html">UserNotifications</a><ul class='methods'><li data-type='method'><a href="module-UserNotifications.html#.deleteNotification">deleteNotification</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchLiveEventPollingState">fetchLiveEventPollingState</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchNotificationSettings">fetchNotificationSettings</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchNotifications">fetchNotifications</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchUnreadCount">fetchUnreadCount</a></li><li data-type='method'><a href="module-UserNotifications.html#.markAllNotificationsAsRead">markAllNotificationsAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsRead">markNotificationAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsUnread">markNotificationAsUnread</a></li><li data-type='method'><a href="module-UserNotifications.html#.pauseLiveEventPolling">pauseLiveEventPolling</a></li><li data-type='method'><a href="module-UserNotifications.html#.restoreNotification">restoreNotification</a></li><li data-type='method'><a href="module-UserNotifications.html#.startLiveEventPolling">startLiveEventPolling</a></li><li data-type='method'><a href="module-UserNotifications.html#.updateNotificationSetting">updateNotificationSetting</a></li></ul></li><li><a href="module-UserProfile.html">UserProfile</a><ul class='methods'><li data-type='method'><a href="module-UserProfile.html#.deleteProfilePicture">deleteProfilePicture</a></li><li data-type='method'><a href="module-UserProfile.html#.otherStats">otherStats</a></li></ul></li></ul><h3>Namespaces</h3><ul><li><a href="ContentOrganization.html">ContentOrganization</a></li><li><a href="Forums.html">Forums</a></li><li><a href="Gamification.html">Gamification</a></li><li><a href="UserManagementSystem.html">UserManagementSystem</a></li></ul><h3>Interfaces</h3><ul><li><a href="TestUser.html">TestUser</a></li></ul><h3>Global</h3><ul><li><a href="global.html#createTestUser">createTestUser</a></li></ul>
32
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Accounts.html">Accounts</a><ul class='methods'><li data-type='method'><a href="module-Accounts.html#~confirmEmailChange">confirmEmailChange</a></li><li data-type='method'><a href="module-Accounts.html#~deleteAccount">deleteAccount</a></li><li data-type='method'><a href="module-Accounts.html#~numberOfActiveUsers">numberOfActiveUsers</a></li><li data-type='method'><a href="module-Accounts.html#~requestEmailChange">requestEmailChange</a></li><li data-type='method'><a href="module-Accounts.html#~resetPassword">resetPassword</a></li><li data-type='method'><a href="module-Accounts.html#~sendAccountSetupEmail">sendAccountSetupEmail</a></li><li data-type='method'><a href="module-Accounts.html#~sendPasswordResetEmail">sendPasswordResetEmail</a></li><li data-type='method'><a href="module-Accounts.html#~setupAccount">setupAccount</a></li><li data-type='method'><a href="module-Accounts.html#~status">status</a></li><li data-type='method'><a href="module-Accounts.html#~toggleStudentView">toggleStudentView</a></li></ul></li><li><a href="module-Awards.html">Awards</a><ul class='methods'><li data-type='method'><a href="module-Awards.html#~fetchAwardsForUser">fetchAwardsForUser</a></li><li data-type='method'><a href="module-Awards.html#~fetchCertificate">fetchCertificate</a></li><li data-type='method'><a href="module-Awards.html#~getAwardDataForGuidedContent">getAwardDataForGuidedContent</a></li></ul></li><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-Content-Services-V2.html">Content-Services-V2</a><ul class='methods'><li data-type='method'><a href="module-Content-Services-V2.html#.getContentRows">getContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getLegacyMethods">getLegacyMethods</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getNewAndUpcoming">getNewAndUpcoming</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecent">getRecent</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecommendedForYou">getRecommendedForYou</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getScheduleContentRows">getScheduleContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getTabResults">getTabResults</a></li></ul></li><li><a href="module-Forums.html">Forums</a><ul class='methods'><li data-type='method'><a href="module-Forums.html#~createForumCategory">createForumCategory</a></li><li data-type='method'><a href="module-Forums.html#~createPost">createPost</a></li><li data-type='method'><a href="module-Forums.html#~createThread">createThread</a></li><li data-type='method'><a href="module-Forums.html#~deletePost">deletePost</a></li><li data-type='method'><a href="module-Forums.html#~deleteThread">deleteThread</a></li><li data-type='method'><a href="module-Forums.html#~fetchCommunityGuidelines">fetchCommunityGuidelines</a></li><li data-type='method'><a href="module-Forums.html#~fetchFollowedThreads">fetchFollowedThreads</a></li><li data-type='method'><a href="module-Forums.html#~fetchForumCategories">fetchForumCategories</a></li><li data-type='method'><a href="module-Forums.html#~fetchLatestThreads">fetchLatestThreads</a></li><li data-type='method'><a href="module-Forums.html#~fetchPosts">fetchPosts</a></li><li data-type='method'><a href="module-Forums.html#~fetchThreads">fetchThreads</a></li><li data-type='method'><a href="module-Forums.html#~followThread">followThread</a></li><li data-type='method'><a href="module-Forums.html#~jumpToPost">jumpToPost</a></li><li data-type='method'><a href="module-Forums.html#~likePost">likePost</a></li><li data-type='method'><a href="module-Forums.html#~lockThread">lockThread</a></li><li data-type='method'><a href="module-Forums.html#~markThreadAsRead">markThreadAsRead</a></li><li data-type='method'><a href="module-Forums.html#~pinThread">pinThread</a></li><li data-type='method'><a href="module-Forums.html#~search">search</a></li><li data-type='method'><a href="module-Forums.html#~unfollowThread">unfollowThread</a></li><li data-type='method'><a href="module-Forums.html#~unlikePost">unlikePost</a></li><li data-type='method'><a href="module-Forums.html#~unlockThread">unlockThread</a></li><li data-type='method'><a href="module-Forums.html#~unpinThread">unpinThread</a></li><li data-type='method'><a href="module-Forums.html#~updateForumCategory">updateForumCategory</a></li><li data-type='method'><a href="module-Forums.html#~updatePost">updatePost</a></li><li data-type='method'><a href="module-Forums.html#~updateThread">updateThread</a></li></ul></li><li></li><li></li><li><a href="module-GuidedCourses.html">GuidedCourses</a></li><li><a href="module-Interests.html">Interests</a><ul class='methods'><li data-type='method'><a href="module-Interests.html#.fetchInterests">fetchInterests</a></li><li data-type='method'><a href="module-Interests.html#.fetchUninterests">fetchUninterests</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsInterested">markContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.markContentAsNotInterested">markContentAsNotInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsInterested">removeContentAsInterested</a></li><li data-type='method'><a href="module-Interests.html#.removeContentAsNotInterested">removeContentAsNotInterested</a></li></ul></li><li><a href="module-LearningPaths.html">LearningPaths</a><ul class='methods'><li data-type='method'><a href="module-LearningPaths.html#~fetchLearningPathLessons">fetchLearningPathLessons</a></li><li data-type='method'><a href="module-LearningPaths.html#~getActivePath">getActivePath</a></li><li data-type='method'><a href="module-LearningPaths.html#~getDailySession">getDailySession</a></li><li data-type='method'><a href="module-LearningPaths.html#~getLearningPath">getLearningPath</a></li><li data-type='method'><a href="module-LearningPaths.html#~getLearningPathLessonsByIds">getLearningPathLessonsByIds</a></li><li data-type='method'><a href="module-LearningPaths.html#~resetAllLearningPaths">resetAllLearningPaths</a></li><li data-type='method'><a href="module-LearningPaths.html#~startLearningPath">startLearningPath</a></li><li data-type='method'><a href="module-LearningPaths.html#~updateActivePath">updateActivePath</a></li><li data-type='method'><a href="module-LearningPaths.html#~updateDailySession">updateDailySession</a></li></ul></li><li><a href="module-Onboarding.html">Onboarding</a><ul class='methods'><li data-type='method'><a href="module-Onboarding.html#~getOnboardingRecommendedContent">getOnboardingRecommendedContent</a></li><li data-type='method'><a href="module-Onboarding.html#~startOnboarding">startOnboarding</a></li><li data-type='method'><a href="module-Onboarding.html#~updateOnboarding">updateOnboarding</a></li><li data-type='method'><a href="module-Onboarding.html#~userOnboardingForBrand">userOnboardingForBrand</a></li></ul></li><li><a href="module-Payments.html">Payments</a><ul class='methods'><li data-type='method'><a href="module-Payments.html#~fetchCustomerPayments">fetchCustomerPayments</a></li></ul></li><li><a href="module-Permissions.html">Permissions</a><ul class='methods'><li data-type='method'><a href="module-Permissions.html#.fetchUserPermissions">fetchUserPermissions</a></li><li data-type='method'><a href="module-Permissions.html#.reset">reset</a></li></ul></li><li><a href="module-Playlists.html">Playlists</a><ul class='methods'><li data-type='method'><a href="module-Playlists.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Playlists.html#.fetchUserPlaylists">fetchUserPlaylists</a></li><li data-type='method'><a href="module-Playlists.html#.togglePlaylistPrivate">togglePlaylistPrivate</a></li><li data-type='method'><a href="module-Playlists.html#.undeletePlaylist">undeletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~deleteItemsFromPlaylist">deleteItemsFromPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~reportPlaylist">reportPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~restoreItemFromPlaylist">restoreItemFromPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#~unlikePlaylist">unlikePlaylist</a></li></ul></li><li><a href="module-ProgressRow.html">ProgressRow</a></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.assignModeratorToComment">assignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.closeComment">closeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createComment">createComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deleteComment">deleteComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.editComment">editComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCarouselCardData">fetchCarouselCardData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComment">fetchComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCommentRelies">fetchCommentRelies</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComments">fetchComments</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#.fetchNextContentDataForParent">fetchNextContentDataForParent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchRecentUserActivities">fetchRecentUserActivities</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#.fetchTopComment">fetchTopComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserAward">fetchUserAward</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserBadges">fetchUserBadges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserPracticeNotes">fetchUserPracticeNotes</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likeComment">likeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.openComment">openComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentComplete">postContentComplete</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentReset">postContentReset</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentRestore">postContentRestore</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postContentStart">postContentStart</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.replyToComment">replyToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.reportComment">reportComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.restoreComment">restoreComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.setStudentViewForUser">setStudentViewForUser</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unassignModeratorToComment">unassignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unlikeComment">unlikeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#~fetchLastInteractedChild">fetchLastInteractedChild</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#.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#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchComingSoon">fetchComingSoon</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCommentModContentData">fetchCommentModContentData</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#.fetchLeaving">fetchLeaving</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#.fetchLessonsFeaturingThisContent">fetchLessonsFeaturingThisContent</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#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodV2IntroVideo">fetchMethodV2IntroVideo</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodV2Structure">fetchMethodV2Structure</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodV2StructureFromId">fetchMethodV2StructureFromId</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#.fetchOtherSongVersions">fetchOtherSongVersions</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#.fetchPackData">fetchPackData</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#.fetchRelatedRecommendedContent">fetchRelatedRecommendedContent</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#.fetchReturning">fetchReturning</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#.fetchSiblingContent">fetchSiblingContent</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#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.jumpToContinueContent">jumpToContinueContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#~fetchRelatedByLicense">fetchRelatedByLicense</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getQueryFromPage">getQueryFromPage</a></li></ul></li><li><a href="module-Sessions.html">Sessions</a><ul class='methods'><li data-type='method'><a href="module-Sessions.html#.login">login</a></li><li data-type='method'><a href="module-Sessions.html#.logout">logout</a></li></ul></li><li><a href="module-UserActivity.html">UserActivity</a><ul class='methods'><li data-type='method'><a href="module-UserActivity.html#.calculateLongestStreaks">calculateLongestStreaks</a></li><li data-type='method'><a href="module-UserActivity.html#.createPracticeNotes">createPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.deletePracticeSession">deletePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.deleteUserActivity">deleteUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeNotes">getPracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.getPracticeSessions">getPracticeSessions</a></li><li data-type='method'><a href="module-UserActivity.html#.getProgressRows">getProgressRows</a></li><li data-type='method'><a href="module-UserActivity.html#.getRecentActivity">getRecentActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserMonthlyStats">getUserMonthlyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.getUserWeeklyStats">getUserWeeklyStats</a></li><li data-type='method'><a href="module-UserActivity.html#.pinProgressRow">pinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserActivity">recordUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.recordUserPractice">recordUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.removeUserPractice">removeUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.restorePracticeSession">restorePracticeSession</a></li><li data-type='method'><a href="module-UserActivity.html#.restoreUserActivity">restoreUserActivity</a></li><li data-type='method'><a href="module-UserActivity.html#.restoreUserPractice">restoreUserPractice</a></li><li data-type='method'><a href="module-UserActivity.html#.unpinProgressRow">unpinProgressRow</a></li><li data-type='method'><a href="module-UserActivity.html#.updatePracticeNotes">updatePracticeNotes</a></li><li data-type='method'><a href="module-UserActivity.html#.updateUserPractice">updateUserPractice</a></li></ul></li><li><a href="module-UserChat.html">UserChat</a><ul class='methods'><li data-type='method'><a href="module-UserChat.html#.fetchChatSettings">fetchChatSettings</a></li></ul></li><li><a href="module-UserManagement.html">UserManagement</a><ul class='methods'><li data-type='method'><a href="module-UserManagement.html#.blockUser">blockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.blockedUsers">blockedUsers</a></li><li data-type='method'><a href="module-UserManagement.html#.deletePicture">deletePicture</a></li><li data-type='method'><a href="module-UserManagement.html#.getUserData">getUserData</a></li><li data-type='method'><a href="module-UserManagement.html#.getUserSignature">getUserSignature</a></li><li data-type='method'><a href="module-UserManagement.html#.isUsernameAvailable">isUsernameAvailable</a></li><li data-type='method'><a href="module-UserManagement.html#.setUserSignature">setUserSignature</a></li><li data-type='method'><a href="module-UserManagement.html#.toggleSignaturePrivate">toggleSignaturePrivate</a></li><li data-type='method'><a href="module-UserManagement.html#.unblockUser">unblockUser</a></li><li data-type='method'><a href="module-UserManagement.html#.updateDisplayName">updateDisplayName</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPicture">uploadPicture</a></li><li data-type='method'><a href="module-UserManagement.html#.uploadPictureFromS3">uploadPictureFromS3</a></li></ul></li><li><a href="module-UserMemberships.html">UserMemberships</a><ul class='methods'><li data-type='method'><a href="module-UserMemberships.html#~fetchMemberships">fetchMemberships</a></li><li data-type='method'><a href="module-UserMemberships.html#~fetchRechargeTokens">fetchRechargeTokens</a></li><li data-type='method'><a href="module-UserMemberships.html#~restorePurchases">restorePurchases</a></li><li data-type='method'><a href="module-UserMemberships.html#~upgradeSubscription">upgradeSubscription</a></li></ul></li><li><a href="module-UserNotifications.html">UserNotifications</a><ul class='methods'><li data-type='method'><a href="module-UserNotifications.html#.deleteNotification">deleteNotification</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchLiveEventPollingState">fetchLiveEventPollingState</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchNotificationSettings">fetchNotificationSettings</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchNotifications">fetchNotifications</a></li><li data-type='method'><a href="module-UserNotifications.html#.fetchUnreadCount">fetchUnreadCount</a></li><li data-type='method'><a href="module-UserNotifications.html#.markAllNotificationsAsRead">markAllNotificationsAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsRead">markNotificationAsRead</a></li><li data-type='method'><a href="module-UserNotifications.html#.markNotificationAsUnread">markNotificationAsUnread</a></li><li data-type='method'><a href="module-UserNotifications.html#.pauseLiveEventPolling">pauseLiveEventPolling</a></li><li data-type='method'><a href="module-UserNotifications.html#.restoreNotification">restoreNotification</a></li><li data-type='method'><a href="module-UserNotifications.html#.startLiveEventPolling">startLiveEventPolling</a></li><li data-type='method'><a href="module-UserNotifications.html#.updateNotificationSetting">updateNotificationSetting</a></li></ul></li><li><a href="module-UserProfile.html">UserProfile</a><ul class='methods'><li data-type='method'><a href="module-UserProfile.html#.deleteProfilePicture">deleteProfilePicture</a></li><li data-type='method'><a href="module-UserProfile.html#.otherStats">otherStats</a></li></ul></li></ul><h3>Namespaces</h3><ul><li><a href="ContentOrganization.html">ContentOrganization</a></li><li><a href="Forums.html">Forums</a></li><li><a href="Gamification.html">Gamification</a></li><li><a href="UserManagementSystem.html">UserManagementSystem</a></li></ul><h3>Interfaces</h3><ul><li><a href="TestUser.html">TestUser</a></li></ul><h3>Global</h3><ul><li><a href="global.html#createTestUser">createTestUser</a></li></ul>
33
33
 
34
34
  </nav>
35
35
 
@@ -94,7 +94,7 @@
94
94
 
95
95
  <dt class="tag-source">Source:</dt>
96
96
  <dd class="tag-source"><ul class="dummy"><li>
97
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line41">line 41</a>
97
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line44">line 44</a>
98
98
  </li></ul></dd>
99
99
 
100
100
 
@@ -182,7 +182,7 @@
182
182
 
183
183
  <dt class="tag-source">Source:</dt>
184
184
  <dd class="tag-source"><ul class="dummy"><li>
185
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line563">line 563</a>
185
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line586">line 586</a>
186
186
  </li></ul></dd>
187
187
 
188
188
 
@@ -837,7 +837,7 @@ If a coachId is provided, the content type must be 'coach-lessons'.</li></ul></d
837
837
 
838
838
  <dt class="tag-source">Source:</dt>
839
839
  <dd class="tag-source"><ul class="dummy"><li>
840
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line791">line 791</a>
840
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line816">line 816</a>
841
841
  </li></ul></dd>
842
842
 
843
843
 
@@ -1356,7 +1356,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1356
1356
 
1357
1357
  <dt class="tag-source">Source:</dt>
1358
1358
  <dd class="tag-source"><ul class="dummy"><li>
1359
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1325">line 1325</a>
1359
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1339">line 1339</a>
1360
1360
  </li></ul></dd>
1361
1361
 
1362
1362
 
@@ -1674,7 +1674,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1674
1674
 
1675
1675
 
1676
1676
 
1677
- <h4 class="name" id=".fetchByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentId<span class="signature">(id, contentType)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1677
+ <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>
1678
1678
 
1679
1679
 
1680
1680
 
@@ -1684,13 +1684,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1684
1684
  <dl class="details">
1685
1685
 
1686
1686
  <dt class="tag-description">Description:</dt>
1687
- <dd class="tag-description"><ul class="dummy"><li>Fetch content by a specific Railcontent ID.</li></ul></dd>
1687
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the artist's lessons.</li></ul></dd>
1688
1688
 
1689
1689
 
1690
1690
 
1691
1691
  <dt class="tag-source">Source:</dt>
1692
1692
  <dd class="tag-source"><ul class="dummy"><li>
1693
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line415">line 415</a>
1693
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1551">line 1551</a>
1694
1694
  </li></ul></dd>
1695
1695
 
1696
1696
 
@@ -1737,8 +1737,8 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1737
1737
 
1738
1738
  <h5 class="h5-examples">Example</h5>
1739
1739
 
1740
- <pre class="prettyprint"><code>fetchByRailContentId('abc123')
1741
- .then(content => console.log(content))
1740
+ <pre class="prettyprint"><code>fetchArtistLessons('drumeo', '10 Years', 'song', {'-published_on', '', 1, 10, ["difficulty,Intermediate"], [232168, 232824, 303375, 232194, 393125]})
1741
+ .then(lessons => console.log(lessons))
1742
1742
  .catch(error => console.error(error));</code></pre>
1743
1743
 
1744
1744
 
@@ -1769,7 +1769,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1769
1769
 
1770
1770
  <tr>
1771
1771
 
1772
- <td class="name"><code>id</code></td>
1772
+ <td class="name"><code>brand</code></td>
1773
1773
 
1774
1774
 
1775
1775
  <td class="type">
@@ -1786,14 +1786,14 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1786
1786
 
1787
1787
 
1788
1788
 
1789
- <td class="description last">The Railcontent ID of the content to fetch.</td>
1789
+ <td class="description last">The brand for which to fetch lessons.</td>
1790
1790
  </tr>
1791
1791
 
1792
1792
 
1793
1793
 
1794
1794
  <tr>
1795
1795
 
1796
- <td class="name"><code>contentType</code></td>
1796
+ <td class="name"><code>name</code></td>
1797
1797
 
1798
1798
 
1799
1799
  <td class="type">
@@ -1810,221 +1810,1607 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
1810
1810
 
1811
1811
 
1812
1812
 
1813
- <td class="description last">The document type of content to fetch</td>
1813
+ <td class="description last">The name of the artist</td>
1814
1814
  </tr>
1815
1815
 
1816
1816
 
1817
- </tbody>
1818
- </table>
1819
1817
 
1818
+ <tr>
1819
+
1820
+ <td class="name"><code>contentType</code></td>
1821
+
1822
+
1823
+ <td class="type">
1824
+
1825
+
1826
+ <span class="param-type">string</span>
1820
1827
 
1821
1828
 
1822
1829
 
1830
+
1831
+ </td>
1823
1832
 
1833
+
1824
1834
 
1835
+
1825
1836
 
1837
+ <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>
1838
+ </tr>
1826
1839
 
1840
+
1827
1841
 
1842
+ <tr>
1843
+
1844
+ <td class="name"><code>params</code></td>
1845
+
1828
1846
 
1847
+ <td class="type">
1848
+
1849
+
1850
+ <span class="param-type">Object</span>
1829
1851
 
1830
1852
 
1831
1853
 
1854
+
1855
+ </td>
1832
1856
 
1857
+
1833
1858
 
1859
+
1834
1860
 
1835
- <h5 class="h5-returns">Returns:</h5>
1861
+ <td class="description last">Parameters for sorting, searching, pagination and filtering.
1862
+ <h6>Properties</h6>
1863
+
1836
1864
 
1865
+ <table class="params">
1866
+ <thead>
1867
+ <tr>
1868
+
1869
+ <th>Name</th>
1837
1870
 
1838
- <div class="param-desc">
1839
- - A promise that resolves to the content object or null if not found.
1840
- </div>
1841
1871
 
1872
+ <th>Type</th>
1842
1873
 
1874
+
1875
+ <th>Attributes</th>
1876
+
1843
1877
 
1844
- <dl class="param-type">
1845
- <dt>
1846
- Type
1847
- </dt>
1848
- <dd>
1849
1878
 
1850
- <span class="param-type">Promise.&lt;(Object|null)></span>
1879
+ <th>Default</th>
1880
+
1881
+
1882
+ <th class="last">Description</th>
1883
+ </tr>
1884
+ </thead>
1851
1885
 
1886
+ <tbody>
1887
+
1852
1888
 
1889
+ <tr>
1890
+
1891
+ <td class="name"><code>sort</code></td>
1892
+
1853
1893
 
1854
- </dd>
1855
- </dl>
1894
+ <td class="type">
1895
+
1896
+
1897
+ <span class="param-type">string</span>
1856
1898
 
1857
-
1858
1899
 
1859
1900
 
1901
+
1902
+ </td>
1860
1903
 
1861
-
1862
1904
 
1905
+ <td class="attributes">
1906
+
1907
+ &lt;optional><br>
1908
+
1863
1909
 
1864
-
1910
+
1865
1911
 
1866
- <h4 class="name" id=".fetchByRailContentIds"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentIds<span class="signature">(ids, contentType<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
1912
+
1913
+ </td>
1914
+
1915
+
1916
+
1917
+ <td class="default">
1918
+
1919
+ <code>"-published_on"</code>
1920
+
1921
+ </td>
1922
+
1923
+
1924
+ <td class="description last">The field to sort the lessons by.</td>
1925
+ </tr>
1867
1926
 
1868
1927
 
1869
1928
 
1929
+ <tr>
1930
+
1931
+ <td class="name"><code>searchTerm</code></td>
1932
+
1870
1933
 
1934
+ <td class="type">
1935
+
1936
+
1937
+ <span class="param-type">string</span>
1871
1938
 
1872
1939
 
1873
- <dl class="details">
1874
-
1875
- <dt class="tag-description">Description:</dt>
1876
- <dd class="tag-description"><ul class="dummy"><li>Fetch content by an array of Railcontent IDs.</li></ul></dd>
1877
-
1878
1940
 
1879
-
1880
- <dt class="tag-source">Source:</dt>
1881
- <dd class="tag-source"><ul class="dummy"><li>
1882
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line452">line 452</a>
1883
- </li></ul></dd>
1884
-
1941
+
1942
+ </td>
1885
1943
 
1886
-
1944
+
1945
+ <td class="attributes">
1946
+
1947
+ &lt;optional><br>
1948
+
1887
1949
 
1888
-
1950
+
1889
1951
 
1890
-
1952
+
1953
+ </td>
1954
+
1891
1955
 
1892
-
1956
+
1957
+ <td class="default">
1958
+
1959
+ <code>""</code>
1960
+
1961
+ </td>
1962
+
1893
1963
 
1894
-
1964
+ <td class="description last">The search term to filter the lessons.</td>
1965
+ </tr>
1895
1966
 
1896
1967
 
1897
1968
 
1898
-
1969
+ <tr>
1970
+
1971
+ <td class="name"><code>page</code></td>
1972
+
1899
1973
 
1900
-
1974
+ <td class="type">
1975
+
1976
+
1977
+ <span class="param-type">number</span>
1901
1978
 
1902
-
1903
1979
 
1904
-
1905
1980
 
1906
-
1981
+
1982
+ </td>
1907
1983
 
1908
-
1984
+
1985
+ <td class="attributes">
1986
+
1987
+ &lt;optional><br>
1988
+
1909
1989
 
1910
-
1990
+
1911
1991
 
1912
-
1992
+
1993
+ </td>
1994
+
1995
+
1996
+
1997
+ <td class="default">
1998
+
1999
+ <code>1</code>
2000
+
2001
+ </td>
2002
+
2003
+
2004
+ <td class="description last">The page number for pagination.</td>
2005
+ </tr>
1913
2006
 
1914
2007
 
1915
- </dl>
1916
2008
 
2009
+ <tr>
2010
+
2011
+ <td class="name"><code>limit</code></td>
2012
+
1917
2013
 
2014
+ <td class="type">
2015
+
2016
+
2017
+ <span class="param-type">number</span>
1918
2018
 
1919
2019
 
1920
2020
 
2021
+
2022
+ </td>
1921
2023
 
2024
+
2025
+ <td class="attributes">
2026
+
2027
+ &lt;optional><br>
2028
+
1922
2029
 
2030
+
1923
2031
 
2032
+
2033
+ </td>
2034
+
1924
2035
 
2036
+
2037
+ <td class="default">
2038
+
2039
+ <code>10</code>
2040
+
2041
+ </td>
2042
+
1925
2043
 
2044
+ <td class="description last">The number of items per page.</td>
2045
+ </tr>
1926
2046
 
1927
- <h5 class="h5-examples">Example</h5>
1928
2047
 
1929
- <pre class="prettyprint"><code>fetchByRailContentIds(['abc123', 'def456', 'ghi789'])
1930
- .then(contents => console.log(contents))
1931
- .catch(error => console.error(error));</code></pre>
1932
2048
 
2049
+ <tr>
2050
+
2051
+ <td class="name"><code>includedFields</code></td>
2052
+
1933
2053
 
2054
+ <td class="type">
2055
+
2056
+
2057
+ <span class="param-type">Array.&lt;string></span>
1934
2058
 
1935
2059
 
1936
- <h5 class="h5-parameters">Parameters:</h5>
1937
-
1938
2060
 
1939
- <table class="params">
1940
- <thead>
1941
- <tr>
1942
-
1943
- <th>Name</th>
1944
-
2061
+
2062
+ </td>
1945
2063
 
1946
- <th>Type</th>
2064
+
2065
+ <td class="attributes">
2066
+
2067
+ &lt;optional><br>
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+ </td>
2074
+
2075
+
2076
+
2077
+ <td class="default">
2078
+
2079
+ <code>[]</code>
2080
+
2081
+ </td>
2082
+
2083
+
2084
+ <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>
2085
+ </tr>
2086
+
2087
+
2088
+
2089
+ <tr>
2090
+
2091
+ <td class="name"><code>progressIds</code></td>
2092
+
2093
+
2094
+ <td class="type">
2095
+
2096
+
2097
+ <span class="param-type">Array.&lt;number></span>
2098
+
2099
+
2100
+
2101
+
2102
+ </td>
2103
+
2104
+
2105
+ <td class="attributes">
2106
+
2107
+ &lt;optional><br>
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ </td>
2114
+
2115
+
2116
+
2117
+ <td class="default">
2118
+
2119
+ </td>
2120
+
2121
+
2122
+ <td class="description last">The ids of the lessons that are in progress or completed</td>
2123
+ </tr>
2124
+
2125
+
2126
+ </tbody>
2127
+ </table>
2128
+
2129
+ </td>
2130
+ </tr>
2131
+
2132
+
2133
+ </tbody>
2134
+ </table>
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+ <h5 class="h5-returns">Returns:</h5>
2152
+
2153
+
2154
+ <div class="param-desc">
2155
+ - The lessons for the artist and some details about the artist (name and thumbnail).
2156
+ </div>
2157
+
2158
+
2159
+
2160
+ <dl class="param-type">
2161
+ <dt>
2162
+ Type
2163
+ </dt>
2164
+ <dd>
2165
+
2166
+ <span class="param-type">Promise.&lt;(Object|null)></span>
2167
+
2168
+
2169
+
2170
+ </dd>
2171
+ </dl>
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+ <h4 class="name" id=".fetchArtists"><span class="type-signature type-signature-static">(static) </span>fetchArtists<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+ <dl class="details">
2190
+
2191
+ <dt class="tag-description">Description:</dt>
2192
+ <dd class="tag-description"><ul class="dummy"><li>Fetch all artists with lessons available for a specific brand.</li></ul></dd>
2193
+
2194
+
2195
+
2196
+ <dt class="tag-source">Source:</dt>
2197
+ <dd class="tag-source"><ul class="dummy"><li>
2198
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line176">line 176</a>
2199
+ </li></ul></dd>
2200
+
2201
+
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+
2212
+
2213
+
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+
2221
+
2222
+
2223
+
2224
+
2225
+
2226
+
2227
+
2228
+
2229
+
2230
+
2231
+ </dl>
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+ <h5 class="h5-examples">Example</h5>
2244
+
2245
+ <pre class="prettyprint"><code>fetchArtists('drumeo')
2246
+ .then(artists => console.log(artists))
2247
+ .catch(error => console.error(error));</code></pre>
2248
+
2249
+
2250
+
2251
+
2252
+ <h5 class="h5-parameters">Parameters:</h5>
2253
+
2254
+
2255
+ <table class="params">
2256
+ <thead>
2257
+ <tr>
2258
+
2259
+ <th>Name</th>
2260
+
2261
+
2262
+ <th>Type</th>
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+ <th class="last">Description</th>
2269
+ </tr>
2270
+ </thead>
2271
+
2272
+ <tbody>
2273
+
2274
+
2275
+ <tr>
2276
+
2277
+ <td class="name"><code>brand</code></td>
2278
+
2279
+
2280
+ <td class="type">
2281
+
2282
+
2283
+ <span class="param-type">string</span>
2284
+
2285
+
2286
+
2287
+
2288
+ </td>
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+ <td class="description last">The brand for which to fetch artists.</td>
2295
+ </tr>
2296
+
2297
+
2298
+ </tbody>
2299
+ </table>
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+ <h5 class="h5-returns">Returns:</h5>
2317
+
2318
+
2319
+ <div class="param-desc">
2320
+ - A promise that resolves to an array of artist objects or null if not found.
2321
+ </div>
2322
+
2323
+
2324
+
2325
+ <dl class="param-type">
2326
+ <dt>
2327
+ Type
2328
+ </dt>
2329
+ <dd>
2330
+
2331
+ <span class="param-type">Promise.&lt;(Object|null)></span>
2332
+
2333
+
2334
+
2335
+ </dd>
2336
+ </dl>
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+ <h4 class="name" id=".fetchByRailContentId"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentId<span class="signature">(id, contentType)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2348
+
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+ <dl class="details">
2355
+
2356
+ <dt class="tag-description">Description:</dt>
2357
+ <dd class="tag-description"><ul class="dummy"><li>Fetch content by a specific Railcontent ID.</li></ul></dd>
2358
+
2359
+
2360
+
2361
+ <dt class="tag-source">Source:</dt>
2362
+ <dd class="tag-source"><ul class="dummy"><li>
2363
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line442">line 442</a>
2364
+ </li></ul></dd>
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+ </dl>
2397
+
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+
2408
+ <h5 class="h5-examples">Example</h5>
2409
+
2410
+ <pre class="prettyprint"><code>fetchByRailContentId('abc123')
2411
+ .then(content => console.log(content))
2412
+ .catch(error => console.error(error));</code></pre>
2413
+
2414
+
2415
+
2416
+
2417
+ <h5 class="h5-parameters">Parameters:</h5>
2418
+
2419
+
2420
+ <table class="params">
2421
+ <thead>
2422
+ <tr>
2423
+
2424
+ <th>Name</th>
2425
+
2426
+
2427
+ <th>Type</th>
2428
+
2429
+
2430
+
2431
+
2432
+
2433
+ <th class="last">Description</th>
2434
+ </tr>
2435
+ </thead>
2436
+
2437
+ <tbody>
2438
+
2439
+
2440
+ <tr>
2441
+
2442
+ <td class="name"><code>id</code></td>
2443
+
2444
+
2445
+ <td class="type">
2446
+
2447
+
2448
+ <span class="param-type">string</span>
2449
+
2450
+
2451
+
2452
+
2453
+ </td>
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+ <td class="description last">The Railcontent ID of the content to fetch.</td>
2460
+ </tr>
2461
+
2462
+
2463
+
2464
+ <tr>
2465
+
2466
+ <td class="name"><code>contentType</code></td>
2467
+
2468
+
2469
+ <td class="type">
2470
+
2471
+
2472
+ <span class="param-type">string</span>
2473
+
2474
+
2475
+
2476
+
2477
+ </td>
2478
+
2479
+
2480
+
2481
+
2482
+
2483
+ <td class="description last">The document type of content to fetch</td>
2484
+ </tr>
2485
+
2486
+
2487
+ </tbody>
2488
+ </table>
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+
2505
+ <h5 class="h5-returns">Returns:</h5>
2506
+
2507
+
2508
+ <div class="param-desc">
2509
+ - A promise that resolves to the content object or null if not found.
2510
+ </div>
2511
+
2512
+
2513
+
2514
+ <dl class="param-type">
2515
+ <dt>
2516
+ Type
2517
+ </dt>
2518
+ <dd>
2519
+
2520
+ <span class="param-type">Promise.&lt;(Object|null)></span>
2521
+
2522
+
2523
+
2524
+ </dd>
2525
+ </dl>
2526
+
2527
+
2528
+
2529
+
2530
+
2531
+
2532
+
2533
+
2534
+
2535
+
2536
+ <h4 class="name" id=".fetchByRailContentIds"><span class="type-signature type-signature-static">(static) </span>fetchByRailContentIds<span class="signature">(ids, contentType<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
2537
+
2538
+
2539
+
2540
+
2541
+
2542
+
2543
+ <dl class="details">
2544
+
2545
+ <dt class="tag-description">Description:</dt>
2546
+ <dd class="tag-description"><ul class="dummy"><li>Fetch content by an array of Railcontent IDs.</li></ul></dd>
2547
+
2548
+
2549
+
2550
+ <dt class="tag-source">Source:</dt>
2551
+ <dd class="tag-source"><ul class="dummy"><li>
2552
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line479">line 479</a>
2553
+ </li></ul></dd>
2554
+
2555
+
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+
2565
+
2566
+
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+
2573
+
2574
+
2575
+
2576
+
2577
+
2578
+
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+ </dl>
2586
+
2587
+
2588
+
2589
+
2590
+
2591
+
2592
+
2593
+
2594
+
2595
+
2596
+
2597
+ <h5 class="h5-examples">Example</h5>
2598
+
2599
+ <pre class="prettyprint"><code>fetchByRailContentIds(['abc123', 'def456', 'ghi789'])
2600
+ .then(contents => console.log(contents))
2601
+ .catch(error => console.error(error));</code></pre>
2602
+
2603
+
2604
+
2605
+
2606
+ <h5 class="h5-parameters">Parameters:</h5>
2607
+
2608
+
2609
+ <table class="params">
2610
+ <thead>
2611
+ <tr>
2612
+
2613
+ <th>Name</th>
2614
+
2615
+
2616
+ <th>Type</th>
2617
+
2618
+
2619
+ <th>Attributes</th>
2620
+
2621
+
2622
+
2623
+
2624
+ <th class="last">Description</th>
2625
+ </tr>
2626
+ </thead>
2627
+
2628
+ <tbody>
2629
+
2630
+
2631
+ <tr>
2632
+
2633
+ <td class="name"><code>ids</code></td>
2634
+
2635
+
2636
+ <td class="type">
2637
+
2638
+
2639
+ <span class="param-type">Array.&lt;(string|number)></span>
2640
+
2641
+
2642
+
2643
+
2644
+ </td>
2645
+
2646
+
2647
+ <td class="attributes">
2648
+
2649
+
2650
+
2651
+
2652
+
2653
+ </td>
2654
+
2655
+
2656
+
2657
+
2658
+ <td class="description last">The array of Railcontent IDs of the content to fetch.</td>
2659
+ </tr>
2660
+
2661
+
2662
+
2663
+ <tr>
2664
+
2665
+ <td class="name"><code>contentType</code></td>
2666
+
2667
+
2668
+ <td class="type">
2669
+
2670
+
2671
+ <span class="param-type">string</span>
2672
+
2673
+
2674
+
2675
+
2676
+ </td>
2677
+
2678
+
2679
+ <td class="attributes">
2680
+
2681
+ &lt;optional><br>
2682
+
2683
+
2684
+
2685
+
2686
+
2687
+ </td>
2688
+
2689
+
2690
+
2691
+
2692
+ <td class="description last">The content type the IDs to add needed fields to the response.</td>
2693
+ </tr>
2694
+
2695
+
2696
+ </tbody>
2697
+ </table>
2698
+
2699
+
2700
+
2701
+
2702
+
2703
+
2704
+
2705
+
2706
+
2707
+
2708
+
2709
+
2710
+
2711
+
2712
+
2713
+
2714
+ <h5 class="h5-returns">Returns:</h5>
2715
+
2716
+
2717
+ <div class="param-desc">
2718
+ - A promise that resolves to an array of content objects or null if not found.
2719
+ </div>
2720
+
2721
+
2722
+
2723
+ <dl class="param-type">
2724
+ <dt>
2725
+ Type
2726
+ </dt>
2727
+ <dd>
2728
+
2729
+ <span class="param-type">Promise.&lt;(Array.&lt;Object>|null)></span>
2730
+
2731
+
2732
+
2733
+ </dd>
2734
+ </dl>
2735
+
2736
+
2737
+
2738
+
2739
+
2740
+
2741
+
2742
+
2743
+
2744
+
2745
+ <h4 class="name" id=".fetchByReference"><span class="type-signature type-signature-static">(static) </span>fetchByReference<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2746
+
2747
+
2748
+
2749
+
2750
+
2751
+
2752
+ <dl class="details">
2753
+
2754
+ <dt class="tag-description">Description:</dt>
2755
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the coach screen.</li></ul></dd>
2756
+
2757
+
2758
+
2759
+ <dt class="tag-source">Source:</dt>
2760
+ <dd class="tag-source"><ul class="dummy"><li>
2761
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1512">line 1512</a>
2762
+ </li></ul></dd>
2763
+
2764
+
2765
+
2766
+
2767
+
2768
+
2769
+
2770
+
2771
+
2772
+
2773
+
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+
2780
+
2781
+
2782
+
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+ </dl>
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+ <h5 class="h5-examples">Example</h5>
2807
+
2808
+ <pre class="prettyprint"><code>fetchCoachLessons('coach123')
2809
+ .then(lessons => console.log(lessons))
2810
+ .catch(error => console.error(error));</code></pre>
2811
+
2812
+
2813
+
2814
+
2815
+ <h5 class="h5-parameters">Parameters:</h5>
2816
+
2817
+
2818
+ <table class="params">
2819
+ <thead>
2820
+ <tr>
2821
+
2822
+ <th>Name</th>
2823
+
2824
+
2825
+ <th>Type</th>
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+ <th class="last">Description</th>
2832
+ </tr>
2833
+ </thead>
2834
+
2835
+ <tbody>
2836
+
2837
+
2838
+ <tr>
2839
+
2840
+ <td class="name"><code>id</code></td>
2841
+
2842
+
2843
+ <td class="type">
2844
+
2845
+
2846
+ <span class="param-type">string</span>
2847
+
2848
+
2849
+
2850
+
2851
+ </td>
2852
+
2853
+
2854
+
2855
+
2856
+
2857
+ <td class="description last">The Railcontent ID of the coach</td>
2858
+ </tr>
2859
+
2860
+
2861
+ </tbody>
2862
+ </table>
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+
2875
+
2876
+
2877
+
2878
+
2879
+ <h5 class="h5-returns">Returns:</h5>
2880
+
2881
+
2882
+ <div class="param-desc">
2883
+ - The lessons for the instructor or null if not found.
2884
+ </div>
2885
+
2886
+
2887
+
2888
+ <dl class="param-type">
2889
+ <dt>
2890
+ Type
2891
+ </dt>
2892
+ <dd>
2893
+
2894
+ <span class="param-type">Promise.&lt;(Object|null)></span>
2895
+
2896
+
2897
+
2898
+ </dd>
2899
+ </dl>
2900
+
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+
2910
+ <h4 class="name" id=".fetchCoachLessons"><span class="type-signature type-signature-static">(static) </span>fetchCoachLessons<span class="signature">(brand, id, params)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2911
+
2912
+
2913
+
2914
+
2915
+
2916
+
2917
+ <dl class="details">
2918
+
2919
+ <dt class="tag-description">Description:</dt>
2920
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the coach screen.</li></ul></dd>
2921
+
2922
+
2923
+
2924
+ <dt class="tag-source">Source:</dt>
2925
+ <dd class="tag-source"><ul class="dummy"><li>
2926
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1479">line 1479</a>
2927
+ </li></ul></dd>
2928
+
2929
+
2930
+
2931
+
2932
+
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+
2940
+
2941
+
2942
+
2943
+
2944
+
2945
+
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+ </dl>
2960
+
2961
+
2962
+
2963
+
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+
2970
+
2971
+ <h5 class="h5-examples">Example</h5>
2972
+
2973
+ <pre class="prettyprint"><code>fetchCoachLessons('coach123')
2974
+ .then(lessons => console.log(lessons))
2975
+ .catch(error => console.error(error));</code></pre>
2976
+
2977
+
2978
+
2979
+
2980
+ <h5 class="h5-parameters">Parameters:</h5>
2981
+
2982
+
2983
+ <table class="params">
2984
+ <thead>
2985
+ <tr>
2986
+
2987
+ <th>Name</th>
2988
+
2989
+
2990
+ <th>Type</th>
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+ <th class="last">Description</th>
2997
+ </tr>
2998
+ </thead>
2999
+
3000
+ <tbody>
3001
+
3002
+
3003
+ <tr>
3004
+
3005
+ <td class="name"><code>brand</code></td>
3006
+
3007
+
3008
+ <td class="type">
3009
+
3010
+
3011
+ <span class="param-type">string</span>
3012
+
3013
+
3014
+
3015
+
3016
+ </td>
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+ <td class="description last">The brand for which to fetch coach lessons</td>
3023
+ </tr>
3024
+
3025
+
3026
+
3027
+ <tr>
3028
+
3029
+ <td class="name"><code>id</code></td>
3030
+
3031
+
3032
+ <td class="type">
3033
+
3034
+
3035
+ <span class="param-type">string</span>
3036
+
3037
+
3038
+
3039
+
3040
+ </td>
3041
+
3042
+
3043
+
3044
+
3045
+
3046
+ <td class="description last">The Railcontent ID of the coach</td>
3047
+ </tr>
3048
+
3049
+
3050
+
3051
+ <tr>
3052
+
3053
+ <td class="name"><code>params</code></td>
3054
+
3055
+
3056
+ <td class="type">
3057
+
3058
+
3059
+ <span class="param-type">Object</span>
3060
+
3061
+
3062
+
3063
+
3064
+ </td>
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+ <td class="description last">Parameters for pagination, filtering and sorting.
3071
+ <h6>Properties</h6>
3072
+
3073
+
3074
+ <table class="params">
3075
+ <thead>
3076
+ <tr>
3077
+
3078
+ <th>Name</th>
3079
+
3080
+
3081
+ <th>Type</th>
3082
+
3083
+
3084
+ <th>Attributes</th>
3085
+
3086
+
3087
+
3088
+ <th>Default</th>
3089
+
3090
+
3091
+ <th class="last">Description</th>
3092
+ </tr>
3093
+ </thead>
3094
+
3095
+ <tbody>
3096
+
3097
+
3098
+ <tr>
3099
+
3100
+ <td class="name"><code>sortOrder</code></td>
3101
+
3102
+
3103
+ <td class="type">
3104
+
3105
+
3106
+ <span class="param-type">string</span>
3107
+
3108
+
3109
+
3110
+
3111
+ </td>
3112
+
3113
+
3114
+ <td class="attributes">
3115
+
3116
+ &lt;optional><br>
3117
+
3118
+
3119
+
3120
+
3121
+
3122
+ </td>
3123
+
3124
+
3125
+
3126
+ <td class="default">
3127
+
3128
+ <code>"-published_on"</code>
3129
+
3130
+ </td>
3131
+
3132
+
3133
+ <td class="description last">The field to sort the lessons by.</td>
3134
+ </tr>
3135
+
3136
+
3137
+
3138
+ <tr>
3139
+
3140
+ <td class="name"><code>searchTerm</code></td>
3141
+
3142
+
3143
+ <td class="type">
3144
+
3145
+
3146
+ <span class="param-type">string</span>
3147
+
3148
+
3149
+
3150
+
3151
+ </td>
3152
+
3153
+
3154
+ <td class="attributes">
3155
+
3156
+ &lt;optional><br>
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+ </td>
3163
+
3164
+
3165
+
3166
+ <td class="default">
3167
+
3168
+ <code>""</code>
3169
+
3170
+ </td>
3171
+
3172
+
3173
+ <td class="description last">The search term to filter content by title.</td>
3174
+ </tr>
3175
+
3176
+
3177
+
3178
+ <tr>
3179
+
3180
+ <td class="name"><code>page</code></td>
3181
+
3182
+
3183
+ <td class="type">
3184
+
3185
+
3186
+ <span class="param-type">number</span>
3187
+
3188
+
3189
+
3190
+
3191
+ </td>
3192
+
3193
+
3194
+ <td class="attributes">
3195
+
3196
+ &lt;optional><br>
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+ </td>
3203
+
3204
+
3205
+
3206
+ <td class="default">
3207
+
3208
+ <code>1</code>
3209
+
3210
+ </td>
3211
+
3212
+
3213
+ <td class="description last">The page number for pagination.</td>
3214
+ </tr>
3215
+
3216
+
3217
+
3218
+ <tr>
3219
+
3220
+ <td class="name"><code>limit</code></td>
3221
+
3222
+
3223
+ <td class="type">
3224
+
3225
+
3226
+ <span class="param-type">number</span>
3227
+
3228
+
3229
+
3230
+
3231
+ </td>
3232
+
3233
+
3234
+ <td class="attributes">
3235
+
3236
+ &lt;optional><br>
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+ </td>
3243
+
3244
+
3245
+
3246
+ <td class="default">
3247
+
3248
+ <code>10</code>
3249
+
3250
+ </td>
3251
+
3252
+
3253
+ <td class="description last">The number of items per page.</td>
3254
+ </tr>
3255
+
3256
+
3257
+
3258
+ <tr>
3259
+
3260
+ <td class="name"><code>includedFields</code></td>
3261
+
3262
+
3263
+ <td class="type">
3264
+
3265
+
3266
+ <span class="param-type">Array.&lt;string></span>
3267
+
3268
+
3269
+
3270
+
3271
+ </td>
3272
+
3273
+
3274
+ <td class="attributes">
3275
+
3276
+ &lt;optional><br>
3277
+
3278
+
3279
+
3280
+
3281
+
3282
+ </td>
3283
+
3284
+
3285
+
3286
+ <td class="default">
3287
+
3288
+ <code>[]</code>
3289
+
3290
+ </td>
3291
+
3292
+
3293
+ <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>
3294
+ </tr>
3295
+
3296
+
3297
+ </tbody>
3298
+ </table>
3299
+
3300
+ </td>
3301
+ </tr>
3302
+
3303
+
3304
+ </tbody>
3305
+ </table>
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+
3318
+
3319
+
3320
+
3321
+
3322
+ <h5 class="h5-returns">Returns:</h5>
3323
+
3324
+
3325
+ <div class="param-desc">
3326
+ - The lessons for the instructor or null if not found.
3327
+ </div>
3328
+
3329
+
3330
+
3331
+ <dl class="param-type">
3332
+ <dt>
3333
+ Type
3334
+ </dt>
3335
+ <dd>
3336
+
3337
+ <span class="param-type">Promise.&lt;(Object|null)></span>
3338
+
3339
+
3340
+
3341
+ </dd>
3342
+ </dl>
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+ <h4 class="name" id=".fetchComingSoon"><span class="type-signature type-signature-static">(static) </span>fetchComingSoon<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3354
+
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+ <dl class="details">
3361
+
3362
+ <dt class="tag-description">Description:</dt>
3363
+ <dd class="tag-description"><ul class="dummy"><li>fetches from Sanity all songs coming soon (new) next quarter</li></ul></dd>
3364
+
3365
+
3366
+
3367
+ <dt class="tag-source">Source:</dt>
3368
+ <dd class="tag-source"><ul class="dummy"><li>
3369
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line134">line 134</a>
3370
+ </li></ul></dd>
3371
+
1947
3372
 
1948
-
1949
- <th>Attributes</th>
1950
-
3373
+
1951
3374
 
1952
-
3375
+
1953
3376
 
1954
- <th class="last">Description</th>
1955
- </tr>
1956
- </thead>
3377
+
1957
3378
 
1958
- <tbody>
1959
3379
 
1960
3380
 
1961
- <tr>
1962
-
1963
- <td class="name"><code>ids</code></td>
1964
-
3381
+
1965
3382
 
1966
- <td class="type">
1967
-
1968
-
1969
- <span class="param-type">Array.&lt;(string|number)></span>
3383
+
1970
3384
 
3385
+
1971
3386
 
3387
+
1972
3388
 
1973
-
1974
- </td>
3389
+
1975
3390
 
1976
-
1977
- <td class="attributes">
1978
-
3391
+
1979
3392
 
1980
-
3393
+
1981
3394
 
1982
-
1983
- </td>
1984
-
3395
+
1985
3396
 
1986
-
3397
+
1987
3398
 
1988
- <td class="description last">The array of Railcontent IDs of the content to fetch.</td>
1989
- </tr>
3399
+
1990
3400
 
1991
3401
 
3402
+ </dl>
1992
3403
 
1993
- <tr>
1994
-
1995
- <td class="name"><code>contentType</code></td>
1996
-
1997
3404
 
1998
- <td class="type">
1999
-
2000
-
2001
- <span class="param-type">string</span>
2002
3405
 
2003
3406
 
2004
3407
 
2005
-
2006
- </td>
2007
3408
 
2008
-
2009
- <td class="attributes">
2010
-
2011
- &lt;optional><br>
2012
-
2013
3409
 
2014
-
2015
3410
 
2016
-
2017
- </td>
2018
-
2019
3411
 
2020
-
2021
3412
 
2022
- <td class="description last">The content type the IDs to add needed fields to the response.</td>
2023
- </tr>
2024
3413
 
2025
-
2026
- </tbody>
2027
- </table>
2028
3414
 
2029
3415
 
2030
3416
 
@@ -2044,10 +3430,6 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2044
3430
  <h5 class="h5-returns">Returns:</h5>
2045
3431
 
2046
3432
 
2047
- <div class="param-desc">
2048
- - A promise that resolves to an array of content objects or null if not found.
2049
- </div>
2050
-
2051
3433
 
2052
3434
 
2053
3435
  <dl class="param-type">
@@ -2056,7 +3438,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2056
3438
  </dt>
2057
3439
  <dd>
2058
3440
 
2059
- <span class="param-type">Promise.&lt;(Array.&lt;Object>|null)></span>
3441
+ <span class="param-type">Promise.&lt;(Object|null)></span>
2060
3442
 
2061
3443
 
2062
3444
 
@@ -2072,7 +3454,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2072
3454
 
2073
3455
 
2074
3456
 
2075
- <h4 class="name" id=".fetchByReference"><span class="type-signature type-signature-static">(static) </span>fetchByReference<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3457
+ <h4 class="name" id=".fetchCommentModContentData"><span class="type-signature type-signature-static">(static) </span>fetchCommentModContentData<span class="signature">(ids)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2076
3458
 
2077
3459
 
2078
3460
 
@@ -2082,13 +3464,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2082
3464
  <dl class="details">
2083
3465
 
2084
3466
  <dt class="tag-description">Description:</dt>
2085
- <dd class="tag-description"><ul class="dummy"><li>Fetch the data needed for the coach screen.</li></ul></dd>
3467
+ <dd class="tag-description"><ul class="dummy"><li>Fetch data for comment mod page</li></ul></dd>
2086
3468
 
2087
3469
 
2088
3470
 
2089
3471
  <dt class="tag-source">Source:</dt>
2090
3472
  <dd class="tag-source"><ul class="dummy"><li>
2091
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1464">line 1464</a>
3473
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1741">line 1741</a>
2092
3474
  </li></ul></dd>
2093
3475
 
2094
3476
 
@@ -2133,13 +3515,6 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2133
3515
 
2134
3516
 
2135
3517
 
2136
- <h5 class="h5-examples">Example</h5>
2137
-
2138
- <pre class="prettyprint"><code>fetchCoachLessons('coach123')
2139
- .then(lessons => console.log(lessons))
2140
- .catch(error => console.error(error));</code></pre>
2141
-
2142
-
2143
3518
 
2144
3519
 
2145
3520
  <h5 class="h5-parameters">Parameters:</h5>
@@ -2167,13 +3542,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2167
3542
 
2168
3543
  <tr>
2169
3544
 
2170
- <td class="name"><code>id</code></td>
3545
+ <td class="name"><code>ids</code></td>
2171
3546
 
2172
3547
 
2173
3548
  <td class="type">
2174
3549
 
2175
3550
 
2176
- <span class="param-type">string</span>
3551
+ <span class="param-type">array</span>
2177
3552
 
2178
3553
 
2179
3554
 
@@ -2184,7 +3559,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2184
3559
 
2185
3560
 
2186
3561
 
2187
- <td class="description last">The Railcontent ID of the coach</td>
3562
+ <td class="description last">List of ids get data for</td>
2188
3563
  </tr>
2189
3564
 
2190
3565
 
@@ -2210,7 +3585,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2210
3585
 
2211
3586
 
2212
3587
  <div class="param-desc">
2213
- - The lessons for the instructor or null if not found.
3588
+ - A promise that resolves to an object containing the data
2214
3589
  </div>
2215
3590
 
2216
3591
 
@@ -2237,7 +3612,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2237
3612
 
2238
3613
 
2239
3614
 
2240
- <h4 class="name" id=".fetchComingSoon"><span class="type-signature type-signature-static">(static) </span>fetchComingSoon<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3615
+ <h4 class="name" id=".fetchFoundation"><span class="type-signature type-signature-static">(static) </span>fetchFoundation<span class="signature">(slug)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2241
3616
 
2242
3617
 
2243
3618
 
@@ -2247,13 +3622,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2247
3622
  <dl class="details">
2248
3623
 
2249
3624
  <dt class="tag-description">Description:</dt>
2250
- <dd class="tag-description"><ul class="dummy"><li>fetches from Sanity all songs coming soon (new) next quarter</li></ul></dd>
3625
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the Foundations 2019.</li></ul></dd>
2251
3626
 
2252
3627
 
2253
3628
 
2254
3629
  <dt class="tag-source">Source:</dt>
2255
3630
  <dd class="tag-source"><ul class="dummy"><li>
2256
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line131">line 131</a>
3631
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line887">line 887</a>
2257
3632
  </li></ul></dd>
2258
3633
 
2259
3634
 
@@ -2300,6 +3675,56 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2300
3675
 
2301
3676
 
2302
3677
 
3678
+ <h5 class="h5-parameters">Parameters:</h5>
3679
+
3680
+
3681
+ <table class="params">
3682
+ <thead>
3683
+ <tr>
3684
+
3685
+ <th>Name</th>
3686
+
3687
+
3688
+ <th>Type</th>
3689
+
3690
+
3691
+
3692
+
3693
+
3694
+ <th class="last">Description</th>
3695
+ </tr>
3696
+ </thead>
3697
+
3698
+ <tbody>
3699
+
3700
+
3701
+ <tr>
3702
+
3703
+ <td class="name"><code>slug</code></td>
3704
+
3705
+
3706
+ <td class="type">
3707
+
3708
+
3709
+ <span class="param-type">string</span>
3710
+
3711
+
3712
+
3713
+
3714
+ </td>
3715
+
3716
+
3717
+
3718
+
3719
+
3720
+ <td class="description last">The slug of the method.</td>
3721
+ </tr>
3722
+
3723
+
3724
+ </tbody>
3725
+ </table>
3726
+
3727
+
2303
3728
 
2304
3729
 
2305
3730
 
@@ -2317,6 +3742,10 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2317
3742
  <h5 class="h5-returns">Returns:</h5>
2318
3743
 
2319
3744
 
3745
+ <div class="param-desc">
3746
+ - The fetched foundation data or null if not found.
3747
+ </div>
3748
+
2320
3749
 
2321
3750
 
2322
3751
  <dl class="param-type">
@@ -2341,7 +3770,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2341
3770
 
2342
3771
 
2343
3772
 
2344
- <h4 class="name" id=".fetchCommentModContentData"><span class="type-signature type-signature-static">(static) </span>fetchCommentModContentData<span class="signature">(ids)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3773
+ <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>
2345
3774
 
2346
3775
 
2347
3776
 
@@ -2351,13 +3780,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2351
3780
  <dl class="details">
2352
3781
 
2353
3782
  <dt class="tag-description">Description:</dt>
2354
- <dd class="tag-description"><ul class="dummy"><li>Fetch data for comment mod page</li></ul></dd>
3783
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the genre's lessons.</li></ul></dd>
2355
3784
 
2356
3785
 
2357
3786
 
2358
3787
  <dt class="tag-source">Source:</dt>
2359
3788
  <dd class="tag-source"><ul class="dummy"><li>
2360
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1578">line 1578</a>
3789
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1611">line 1611</a>
2361
3790
  </li></ul></dd>
2362
3791
 
2363
3792
 
@@ -2402,6 +3831,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2402
3831
 
2403
3832
 
2404
3833
 
3834
+ <h5 class="h5-examples">Example</h5>
3835
+
3836
+ <pre class="prettyprint"><code>fetchGenreLessons('drumeo', 'Blues', 'song', {'-published_on', '', 1, 10, ["difficulty,Intermediate"], [232168, 232824, 303375, 232194, 393125]})
3837
+ .then(lessons => console.log(lessons))
3838
+ .catch(error => console.error(error));</code></pre>
3839
+
3840
+
2405
3841
 
2406
3842
 
2407
3843
  <h5 class="h5-parameters">Parameters:</h5>
@@ -2429,13 +3865,13 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2429
3865
 
2430
3866
  <tr>
2431
3867
 
2432
- <td class="name"><code>ids</code></td>
3868
+ <td class="name"><code>brand</code></td>
2433
3869
 
2434
3870
 
2435
3871
  <td class="type">
2436
3872
 
2437
3873
 
2438
- <span class="param-type">array</span>
3874
+ <span class="param-type">string</span>
2439
3875
 
2440
3876
 
2441
3877
 
@@ -2446,154 +3882,291 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2446
3882
 
2447
3883
 
2448
3884
 
2449
- <td class="description last">List of ids get data for</td>
3885
+ <td class="description last">The brand for which to fetch lessons.</td>
2450
3886
  </tr>
2451
3887
 
2452
3888
 
2453
- </tbody>
2454
- </table>
2455
3889
 
3890
+ <tr>
3891
+
3892
+ <td class="name"><code>name</code></td>
3893
+
3894
+
3895
+ <td class="type">
3896
+
3897
+
3898
+ <span class="param-type">string</span>
2456
3899
 
2457
3900
 
2458
3901
 
3902
+
3903
+ </td>
2459
3904
 
3905
+
2460
3906
 
3907
+
2461
3908
 
3909
+ <td class="description last">The name of the genre</td>
3910
+ </tr>
2462
3911
 
3912
+
2463
3913
 
3914
+ <tr>
3915
+
3916
+ <td class="name"><code>params</code></td>
3917
+
2464
3918
 
3919
+ <td class="type">
3920
+
3921
+
3922
+ <span class="param-type">Object</span>
2465
3923
 
2466
3924
 
2467
3925
 
3926
+
3927
+ </td>
2468
3928
 
3929
+
2469
3930
 
3931
+
2470
3932
 
2471
- <h5 class="h5-returns">Returns:</h5>
3933
+ <td class="description last">Parameters for sorting, searching, pagination and filtering.
3934
+ <h6>Properties</h6>
3935
+
2472
3936
 
3937
+ <table class="params">
3938
+ <thead>
3939
+ <tr>
3940
+
3941
+ <th>Name</th>
2473
3942
 
2474
- <div class="param-desc">
2475
- - A promise that resolves to an object containing the data
2476
- </div>
2477
3943
 
3944
+ <th>Type</th>
2478
3945
 
3946
+
3947
+ <th>Attributes</th>
3948
+
2479
3949
 
2480
- <dl class="param-type">
2481
- <dt>
2482
- Type
2483
- </dt>
2484
- <dd>
2485
3950
 
2486
- <span class="param-type">Promise.&lt;(Object|null)></span>
3951
+ <th>Default</th>
3952
+
3953
+
3954
+ <th class="last">Description</th>
3955
+ </tr>
3956
+ </thead>
3957
+
3958
+ <tbody>
3959
+
2487
3960
 
3961
+ <tr>
3962
+
3963
+ <td class="name"><code>sort</code></td>
3964
+
3965
+
3966
+ <td class="type">
3967
+
3968
+
3969
+ <span class="param-type">string</span>
3970
+
3971
+
3972
+
3973
+
3974
+ </td>
3975
+
3976
+
3977
+ <td class="attributes">
3978
+
3979
+ &lt;optional><br>
3980
+
3981
+
3982
+
3983
+
3984
+
3985
+ </td>
3986
+
2488
3987
 
3988
+
3989
+ <td class="default">
3990
+
3991
+ <code>"-published_on"</code>
3992
+
3993
+ </td>
3994
+
2489
3995
 
2490
- </dd>
2491
- </dl>
3996
+ <td class="description last">The field to sort the lessons by.</td>
3997
+ </tr>
2492
3998
 
2493
3999
 
2494
4000
 
4001
+ <tr>
4002
+
4003
+ <td class="name"><code>searchTerm</code></td>
4004
+
2495
4005
 
2496
-
2497
-
4006
+ <td class="type">
2498
4007
 
4008
+
4009
+ <span class="param-type">string</span>
2499
4010
 
2500
-
2501
4011
 
2502
- <h4 class="name" id=".fetchFoundation"><span class="type-signature type-signature-static">(static) </span>fetchFoundation<span class="signature">(slug)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2503
4012
 
2504
-
4013
+
4014
+ </td>
2505
4015
 
4016
+
4017
+ <td class="attributes">
4018
+
4019
+ &lt;optional><br>
4020
+
2506
4021
 
4022
+
2507
4023
 
4024
+
4025
+ </td>
4026
+
2508
4027
 
2509
- <dl class="details">
2510
-
2511
- <dt class="tag-description">Description:</dt>
2512
- <dd class="tag-description"><ul class="dummy"><li>Fetch the Foundations 2019.</li></ul></dd>
2513
-
4028
+
4029
+ <td class="default">
4030
+
4031
+ <code>""</code>
4032
+
4033
+ </td>
4034
+
2514
4035
 
2515
-
2516
- <dt class="tag-source">Source:</dt>
2517
- <dd class="tag-source"><ul class="dummy"><li>
2518
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line864">line 864</a>
2519
- </li></ul></dd>
2520
-
4036
+ <td class="description last">The search term to filter the lessons.</td>
4037
+ </tr>
2521
4038
 
2522
4039
 
2523
4040
 
2524
-
4041
+ <tr>
4042
+
4043
+ <td class="name"><code>page</code></td>
4044
+
2525
4045
 
2526
-
4046
+ <td class="type">
4047
+
4048
+
4049
+ <span class="param-type">number</span>
2527
4050
 
2528
-
2529
4051
 
2530
-
2531
4052
 
2532
-
4053
+
4054
+ </td>
2533
4055
 
2534
-
4056
+
4057
+ <td class="attributes">
4058
+
4059
+ &lt;optional><br>
4060
+
2535
4061
 
2536
-
4062
+
2537
4063
 
2538
-
4064
+
4065
+ </td>
4066
+
2539
4067
 
2540
-
4068
+
4069
+ <td class="default">
4070
+
4071
+ <code>1</code>
4072
+
4073
+ </td>
4074
+
2541
4075
 
2542
-
4076
+ <td class="description last">The page number for pagination.</td>
4077
+ </tr>
2543
4078
 
2544
4079
 
2545
4080
 
2546
-
4081
+ <tr>
4082
+
4083
+ <td class="name"><code>limit</code></td>
4084
+
2547
4085
 
2548
-
4086
+ <td class="type">
4087
+
4088
+
4089
+ <span class="param-type">number</span>
2549
4090
 
2550
-
2551
- </dl>
2552
4091
 
2553
4092
 
4093
+
4094
+ </td>
2554
4095
 
4096
+
4097
+ <td class="attributes">
4098
+
4099
+ &lt;optional><br>
4100
+
2555
4101
 
4102
+
2556
4103
 
4104
+
4105
+ </td>
4106
+
2557
4107
 
4108
+
4109
+ <td class="default">
4110
+
4111
+ <code>10</code>
4112
+
4113
+ </td>
4114
+
2558
4115
 
4116
+ <td class="description last">The number of items per page.</td>
4117
+ </tr>
2559
4118
 
4119
+
2560
4120
 
4121
+ <tr>
4122
+
4123
+ <td class="name"><code>includedFields</code></td>
4124
+
2561
4125
 
4126
+ <td class="type">
4127
+
4128
+
4129
+ <span class="param-type">Array.&lt;string></span>
2562
4130
 
2563
4131
 
2564
4132
 
2565
- <h5 class="h5-parameters">Parameters:</h5>
2566
-
4133
+
4134
+ </td>
2567
4135
 
2568
- <table class="params">
2569
- <thead>
2570
- <tr>
2571
-
2572
- <th>Name</th>
2573
-
4136
+
4137
+ <td class="attributes">
4138
+
4139
+ &lt;optional><br>
4140
+
2574
4141
 
2575
- <th>Type</th>
4142
+
2576
4143
 
2577
-
4144
+
4145
+ </td>
4146
+
2578
4147
 
2579
-
4148
+
4149
+ <td class="default">
4150
+
4151
+ <code>[]</code>
4152
+
4153
+ </td>
4154
+
2580
4155
 
2581
- <th class="last">Description</th>
2582
- </tr>
2583
- </thead>
4156
+ <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>
4157
+ </tr>
2584
4158
 
2585
- <tbody>
2586
4159
 
2587
4160
 
2588
4161
  <tr>
2589
4162
 
2590
- <td class="name"><code>slug</code></td>
4163
+ <td class="name"><code>progressIds</code></td>
2591
4164
 
2592
4165
 
2593
4166
  <td class="type">
2594
4167
 
2595
4168
 
2596
- <span class="param-type">string</span>
4169
+ <span class="param-type">Array.&lt;number></span>
2597
4170
 
2598
4171
 
2599
4172
 
@@ -2601,10 +4174,31 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2601
4174
  </td>
2602
4175
 
2603
4176
 
4177
+ <td class="attributes">
4178
+
4179
+ &lt;optional><br>
4180
+
4181
+
4182
+
2604
4183
 
4184
+
4185
+ </td>
2605
4186
 
2606
4187
 
2607
- <td class="description last">The slug of the method.</td>
4188
+
4189
+ <td class="default">
4190
+
4191
+ </td>
4192
+
4193
+
4194
+ <td class="description last">The ids of the lessons that are in progress or completed</td>
4195
+ </tr>
4196
+
4197
+
4198
+ </tbody>
4199
+ </table>
4200
+
4201
+ </td>
2608
4202
  </tr>
2609
4203
 
2610
4204
 
@@ -2630,7 +4224,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2630
4224
 
2631
4225
 
2632
4226
  <div class="param-desc">
2633
- - The fetched foundation data or null if not found.
4227
+ - The lessons for the artist and some details about the artist (name and thumbnail).
2634
4228
  </div>
2635
4229
 
2636
4230
 
@@ -2673,7 +4267,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2673
4267
 
2674
4268
  <dt class="tag-source">Source:</dt>
2675
4269
  <dd class="tag-source"><ul class="dummy"><li>
2676
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line76">line 76</a>
4270
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line79">line 79</a>
2677
4271
  </li></ul></dd>
2678
4272
 
2679
4273
 
@@ -2777,7 +4371,7 @@ fetchAllFilterOptions('myBrand', [], 'Rock', 'John Doe', 'coach-lessons', 'Love'
2777
4371
 
2778
4372
  <dt class="tag-source">Source:</dt>
2779
4373
  <dd class="tag-source"><ul class="dummy"><li>
2780
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1087">line 1087</a>
4374
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1109">line 1109</a>
2781
4375
  </li></ul></dd>
2782
4376
 
2783
4377
 
@@ -2943,7 +4537,7 @@ These are linked through content that shares a license with the provided railcon
2943
4537
 
2944
4538
  <dt class="tag-source">Source:</dt>
2945
4539
  <dd class="tag-source"><ul class="dummy"><li>
2946
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1194">line 1194</a>
4540
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1216">line 1216</a>
2947
4541
  </li></ul></dd>
2948
4542
 
2949
4543
 
@@ -3146,7 +4740,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
3146
4740
 
3147
4741
  <dt class="tag-source">Source:</dt>
3148
4742
  <dd class="tag-source"><ul class="dummy"><li>
3149
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1773">line 1773</a>
4743
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1929">line 1929</a>
3150
4744
  </li></ul></dd>
3151
4745
 
3152
4746
 
@@ -3331,7 +4925,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
3331
4925
 
3332
4926
  <dt class="tag-source">Source:</dt>
3333
4927
  <dd class="tag-source"><ul class="dummy"><li>
3334
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line885">line 885</a>
4928
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line907">line 907</a>
3335
4929
  </li></ul></dd>
3336
4930
 
3337
4931
 
@@ -3513,7 +5107,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
3513
5107
 
3514
5108
  <dt class="tag-source">Source:</dt>
3515
5109
  <dd class="tag-source"><ul class="dummy"><li>
3516
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line933">line 933</a>
5110
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line955">line 955</a>
3517
5111
  </li></ul></dd>
3518
5112
 
3519
5113
 
@@ -3671,7 +5265,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
3671
5265
 
3672
5266
  <dt class="tag-source">Source:</dt>
3673
5267
  <dd class="tag-source"><ul class="dummy"><li>
3674
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line991">line 991</a>
5268
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1013">line 1013</a>
3675
5269
  </li></ul></dd>
3676
5270
 
3677
5271
 
@@ -3829,7 +5423,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
3829
5423
 
3830
5424
  <dt class="tag-source">Source:</dt>
3831
5425
  <dd class="tag-source"><ul class="dummy"><li>
3832
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line968">line 968</a>
5426
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line990">line 990</a>
3833
5427
  </li></ul></dd>
3834
5428
 
3835
5429
 
@@ -4018,7 +5612,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4018
5612
 
4019
5613
  <dt class="tag-source">Source:</dt>
4020
5614
  <dd class="tag-source"><ul class="dummy"><li>
4021
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2150">line 2150</a>
5615
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2300">line 2300</a>
4022
5616
  </li></ul></dd>
4023
5617
 
4024
5618
 
@@ -4166,7 +5760,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4166
5760
 
4167
5761
  <dt class="tag-source">Source:</dt>
4168
5762
  <dd class="tag-source"><ul class="dummy"><li>
4169
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2164">line 2164</a>
5763
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2314">line 2314</a>
4170
5764
  </li></ul></dd>
4171
5765
 
4172
5766
 
@@ -4298,7 +5892,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4298
5892
 
4299
5893
 
4300
5894
 
4301
- <h4 class="name" id=".fetchNewReleases"><span class="type-signature type-signature-static">(static) </span>fetchNewReleases<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
5895
+ <h4 class="name" id=".fetchMethodV2StructureFromId"><span class="type-signature type-signature-static">(static) </span>fetchMethodV2StructureFromId<span class="signature">(contentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(*|null)>}</span></h4>
4302
5896
 
4303
5897
 
4304
5898
 
@@ -4308,13 +5902,13 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4308
5902
  <dl class="details">
4309
5903
 
4310
5904
  <dt class="tag-description">Description:</dt>
4311
- <dd class="tag-description"><ul class="dummy"><li>Fetch the latest new releases for a specific brand.</li></ul></dd>
5905
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the structure (just ids) of the Method of a given learning path or learning path lesson.</li></ul></dd>
4312
5906
 
4313
5907
 
4314
5908
 
4315
5909
  <dt class="tag-source">Source:</dt>
4316
5910
  <dd class="tag-source"><ul class="dummy"><li>
4317
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line285">line 285</a>
5911
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2331">line 2331</a>
4318
5912
  </li></ul></dd>
4319
5913
 
4320
5914
 
@@ -4386,24 +5980,18 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4386
5980
 
4387
5981
  <tr>
4388
5982
 
4389
- <td class="name"><code>brand</code></td>
5983
+ <td class="name"><code>contentId</code></td>
4390
5984
 
4391
5985
 
4392
5986
  <td class="type">
4393
5987
 
4394
-
4395
- <span class="param-type">string</span>
4396
-
4397
-
4398
-
4399
-
4400
5988
  </td>
4401
5989
 
4402
5990
 
4403
5991
 
4404
5992
 
4405
5993
 
4406
- <td class="description last">The brand for which to fetch new releases.</td>
5994
+ <td class="description last"></td>
4407
5995
  </tr>
4408
5996
 
4409
5997
 
@@ -4428,10 +6016,6 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4428
6016
  <h5 class="h5-returns">Returns:</h5>
4429
6017
 
4430
6018
 
4431
- <div class="param-desc">
4432
- - The fetched new releases data or null if not found.
4433
- </div>
4434
-
4435
6019
 
4436
6020
 
4437
6021
  <dl class="param-type">
@@ -4440,7 +6024,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4440
6024
  </dt>
4441
6025
  <dd>
4442
6026
 
4443
- <span class="param-type">Promise.&lt;(Object|null)></span>
6027
+ <span class="param-type">Promise.&lt;(*|null)></span>
4444
6028
 
4445
6029
 
4446
6030
 
@@ -4456,7 +6040,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4456
6040
 
4457
6041
 
4458
6042
 
4459
- <h4 class="name" id=".fetchNextPreviousLesson"><span class="type-signature type-signature-static">(static) </span>fetchNextPreviousLesson<span class="signature">(railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
6043
+ <h4 class="name" id=".fetchNewReleases"><span class="type-signature type-signature-static">(static) </span>fetchNewReleases<span class="signature">(brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4460
6044
 
4461
6045
 
4462
6046
 
@@ -4466,13 +6050,13 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4466
6050
  <dl class="details">
4467
6051
 
4468
6052
  <dt class="tag-description">Description:</dt>
4469
- <dd class="tag-description"><ul class="dummy"><li>Fetch the next and previous lessons for a specific lesson by Railcontent ID.</li></ul></dd>
6053
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the latest new releases for a specific brand.</li></ul></dd>
4470
6054
 
4471
6055
 
4472
6056
 
4473
6057
  <dt class="tag-source">Source:</dt>
4474
6058
  <dd class="tag-source"><ul class="dummy"><li>
4475
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1030">line 1030</a>
6059
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line312">line 312</a>
4476
6060
  </li></ul></dd>
4477
6061
 
4478
6062
 
@@ -4544,7 +6128,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4544
6128
 
4545
6129
  <tr>
4546
6130
 
4547
- <td class="name"><code>railcontentId</code></td>
6131
+ <td class="name"><code>brand</code></td>
4548
6132
 
4549
6133
 
4550
6134
  <td class="type">
@@ -4561,7 +6145,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4561
6145
 
4562
6146
 
4563
6147
 
4564
- <td class="description last">The Railcontent ID of the current lesson.</td>
6148
+ <td class="description last">The brand for which to fetch new releases.</td>
4565
6149
  </tr>
4566
6150
 
4567
6151
 
@@ -4587,7 +6171,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4587
6171
 
4588
6172
 
4589
6173
  <div class="param-desc">
4590
- - The fetched next and previous lesson data or null if found.
6174
+ - The fetched new releases data or null if not found.
4591
6175
  </div>
4592
6176
 
4593
6177
 
@@ -4614,7 +6198,7 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4614
6198
 
4615
6199
 
4616
6200
 
4617
- <h4 class="name" id=".fetchOtherSongVersions"><span class="type-signature type-signature-static">(static) </span>fetchOtherSongVersions<span class="signature">(railcontentId, brand, count)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Object>>}</span></h4>
6201
+ <h4 class="name" id=".fetchNextPreviousLesson"><span class="type-signature type-signature-static">(static) </span>fetchNextPreviousLesson<span class="signature">(railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4618
6202
 
4619
6203
 
4620
6204
 
@@ -4624,14 +6208,13 @@ For v2 you need to provide page type('lessons' or 'songs') in type parameter</li
4624
6208
  <dl class="details">
4625
6209
 
4626
6210
  <dt class="tag-description">Description:</dt>
4627
- <dd class="tag-description"><ul class="dummy"><li>Get song type (transcriptions, jam packs, play alongs, tutorial children) content documents that share content information with the provided railcontent document.
4628
- These are linked through content that shares a license with the provided railcontent document</li></ul></dd>
6211
+ <dd class="tag-description"><ul class="dummy"><li>Fetch the next and previous lessons for a specific lesson by Railcontent ID.</li></ul></dd>
4629
6212
 
4630
6213
 
4631
6214
 
4632
6215
  <dt class="tag-source">Source:</dt>
4633
6216
  <dd class="tag-source"><ul class="dummy"><li>
4634
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1181">line 1181</a>
6217
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1052">line 1052</a>
4635
6218
  </li></ul></dd>
4636
6219
 
4637
6220
 
@@ -4692,65 +6275,35 @@ These are linked through content that shares a license with the provided railcon
4692
6275
 
4693
6276
 
4694
6277
 
4695
-
4696
-
4697
- <th class="last">Description</th>
4698
- </tr>
4699
- </thead>
4700
-
4701
- <tbody>
4702
-
4703
-
4704
- <tr>
4705
-
4706
- <td class="name"><code>railcontentId</code></td>
4707
-
4708
-
4709
- <td class="type">
4710
-
4711
- </td>
4712
-
4713
-
4714
-
4715
-
4716
-
4717
- <td class="description last"></td>
4718
- </tr>
4719
-
4720
-
4721
-
4722
- <tr>
4723
-
4724
- <td class="name"><code>brand</code></td>
4725
-
4726
-
4727
- <td class="type">
4728
-
4729
- </td>
4730
-
4731
-
4732
-
4733
-
6278
+
4734
6279
 
4735
- <td class="description last"></td>
4736
- </tr>
6280
+ <th class="last">Description</th>
6281
+ </tr>
6282
+ </thead>
4737
6283
 
6284
+ <tbody>
4738
6285
 
4739
6286
 
4740
6287
  <tr>
4741
6288
 
4742
- <td class="name"><code>count</code></td>
6289
+ <td class="name"><code>railcontentId</code></td>
4743
6290
 
4744
6291
 
4745
6292
  <td class="type">
4746
6293
 
6294
+
6295
+ <span class="param-type">string</span>
6296
+
6297
+
6298
+
6299
+
4747
6300
  </td>
4748
6301
 
4749
6302
 
4750
6303
 
4751
6304
 
4752
6305
 
4753
- <td class="description last"></td>
6306
+ <td class="description last">The Railcontent ID of the current lesson.</td>
4754
6307
  </tr>
4755
6308
 
4756
6309
 
@@ -4775,6 +6328,10 @@ These are linked through content that shares a license with the provided railcon
4775
6328
  <h5 class="h5-returns">Returns:</h5>
4776
6329
 
4777
6330
 
6331
+ <div class="param-desc">
6332
+ - The fetched next and previous lesson data or null if found.
6333
+ </div>
6334
+
4778
6335
 
4779
6336
 
4780
6337
  <dl class="param-type">
@@ -4783,7 +6340,7 @@ These are linked through content that shares a license with the provided railcon
4783
6340
  </dt>
4784
6341
  <dd>
4785
6342
 
4786
- <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
6343
+ <span class="param-type">Promise.&lt;(Object|null)></span>
4787
6344
 
4788
6345
 
4789
6346
 
@@ -4799,7 +6356,7 @@ These are linked through content that shares a license with the provided railcon
4799
6356
 
4800
6357
 
4801
6358
 
4802
- <h4 class="name" id=".fetchOwnedContent"><span class="type-signature type-signature-static">(static) </span>fetchOwnedContent<span class="signature">(brand, options)</span><span class="type-signature"> &rarr; {Promise.&lt;Object>}</span></h4>
6359
+ <h4 class="name" id=".fetchOtherSongVersions"><span class="type-signature type-signature-static">(static) </span>fetchOtherSongVersions<span class="signature">(railcontentId, brand, count)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Object>>}</span></h4>
4803
6360
 
4804
6361
 
4805
6362
 
@@ -4809,14 +6366,14 @@ These are linked through content that shares a license with the provided railcon
4809
6366
  <dl class="details">
4810
6367
 
4811
6368
  <dt class="tag-description">Description:</dt>
4812
- <dd class="tag-description"><ul class="dummy"><li>Fetch content owned by the user (excluding membership content).
4813
- Shows only content accessible through purchases/entitlements, not through membership.</li></ul></dd>
6369
+ <dd class="tag-description"><ul class="dummy"><li>Get song type (transcriptions, jam packs, play alongs, tutorial children) content documents that share content information with the provided railcontent document.
6370
+ These are linked through content that shares a license with the provided railcontent document</li></ul></dd>
4814
6371
 
4815
6372
 
4816
6373
 
4817
6374
  <dt class="tag-source">Source:</dt>
4818
6375
  <dd class="tag-source"><ul class="dummy"><li>
4819
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line2188">line 2188</a>
6376
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1203">line 1203</a>
4820
6377
  </li></ul></dd>
4821
6378
 
4822
6379
 
@@ -4888,170 +6445,54 @@ Shows only content accessible through purchases/entitlements, not through member
4888
6445
 
4889
6446
  <tr>
4890
6447
 
4891
- <td class="name"><code>brand</code></td>
4892
-
4893
-
4894
- <td class="type">
4895
-
4896
-
4897
- <span class="param-type">string</span>
4898
-
4899
-
4900
-
4901
-
4902
- </td>
4903
-
4904
-
4905
-
4906
-
4907
-
4908
- <td class="description last">The brand to filter content by</td>
4909
- </tr>
4910
-
4911
-
4912
-
4913
- <tr>
4914
-
4915
- <td class="name"><code>options</code></td>
4916
-
4917
-
4918
- <td class="type">
4919
-
4920
-
4921
- <span class="param-type">Object</span>
4922
-
4923
-
4924
-
4925
-
4926
- </td>
4927
-
4928
-
4929
-
4930
-
4931
-
4932
- <td class="description last">Fetch options
4933
- <h6>Properties</h6>
4934
-
4935
-
4936
- <table class="params">
4937
- <thead>
4938
- <tr>
4939
-
4940
- <th>Name</th>
4941
-
4942
-
4943
- <th>Type</th>
4944
-
4945
-
4946
-
4947
-
4948
-
4949
- <th class="last">Description</th>
4950
- </tr>
4951
- </thead>
4952
-
4953
- <tbody>
4954
-
4955
-
4956
- <tr>
4957
-
4958
- <td class="name"><code>type</code></td>
4959
-
4960
-
4961
- <td class="type">
4962
-
4963
-
4964
- <span class="param-type">Array.&lt;string></span>
4965
-
4966
-
4967
-
4968
-
4969
- </td>
4970
-
4971
-
4972
-
4973
-
4974
-
4975
- <td class="description last">Content type(s) to filter (optional array, default: [])</td>
4976
- </tr>
4977
-
4978
-
4979
-
4980
- <tr>
4981
-
4982
- <td class="name"><code>page</code></td>
6448
+ <td class="name"><code>railcontentId</code></td>
4983
6449
 
4984
6450
 
4985
6451
  <td class="type">
4986
6452
 
4987
-
4988
- <span class="param-type">number</span>
4989
-
4990
-
4991
-
4992
-
4993
6453
  </td>
4994
6454
 
4995
6455
 
4996
6456
 
4997
6457
 
4998
6458
 
4999
- <td class="description last">Page number (default: 1)</td>
6459
+ <td class="description last"></td>
5000
6460
  </tr>
5001
6461
 
5002
6462
 
5003
6463
 
5004
6464
  <tr>
5005
6465
 
5006
- <td class="name"><code>limit</code></td>
6466
+ <td class="name"><code>brand</code></td>
5007
6467
 
5008
6468
 
5009
6469
  <td class="type">
5010
6470
 
5011
-
5012
- <span class="param-type">number</span>
5013
-
5014
-
5015
-
5016
-
5017
6471
  </td>
5018
6472
 
5019
6473
 
5020
6474
 
5021
6475
 
5022
6476
 
5023
- <td class="description last">Items per page (default: 10)</td>
6477
+ <td class="description last"></td>
5024
6478
  </tr>
5025
6479
 
5026
6480
 
5027
6481
 
5028
6482
  <tr>
5029
6483
 
5030
- <td class="name"><code>sort</code></td>
6484
+ <td class="name"><code>count</code></td>
5031
6485
 
5032
6486
 
5033
6487
  <td class="type">
5034
6488
 
5035
-
5036
- <span class="param-type">string</span>
5037
-
5038
-
5039
-
5040
-
5041
6489
  </td>
5042
6490
 
5043
6491
 
5044
6492
 
5045
6493
 
5046
6494
 
5047
- <td class="description last">Sort field and direction (default: '-published_on')</td>
5048
- </tr>
5049
-
5050
-
5051
- </tbody>
5052
- </table>
5053
-
5054
- </td>
6495
+ <td class="description last"></td>
5055
6496
  </tr>
5056
6497
 
5057
6498
 
@@ -5076,10 +6517,6 @@ Shows only content accessible through purchases/entitlements, not through member
5076
6517
  <h5 class="h5-returns">Returns:</h5>
5077
6518
 
5078
6519
 
5079
- <div class="param-desc">
5080
- Object with 'entity' (content array) and 'total' (count)
5081
- </div>
5082
-
5083
6520
 
5084
6521
 
5085
6522
  <dl class="param-type">
@@ -5088,7 +6525,7 @@ Shows only content accessible through purchases/entitlements, not through member
5088
6525
  </dt>
5089
6526
  <dd>
5090
6527
 
5091
- <span class="param-type">Promise.&lt;Object></span>
6528
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
5092
6529
 
5093
6530
 
5094
6531
 
@@ -5120,7 +6557,7 @@ Shows only content accessible through purchases/entitlements, not through member
5120
6557
 
5121
6558
  <dt class="tag-source">Source:</dt>
5122
6559
  <dd class="tag-source"><ul class="dummy"><li>
5123
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1356">line 1356</a>
6560
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1365">line 1365</a>
5124
6561
  </li></ul></dd>
5125
6562
 
5126
6563
 
@@ -5278,7 +6715,7 @@ Shows only content accessible through purchases/entitlements, not through member
5278
6715
 
5279
6716
  <dt class="tag-source">Source:</dt>
5280
6717
  <dd class="tag-source"><ul class="dummy"><li>
5281
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1445">line 1445</a>
6718
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1454">line 1454</a>
5282
6719
  </li></ul></dd>
5283
6720
 
5284
6721
 
@@ -5443,7 +6880,7 @@ Shows only content accessible through purchases/entitlements, not through member
5443
6880
 
5444
6881
  <dt class="tag-source">Source:</dt>
5445
6882
  <dd class="tag-source"><ul class="dummy"><li>
5446
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1292">line 1292</a>
6883
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1307">line 1307</a>
5447
6884
  </li></ul></dd>
5448
6885
 
5449
6886
 
@@ -5602,7 +7039,7 @@ If no recommendations found in recsys, falls back to fetching related lessons.</
5602
7039
 
5603
7040
  <dt class="tag-source">Source:</dt>
5604
7041
  <dd class="tag-source"><ul class="dummy"><li>
5605
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1161">line 1161</a>
7042
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1183">line 1183</a>
5606
7043
  </li></ul></dd>
5607
7044
 
5608
7045
 
@@ -5786,7 +7223,7 @@ If no recommendations found in recsys, falls back to fetching related lessons.</
5786
7223
 
5787
7224
  <dt class="tag-source">Source:</dt>
5788
7225
  <dd class="tag-source"><ul class="dummy"><li>
5789
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line209">line 209</a>
7226
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line236">line 236</a>
5790
7227
  </li></ul></dd>
5791
7228
 
5792
7229
 
@@ -5975,7 +7412,7 @@ If no recommendations found in recsys, falls back to fetching related lessons.</
5975
7412
 
5976
7413
  <dt class="tag-source">Source:</dt>
5977
7414
  <dd class="tag-source"><ul class="dummy"><li>
5978
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line103">line 103</a>
7415
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line106">line 106</a>
5979
7416
  </li></ul></dd>
5980
7417
 
5981
7418
 
@@ -6063,7 +7500,7 @@ If no recommendations found in recsys, falls back to fetching related lessons.</
6063
7500
 
6064
7501
 
6065
7502
 
6066
- <h4 class="name" id=".fetchSanity"><span class="type-signature type-signature-static">(static) </span>fetchSanity<span class="signature">(query, isList, options)</span><span class="type-signature"> &rarr; {Promise.&lt;(*|null)>}</span></h4>
7503
+ <h4 class="name" id=".fetchSanity"><span class="type-signature type-signature-static">(static) </span>fetchSanity<span class="signature">(query, isList, customPostProcess<span class="signature-attributes">opt</span>, processNeedAccess<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;(*|null)>}</span></h4>
6067
7504
 
6068
7505
 
6069
7506
 
@@ -6076,7 +7513,7 @@ If no recommendations found in recsys, falls back to fetching related lessons.</
6076
7513
 
6077
7514
  <dt class="tag-source">Source:</dt>
6078
7515
  <dd class="tag-source"><ul class="dummy"><li>
6079
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1618">line 1618</a>
7516
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1779">line 1779</a>
6080
7517
  </li></ul></dd>
6081
7518
 
6082
7519
 
@@ -6144,8 +7581,12 @@ fetchSanity(query, true)
6144
7581
  <th>Type</th>
6145
7582
 
6146
7583
 
7584
+ <th>Attributes</th>
7585
+
6147
7586
 
6148
7587
 
7588
+ <th>Default</th>
7589
+
6149
7590
 
6150
7591
  <th class="last">Description</th>
6151
7592
  </tr>
@@ -6170,94 +7611,35 @@ fetchSanity(query, true)
6170
7611
  </td>
6171
7612
 
6172
7613
 
6173
-
6174
-
6175
-
6176
- <td class="description last">The GROQ query to execute against the Sanity API.</td>
6177
- </tr>
6178
-
6179
-
6180
-
6181
- <tr>
6182
-
6183
- <td class="name"><code>isList</code></td>
6184
-
6185
-
6186
- <td class="type">
6187
-
7614
+ <td class="attributes">
6188
7615
 
6189
- <span class="param-type">boolean</span>
6190
-
6191
-
6192
-
6193
-
6194
- </td>
6195
-
6196
-
6197
-
6198
-
6199
-
6200
- <td class="description last">Whether to return an array or a single result.</td>
6201
- </tr>
6202
-
6203
-
6204
-
6205
- <tr>
6206
-
6207
- <td class="name"><code>options</code></td>
6208
-
6209
7616
 
6210
- <td class="type">
6211
-
6212
7617
 
6213
- <span class="param-type">Object</span>
6214
-
6215
-
6216
-
6217
-
6218
- </td>
6219
7618
 
7619
+
7620
+ </td>
6220
7621
 
6221
7622
 
6222
7623
 
6223
-
6224
- <td class="description last">Additional options for fetching data.
6225
- <h6>Properties</h6>
7624
+ <td class="default">
6226
7625
 
7626
+ </td>
7627
+
6227
7628
 
6228
- <table class="params">
6229
- <thead>
6230
- <tr>
6231
-
6232
- <th>Name</th>
6233
-
6234
-
6235
- <th>Type</th>
6236
-
6237
-
6238
- <th>Attributes</th>
6239
-
6240
-
6241
-
6242
- <th>Default</th>
6243
-
6244
-
6245
- <th class="last">Description</th>
6246
- </tr>
6247
- </thead>
7629
+ <td class="description last">The GROQ query to execute against the Sanity API.</td>
7630
+ </tr>
6248
7631
 
6249
- <tbody>
6250
7632
 
6251
7633
 
6252
7634
  <tr>
6253
7635
 
6254
- <td class="name"><code>customPostProcess</code></td>
7636
+ <td class="name"><code>isList</code></td>
6255
7637
 
6256
7638
 
6257
7639
  <td class="type">
6258
7640
 
6259
7641
 
6260
- <span class="param-type">function</span>
7642
+ <span class="param-type">boolean</span>
6261
7643
 
6262
7644
 
6263
7645
 
@@ -6267,8 +7649,6 @@ fetchSanity(query, true)
6267
7649
 
6268
7650
  <td class="attributes">
6269
7651
 
6270
- &lt;optional><br>
6271
-
6272
7652
 
6273
7653
 
6274
7654
 
@@ -6279,25 +7659,23 @@ fetchSanity(query, true)
6279
7659
 
6280
7660
  <td class="default">
6281
7661
 
6282
- <code>null</code>
6283
-
6284
7662
  </td>
6285
7663
 
6286
7664
 
6287
- <td class="description last">custom post process callback</td>
7665
+ <td class="description last">Whether to return an array or a single result.</td>
6288
7666
  </tr>
6289
7667
 
6290
7668
 
6291
7669
 
6292
7670
  <tr>
6293
7671
 
6294
- <td class="name"><code>processNeedAccess</code></td>
7672
+ <td class="name"><code>customPostProcess</code></td>
6295
7673
 
6296
7674
 
6297
7675
  <td class="type">
6298
7676
 
6299
7677
 
6300
- <span class="param-type">boolean</span>
7678
+ <span class="param-type">function</span>
6301
7679
 
6302
7680
 
6303
7681
 
@@ -6319,19 +7697,19 @@ fetchSanity(query, true)
6319
7697
 
6320
7698
  <td class="default">
6321
7699
 
6322
- <code>true</code>
7700
+ <code>null</code>
6323
7701
 
6324
7702
  </td>
6325
7703
 
6326
7704
 
6327
- <td class="description last">execute the needs_access callback</td>
7705
+ <td class="description last">custom post process callback</td>
6328
7706
  </tr>
6329
7707
 
6330
7708
 
6331
7709
 
6332
7710
  <tr>
6333
7711
 
6334
- <td class="name"><code>processPageType</code></td>
7712
+ <td class="name"><code>processNeedAccess</code></td>
6335
7713
 
6336
7714
 
6337
7715
  <td class="type">
@@ -6364,14 +7742,7 @@ fetchSanity(query, true)
6364
7742
  </td>
6365
7743
 
6366
7744
 
6367
- <td class="description last">execute the page_type callback</td>
6368
- </tr>
6369
-
6370
-
6371
- </tbody>
6372
- </table>
6373
-
6374
- </td>
7745
+ <td class="description last">execute the needs_access callback</td>
6375
7746
  </tr>
6376
7747
 
6377
7748
 
@@ -6440,7 +7811,7 @@ fetchSanity(query, true)
6440
7811
 
6441
7812
  <dt class="tag-source">Source:</dt>
6442
7813
  <dd class="tag-source"><ul class="dummy"><li>
6443
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line376">line 376</a>
7814
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line403">line 403</a>
6444
7815
  </li></ul></dd>
6445
7816
 
6446
7817
 
@@ -6608,7 +7979,7 @@ fetchSanity(query, true)
6608
7979
 
6609
7980
  <dt class="tag-source">Source:</dt>
6610
7981
  <dd class="tag-source"><ul class="dummy"><li>
6611
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1747">line 1747</a>
7982
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1903">line 1903</a>
6612
7983
  </li></ul></dd>
6613
7984
 
6614
7985
 
@@ -6763,7 +8134,7 @@ fetchSanity(query, true)
6763
8134
 
6764
8135
  <dt class="tag-source">Source:</dt>
6765
8136
  <dd class="tag-source"><ul class="dummy"><li>
6766
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1237">line 1237</a>
8137
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1259">line 1259</a>
6767
8138
  </li></ul></dd>
6768
8139
 
6769
8140
 
@@ -6945,7 +8316,7 @@ fetchSanity(query, true)
6945
8316
 
6946
8317
  <dt class="tag-source">Source:</dt>
6947
8318
  <dd class="tag-source"><ul class="dummy"><li>
6948
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line167">line 167</a>
8319
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line194">line 194</a>
6949
8320
  </li></ul></dd>
6950
8321
 
6951
8322
 
@@ -7103,7 +8474,7 @@ fetchSanity(query, true)
7103
8474
 
7104
8475
  <dt class="tag-source">Source:</dt>
7105
8476
  <dd class="tag-source"><ul class="dummy"><li>
7106
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line54">line 54</a>
8477
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line57">line 57</a>
7107
8478
  </li></ul></dd>
7108
8479
 
7109
8480
 
@@ -7268,7 +8639,7 @@ fetchSanity(query, true)
7268
8639
 
7269
8640
  <dt class="tag-source">Source:</dt>
7270
8641
  <dd class="tag-source"><ul class="dummy"><li>
7271
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line329">line 329</a>
8642
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line356">line 356</a>
7272
8643
  </li></ul></dd>
7273
8644
 
7274
8645
 
@@ -7436,7 +8807,7 @@ fetchSanity(query, true)
7436
8807
 
7437
8808
  <dt class="tag-source">Source:</dt>
7438
8809
  <dd class="tag-source"><ul class="dummy"><li>
7439
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1067">line 1067</a>
8810
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1089">line 1089</a>
7440
8811
  </li></ul></dd>
7441
8812
 
7442
8813
 
@@ -7601,7 +8972,7 @@ fetchSanity(query, true)
7601
8972
 
7602
8973
  <dt class="tag-source">Source:</dt>
7603
8974
  <dd class="tag-source"><ul class="dummy"><li>
7604
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1207">line 1207</a>
8975
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line1229">line 1229</a>
7605
8976
  </li></ul></dd>
7606
8977
 
7607
8978
 
@@ -7824,7 +9195,7 @@ fetchSanity(query, true)
7824
9195
 
7825
9196
  <dt class="tag-source">Source:</dt>
7826
9197
  <dd class="tag-source"><ul class="dummy"><li>
7827
- <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line153">line 153</a>
9198
+ <a href="sanity.js.html">sanity.js</a>, <a href="sanity.js.html#line156">line 156</a>
7828
9199
  </li></ul></dd>
7829
9200
 
7830
9201
 
@@ -7927,7 +9298,7 @@ fetchSanity(query, true)
7927
9298
  <br class="clear">
7928
9299
 
7929
9300
  <footer>
7930
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Nov 21 2025 17:22:14 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
9301
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Wed Nov 19 2025 14:55:35 GMT-0800 (Pacific Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7931
9302
  </footer>
7932
9303
 
7933
9304
  <script>prettyPrint();</script>