musora-content-services 1.0.137 → 1.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/node.js.yml +0 -0
- package/CHANGELOG.md +4 -0
- package/README.md +0 -0
- package/babel.config.js +0 -0
- package/docs/config.js.html +10 -3
- package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/index.html +8 -2
- package/docs/module-Config.html +85 -3
- package/docs/module-Railcontent-Services.html +90 -173
- package/docs/module-Sanity-Services.html +960 -72
- package/docs/railcontent.js.html +44 -42
- package/docs/sanity.js.html +99 -54
- package/docs/scripts/collapse.js +0 -0
- package/docs/scripts/commonNav.js +0 -0
- package/docs/scripts/linenumber.js +0 -0
- package/docs/scripts/nav.js +0 -0
- package/docs/scripts/polyfill.js +0 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
- package/docs/scripts/prettify/lang-css.js +0 -0
- package/docs/scripts/prettify/prettify.js +0 -0
- package/docs/scripts/search.js +0 -0
- package/docs/styles/jsdoc.css +0 -0
- package/docs/styles/prettify.css +0 -0
- package/jest.config.js +0 -0
- package/jsdoc.json +0 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +0 -0
- package/src/contentTypeConfig.js +11 -1
- package/src/filterBuilder.js +0 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/services/config.js +0 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/dataContext.js +0 -0
- package/src/services/railcontent.js +0 -0
- package/src/services/sanity.js +62 -21
- package/test/contentLikes.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
- package/test/sanityQueryService.test.js +38 -1
- package/tools/generate-index.js +0 -0
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<nav >
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#~initializeService">initializeService</a></li></ul></li><li><a href="module-Railcontent-Services.html">Railcontent-Services</a><ul class='methods'><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllSongs">fetchAllSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCatalogMetadata">fetchCatalogMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChallengeOverview">fetchChallengeOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchChildren">fetchChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCourseOverview">fetchCourseOverview</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMetadata">fetchMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodNextLesson">fetchMethodNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethods">fetchMethods</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackChildren">fetchPackChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackData">fetchPackData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentByRailContentId">fetchParentByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedMethodLessons">fetchRelatedMethodLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchShowsData">fetchShowsData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongCount">fetchSongCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongFilterOptions">fetchSongFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchWorkouts">fetchWorkouts</a></li></ul></li></ul>
|
|
33
33
|
|
|
34
34
|
</nav>
|
|
35
35
|
|
|
@@ -75,6 +75,88 @@
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
<h3 class="subsection-title">Members</h3>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<h4 class="name" id="~excludeFromGeneratedIndex"><span class="type-signature type-signature-inner, constant">(inner, constant) </span>excludeFromGeneratedIndex<span class="type-signature"> :Array.<string></span></h4>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
<dl class="details">
|
|
89
|
+
|
|
90
|
+
<dt class="tag-description">Description:</dt>
|
|
91
|
+
<dd class="tag-description"><ul class="dummy"><li>Exported functions that are excluded from index generation.</li></ul></dd>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<dt class="tag-source">Source:</dt>
|
|
96
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
97
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line12">line 12</a>
|
|
98
|
+
</li></ul></dd>
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</dl>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<div class="description usertext">
|
|
137
|
+
Exported functions that are excluded from index generation.
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<h5 class="h5-types">Type:</h5>
|
|
143
|
+
<ul>
|
|
144
|
+
<li>
|
|
145
|
+
|
|
146
|
+
<span class="param-type">Array.<string></span>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
</li>
|
|
151
|
+
</ul>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
78
160
|
|
|
79
161
|
|
|
80
162
|
<h3 class="subsection-title">Methods</h3>
|
|
@@ -100,7 +182,7 @@
|
|
|
100
182
|
|
|
101
183
|
<dt class="tag-source">Source:</dt>
|
|
102
184
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
103
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
185
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line59">line 59</a>
|
|
104
186
|
</li></ul></dd>
|
|
105
187
|
|
|
106
188
|
|
|
@@ -265,7 +347,7 @@
|
|
|
265
347
|
|
|
266
348
|
<dt class="tag-source">Source:</dt>
|
|
267
349
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
268
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
350
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line169">line 169</a>
|
|
269
351
|
</li></ul></dd>
|
|
270
352
|
|
|
271
353
|
|
|
@@ -562,7 +644,7 @@
|
|
|
562
644
|
|
|
563
645
|
<dt class="tag-source">Source:</dt>
|
|
564
646
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
565
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
647
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line25">line 25</a>
|
|
566
648
|
</li></ul></dd>
|
|
567
649
|
|
|
568
650
|
|
|
@@ -727,7 +809,7 @@
|
|
|
727
809
|
|
|
728
810
|
<dt class="tag-source">Source:</dt>
|
|
729
811
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
730
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
812
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line127">line 127</a>
|
|
731
813
|
</li></ul></dd>
|
|
732
814
|
|
|
733
815
|
|
|
@@ -1024,7 +1106,7 @@
|
|
|
1024
1106
|
|
|
1025
1107
|
<dt class="tag-source">Source:</dt>
|
|
1026
1108
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1027
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
1109
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line209">line 209</a>
|
|
1028
1110
|
</li></ul></dd>
|
|
1029
1111
|
|
|
1030
1112
|
|
|
@@ -1189,7 +1271,7 @@
|
|
|
1189
1271
|
|
|
1190
1272
|
<dt class="tag-source">Source:</dt>
|
|
1191
1273
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1192
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#
|
|
1274
|
+
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line91">line 91</a>
|
|
1193
1275
|
</li></ul></dd>
|
|
1194
1276
|
|
|
1195
1277
|
|
|
@@ -1334,171 +1416,6 @@
|
|
|
1334
1416
|
|
|
1335
1417
|
|
|
1336
1418
|
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
<h4 class="name" id=".fetchVimeoData"><span class="type-signature type-signature-static">(static) </span>fetchVimeoData<span class="signature">(vimeo_id)</span><span class="type-signature"> → {Promise.<(Object|null)>}</span></h4>
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
<dl class="details">
|
|
1349
|
-
|
|
1350
|
-
<dt class="tag-description">Description:</dt>
|
|
1351
|
-
<dd class="tag-description"><ul class="dummy"><li>Fetches the vimeo meta-data</li></ul></dd>
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
<dt class="tag-source">Source:</dt>
|
|
1356
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
1357
|
-
<a href="railcontent.js.html">railcontent.js</a>, <a href="railcontent.js.html#line51">line 51</a>
|
|
1358
|
-
</li></ul></dd>
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
</dl>
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
<h5 class="h5-examples">Example</h5>
|
|
1403
|
-
|
|
1404
|
-
<pre class="prettyprint"><code>fetchVimeoData('642900215')
|
|
1405
|
-
.then(vimeoData => console.log(vimeoData))
|
|
1406
|
-
.catch(error => console.error(error));</code></pre>
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
<h5 class="h5-parameters">Parameters:</h5>
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
<table class="params">
|
|
1415
|
-
<thead>
|
|
1416
|
-
<tr>
|
|
1417
|
-
|
|
1418
|
-
<th>Name</th>
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
<th>Type</th>
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
<th class="last">Description</th>
|
|
1428
|
-
</tr>
|
|
1429
|
-
</thead>
|
|
1430
|
-
|
|
1431
|
-
<tbody>
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
<tr>
|
|
1435
|
-
|
|
1436
|
-
<td class="name"><code>vimeo_id</code></td>
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
<td class="type">
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
<span class="param-type">string</span>
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
</td>
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
<td class="description last">The vimeo id, found in the <document>.video.external_id field for lessons</td>
|
|
1454
|
-
</tr>
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
</tbody>
|
|
1458
|
-
</table>
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
<h5 class="h5-returns">Returns:</h5>
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
<div class="param-desc">
|
|
1479
|
-
- Returns the
|
|
1480
|
-
</div>
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
<dl class="param-type">
|
|
1485
|
-
<dt>
|
|
1486
|
-
Type
|
|
1487
|
-
</dt>
|
|
1488
|
-
<dd>
|
|
1489
|
-
|
|
1490
|
-
<span class="param-type">Promise.<(Object|null)></span>
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
</dd>
|
|
1495
|
-
</dl>
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
1419
|
|
|
1503
1420
|
|
|
1504
1421
|
|
|
@@ -1518,7 +1435,7 @@
|
|
|
1518
1435
|
<br class="clear">
|
|
1519
1436
|
|
|
1520
1437
|
<footer>
|
|
1521
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on
|
|
1438
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Oct 15 2024 11:28:17 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1522
1439
|
</footer>
|
|
1523
1440
|
|
|
1524
1441
|
<script>prettyPrint();</script>
|