musora-content-services 1.0.7

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 (67) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +39 -0
  3. package/docs/data/search.json +1 -0
  4. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  5. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  6. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  7. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  8. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  9. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  10. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  11. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  12. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  13. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  14. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  15. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  16. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  17. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  18. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  19. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  20. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  21. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  22. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  23. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  24. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  25. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  26. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  27. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  28. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  29. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  30. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  31. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  32. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  33. package/docs/global.html +4773 -0
  34. package/docs/index.html +93 -0
  35. package/docs/index.js.html +766 -0
  36. package/docs/scripts/core.js +726 -0
  37. package/docs/scripts/core.min.js +23 -0
  38. package/docs/scripts/linenumber.js +25 -0
  39. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  40. package/docs/scripts/prettify/lang-css.js +2 -0
  41. package/docs/scripts/prettify/prettify.js +28 -0
  42. package/docs/scripts/resize.js +90 -0
  43. package/docs/scripts/search.js +265 -0
  44. package/docs/scripts/search.min.js +6 -0
  45. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  46. package/docs/scripts/third-party/fuse.js +9 -0
  47. package/docs/scripts/third-party/hljs-line-num-original.js +369 -0
  48. package/docs/scripts/third-party/hljs-line-num.js +1 -0
  49. package/docs/scripts/third-party/hljs-original.js +5171 -0
  50. package/docs/scripts/third-party/hljs.js +1 -0
  51. package/docs/scripts/third-party/popper.js +5 -0
  52. package/docs/scripts/third-party/tippy.js +1 -0
  53. package/docs/scripts/third-party/tocbot.js +672 -0
  54. package/docs/scripts/third-party/tocbot.min.js +1 -0
  55. package/docs/styles/clean-jsdoc-theme-base.css +1159 -0
  56. package/docs/styles/clean-jsdoc-theme-dark.css +412 -0
  57. package/docs/styles/clean-jsdoc-theme-light.css +482 -0
  58. package/docs/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  59. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  60. package/docs/styles/clean-jsdoc-theme.min.css +1 -0
  61. package/docs/styles/jsdoc-default.css +692 -0
  62. package/docs/styles/prettify-jsdoc.css +111 -0
  63. package/docs/styles/prettify-tomorrow.css +132 -0
  64. package/jsdoc.json +13 -0
  65. package/package.json +27 -0
  66. package/publish.sh +21 -0
  67. package/src/index.js +758 -0
@@ -0,0 +1,4773 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Global - Documentation</title>
7
+
8
+ <script src="scripts/prettify/prettify.js"></script>
9
+ <script src="scripts/prettify/lang-css.js"></script>
10
+ <!--[if lt IE 9]>
11
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
+ <![endif]-->
13
+ <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
+ </head>
17
+ <body>
18
+
19
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
+ <label for="nav-trigger" class="navicon-button x">
21
+ <div class="navicon"></div>
22
+ </label>
23
+
24
+ <label for="nav-trigger" class="overlay"></label>
25
+
26
+ <nav>
27
+ <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading"><a href="global.html">Globals</a></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchAll">fetchAll</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchAllSongs">fetchAllSongs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchArtists">fetchArtists</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchByRailContentId">fetchByRailContentId</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchByRailContentIds">fetchByRailContentIds</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchChildren">fetchChildren</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchFilterOptions">fetchFilterOptions</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchMethodChildren">fetchMethodChildren</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchMethodNextLesson">fetchMethodNextLesson</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchNewReleases">fetchNewReleases</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchNextPreviousLesson">fetchNextPreviousLesson</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchPackAll">fetchPackAll</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchPackChildren">fetchPackChildren</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchRelatedLessons">fetchRelatedLessons</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchRelatedSongs">fetchRelatedSongs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchSanity">fetchSanity</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchSongById">fetchSongById</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchSongCount">fetchSongCount</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchUpcomingEvents">fetchUpcomingEvents</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#fetchWorkouts">fetchWorkouts</a></span></li>
28
+ </nav>
29
+
30
+ <div id="main">
31
+
32
+ <h1 class="page-title">Global</h1>
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ <section>
41
+
42
+ <header>
43
+
44
+ <h2>
45
+
46
+ </h2>
47
+
48
+
49
+ </header>
50
+
51
+ <article>
52
+ <div class="container-overview">
53
+
54
+
55
+
56
+
57
+
58
+
59
+ <dl class="details">
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+ </dl>
93
+
94
+
95
+
96
+
97
+ </div>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h3 class="subsection-title">Methods</h3>
113
+
114
+
115
+
116
+ <div class="section-method">
117
+
118
+
119
+
120
+ <h4 class="name" id="fetchAll"><span class="type-signature"></span>fetchAll<span class="signature">(config, brand, type, params)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
121
+
122
+
123
+
124
+
125
+
126
+ <div class="description">
127
+ Fetch all content for a specific brand and type with pagination, search, and grouping options.
128
+ </div>
129
+
130
+
131
+
132
+
133
+
134
+ <dl class="details">
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+ <dt class="tag-source">Source:</dt>
162
+ <dd class="tag-source"><ul class="dummy"><li>
163
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line431">line 431</a>
164
+ </li></ul></dd>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ </dl>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <h5>Parameters:</h5>
183
+
184
+
185
+ <table class="params">
186
+ <thead>
187
+ <tr>
188
+
189
+ <th>Name</th>
190
+
191
+
192
+ <th>Type</th>
193
+
194
+
195
+
196
+
197
+
198
+ <th class="last">Description</th>
199
+ </tr>
200
+ </thead>
201
+
202
+ <tbody>
203
+
204
+
205
+ <tr>
206
+
207
+ <td class="name"><code>config</code></td>
208
+
209
+
210
+ <td class="type">
211
+
212
+
213
+ <span class="param-type"><code>Object</code></span>
214
+
215
+
216
+
217
+ </td>
218
+
219
+
220
+
221
+
222
+
223
+ <td class="description last">
224
+ Configuration object containing token, projectId, dataset, version, and debug.
225
+
226
+ </td>
227
+ </tr>
228
+
229
+
230
+
231
+ <tr>
232
+
233
+ <td class="name"><code>brand</code></td>
234
+
235
+
236
+ <td class="type">
237
+
238
+
239
+ <span class="param-type"><code>string</code></span>
240
+
241
+
242
+
243
+ </td>
244
+
245
+
246
+
247
+
248
+
249
+ <td class="description last">
250
+ The brand for which to fetch content.
251
+
252
+ </td>
253
+ </tr>
254
+
255
+
256
+
257
+ <tr>
258
+
259
+ <td class="name"><code>type</code></td>
260
+
261
+
262
+ <td class="type">
263
+
264
+
265
+ <span class="param-type"><code>string</code></span>
266
+
267
+
268
+
269
+ </td>
270
+
271
+
272
+
273
+
274
+
275
+ <td class="description last">
276
+ The content type to fetch (e.g., 'song', 'artist').
277
+
278
+ </td>
279
+ </tr>
280
+
281
+
282
+
283
+ <tr>
284
+
285
+ <td class="name"><code>params</code></td>
286
+
287
+
288
+ <td class="type">
289
+
290
+
291
+ <span class="param-type"><code>Object</code></span>
292
+
293
+
294
+
295
+ </td>
296
+
297
+
298
+
299
+
300
+
301
+ <td class="description last">
302
+ Parameters for pagination, filtering, sorting, and grouping.
303
+
304
+
305
+
306
+ <table class="params">
307
+ <thead>
308
+ <tr>
309
+
310
+ <th>Name</th>
311
+
312
+
313
+ <th>Type</th>
314
+
315
+
316
+ <th>Attributes</th>
317
+
318
+
319
+
320
+ <th>Default</th>
321
+
322
+
323
+ <th class="last">Description</th>
324
+ </tr>
325
+ </thead>
326
+
327
+ <tbody>
328
+
329
+
330
+ <tr>
331
+
332
+ <td class="name"><code>page</code></td>
333
+
334
+
335
+ <td class="type">
336
+
337
+
338
+ <span class="param-type"><code>number</code></span>
339
+
340
+
341
+
342
+ </td>
343
+
344
+
345
+ <td class="attributes">
346
+
347
+ &lt;optional><br>
348
+
349
+
350
+
351
+
352
+
353
+ </td>
354
+
355
+
356
+
357
+ <td class="default">
358
+
359
+ 1
360
+
361
+ </td>
362
+
363
+
364
+ <td class="description last">
365
+ The page number for pagination.
366
+
367
+ </td>
368
+ </tr>
369
+
370
+
371
+
372
+ <tr>
373
+
374
+ <td class="name"><code>limit</code></td>
375
+
376
+
377
+ <td class="type">
378
+
379
+
380
+ <span class="param-type"><code>number</code></span>
381
+
382
+
383
+
384
+ </td>
385
+
386
+
387
+ <td class="attributes">
388
+
389
+ &lt;optional><br>
390
+
391
+
392
+
393
+
394
+
395
+ </td>
396
+
397
+
398
+
399
+ <td class="default">
400
+
401
+ 10
402
+
403
+ </td>
404
+
405
+
406
+ <td class="description last">
407
+ The number of items per page.
408
+
409
+ </td>
410
+ </tr>
411
+
412
+
413
+
414
+ <tr>
415
+
416
+ <td class="name"><code>searchTerm</code></td>
417
+
418
+
419
+ <td class="type">
420
+
421
+
422
+ <span class="param-type"><code>string</code></span>
423
+
424
+
425
+
426
+ </td>
427
+
428
+
429
+ <td class="attributes">
430
+
431
+ &lt;optional><br>
432
+
433
+
434
+
435
+
436
+
437
+ </td>
438
+
439
+
440
+
441
+ <td class="default">
442
+
443
+ ""
444
+
445
+ </td>
446
+
447
+
448
+ <td class="description last">
449
+ The search term to filter content by title or artist.
450
+
451
+ </td>
452
+ </tr>
453
+
454
+
455
+
456
+ <tr>
457
+
458
+ <td class="name"><code>sort</code></td>
459
+
460
+
461
+ <td class="type">
462
+
463
+
464
+ <span class="param-type"><code>string</code></span>
465
+
466
+
467
+
468
+ </td>
469
+
470
+
471
+ <td class="attributes">
472
+
473
+ &lt;optional><br>
474
+
475
+
476
+
477
+
478
+
479
+ </td>
480
+
481
+
482
+
483
+ <td class="default">
484
+
485
+ "-published_on"
486
+
487
+ </td>
488
+
489
+
490
+ <td class="description last">
491
+ The field to sort the content by.
492
+
493
+ </td>
494
+ </tr>
495
+
496
+
497
+
498
+ <tr>
499
+
500
+ <td class="name"><code>includedFields</code></td>
501
+
502
+
503
+ <td class="type">
504
+
505
+
506
+ <span class="param-type"><code>Array.&lt;string></code></span>
507
+
508
+
509
+
510
+ </td>
511
+
512
+
513
+ <td class="attributes">
514
+
515
+ &lt;optional><br>
516
+
517
+
518
+
519
+
520
+
521
+ </td>
522
+
523
+
524
+
525
+ <td class="default">
526
+
527
+ []
528
+
529
+ </td>
530
+
531
+
532
+ <td class="description last">
533
+ The fields to include in the query.
534
+
535
+ </td>
536
+ </tr>
537
+
538
+
539
+
540
+ <tr>
541
+
542
+ <td class="name"><code>groupBy</code></td>
543
+
544
+
545
+ <td class="type">
546
+
547
+
548
+ <span class="param-type"><code>string</code></span>
549
+
550
+
551
+
552
+ </td>
553
+
554
+
555
+ <td class="attributes">
556
+
557
+ &lt;optional><br>
558
+
559
+
560
+
561
+
562
+
563
+ </td>
564
+
565
+
566
+
567
+ <td class="default">
568
+
569
+ ""
570
+
571
+ </td>
572
+
573
+
574
+ <td class="description last">
575
+ The field to group the results by (e.g., 'artist', 'genre').
576
+
577
+ </td>
578
+ </tr>
579
+
580
+
581
+ </tbody>
582
+ </table>
583
+
584
+
585
+ </td>
586
+ </tr>
587
+
588
+
589
+ </tbody>
590
+ </table>
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+ <div class="section-returns">
606
+ <h5>Returns:</h5>
607
+
608
+
609
+
610
+ <dl class="param-type">
611
+ <dt>
612
+ Type:
613
+ </dt>
614
+ <dd>
615
+
616
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
617
+
618
+
619
+ </dd>
620
+ </dl>
621
+
622
+
623
+ <div class="param-desc">
624
+ - The fetched content data or null if not found.
625
+ </div>
626
+
627
+
628
+ </div>
629
+
630
+
631
+
632
+ </div>
633
+
634
+
635
+ <div class="section-method">
636
+
637
+
638
+
639
+ <h4 class="name" id="fetchAllSongs"><span class="type-signature"></span>fetchAllSongs<span class="signature">(config, brand, params)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
640
+
641
+
642
+
643
+
644
+
645
+ <div class="description">
646
+ Fetch all songs for a specific brand with pagination and search options.
647
+ </div>
648
+
649
+
650
+
651
+
652
+
653
+ <dl class="details">
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+ <dt class="tag-source">Source:</dt>
681
+ <dd class="tag-source"><ul class="dummy"><li>
682
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line131">line 131</a>
683
+ </li></ul></dd>
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+ </dl>
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+ <h5>Parameters:</h5>
702
+
703
+
704
+ <table class="params">
705
+ <thead>
706
+ <tr>
707
+
708
+ <th>Name</th>
709
+
710
+
711
+ <th>Type</th>
712
+
713
+
714
+
715
+
716
+
717
+ <th class="last">Description</th>
718
+ </tr>
719
+ </thead>
720
+
721
+ <tbody>
722
+
723
+
724
+ <tr>
725
+
726
+ <td class="name"><code>config</code></td>
727
+
728
+
729
+ <td class="type">
730
+
731
+
732
+ <span class="param-type"><code>Object</code></span>
733
+
734
+
735
+
736
+ </td>
737
+
738
+
739
+
740
+
741
+
742
+ <td class="description last">
743
+ Configuration object containing token, projectId, dataset, version, and debug.
744
+
745
+ </td>
746
+ </tr>
747
+
748
+
749
+
750
+ <tr>
751
+
752
+ <td class="name"><code>brand</code></td>
753
+
754
+
755
+ <td class="type">
756
+
757
+
758
+ <span class="param-type"><code>string</code></span>
759
+
760
+
761
+
762
+ </td>
763
+
764
+
765
+
766
+
767
+
768
+ <td class="description last">
769
+ The brand for which to fetch songs.
770
+
771
+ </td>
772
+ </tr>
773
+
774
+
775
+
776
+ <tr>
777
+
778
+ <td class="name"><code>params</code></td>
779
+
780
+
781
+ <td class="type">
782
+
783
+
784
+ <span class="param-type"><code>Object</code></span>
785
+
786
+
787
+
788
+ </td>
789
+
790
+
791
+
792
+
793
+
794
+ <td class="description last">
795
+ Parameters for pagination, filtering, and sorting.
796
+
797
+
798
+
799
+ <table class="params">
800
+ <thead>
801
+ <tr>
802
+
803
+ <th>Name</th>
804
+
805
+
806
+ <th>Type</th>
807
+
808
+
809
+ <th>Attributes</th>
810
+
811
+
812
+
813
+ <th>Default</th>
814
+
815
+
816
+ <th class="last">Description</th>
817
+ </tr>
818
+ </thead>
819
+
820
+ <tbody>
821
+
822
+
823
+ <tr>
824
+
825
+ <td class="name"><code>page</code></td>
826
+
827
+
828
+ <td class="type">
829
+
830
+
831
+ <span class="param-type"><code>number</code></span>
832
+
833
+
834
+
835
+ </td>
836
+
837
+
838
+ <td class="attributes">
839
+
840
+ &lt;optional><br>
841
+
842
+
843
+
844
+
845
+
846
+ </td>
847
+
848
+
849
+
850
+ <td class="default">
851
+
852
+ 1
853
+
854
+ </td>
855
+
856
+
857
+ <td class="description last">
858
+ The page number for pagination.
859
+
860
+ </td>
861
+ </tr>
862
+
863
+
864
+
865
+ <tr>
866
+
867
+ <td class="name"><code>limit</code></td>
868
+
869
+
870
+ <td class="type">
871
+
872
+
873
+ <span class="param-type"><code>number</code></span>
874
+
875
+
876
+
877
+ </td>
878
+
879
+
880
+ <td class="attributes">
881
+
882
+ &lt;optional><br>
883
+
884
+
885
+
886
+
887
+
888
+ </td>
889
+
890
+
891
+
892
+ <td class="default">
893
+
894
+ 10
895
+
896
+ </td>
897
+
898
+
899
+ <td class="description last">
900
+ The number of songs per page.
901
+
902
+ </td>
903
+ </tr>
904
+
905
+
906
+
907
+ <tr>
908
+
909
+ <td class="name"><code>searchTerm</code></td>
910
+
911
+
912
+ <td class="type">
913
+
914
+
915
+ <span class="param-type"><code>string</code></span>
916
+
917
+
918
+
919
+ </td>
920
+
921
+
922
+ <td class="attributes">
923
+
924
+ &lt;optional><br>
925
+
926
+
927
+
928
+
929
+
930
+ </td>
931
+
932
+
933
+
934
+ <td class="default">
935
+
936
+ ""
937
+
938
+ </td>
939
+
940
+
941
+ <td class="description last">
942
+ The search term to filter songs by title or artist.
943
+
944
+ </td>
945
+ </tr>
946
+
947
+
948
+
949
+ <tr>
950
+
951
+ <td class="name"><code>sort</code></td>
952
+
953
+
954
+ <td class="type">
955
+
956
+
957
+ <span class="param-type"><code>string</code></span>
958
+
959
+
960
+
961
+ </td>
962
+
963
+
964
+ <td class="attributes">
965
+
966
+ &lt;optional><br>
967
+
968
+
969
+
970
+
971
+
972
+ </td>
973
+
974
+
975
+
976
+ <td class="default">
977
+
978
+ "-published_on"
979
+
980
+ </td>
981
+
982
+
983
+ <td class="description last">
984
+ The field to sort the songs by.
985
+
986
+ </td>
987
+ </tr>
988
+
989
+
990
+
991
+ <tr>
992
+
993
+ <td class="name"><code>includedFields</code></td>
994
+
995
+
996
+ <td class="type">
997
+
998
+
999
+ <span class="param-type"><code>Array.&lt;string></code></span>
1000
+
1001
+
1002
+
1003
+ </td>
1004
+
1005
+
1006
+ <td class="attributes">
1007
+
1008
+ &lt;optional><br>
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ </td>
1015
+
1016
+
1017
+
1018
+ <td class="default">
1019
+
1020
+ []
1021
+
1022
+ </td>
1023
+
1024
+
1025
+ <td class="description last">
1026
+ The fields to include in the query.
1027
+
1028
+ </td>
1029
+ </tr>
1030
+
1031
+
1032
+
1033
+ <tr>
1034
+
1035
+ <td class="name"><code>groupBy</code></td>
1036
+
1037
+
1038
+ <td class="type">
1039
+
1040
+
1041
+ <span class="param-type"><code>string</code></span>
1042
+
1043
+
1044
+
1045
+ </td>
1046
+
1047
+
1048
+ <td class="attributes">
1049
+
1050
+ &lt;optional><br>
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ </td>
1057
+
1058
+
1059
+
1060
+ <td class="default">
1061
+
1062
+ ""
1063
+
1064
+ </td>
1065
+
1066
+
1067
+ <td class="description last">
1068
+ The field to group the results by.
1069
+
1070
+ </td>
1071
+ </tr>
1072
+
1073
+
1074
+ </tbody>
1075
+ </table>
1076
+
1077
+
1078
+ </td>
1079
+ </tr>
1080
+
1081
+
1082
+ </tbody>
1083
+ </table>
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+ <div class="section-returns">
1099
+ <h5>Returns:</h5>
1100
+
1101
+
1102
+
1103
+ <dl class="param-type">
1104
+ <dt>
1105
+ Type:
1106
+ </dt>
1107
+ <dd>
1108
+
1109
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
1110
+
1111
+
1112
+ </dd>
1113
+ </dl>
1114
+
1115
+
1116
+ <div class="param-desc">
1117
+ - The fetched song data or null if not found.
1118
+ </div>
1119
+
1120
+
1121
+ </div>
1122
+
1123
+
1124
+
1125
+ </div>
1126
+
1127
+
1128
+ <div class="section-method">
1129
+
1130
+
1131
+
1132
+ <h4 class="name" id="fetchArtists"><span class="type-signature"></span>fetchArtists<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+ <div class="description">
1139
+ Fetch all artists with lessons available for a specific brand.
1140
+ </div>
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+ <dl class="details">
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+ <dt class="tag-source">Source:</dt>
1174
+ <dd class="tag-source"><ul class="dummy"><li>
1175
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line34">line 34</a>
1176
+ </li></ul></dd>
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+ </dl>
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+ <h5>Parameters:</h5>
1195
+
1196
+
1197
+ <table class="params">
1198
+ <thead>
1199
+ <tr>
1200
+
1201
+ <th>Name</th>
1202
+
1203
+
1204
+ <th>Type</th>
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+ <th class="last">Description</th>
1211
+ </tr>
1212
+ </thead>
1213
+
1214
+ <tbody>
1215
+
1216
+
1217
+ <tr>
1218
+
1219
+ <td class="name"><code>config</code></td>
1220
+
1221
+
1222
+ <td class="type">
1223
+
1224
+
1225
+ <span class="param-type"><code>Object</code></span>
1226
+
1227
+
1228
+
1229
+ </td>
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+ <td class="description last">
1236
+ Configuration object containing token, projectId, dataset, version, and debug.
1237
+
1238
+ </td>
1239
+ </tr>
1240
+
1241
+
1242
+
1243
+ <tr>
1244
+
1245
+ <td class="name"><code>brand</code></td>
1246
+
1247
+
1248
+ <td class="type">
1249
+
1250
+
1251
+ <span class="param-type"><code>string</code></span>
1252
+
1253
+
1254
+
1255
+ </td>
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+ <td class="description last">
1262
+ The brand for which to fetch artists.
1263
+
1264
+ </td>
1265
+ </tr>
1266
+
1267
+
1268
+ </tbody>
1269
+ </table>
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ <div class="section-returns">
1285
+ <h5>Returns:</h5>
1286
+
1287
+
1288
+
1289
+ <dl class="param-type">
1290
+ <dt>
1291
+ Type:
1292
+ </dt>
1293
+ <dd>
1294
+
1295
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
1296
+
1297
+
1298
+ </dd>
1299
+ </dl>
1300
+
1301
+
1302
+ <div class="param-desc">
1303
+ - The fetched artist data or null if not found.
1304
+ </div>
1305
+
1306
+
1307
+ </div>
1308
+
1309
+
1310
+
1311
+ </div>
1312
+
1313
+
1314
+ <div class="section-method">
1315
+
1316
+
1317
+
1318
+ <h4 class="name" id="fetchByRailContentId"><span class="type-signature"></span>fetchByRailContentId<span class="signature">(config, id)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+ <div class="description">
1325
+ Fetch content by a specific Railcontent ID.
1326
+ </div>
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+ <dl class="details">
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ <dt class="tag-source">Source:</dt>
1360
+ <dd class="tag-source"><ul class="dummy"><li>
1361
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line380">line 380</a>
1362
+ </li></ul></dd>
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+ </dl>
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+ <h5>Parameters:</h5>
1381
+
1382
+
1383
+ <table class="params">
1384
+ <thead>
1385
+ <tr>
1386
+
1387
+ <th>Name</th>
1388
+
1389
+
1390
+ <th>Type</th>
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+ <th class="last">Description</th>
1397
+ </tr>
1398
+ </thead>
1399
+
1400
+ <tbody>
1401
+
1402
+
1403
+ <tr>
1404
+
1405
+ <td class="name"><code>config</code></td>
1406
+
1407
+
1408
+ <td class="type">
1409
+
1410
+
1411
+ <span class="param-type"><code>Object</code></span>
1412
+
1413
+
1414
+
1415
+ </td>
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+ <td class="description last">
1422
+ Configuration object containing token, projectId, dataset, version, and debug.
1423
+
1424
+ </td>
1425
+ </tr>
1426
+
1427
+
1428
+
1429
+ <tr>
1430
+
1431
+ <td class="name"><code>id</code></td>
1432
+
1433
+
1434
+ <td class="type">
1435
+
1436
+
1437
+ <span class="param-type"><code>string</code></span>
1438
+
1439
+
1440
+
1441
+ </td>
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+ <td class="description last">
1448
+ The Railcontent ID of the content to fetch.
1449
+
1450
+ </td>
1451
+ </tr>
1452
+
1453
+
1454
+ </tbody>
1455
+ </table>
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+ <div class="section-returns">
1471
+ <h5>Returns:</h5>
1472
+
1473
+
1474
+
1475
+ <dl class="param-type">
1476
+ <dt>
1477
+ Type:
1478
+ </dt>
1479
+ <dd>
1480
+
1481
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
1482
+
1483
+
1484
+ </dd>
1485
+ </dl>
1486
+
1487
+
1488
+ <div class="param-desc">
1489
+ - The fetched content data or null if not found.
1490
+ </div>
1491
+
1492
+
1493
+ </div>
1494
+
1495
+
1496
+
1497
+ </div>
1498
+
1499
+
1500
+ <div class="section-method">
1501
+
1502
+
1503
+
1504
+ <h4 class="name" id="fetchByRailContentIds"><span class="type-signature"></span>fetchByRailContentIds<span class="signature">(config, ids)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+ <div class="description">
1511
+ Fetch content by an array of Railcontent IDs.
1512
+ </div>
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+ <dl class="details">
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+ <dt class="tag-source">Source:</dt>
1546
+ <dd class="tag-source"><ul class="dummy"><li>
1547
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line401">line 401</a>
1548
+ </li></ul></dd>
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+ </dl>
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+ <h5>Parameters:</h5>
1567
+
1568
+
1569
+ <table class="params">
1570
+ <thead>
1571
+ <tr>
1572
+
1573
+ <th>Name</th>
1574
+
1575
+
1576
+ <th>Type</th>
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+ <th class="last">Description</th>
1583
+ </tr>
1584
+ </thead>
1585
+
1586
+ <tbody>
1587
+
1588
+
1589
+ <tr>
1590
+
1591
+ <td class="name"><code>config</code></td>
1592
+
1593
+
1594
+ <td class="type">
1595
+
1596
+
1597
+ <span class="param-type"><code>Object</code></span>
1598
+
1599
+
1600
+
1601
+ </td>
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+ <td class="description last">
1608
+ Configuration object containing token, projectId, dataset, version, and debug.
1609
+
1610
+ </td>
1611
+ </tr>
1612
+
1613
+
1614
+
1615
+ <tr>
1616
+
1617
+ <td class="name"><code>ids</code></td>
1618
+
1619
+
1620
+ <td class="type">
1621
+
1622
+
1623
+ <span class="param-type"><code>Array.&lt;string></code></span>
1624
+
1625
+
1626
+
1627
+ </td>
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+ <td class="description last">
1634
+ The array of Railcontent IDs of the content to fetch.
1635
+
1636
+ </td>
1637
+ </tr>
1638
+
1639
+
1640
+ </tbody>
1641
+ </table>
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+ <div class="section-returns">
1657
+ <h5>Returns:</h5>
1658
+
1659
+
1660
+
1661
+ <dl class="param-type">
1662
+ <dt>
1663
+ Type:
1664
+ </dt>
1665
+ <dd>
1666
+
1667
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
1668
+
1669
+
1670
+ </dd>
1671
+ </dl>
1672
+
1673
+
1674
+ <div class="param-desc">
1675
+ - The fetched content data or null if not found.
1676
+ </div>
1677
+
1678
+
1679
+ </div>
1680
+
1681
+
1682
+
1683
+ </div>
1684
+
1685
+
1686
+ <div class="section-method">
1687
+
1688
+
1689
+
1690
+ <h4 class="name" id="fetchChildren"><span class="type-signature"></span>fetchChildren<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+ <div class="description">
1697
+ Fetch children content by Railcontent ID.
1698
+ </div>
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+ <dl class="details">
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+ <dt class="tag-source">Source:</dt>
1732
+ <dd class="tag-source"><ul class="dummy"><li>
1733
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line527">line 527</a>
1734
+ </li></ul></dd>
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+
1742
+ </dl>
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+ <h5>Parameters:</h5>
1753
+
1754
+
1755
+ <table class="params">
1756
+ <thead>
1757
+ <tr>
1758
+
1759
+ <th>Name</th>
1760
+
1761
+
1762
+ <th>Type</th>
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+ <th class="last">Description</th>
1769
+ </tr>
1770
+ </thead>
1771
+
1772
+ <tbody>
1773
+
1774
+
1775
+ <tr>
1776
+
1777
+ <td class="name"><code>config</code></td>
1778
+
1779
+
1780
+ <td class="type">
1781
+
1782
+
1783
+ <span class="param-type"><code>Object</code></span>
1784
+
1785
+
1786
+
1787
+ </td>
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+ <td class="description last">
1794
+ Configuration object containing token, projectId, dataset, version, and debug.
1795
+
1796
+ </td>
1797
+ </tr>
1798
+
1799
+
1800
+
1801
+ <tr>
1802
+
1803
+ <td class="name"><code>railcontentId</code></td>
1804
+
1805
+
1806
+ <td class="type">
1807
+
1808
+
1809
+ <span class="param-type"><code>string</code></span>
1810
+
1811
+
1812
+
1813
+ </td>
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+ <td class="description last">
1820
+ The Railcontent ID of the parent content.
1821
+
1822
+ </td>
1823
+ </tr>
1824
+
1825
+
1826
+ </tbody>
1827
+ </table>
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+ <div class="section-returns">
1843
+ <h5>Returns:</h5>
1844
+
1845
+
1846
+
1847
+ <dl class="param-type">
1848
+ <dt>
1849
+ Type:
1850
+ </dt>
1851
+ <dd>
1852
+
1853
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
1854
+
1855
+
1856
+ </dd>
1857
+ </dl>
1858
+
1859
+
1860
+ <div class="param-desc">
1861
+ - The fetched children content data or null if not found.
1862
+ </div>
1863
+
1864
+
1865
+ </div>
1866
+
1867
+
1868
+
1869
+ </div>
1870
+
1871
+
1872
+ <div class="section-method">
1873
+
1874
+
1875
+
1876
+ <h4 class="name" id="fetchFilterOptions"><span class="type-signature"></span>fetchFilterOptions<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+ <div class="description">
1883
+ Fetch filter options for a specific brand.
1884
+ </div>
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+ <dl class="details">
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+ <dt class="tag-source">Source:</dt>
1918
+ <dd class="tag-source"><ul class="dummy"><li>
1919
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line258">line 258</a>
1920
+ </li></ul></dd>
1921
+
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+ </dl>
1929
+
1930
+
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+ <h5>Parameters:</h5>
1939
+
1940
+
1941
+ <table class="params">
1942
+ <thead>
1943
+ <tr>
1944
+
1945
+ <th>Name</th>
1946
+
1947
+
1948
+ <th>Type</th>
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+ <th class="last">Description</th>
1955
+ </tr>
1956
+ </thead>
1957
+
1958
+ <tbody>
1959
+
1960
+
1961
+ <tr>
1962
+
1963
+ <td class="name"><code>config</code></td>
1964
+
1965
+
1966
+ <td class="type">
1967
+
1968
+
1969
+ <span class="param-type"><code>Object</code></span>
1970
+
1971
+
1972
+
1973
+ </td>
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+ <td class="description last">
1980
+ Configuration object containing token, projectId, dataset, version, and debug.
1981
+
1982
+ </td>
1983
+ </tr>
1984
+
1985
+
1986
+
1987
+ <tr>
1988
+
1989
+ <td class="name"><code>brand</code></td>
1990
+
1991
+
1992
+ <td class="type">
1993
+
1994
+
1995
+ <span class="param-type"><code>string</code></span>
1996
+
1997
+
1998
+
1999
+ </td>
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+ <td class="description last">
2006
+ The brand for which to fetch filter options.
2007
+
2008
+ </td>
2009
+ </tr>
2010
+
2011
+
2012
+ </tbody>
2013
+ </table>
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+ <div class="section-returns">
2029
+ <h5>Returns:</h5>
2030
+
2031
+
2032
+
2033
+ <dl class="param-type">
2034
+ <dt>
2035
+ Type:
2036
+ </dt>
2037
+ <dd>
2038
+
2039
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
2040
+
2041
+
2042
+ </dd>
2043
+ </dl>
2044
+
2045
+
2046
+ <div class="param-desc">
2047
+ - The fetched filter options or null if not found.
2048
+ </div>
2049
+
2050
+
2051
+ </div>
2052
+
2053
+
2054
+
2055
+ </div>
2056
+
2057
+
2058
+ <div class="section-method">
2059
+
2060
+
2061
+
2062
+ <h4 class="name" id="fetchMethodChildren"><span class="type-signature"></span>fetchMethodChildren<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+ <div class="description">
2069
+ Fetch all children of a specific method by Railcontent ID.
2070
+ </div>
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+ <dl class="details">
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+ <dt class="tag-source">Source:</dt>
2104
+ <dd class="tag-source"><ul class="dummy"><li>
2105
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line571">line 571</a>
2106
+ </li></ul></dd>
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+ </dl>
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ <h5>Parameters:</h5>
2125
+
2126
+
2127
+ <table class="params">
2128
+ <thead>
2129
+ <tr>
2130
+
2131
+ <th>Name</th>
2132
+
2133
+
2134
+ <th>Type</th>
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+ <th class="last">Description</th>
2141
+ </tr>
2142
+ </thead>
2143
+
2144
+ <tbody>
2145
+
2146
+
2147
+ <tr>
2148
+
2149
+ <td class="name"><code>config</code></td>
2150
+
2151
+
2152
+ <td class="type">
2153
+
2154
+
2155
+ <span class="param-type"><code>Object</code></span>
2156
+
2157
+
2158
+
2159
+ </td>
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+ <td class="description last">
2166
+ Configuration object containing token, projectId, dataset, version, and debug.
2167
+
2168
+ </td>
2169
+ </tr>
2170
+
2171
+
2172
+
2173
+ <tr>
2174
+
2175
+ <td class="name"><code>railcontentId</code></td>
2176
+
2177
+
2178
+ <td class="type">
2179
+
2180
+
2181
+ <span class="param-type"><code>string</code></span>
2182
+
2183
+
2184
+
2185
+ </td>
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+ <td class="description last">
2192
+ The Railcontent ID of the method.
2193
+
2194
+ </td>
2195
+ </tr>
2196
+
2197
+
2198
+ </tbody>
2199
+ </table>
2200
+
2201
+
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+
2212
+
2213
+
2214
+ <div class="section-returns">
2215
+ <h5>Returns:</h5>
2216
+
2217
+
2218
+
2219
+ <dl class="param-type">
2220
+ <dt>
2221
+ Type:
2222
+ </dt>
2223
+ <dd>
2224
+
2225
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
2226
+
2227
+
2228
+ </dd>
2229
+ </dl>
2230
+
2231
+
2232
+ <div class="param-desc">
2233
+ - The fetched children data or null if not found.
2234
+ </div>
2235
+
2236
+
2237
+ </div>
2238
+
2239
+
2240
+
2241
+ </div>
2242
+
2243
+
2244
+ <div class="section-method">
2245
+
2246
+
2247
+
2248
+ <h4 class="name" id="fetchMethodNextLesson"><span class="type-signature"></span>fetchMethodNextLesson<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+ <div class="description">
2255
+ Fetch the next lesson for a specific method by Railcontent ID.
2256
+ </div>
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+ <dl class="details">
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+ <dt class="tag-source">Source:</dt>
2290
+ <dd class="tag-source"><ul class="dummy"><li>
2291
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line549">line 549</a>
2292
+ </li></ul></dd>
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+ </dl>
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+ <h5>Parameters:</h5>
2311
+
2312
+
2313
+ <table class="params">
2314
+ <thead>
2315
+ <tr>
2316
+
2317
+ <th>Name</th>
2318
+
2319
+
2320
+ <th>Type</th>
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+ <th class="last">Description</th>
2327
+ </tr>
2328
+ </thead>
2329
+
2330
+ <tbody>
2331
+
2332
+
2333
+ <tr>
2334
+
2335
+ <td class="name"><code>config</code></td>
2336
+
2337
+
2338
+ <td class="type">
2339
+
2340
+
2341
+ <span class="param-type"><code>Object</code></span>
2342
+
2343
+
2344
+
2345
+ </td>
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+ <td class="description last">
2352
+ Configuration object containing token, projectId, dataset, version, and debug.
2353
+
2354
+ </td>
2355
+ </tr>
2356
+
2357
+
2358
+
2359
+ <tr>
2360
+
2361
+ <td class="name"><code>railcontentId</code></td>
2362
+
2363
+
2364
+ <td class="type">
2365
+
2366
+
2367
+ <span class="param-type"><code>string</code></span>
2368
+
2369
+
2370
+
2371
+ </td>
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+ <td class="description last">
2378
+ The Railcontent ID of the current lesson.
2379
+
2380
+ </td>
2381
+ </tr>
2382
+
2383
+
2384
+ </tbody>
2385
+ </table>
2386
+
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+
2398
+
2399
+
2400
+ <div class="section-returns">
2401
+ <h5>Returns:</h5>
2402
+
2403
+
2404
+
2405
+ <dl class="param-type">
2406
+ <dt>
2407
+ Type:
2408
+ </dt>
2409
+ <dd>
2410
+
2411
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
2412
+
2413
+
2414
+ </dd>
2415
+ </dl>
2416
+
2417
+
2418
+ <div class="param-desc">
2419
+ - The fetched next lesson data or null if not found.
2420
+ </div>
2421
+
2422
+
2423
+ </div>
2424
+
2425
+
2426
+
2427
+ </div>
2428
+
2429
+
2430
+ <div class="section-method">
2431
+
2432
+
2433
+
2434
+ <h4 class="name" id="fetchNewReleases"><span class="type-signature"></span>fetchNewReleases<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+ <div class="description">
2441
+ Fetch the latest new releases for a specific brand.
2442
+ </div>
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+ <dl class="details">
2449
+
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+
2464
+
2465
+
2466
+
2467
+
2468
+
2469
+
2470
+
2471
+
2472
+
2473
+
2474
+
2475
+ <dt class="tag-source">Source:</dt>
2476
+ <dd class="tag-source"><ul class="dummy"><li>
2477
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line320">line 320</a>
2478
+ </li></ul></dd>
2479
+
2480
+
2481
+
2482
+
2483
+
2484
+
2485
+
2486
+ </dl>
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+ <h5>Parameters:</h5>
2497
+
2498
+
2499
+ <table class="params">
2500
+ <thead>
2501
+ <tr>
2502
+
2503
+ <th>Name</th>
2504
+
2505
+
2506
+ <th>Type</th>
2507
+
2508
+
2509
+
2510
+
2511
+
2512
+ <th class="last">Description</th>
2513
+ </tr>
2514
+ </thead>
2515
+
2516
+ <tbody>
2517
+
2518
+
2519
+ <tr>
2520
+
2521
+ <td class="name"><code>config</code></td>
2522
+
2523
+
2524
+ <td class="type">
2525
+
2526
+
2527
+ <span class="param-type"><code>Object</code></span>
2528
+
2529
+
2530
+
2531
+ </td>
2532
+
2533
+
2534
+
2535
+
2536
+
2537
+ <td class="description last">
2538
+ Configuration object containing token, projectId, dataset, version, and debug.
2539
+
2540
+ </td>
2541
+ </tr>
2542
+
2543
+
2544
+
2545
+ <tr>
2546
+
2547
+ <td class="name"><code>brand</code></td>
2548
+
2549
+
2550
+ <td class="type">
2551
+
2552
+
2553
+ <span class="param-type"><code>string</code></span>
2554
+
2555
+
2556
+
2557
+ </td>
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+ <td class="description last">
2564
+ The brand for which to fetch new releases.
2565
+
2566
+ </td>
2567
+ </tr>
2568
+
2569
+
2570
+ </tbody>
2571
+ </table>
2572
+
2573
+
2574
+
2575
+
2576
+
2577
+
2578
+
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+
2586
+ <div class="section-returns">
2587
+ <h5>Returns:</h5>
2588
+
2589
+
2590
+
2591
+ <dl class="param-type">
2592
+ <dt>
2593
+ Type:
2594
+ </dt>
2595
+ <dd>
2596
+
2597
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
2598
+
2599
+
2600
+ </dd>
2601
+ </dl>
2602
+
2603
+
2604
+ <div class="param-desc">
2605
+ - The fetched new releases data or null if not found.
2606
+ </div>
2607
+
2608
+
2609
+ </div>
2610
+
2611
+
2612
+
2613
+ </div>
2614
+
2615
+
2616
+ <div class="section-method">
2617
+
2618
+
2619
+
2620
+ <h4 class="name" id="fetchNextPreviousLesson"><span class="type-signature"></span>fetchNextPreviousLesson<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
2621
+
2622
+
2623
+
2624
+
2625
+
2626
+ <div class="description">
2627
+ Fetch the next and previous lessons for a specific lesson by Railcontent ID.
2628
+ </div>
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+ <dl class="details">
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+
2650
+
2651
+
2652
+
2653
+
2654
+
2655
+
2656
+
2657
+
2658
+
2659
+
2660
+
2661
+ <dt class="tag-source">Source:</dt>
2662
+ <dd class="tag-source"><ul class="dummy"><li>
2663
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line582">line 582</a>
2664
+ </li></ul></dd>
2665
+
2666
+
2667
+
2668
+
2669
+
2670
+
2671
+
2672
+ </dl>
2673
+
2674
+
2675
+
2676
+
2677
+
2678
+
2679
+
2680
+
2681
+
2682
+ <h5>Parameters:</h5>
2683
+
2684
+
2685
+ <table class="params">
2686
+ <thead>
2687
+ <tr>
2688
+
2689
+ <th>Name</th>
2690
+
2691
+
2692
+ <th>Type</th>
2693
+
2694
+
2695
+
2696
+
2697
+
2698
+ <th class="last">Description</th>
2699
+ </tr>
2700
+ </thead>
2701
+
2702
+ <tbody>
2703
+
2704
+
2705
+ <tr>
2706
+
2707
+ <td class="name"><code>config</code></td>
2708
+
2709
+
2710
+ <td class="type">
2711
+
2712
+
2713
+ <span class="param-type"><code>Object</code></span>
2714
+
2715
+
2716
+
2717
+ </td>
2718
+
2719
+
2720
+
2721
+
2722
+
2723
+ <td class="description last">
2724
+ Configuration object containing token, projectId, dataset, version, and debug.
2725
+
2726
+ </td>
2727
+ </tr>
2728
+
2729
+
2730
+
2731
+ <tr>
2732
+
2733
+ <td class="name"><code>railcontentId</code></td>
2734
+
2735
+
2736
+ <td class="type">
2737
+
2738
+
2739
+ <span class="param-type"><code>string</code></span>
2740
+
2741
+
2742
+
2743
+ </td>
2744
+
2745
+
2746
+
2747
+
2748
+
2749
+ <td class="description last">
2750
+ The Railcontent ID of the current lesson.
2751
+
2752
+ </td>
2753
+ </tr>
2754
+
2755
+
2756
+ </tbody>
2757
+ </table>
2758
+
2759
+
2760
+
2761
+
2762
+
2763
+
2764
+
2765
+
2766
+
2767
+
2768
+
2769
+
2770
+
2771
+
2772
+ <div class="section-returns">
2773
+ <h5>Returns:</h5>
2774
+
2775
+
2776
+
2777
+ <dl class="param-type">
2778
+ <dt>
2779
+ Type:
2780
+ </dt>
2781
+ <dd>
2782
+
2783
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
2784
+
2785
+
2786
+ </dd>
2787
+ </dl>
2788
+
2789
+
2790
+ <div class="param-desc">
2791
+ - The fetched next and previous lesson data or null if found.
2792
+ </div>
2793
+
2794
+
2795
+ </div>
2796
+
2797
+
2798
+
2799
+ </div>
2800
+
2801
+
2802
+ <div class="section-method">
2803
+
2804
+
2805
+
2806
+ <h4 class="name" id="fetchPackAll"><span class="type-signature"></span>fetchPackAll<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+ <div class="description">
2813
+ Fetch all content for a specific pack by Railcontent ID.
2814
+ </div>
2815
+
2816
+
2817
+
2818
+
2819
+
2820
+ <dl class="details">
2821
+
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+ <dt class="tag-source">Source:</dt>
2848
+ <dd class="tag-source"><ul class="dummy"><li>
2849
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line633">line 633</a>
2850
+ </li></ul></dd>
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+
2857
+
2858
+ </dl>
2859
+
2860
+
2861
+
2862
+
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+ <h5>Parameters:</h5>
2869
+
2870
+
2871
+ <table class="params">
2872
+ <thead>
2873
+ <tr>
2874
+
2875
+ <th>Name</th>
2876
+
2877
+
2878
+ <th>Type</th>
2879
+
2880
+
2881
+
2882
+
2883
+
2884
+ <th class="last">Description</th>
2885
+ </tr>
2886
+ </thead>
2887
+
2888
+ <tbody>
2889
+
2890
+
2891
+ <tr>
2892
+
2893
+ <td class="name"><code>config</code></td>
2894
+
2895
+
2896
+ <td class="type">
2897
+
2898
+
2899
+ <span class="param-type"><code>Object</code></span>
2900
+
2901
+
2902
+
2903
+ </td>
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+ <td class="description last">
2910
+ Configuration object containing token, projectId, dataset, version, and debug.
2911
+
2912
+ </td>
2913
+ </tr>
2914
+
2915
+
2916
+
2917
+ <tr>
2918
+
2919
+ <td class="name"><code>railcontentId</code></td>
2920
+
2921
+
2922
+ <td class="type">
2923
+
2924
+
2925
+ <span class="param-type"><code>string</code></span>
2926
+
2927
+
2928
+
2929
+ </td>
2930
+
2931
+
2932
+
2933
+
2934
+
2935
+ <td class="description last">
2936
+ The Railcontent ID of the pack.
2937
+
2938
+ </td>
2939
+ </tr>
2940
+
2941
+
2942
+ </tbody>
2943
+ </table>
2944
+
2945
+
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+ <div class="section-returns">
2959
+ <h5>Returns:</h5>
2960
+
2961
+
2962
+
2963
+ <dl class="param-type">
2964
+ <dt>
2965
+ Type:
2966
+ </dt>
2967
+ <dd>
2968
+
2969
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
2970
+
2971
+
2972
+ </dd>
2973
+ </dl>
2974
+
2975
+
2976
+ <div class="param-desc">
2977
+ - The fetched pack content data or null if not found.
2978
+ </div>
2979
+
2980
+
2981
+ </div>
2982
+
2983
+
2984
+
2985
+ </div>
2986
+
2987
+
2988
+ <div class="section-method">
2989
+
2990
+
2991
+
2992
+ <h4 class="name" id="fetchPackChildren"><span class="type-signature"></span>fetchPackChildren<span class="signature">(config, railcontentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
2993
+
2994
+
2995
+
2996
+
2997
+
2998
+ <div class="description">
2999
+ Fetch all children of a specific pack by Railcontent ID.
3000
+ </div>
3001
+
3002
+
3003
+
3004
+
3005
+
3006
+ <dl class="details">
3007
+
3008
+
3009
+
3010
+
3011
+
3012
+
3013
+
3014
+
3015
+
3016
+
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+
3029
+
3030
+
3031
+
3032
+
3033
+ <dt class="tag-source">Source:</dt>
3034
+ <dd class="tag-source"><ul class="dummy"><li>
3035
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line655">line 655</a>
3036
+ </li></ul></dd>
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+
3043
+
3044
+ </dl>
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+ <h5>Parameters:</h5>
3055
+
3056
+
3057
+ <table class="params">
3058
+ <thead>
3059
+ <tr>
3060
+
3061
+ <th>Name</th>
3062
+
3063
+
3064
+ <th>Type</th>
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+ <th class="last">Description</th>
3071
+ </tr>
3072
+ </thead>
3073
+
3074
+ <tbody>
3075
+
3076
+
3077
+ <tr>
3078
+
3079
+ <td class="name"><code>config</code></td>
3080
+
3081
+
3082
+ <td class="type">
3083
+
3084
+
3085
+ <span class="param-type"><code>Object</code></span>
3086
+
3087
+
3088
+
3089
+ </td>
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+ <td class="description last">
3096
+ Configuration object containing token, projectId, dataset, version, and debug.
3097
+
3098
+ </td>
3099
+ </tr>
3100
+
3101
+
3102
+
3103
+ <tr>
3104
+
3105
+ <td class="name"><code>railcontentId</code></td>
3106
+
3107
+
3108
+ <td class="type">
3109
+
3110
+
3111
+ <span class="param-type"><code>string</code></span>
3112
+
3113
+
3114
+
3115
+ </td>
3116
+
3117
+
3118
+
3119
+
3120
+
3121
+ <td class="description last">
3122
+ The Railcontent ID of the pack.
3123
+
3124
+ </td>
3125
+ </tr>
3126
+
3127
+
3128
+ </tbody>
3129
+ </table>
3130
+
3131
+
3132
+
3133
+
3134
+
3135
+
3136
+
3137
+
3138
+
3139
+
3140
+
3141
+
3142
+
3143
+
3144
+ <div class="section-returns">
3145
+ <h5>Returns:</h5>
3146
+
3147
+
3148
+
3149
+ <dl class="param-type">
3150
+ <dt>
3151
+ Type:
3152
+ </dt>
3153
+ <dd>
3154
+
3155
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
3156
+
3157
+
3158
+ </dd>
3159
+ </dl>
3160
+
3161
+
3162
+ <div class="param-desc">
3163
+ - The fetched pack children data or null if not found.
3164
+ </div>
3165
+
3166
+
3167
+ </div>
3168
+
3169
+
3170
+
3171
+ </div>
3172
+
3173
+
3174
+ <div class="section-method">
3175
+
3176
+
3177
+
3178
+ <h4 class="name" id="fetchRelatedLessons"><span class="type-signature"></span>fetchRelatedLessons<span class="signature">(config, railcontentId, type)</span><span class="type-signature"> &rarr; {Promise.&lt;(Array.&lt;Object>|null)>}</span></h4>
3179
+
3180
+
3181
+
3182
+
3183
+
3184
+ <div class="description">
3185
+ Fetch related lessons for a specific lesson by Railcontent ID and type.
3186
+ </div>
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+ <dl class="details">
3193
+
3194
+
3195
+
3196
+
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+
3218
+
3219
+ <dt class="tag-source">Source:</dt>
3220
+ <dd class="tag-source"><ul class="dummy"><li>
3221
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line605">line 605</a>
3222
+ </li></ul></dd>
3223
+
3224
+
3225
+
3226
+
3227
+
3228
+
3229
+
3230
+ </dl>
3231
+
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+
3239
+
3240
+ <h5>Parameters:</h5>
3241
+
3242
+
3243
+ <table class="params">
3244
+ <thead>
3245
+ <tr>
3246
+
3247
+ <th>Name</th>
3248
+
3249
+
3250
+ <th>Type</th>
3251
+
3252
+
3253
+
3254
+
3255
+
3256
+ <th class="last">Description</th>
3257
+ </tr>
3258
+ </thead>
3259
+
3260
+ <tbody>
3261
+
3262
+
3263
+ <tr>
3264
+
3265
+ <td class="name"><code>config</code></td>
3266
+
3267
+
3268
+ <td class="type">
3269
+
3270
+
3271
+ <span class="param-type"><code>Object</code></span>
3272
+
3273
+
3274
+
3275
+ </td>
3276
+
3277
+
3278
+
3279
+
3280
+
3281
+ <td class="description last">
3282
+ Configuration object containing token, projectId, dataset, version, and debug.
3283
+
3284
+ </td>
3285
+ </tr>
3286
+
3287
+
3288
+
3289
+ <tr>
3290
+
3291
+ <td class="name"><code>railcontentId</code></td>
3292
+
3293
+
3294
+ <td class="type">
3295
+
3296
+
3297
+ <span class="param-type"><code>string</code></span>
3298
+
3299
+
3300
+
3301
+ </td>
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+ <td class="description last">
3308
+ The Railcontent ID of the current lesson.
3309
+
3310
+ </td>
3311
+ </tr>
3312
+
3313
+
3314
+
3315
+ <tr>
3316
+
3317
+ <td class="name"><code>type</code></td>
3318
+
3319
+
3320
+ <td class="type">
3321
+
3322
+
3323
+ <span class="param-type"><code>string</code></span>
3324
+
3325
+
3326
+
3327
+ </td>
3328
+
3329
+
3330
+
3331
+
3332
+
3333
+ <td class="description last">
3334
+ The type of related lessons to fetch.
3335
+
3336
+ </td>
3337
+ </tr>
3338
+
3339
+
3340
+ </tbody>
3341
+ </table>
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+ <div class="section-returns">
3357
+ <h5>Returns:</h5>
3358
+
3359
+
3360
+
3361
+ <dl class="param-type">
3362
+ <dt>
3363
+ Type:
3364
+ </dt>
3365
+ <dd>
3366
+
3367
+ <span class="param-type"><code>Promise.&lt;(Array.&lt;Object>|null)></code></span>
3368
+
3369
+
3370
+ </dd>
3371
+ </dl>
3372
+
3373
+
3374
+ <div class="param-desc">
3375
+ - The fetched related lessons data or null if not found.
3376
+ </div>
3377
+
3378
+
3379
+ </div>
3380
+
3381
+
3382
+
3383
+ </div>
3384
+
3385
+
3386
+ <div class="section-method">
3387
+
3388
+
3389
+
3390
+ <h4 class="name" id="fetchRelatedSongs"><span class="type-signature"></span>fetchRelatedSongs<span class="signature">(config, brand, songId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3391
+
3392
+
3393
+
3394
+
3395
+
3396
+ <div class="description">
3397
+ Fetch related songs for a specific brand and song ID.
3398
+ </div>
3399
+
3400
+
3401
+
3402
+
3403
+
3404
+ <dl class="details">
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+
3414
+
3415
+
3416
+
3417
+
3418
+
3419
+
3420
+
3421
+
3422
+
3423
+
3424
+
3425
+
3426
+
3427
+
3428
+
3429
+
3430
+
3431
+ <dt class="tag-source">Source:</dt>
3432
+ <dd class="tag-source"><ul class="dummy"><li>
3433
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line50">line 50</a>
3434
+ </li></ul></dd>
3435
+
3436
+
3437
+
3438
+
3439
+
3440
+
3441
+
3442
+ </dl>
3443
+
3444
+
3445
+
3446
+
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+ <h5>Parameters:</h5>
3453
+
3454
+
3455
+ <table class="params">
3456
+ <thead>
3457
+ <tr>
3458
+
3459
+ <th>Name</th>
3460
+
3461
+
3462
+ <th>Type</th>
3463
+
3464
+
3465
+
3466
+
3467
+
3468
+ <th class="last">Description</th>
3469
+ </tr>
3470
+ </thead>
3471
+
3472
+ <tbody>
3473
+
3474
+
3475
+ <tr>
3476
+
3477
+ <td class="name"><code>config</code></td>
3478
+
3479
+
3480
+ <td class="type">
3481
+
3482
+
3483
+ <span class="param-type"><code>Object</code></span>
3484
+
3485
+
3486
+
3487
+ </td>
3488
+
3489
+
3490
+
3491
+
3492
+
3493
+ <td class="description last">
3494
+ Configuration object containing token, projectId, dataset, version, and debug.
3495
+
3496
+ </td>
3497
+ </tr>
3498
+
3499
+
3500
+
3501
+ <tr>
3502
+
3503
+ <td class="name"><code>brand</code></td>
3504
+
3505
+
3506
+ <td class="type">
3507
+
3508
+
3509
+ <span class="param-type"><code>string</code></span>
3510
+
3511
+
3512
+
3513
+ </td>
3514
+
3515
+
3516
+
3517
+
3518
+
3519
+ <td class="description last">
3520
+ The brand for which to fetch related songs.
3521
+
3522
+ </td>
3523
+ </tr>
3524
+
3525
+
3526
+
3527
+ <tr>
3528
+
3529
+ <td class="name"><code>songId</code></td>
3530
+
3531
+
3532
+ <td class="type">
3533
+
3534
+
3535
+ <span class="param-type"><code>string</code></span>
3536
+
3537
+
3538
+
3539
+ </td>
3540
+
3541
+
3542
+
3543
+
3544
+
3545
+ <td class="description last">
3546
+ The ID of the song to find related songs for.
3547
+
3548
+ </td>
3549
+ </tr>
3550
+
3551
+
3552
+ </tbody>
3553
+ </table>
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+
3568
+ <div class="section-returns">
3569
+ <h5>Returns:</h5>
3570
+
3571
+
3572
+
3573
+ <dl class="param-type">
3574
+ <dt>
3575
+ Type:
3576
+ </dt>
3577
+ <dd>
3578
+
3579
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
3580
+
3581
+
3582
+ </dd>
3583
+ </dl>
3584
+
3585
+
3586
+ <div class="param-desc">
3587
+ - The fetched related songs data or null if not found.
3588
+ </div>
3589
+
3590
+
3591
+ </div>
3592
+
3593
+
3594
+
3595
+ </div>
3596
+
3597
+
3598
+ <div class="section-method">
3599
+
3600
+
3601
+
3602
+ <h4 class="name" id="fetchSanity"><span class="type-signature">(async) </span>fetchSanity<span class="signature">(config, query)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
3603
+
3604
+
3605
+
3606
+
3607
+
3608
+ <div class="description">
3609
+ Fetch data from the Sanity API based on a provided query.
3610
+ </div>
3611
+
3612
+
3613
+
3614
+
3615
+
3616
+ <dl class="details">
3617
+
3618
+
3619
+
3620
+
3621
+
3622
+
3623
+
3624
+
3625
+
3626
+
3627
+
3628
+
3629
+
3630
+
3631
+
3632
+
3633
+
3634
+
3635
+
3636
+
3637
+
3638
+
3639
+
3640
+
3641
+
3642
+
3643
+ <dt class="tag-source">Source:</dt>
3644
+ <dd class="tag-source"><ul class="dummy"><li>
3645
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line670">line 670</a>
3646
+ </li></ul></dd>
3647
+
3648
+
3649
+
3650
+
3651
+
3652
+
3653
+
3654
+ </dl>
3655
+
3656
+
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+
3663
+
3664
+ <h5>Parameters:</h5>
3665
+
3666
+
3667
+ <table class="params">
3668
+ <thead>
3669
+ <tr>
3670
+
3671
+ <th>Name</th>
3672
+
3673
+
3674
+ <th>Type</th>
3675
+
3676
+
3677
+
3678
+
3679
+
3680
+ <th class="last">Description</th>
3681
+ </tr>
3682
+ </thead>
3683
+
3684
+ <tbody>
3685
+
3686
+
3687
+ <tr>
3688
+
3689
+ <td class="name"><code>config</code></td>
3690
+
3691
+
3692
+ <td class="type">
3693
+
3694
+
3695
+ <span class="param-type"><code>Object</code></span>
3696
+
3697
+
3698
+
3699
+ </td>
3700
+
3701
+
3702
+
3703
+
3704
+
3705
+ <td class="description last">
3706
+ Configuration object containing the Sanity API settings.
3707
+
3708
+
3709
+
3710
+ <table class="params">
3711
+ <thead>
3712
+ <tr>
3713
+
3714
+ <th>Name</th>
3715
+
3716
+
3717
+ <th>Type</th>
3718
+
3719
+
3720
+ <th>Attributes</th>
3721
+
3722
+
3723
+
3724
+ <th>Default</th>
3725
+
3726
+
3727
+ <th class="last">Description</th>
3728
+ </tr>
3729
+ </thead>
3730
+
3731
+ <tbody>
3732
+
3733
+
3734
+ <tr>
3735
+
3736
+ <td class="name"><code>token</code></td>
3737
+
3738
+
3739
+ <td class="type">
3740
+
3741
+
3742
+ <span class="param-type"><code>string</code></span>
3743
+
3744
+
3745
+
3746
+ </td>
3747
+
3748
+
3749
+ <td class="attributes">
3750
+
3751
+
3752
+
3753
+
3754
+
3755
+ </td>
3756
+
3757
+
3758
+
3759
+ <td class="default">
3760
+
3761
+ </td>
3762
+
3763
+
3764
+ <td class="description last">
3765
+ The API token for authenticating with Sanity.
3766
+
3767
+ </td>
3768
+ </tr>
3769
+
3770
+
3771
+
3772
+ <tr>
3773
+
3774
+ <td class="name"><code>projectId</code></td>
3775
+
3776
+
3777
+ <td class="type">
3778
+
3779
+
3780
+ <span class="param-type"><code>string</code></span>
3781
+
3782
+
3783
+
3784
+ </td>
3785
+
3786
+
3787
+ <td class="attributes">
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+ </td>
3794
+
3795
+
3796
+
3797
+ <td class="default">
3798
+
3799
+ </td>
3800
+
3801
+
3802
+ <td class="description last">
3803
+ The project ID in Sanity.
3804
+
3805
+ </td>
3806
+ </tr>
3807
+
3808
+
3809
+
3810
+ <tr>
3811
+
3812
+ <td class="name"><code>dataset</code></td>
3813
+
3814
+
3815
+ <td class="type">
3816
+
3817
+
3818
+ <span class="param-type"><code>string</code></span>
3819
+
3820
+
3821
+
3822
+ </td>
3823
+
3824
+
3825
+ <td class="attributes">
3826
+
3827
+
3828
+
3829
+
3830
+
3831
+ </td>
3832
+
3833
+
3834
+
3835
+ <td class="default">
3836
+
3837
+ </td>
3838
+
3839
+
3840
+ <td class="description last">
3841
+ The dataset name in Sanity.
3842
+
3843
+ </td>
3844
+ </tr>
3845
+
3846
+
3847
+
3848
+ <tr>
3849
+
3850
+ <td class="name"><code>version</code></td>
3851
+
3852
+
3853
+ <td class="type">
3854
+
3855
+
3856
+ <span class="param-type"><code>string</code></span>
3857
+
3858
+
3859
+
3860
+ </td>
3861
+
3862
+
3863
+ <td class="attributes">
3864
+
3865
+
3866
+
3867
+
3868
+
3869
+ </td>
3870
+
3871
+
3872
+
3873
+ <td class="default">
3874
+
3875
+ </td>
3876
+
3877
+
3878
+ <td class="description last">
3879
+ The API version to use.
3880
+
3881
+ </td>
3882
+ </tr>
3883
+
3884
+
3885
+
3886
+ <tr>
3887
+
3888
+ <td class="name"><code>debug</code></td>
3889
+
3890
+
3891
+ <td class="type">
3892
+
3893
+
3894
+ <span class="param-type"><code>boolean</code></span>
3895
+
3896
+
3897
+
3898
+ </td>
3899
+
3900
+
3901
+ <td class="attributes">
3902
+
3903
+ &lt;optional><br>
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+ </td>
3910
+
3911
+
3912
+
3913
+ <td class="default">
3914
+
3915
+ false
3916
+
3917
+ </td>
3918
+
3919
+
3920
+ <td class="description last">
3921
+ Flag to enable debug mode, which logs the query and results.
3922
+
3923
+ </td>
3924
+ </tr>
3925
+
3926
+
3927
+ </tbody>
3928
+ </table>
3929
+
3930
+
3931
+ </td>
3932
+ </tr>
3933
+
3934
+
3935
+
3936
+ <tr>
3937
+
3938
+ <td class="name"><code>query</code></td>
3939
+
3940
+
3941
+ <td class="type">
3942
+
3943
+
3944
+ <span class="param-type"><code>string</code></span>
3945
+
3946
+
3947
+
3948
+ </td>
3949
+
3950
+
3951
+
3952
+
3953
+
3954
+ <td class="description last">
3955
+ The GROQ query to execute against the Sanity API.
3956
+
3957
+ </td>
3958
+ </tr>
3959
+
3960
+
3961
+ </tbody>
3962
+ </table>
3963
+
3964
+
3965
+
3966
+
3967
+
3968
+
3969
+
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+
3976
+
3977
+ <div class="section-returns">
3978
+ <h5>Returns:</h5>
3979
+
3980
+
3981
+
3982
+ <dl class="param-type">
3983
+ <dt>
3984
+ Type:
3985
+ </dt>
3986
+ <dd>
3987
+
3988
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
3989
+
3990
+
3991
+ </dd>
3992
+ </dl>
3993
+
3994
+
3995
+ <div class="param-desc">
3996
+ - The first result from the query, or null if an error occurs or no results are found.
3997
+ </div>
3998
+
3999
+
4000
+ </div>
4001
+
4002
+
4003
+
4004
+ </div>
4005
+
4006
+
4007
+ <div class="section-method">
4008
+
4009
+
4010
+
4011
+ <h4 class="name" id="fetchSongById"><span class="type-signature"></span>fetchSongById<span class="signature">(config, documentId)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+ <div class="description">
4018
+ Fetch a song by its document ID from Sanity.
4019
+ </div>
4020
+
4021
+
4022
+
4023
+
4024
+
4025
+ <dl class="details">
4026
+
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+
4040
+
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+
4052
+ <dt class="tag-source">Source:</dt>
4053
+ <dd class="tag-source"><ul class="dummy"><li>
4054
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line9">line 9</a>
4055
+ </li></ul></dd>
4056
+
4057
+
4058
+
4059
+
4060
+
4061
+
4062
+
4063
+ </dl>
4064
+
4065
+
4066
+
4067
+
4068
+
4069
+
4070
+
4071
+
4072
+
4073
+ <h5>Parameters:</h5>
4074
+
4075
+
4076
+ <table class="params">
4077
+ <thead>
4078
+ <tr>
4079
+
4080
+ <th>Name</th>
4081
+
4082
+
4083
+ <th>Type</th>
4084
+
4085
+
4086
+
4087
+
4088
+
4089
+ <th class="last">Description</th>
4090
+ </tr>
4091
+ </thead>
4092
+
4093
+ <tbody>
4094
+
4095
+
4096
+ <tr>
4097
+
4098
+ <td class="name"><code>config</code></td>
4099
+
4100
+
4101
+ <td class="type">
4102
+
4103
+
4104
+ <span class="param-type"><code>Object</code></span>
4105
+
4106
+
4107
+
4108
+ </td>
4109
+
4110
+
4111
+
4112
+
4113
+
4114
+ <td class="description last">
4115
+ Configuration object containing token, projectId, dataset, version, and debug.
4116
+
4117
+ </td>
4118
+ </tr>
4119
+
4120
+
4121
+
4122
+ <tr>
4123
+
4124
+ <td class="name"><code>documentId</code></td>
4125
+
4126
+
4127
+ <td class="type">
4128
+
4129
+
4130
+ <span class="param-type"><code>string</code></span>
4131
+
4132
+
4133
+
4134
+ </td>
4135
+
4136
+
4137
+
4138
+
4139
+
4140
+ <td class="description last">
4141
+ The ID of the document to fetch.
4142
+
4143
+ </td>
4144
+ </tr>
4145
+
4146
+
4147
+ </tbody>
4148
+ </table>
4149
+
4150
+
4151
+
4152
+
4153
+
4154
+
4155
+
4156
+
4157
+
4158
+
4159
+
4160
+
4161
+
4162
+
4163
+ <div class="section-returns">
4164
+ <h5>Returns:</h5>
4165
+
4166
+
4167
+
4168
+ <dl class="param-type">
4169
+ <dt>
4170
+ Type:
4171
+ </dt>
4172
+ <dd>
4173
+
4174
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
4175
+
4176
+
4177
+ </dd>
4178
+ </dl>
4179
+
4180
+
4181
+ <div class="param-desc">
4182
+ - The fetched song data or null if not found.
4183
+ </div>
4184
+
4185
+
4186
+ </div>
4187
+
4188
+
4189
+
4190
+ </div>
4191
+
4192
+
4193
+ <div class="section-method">
4194
+
4195
+
4196
+
4197
+ <h4 class="name" id="fetchSongCount"><span class="type-signature"></span>fetchSongCount<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(number|null)>}</span></h4>
4198
+
4199
+
4200
+
4201
+
4202
+
4203
+ <div class="description">
4204
+ Fetch the total count of songs for a specific brand.
4205
+ </div>
4206
+
4207
+
4208
+
4209
+
4210
+
4211
+ <dl class="details">
4212
+
4213
+
4214
+
4215
+
4216
+
4217
+
4218
+
4219
+
4220
+
4221
+
4222
+
4223
+
4224
+
4225
+
4226
+
4227
+
4228
+
4229
+
4230
+
4231
+
4232
+
4233
+
4234
+
4235
+
4236
+
4237
+
4238
+ <dt class="tag-source">Source:</dt>
4239
+ <dd class="tag-source"><ul class="dummy"><li>
4240
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line288">line 288</a>
4241
+ </li></ul></dd>
4242
+
4243
+
4244
+
4245
+
4246
+
4247
+
4248
+
4249
+ </dl>
4250
+
4251
+
4252
+
4253
+
4254
+
4255
+
4256
+
4257
+
4258
+
4259
+ <h5>Parameters:</h5>
4260
+
4261
+
4262
+ <table class="params">
4263
+ <thead>
4264
+ <tr>
4265
+
4266
+ <th>Name</th>
4267
+
4268
+
4269
+ <th>Type</th>
4270
+
4271
+
4272
+
4273
+
4274
+
4275
+ <th class="last">Description</th>
4276
+ </tr>
4277
+ </thead>
4278
+
4279
+ <tbody>
4280
+
4281
+
4282
+ <tr>
4283
+
4284
+ <td class="name"><code>config</code></td>
4285
+
4286
+
4287
+ <td class="type">
4288
+
4289
+
4290
+ <span class="param-type"><code>Object</code></span>
4291
+
4292
+
4293
+
4294
+ </td>
4295
+
4296
+
4297
+
4298
+
4299
+
4300
+ <td class="description last">
4301
+ Configuration object containing token, projectId, dataset, version, and debug.
4302
+
4303
+ </td>
4304
+ </tr>
4305
+
4306
+
4307
+
4308
+ <tr>
4309
+
4310
+ <td class="name"><code>brand</code></td>
4311
+
4312
+
4313
+ <td class="type">
4314
+
4315
+
4316
+ <span class="param-type"><code>string</code></span>
4317
+
4318
+
4319
+
4320
+ </td>
4321
+
4322
+
4323
+
4324
+
4325
+
4326
+ <td class="description last">
4327
+ The brand for which to fetch the song count.
4328
+
4329
+ </td>
4330
+ </tr>
4331
+
4332
+
4333
+ </tbody>
4334
+ </table>
4335
+
4336
+
4337
+
4338
+
4339
+
4340
+
4341
+
4342
+
4343
+
4344
+
4345
+
4346
+
4347
+
4348
+
4349
+ <div class="section-returns">
4350
+ <h5>Returns:</h5>
4351
+
4352
+
4353
+
4354
+ <dl class="param-type">
4355
+ <dt>
4356
+ Type:
4357
+ </dt>
4358
+ <dd>
4359
+
4360
+ <span class="param-type"><code>Promise.&lt;(number|null)></code></span>
4361
+
4362
+
4363
+ </dd>
4364
+ </dl>
4365
+
4366
+
4367
+ <div class="param-desc">
4368
+ - The total count of songs or null if an error occurs.
4369
+ </div>
4370
+
4371
+
4372
+ </div>
4373
+
4374
+
4375
+
4376
+ </div>
4377
+
4378
+
4379
+ <div class="section-method">
4380
+
4381
+
4382
+
4383
+ <h4 class="name" id="fetchUpcomingEvents"><span class="type-signature"></span>fetchUpcomingEvents<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4384
+
4385
+
4386
+
4387
+
4388
+
4389
+ <div class="description">
4390
+ Fetch upcoming events for a specific brand.
4391
+ </div>
4392
+
4393
+
4394
+
4395
+
4396
+
4397
+ <dl class="details">
4398
+
4399
+
4400
+
4401
+
4402
+
4403
+
4404
+
4405
+
4406
+
4407
+
4408
+
4409
+
4410
+
4411
+
4412
+
4413
+
4414
+
4415
+
4416
+
4417
+
4418
+
4419
+
4420
+
4421
+
4422
+
4423
+
4424
+ <dt class="tag-source">Source:</dt>
4425
+ <dd class="tag-source"><ul class="dummy"><li>
4426
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line349">line 349</a>
4427
+ </li></ul></dd>
4428
+
4429
+
4430
+
4431
+
4432
+
4433
+
4434
+
4435
+ </dl>
4436
+
4437
+
4438
+
4439
+
4440
+
4441
+
4442
+
4443
+
4444
+
4445
+ <h5>Parameters:</h5>
4446
+
4447
+
4448
+ <table class="params">
4449
+ <thead>
4450
+ <tr>
4451
+
4452
+ <th>Name</th>
4453
+
4454
+
4455
+ <th>Type</th>
4456
+
4457
+
4458
+
4459
+
4460
+
4461
+ <th class="last">Description</th>
4462
+ </tr>
4463
+ </thead>
4464
+
4465
+ <tbody>
4466
+
4467
+
4468
+ <tr>
4469
+
4470
+ <td class="name"><code>config</code></td>
4471
+
4472
+
4473
+ <td class="type">
4474
+
4475
+
4476
+ <span class="param-type"><code>Object</code></span>
4477
+
4478
+
4479
+
4480
+ </td>
4481
+
4482
+
4483
+
4484
+
4485
+
4486
+ <td class="description last">
4487
+ Configuration object containing token, projectId, dataset, version, and debug.
4488
+
4489
+ </td>
4490
+ </tr>
4491
+
4492
+
4493
+
4494
+ <tr>
4495
+
4496
+ <td class="name"><code>brand</code></td>
4497
+
4498
+
4499
+ <td class="type">
4500
+
4501
+
4502
+ <span class="param-type"><code>string</code></span>
4503
+
4504
+
4505
+
4506
+ </td>
4507
+
4508
+
4509
+
4510
+
4511
+
4512
+ <td class="description last">
4513
+ The brand for which to fetch upcoming events.
4514
+
4515
+ </td>
4516
+ </tr>
4517
+
4518
+
4519
+ </tbody>
4520
+ </table>
4521
+
4522
+
4523
+
4524
+
4525
+
4526
+
4527
+
4528
+
4529
+
4530
+
4531
+
4532
+
4533
+
4534
+
4535
+ <div class="section-returns">
4536
+ <h5>Returns:</h5>
4537
+
4538
+
4539
+
4540
+ <dl class="param-type">
4541
+ <dt>
4542
+ Type:
4543
+ </dt>
4544
+ <dd>
4545
+
4546
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
4547
+
4548
+
4549
+ </dd>
4550
+ </dl>
4551
+
4552
+
4553
+ <div class="param-desc">
4554
+ - The fetched upcoming events data or null if not found.
4555
+ </div>
4556
+
4557
+
4558
+ </div>
4559
+
4560
+
4561
+
4562
+ </div>
4563
+
4564
+
4565
+ <div class="section-method">
4566
+
4567
+
4568
+
4569
+ <h4 class="name" id="fetchWorkouts"><span class="type-signature"></span>fetchWorkouts<span class="signature">(config, brand)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|null)>}</span></h4>
4570
+
4571
+
4572
+
4573
+
4574
+
4575
+ <div class="description">
4576
+ Fetch the latest workouts for the home page of a specific brand.
4577
+ </div>
4578
+
4579
+
4580
+
4581
+
4582
+
4583
+ <dl class="details">
4584
+
4585
+
4586
+
4587
+
4588
+
4589
+
4590
+
4591
+
4592
+
4593
+
4594
+
4595
+
4596
+
4597
+
4598
+
4599
+
4600
+
4601
+
4602
+
4603
+
4604
+
4605
+
4606
+
4607
+
4608
+
4609
+
4610
+ <dt class="tag-source">Source:</dt>
4611
+ <dd class="tag-source"><ul class="dummy"><li>
4612
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line299">line 299</a>
4613
+ </li></ul></dd>
4614
+
4615
+
4616
+
4617
+
4618
+
4619
+
4620
+
4621
+ </dl>
4622
+
4623
+
4624
+
4625
+
4626
+
4627
+
4628
+
4629
+
4630
+
4631
+ <h5>Parameters:</h5>
4632
+
4633
+
4634
+ <table class="params">
4635
+ <thead>
4636
+ <tr>
4637
+
4638
+ <th>Name</th>
4639
+
4640
+
4641
+ <th>Type</th>
4642
+
4643
+
4644
+
4645
+
4646
+
4647
+ <th class="last">Description</th>
4648
+ </tr>
4649
+ </thead>
4650
+
4651
+ <tbody>
4652
+
4653
+
4654
+ <tr>
4655
+
4656
+ <td class="name"><code>config</code></td>
4657
+
4658
+
4659
+ <td class="type">
4660
+
4661
+
4662
+ <span class="param-type"><code>Object</code></span>
4663
+
4664
+
4665
+
4666
+ </td>
4667
+
4668
+
4669
+
4670
+
4671
+
4672
+ <td class="description last">
4673
+ Configuration object containing token, projectId, dataset, version, and debug.
4674
+
4675
+ </td>
4676
+ </tr>
4677
+
4678
+
4679
+
4680
+ <tr>
4681
+
4682
+ <td class="name"><code>brand</code></td>
4683
+
4684
+
4685
+ <td class="type">
4686
+
4687
+
4688
+ <span class="param-type"><code>string</code></span>
4689
+
4690
+
4691
+
4692
+ </td>
4693
+
4694
+
4695
+
4696
+
4697
+
4698
+ <td class="description last">
4699
+ The brand for which to fetch workouts.
4700
+
4701
+ </td>
4702
+ </tr>
4703
+
4704
+
4705
+ </tbody>
4706
+ </table>
4707
+
4708
+
4709
+
4710
+
4711
+
4712
+
4713
+
4714
+
4715
+
4716
+
4717
+
4718
+
4719
+
4720
+
4721
+ <div class="section-returns">
4722
+ <h5>Returns:</h5>
4723
+
4724
+
4725
+
4726
+ <dl class="param-type">
4727
+ <dt>
4728
+ Type:
4729
+ </dt>
4730
+ <dd>
4731
+
4732
+ <span class="param-type"><code>Promise.&lt;(Object|null)></code></span>
4733
+
4734
+
4735
+ </dd>
4736
+ </dl>
4737
+
4738
+
4739
+ <div class="param-desc">
4740
+ - The fetched workout data or null if not found.
4741
+ </div>
4742
+
4743
+
4744
+ </div>
4745
+
4746
+
4747
+
4748
+ </div>
4749
+
4750
+
4751
+
4752
+
4753
+
4754
+
4755
+ </article>
4756
+
4757
+ </section>
4758
+
4759
+
4760
+
4761
+
4762
+ </div>
4763
+
4764
+ <br class="clear">
4765
+
4766
+ <footer>
4767
+ Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Fri Aug 09 2024 20:57:53 GMT+0000 (Coordinated Universal Time) using the Minami theme.
4768
+ </footer>
4769
+
4770
+ <script>prettyPrint();</script>
4771
+ <script src="scripts/linenumber.js"></script>
4772
+ </body>
4773
+ </html>