musora-content-services 1.6.4 → 1.6.6
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/conventional-commits.yaml +16 -0
- package/.github/workflows/docs.js.yml +58 -0
- package/.github/workflows/node.js.yml +0 -0
- package/.github/workflows/sync-docs.yml +56 -0
- package/.prettierignore +0 -0
- package/.prettierrc +0 -0
- package/CHANGELOG.md +4 -0
- package/README.md +3 -3
- package/babel.config.cjs +0 -0
- 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/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/docs/v2/Content-Organization.html +245 -0
- package/docs/v2/ContentOrganization.html +245 -0
- package/docs/v2/Gamification.html +245 -0
- package/docs/v2/UserManagement.html +269 -0
- package/docs/v2/UserManagementSystem.html +317 -0
- package/docs/v2/api_types.js.html +97 -0
- package/docs/v2/config.js.html +143 -0
- package/docs/v2/content-org_content-org.js.html +76 -0
- package/docs/v2/content-org_playlists-types.js.html +116 -0
- package/docs/v2/content-org_playlists.js.html +418 -0
- package/docs/v2/content.js.html +466 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/v2/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/v2/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/v2/gamification_awards.js.html +664 -0
- package/docs/v2/gamification_gamification.js.html +76 -0
- package/docs/v2/gamification_types.js.html +98 -0
- package/docs/v2/global.html +5812 -0
- package/docs/v2/global.html#User +293 -0
- package/docs/v2/index.html +168 -0
- package/docs/v2/module-Awards.html +354 -0
- package/docs/v2/module-Config.html +434 -0
- package/docs/v2/module-Content-Services-V2.html +2434 -0
- package/docs/v2/module-Interests.html +1066 -0
- package/docs/v2/module-Notifications.html +1183 -0
- package/docs/v2/module-Permissions.html +406 -0
- package/docs/v2/module-Playlists.html +2862 -0
- package/docs/v2/module-Railcontent-Services.html +7954 -0
- package/docs/v2/module-Sanity-Services.html +9608 -0
- package/docs/v2/module-Session-Management.html +575 -0
- package/docs/v2/module-Sessions.html +575 -0
- package/docs/v2/module-User-Activity.html +4410 -0
- package/docs/v2/module-User-Management.html +490 -0
- package/docs/v2/module-User-Permissions.html +406 -0
- package/docs/v2/module-UserActivity.html +4410 -0
- package/docs/v2/module-UserManagement.html +915 -0
- package/docs/v2/module-UserNotifications.html +1223 -0
- package/docs/v2/module-UserProfile.html +266 -0
- package/docs/v2/railcontent.js.html +984 -0
- package/docs/v2/sanity.js.html +2459 -0
- package/docs/v2/scripts/collapse.js +39 -0
- package/docs/v2/scripts/commonNav.js +28 -0
- package/docs/v2/scripts/linenumber.js +25 -0
- package/docs/v2/scripts/nav.js +12 -0
- package/docs/v2/scripts/polyfill.js +4 -0
- package/docs/v2/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/docs/v2/scripts/prettify/lang-css.js +2 -0
- package/docs/v2/scripts/prettify/prettify.js +28 -0
- package/docs/v2/scripts/search.js +99 -0
- package/docs/v2/styles/jsdoc.css +776 -0
- package/docs/v2/styles/prettify.css +80 -0
- package/docs/v2/types.js.html +122 -0
- package/docs/v2/userActivity.js.html +1451 -0
- package/docs/v2/user_interests.js.html +150 -0
- package/docs/v2/user_management.js.html +178 -0
- package/docs/v2/user_notifications.js.html +192 -0
- package/docs/v2/user_permissions.js.html +110 -0
- package/docs/v2/user_profile.js.html +105 -0
- package/docs/v2/user_sessions.js.html +139 -0
- package/docs/v2/user_types.js.html +208 -0
- package/docs/v2/user_user-management-system.js.html +79 -0
- package/docs/v2/user_user-management.js.html +78 -0
- package/jest.config.js +0 -0
- package/package.json +1 -1
- package/src/contentTypeConfig.js +27 -12
- package/src/services/imageSRCBuilder.js +2 -0
- package/src/services/sanity.js +120 -81
- package/test/live/contentProgressLive.test.js +0 -0
- package/test/live/railcontentLive.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: PR Conventional Commit Validation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, reopened, edited]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
validate-pr-title:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: PR Conventional Commit Validation
|
|
12
|
+
uses: ytanikin/pr-conventional-commits@1.4.1
|
|
13
|
+
with:
|
|
14
|
+
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
|
|
15
|
+
custom_labels: '{"feat": "feature", "fix": "fix", "docs": "documentation", "test": "test", "ci": "CI/CD", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert", "wip": "WIP"}'
|
|
16
|
+
add_scope_label: 'false'
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Sync V2 Docs to Main
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [project-v2]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
sync-docs:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout project-v2 branch
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
with:
|
|
13
|
+
ref: project-v2
|
|
14
|
+
path: project-v2-content
|
|
15
|
+
|
|
16
|
+
- name: Checkout main branch
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
ref: main
|
|
20
|
+
path: main-content
|
|
21
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
22
|
+
|
|
23
|
+
- name: Copy docs from project-v2 to main
|
|
24
|
+
run: |
|
|
25
|
+
# Create the target directory if it doesn't exist
|
|
26
|
+
mkdir -p main-content/docs/v2
|
|
27
|
+
|
|
28
|
+
# Remove existing v2 docs to ensure clean copy
|
|
29
|
+
rm -rf main-content/docs/v2/*
|
|
30
|
+
|
|
31
|
+
# Copy docs from project-v2 to main/docs/v2
|
|
32
|
+
if [ -d "project-v2-content/docs" ]; then
|
|
33
|
+
cp -r project-v2-content/docs/* main-content/docs/v2/
|
|
34
|
+
echo "✅ Copied docs from project-v2 to main/docs/v2"
|
|
35
|
+
else
|
|
36
|
+
echo "⚠️ No docs folder found in project-v2 branch"
|
|
37
|
+
exit 1
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
- name: Commit and push changes to main
|
|
41
|
+
run: |
|
|
42
|
+
cd main-content
|
|
43
|
+
git config --local user.email "action@github.com"
|
|
44
|
+
git config --local user.name "GitHub Action"
|
|
45
|
+
|
|
46
|
+
# Check if there are any changes
|
|
47
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
48
|
+
git add docs/v2/
|
|
49
|
+
git commit -m "🔄 Auto-sync: Update v2 docs from project-v2 branch
|
|
50
|
+
|
|
51
|
+
- Synced from project-v2/docs
|
|
52
|
+
- Triggered by commit: ${{ github.sha }}
|
|
53
|
+
- Date: $(date)"
|
|
54
|
+
git push
|
|
55
|
+
echo "✅ Successfully pushed updated docs to main branch"
|
|
56
|
+
else
|
|
57
|
+
echo "ℹ️ No changes detected in docs"
|
|
58
|
+
fi
|
|
File without changes
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Sync README to Mintlify Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
paths: [ 'README.md' ]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
sync-readme:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout source repository
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
+
|
|
18
|
+
- name: Checkout Mintlify docs repository
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
repository: railroadmedia/documentation
|
|
22
|
+
ref: main
|
|
23
|
+
token: ${{ secrets.ORG_DOCS_SYNC_TOKEN }}
|
|
24
|
+
path: mintlify-docs
|
|
25
|
+
persist-credentials: true
|
|
26
|
+
|
|
27
|
+
- name: Copy README to docs
|
|
28
|
+
run: |
|
|
29
|
+
mkdir -p mintlify-docs/docs/repositories
|
|
30
|
+
# Extract repo name and create title
|
|
31
|
+
REPO_NAME="${{ github.event.repository.name }}"
|
|
32
|
+
REPO_TITLE=$(echo "$REPO_NAME" | sed 's/-/ /g' | sed 's/\b\w/\U&/g')
|
|
33
|
+
|
|
34
|
+
# Add frontmatter and copy content
|
|
35
|
+
cat > mintlify-docs/docs/repositories/${REPO_NAME}.mdx << EOF
|
|
36
|
+
---
|
|
37
|
+
title: "${REPO_TITLE}"
|
|
38
|
+
description: "Repository documentation for ${REPO_NAME}"
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
EOF
|
|
42
|
+
cat README.md >> mintlify-docs/docs/repositories/${REPO_NAME}.mdx
|
|
43
|
+
|
|
44
|
+
- name: Commit and push changes
|
|
45
|
+
working-directory: mintlify-docs
|
|
46
|
+
run: |
|
|
47
|
+
REPO_NAME="${{ github.event.repository.name }}"
|
|
48
|
+
git config --local user.email "action@github.com"
|
|
49
|
+
git config --local user.name "GitHub Action"
|
|
50
|
+
git add docs/repositories/${REPO_NAME}.mdx
|
|
51
|
+
if git diff --staged --quiet; then
|
|
52
|
+
echo "No changes to commit"
|
|
53
|
+
else
|
|
54
|
+
git commit -m "Update ${REPO_NAME} documentation from source repo"
|
|
55
|
+
git push
|
|
56
|
+
fi
|
package/.prettierignore
CHANGED
|
File without changes
|
package/.prettierrc
CHANGED
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.6.6](https://github.com/railroadmedia/musora-content-services/compare/v1.6.5...v1.6.6) (2025-06-26)
|
|
6
|
+
|
|
7
|
+
### [1.6.5](https://github.com/railroadmedia/musora-content-services/compare/v1.6.4...v1.6.5) (2025-06-17)
|
|
8
|
+
|
|
5
9
|
### [1.6.4](https://github.com/railroadmedia/musora-content-services/compare/v1.6.3...v1.6.4) (2025-06-13)
|
|
6
10
|
|
|
7
11
|
### [1.6.3](https://github.com/railroadmedia/musora-content-services/compare/v1.6.2...v1.6.3) (2025-06-12)
|
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Welcome to the **musora-content-services** repository. This package provides a collection of utility functions designed
|
|
4
4
|
to fetch and manage content from our Sanity Studio. These functions are tailored to interact with our Sanity backend,
|
|
5
|
-
allowing you to easily retrieve, filter, and manipulate content for use in various applications.
|
|
5
|
+
allowing you to easily retrieve, filter, and manipulate content for use in various applications. Used on both web and
|
|
6
|
+
app front ends.
|
|
6
7
|
|
|
7
8
|
## Setup
|
|
8
9
|
To set up the Musora Content Services project for local development, follow these steps:
|
|
9
|
-
- Pull the latest railenvironment `php-8-3-upgrade` branch changes
|
|
10
10
|
- In the railenvironment directory, start up the container with the `./rrr.sh` command
|
|
11
11
|
- Run `r setup musora-content-services`
|
|
12
12
|
- Run `npm install --save-dev jest`
|
|
@@ -94,4 +94,4 @@ and having jest installed (`npm install --save-dev jest`). To run the full test
|
|
|
94
94
|
npm test
|
|
95
95
|
```
|
|
96
96
|
You can also filter down to specific tests with the `-- -t="..."` option. e.g. you can run the userContext test suite
|
|
97
|
-
with `npm test -- -t="userContext"` or just the contentLiked test with `npm test -- -t="contentLiked"`
|
|
97
|
+
with `npm test -- -t="userContext"` or just the contentLiked test with `npm test -- -t="contentLiked"`
|
package/babel.config.cjs
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/collapse.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/nav.js
CHANGED
|
File without changes
|
package/docs/scripts/polyfill.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/search.js
CHANGED
|
File without changes
|
package/docs/styles/jsdoc.css
CHANGED
|
File without changes
|
package/docs/styles/prettify.css
CHANGED
|
File without changes
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Content-Organization - Documentation</title>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
+
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
+
<!--[if lt IE 9]>
|
|
12
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
+
<![endif]-->
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
+
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
|
|
22
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
+
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
+
<div class="navicon"></div>
|
|
25
|
+
</label>
|
|
26
|
+
|
|
27
|
+
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
+
|
|
29
|
+
<nav >
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Awards.html">Awards</a><ul class='methods'><li data-type='method'><a href="module-Awards.html#.fetchAwardsForUser">fetchAwardsForUser</a></li></ul></li><li><a href="module-Config.html">Config</a><ul class='methods'><li data-type='method'><a href="module-Config.html#.initializeService">initializeService</a></li></ul></li><li><a href="module-Content-Services-V2.html">Content-Services-V2</a><ul class='methods'><li data-type='method'><a href="module-Content-Services-V2.html#.getContentRows">getContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getNewAndUpcoming">getNewAndUpcoming</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecent">getRecent</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getRecommendedForYou">getRecommendedForYou</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getScheduleContentRows">getScheduleContentRows</a></li><li data-type='method'><a href="module-Content-Services-V2.html#.getTabResults">getTabResults</a></li></ul></li><li><a href="module-Playlists.html">Playlists</a><ul class='methods'><li data-type='method'><a href="module-Playlists.html#.addItemToPlaylist">addItemToPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#.fetchUserPlaylists">fetchUserPlaylists</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#.assignModeratorToComment">assignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.closeComment">closeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.countAssignmentsAndLessons">countAssignmentsAndLessons</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.createComment">createComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deleteComment">deleteComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistItem">deletePlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.deletePlaylistLike">deletePlaylistLike</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.duplicatePlaylist">duplicatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.editComment">editComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchAllCompletedStates">fetchAllCompletedStates</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCarouselCardData">fetchCarouselCardData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeIndexMetadata">fetchChallengeIndexMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeLessonData">fetchChallengeLessonData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeMetadata">fetchChallengeMetadata</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchChallengeUserActiveChallenges">fetchChallengeUserActiveChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCommentRelies">fetchCommentRelies</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchComments">fetchComments</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedChallenges">fetchCompletedChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedContent">fetchCompletedContent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchCompletedState">fetchCompletedState</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentInProgress">fetchContentInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchContentPageUserData">fetchContentPageUserData</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchNextContentDataForParent">fetchNextContentDataForParent</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchOwnedChallenges">fetchOwnedChallenges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPinnedPlaylists">fetchPinnedPlaylists</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylist">fetchPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItem">fetchPlaylistItem</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchPlaylistItems">fetchPlaylistItems</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchSongsInProgress">fetchSongsInProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchTopComment">fetchTopComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserAward">fetchUserAward</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserBadges">fetchUserBadges</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.fetchUserChallengeProgress">fetchUserChallengeProgress</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likeComment">likeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.likePlaylist">likePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.openComment">openComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.pinPlaylist">pinPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesCommunityNotification">postChallengesCommunityNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnroll">postChallengesEnroll</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesEnrollmentNotification">postChallengesEnrollmentNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesHideCompletedBanner">postChallengesHideCompletedBanner</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesLeave">postChallengesLeave</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesSetStartDate">postChallengesSetStartDate</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesSoloNotification">postChallengesSoloNotification</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.postChallengesUnlock">postChallengesUnlock</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.replyToComment">replyToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.reportPlaylist">reportPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.setStudentViewForUser">setStudentViewForUser</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unassignModeratorToComment">unassignModeratorToComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unlikeComment">unlikeComment</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.unpinPlaylist">unpinPlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylist">updatePlaylist</a></li><li data-type='method'><a href="module-Railcontent-Services.html#.updatePlaylistItem">updatePlaylistItem</a></li></ul></li><li><a href="module-Sanity-Services.html">Sanity-Services</a><ul class='methods'><li data-type='method'><a href="module-Sanity-Services.html#.fetchAll">fetchAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllFilterOptions">fetchAllFilterOptions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchAllPacks">fetchAllPacks</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtistLessons">fetchArtistLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchArtists">fetchArtists</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentId">fetchByRailContentId</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByRailContentIds">fetchByRailContentIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchByReference">fetchByReference</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCoachLessons">fetchCoachLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchComingSoon">fetchComingSoon</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchCommentModContentData">fetchCommentModContentData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchFoundation">fetchFoundation</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchGenreLessons">fetchGenreLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLeaving">fetchLeaving</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonContent">fetchLessonContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchLessonsFeaturingThisContent">fetchLessonsFeaturingThisContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMetadata">fetchMetadata</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethod">fetchMethod</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildren">fetchMethodChildren</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodChildrenIds">fetchMethodChildrenIds</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchMethodPreviousNextLesson">fetchMethodPreviousNextLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNewReleases">fetchNewReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchNextPreviousLesson">fetchNextPreviousLesson</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchOtherSongVersions">fetchOtherSongVersions</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackAll">fetchPackAll</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchPackData">fetchPackData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchParentForDownload">fetchParentForDownload</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedLessons">fetchRelatedLessons</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedRecommendedContent">fetchRelatedRecommendedContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchRelatedSongs">fetchRelatedSongs</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchReturning">fetchReturning</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSanity">fetchSanity</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchScheduledReleases">fetchScheduledReleases</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchShowsData">fetchShowsData</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongArtistCount">fetchSongArtistCount</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchSongById">fetchSongById</a></li><li data-type='method'><a href="module-Sanity-Services.html#.fetchUpcomingEvents">fetchUpcomingEvents</a></li><li data-type='method'><a href="module-Sanity-Services.html#.jumpToContinueContent">jumpToContinueContent</a></li><li data-type='method'><a href="module-Sanity-Services.html#~fetchRelatedByLicense">fetchRelatedByLicense</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getNextAndPreviousQuarterDates">getNextAndPreviousQuarterDates</a></li><li data-type='method'><a href="module-Sanity-Services.html#~getQueryFromPage">getQueryFromPage</a></li><li data-type='method'><a href="module-Sanity-Services.html#~handleCustomFetchAll">handleCustomFetchAll</a></li></ul></li><li><a href="module-Session-Management.html">Session-Management</a><ul class='methods'><li data-type='method'><a href="module-Session-Management.html#.login">login</a></li><li data-type='method'><a href="module-Session-Management.html#.logout">logout</a></li></ul></li><li><a href="module-User-Permissions.html">User-Permissions</a><ul class='methods'><li data-type='method'><a href="module-User-Permissions.html#.fetchUserPermissions">fetchUserPermissions</a></li><li data-type='method'><a href="module-User-Permissions.html#.reset">reset</a></li></ul></li></ul><h3>Namespaces</h3><ul><li><a href="Content-Organization.html">Content-Organization</a></li><li><a href="Gamification.html">Gamification</a></li></ul><h3><a href="global.html">Global</a></h3>
|
|
33
|
+
|
|
34
|
+
</nav>
|
|
35
|
+
|
|
36
|
+
<div id="main">
|
|
37
|
+
|
|
38
|
+
<h1 class="page-title">Content-Organization</h1>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<section>
|
|
47
|
+
|
|
48
|
+
<header>
|
|
49
|
+
|
|
50
|
+
<h2>
|
|
51
|
+
|
|
52
|
+
Namespace
|
|
53
|
+
|
|
54
|
+
</h2>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</header>
|
|
58
|
+
|
|
59
|
+
<article>
|
|
60
|
+
|
|
61
|
+
<div class="container-overview">
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<h4 class="name" id="Content-Organization">Content-Organization</h4>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
<dl class="details">
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<dt class="tag-source">Source:</dt>
|
|
80
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
81
|
+
<a href="content-org_playlists.js.html">content-org/playlists.js</a>, <a href="content-org_playlists.js.html#line1">line 1</a>
|
|
82
|
+
</li></ul></dd>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</dl>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<table class="props">
|
|
123
|
+
<thead>
|
|
124
|
+
<tr>
|
|
125
|
+
|
|
126
|
+
<th>Name</th>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<th>Type</th>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<th class="last">Description</th>
|
|
136
|
+
</tr>
|
|
137
|
+
</thead>
|
|
138
|
+
|
|
139
|
+
<tbody>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<tr>
|
|
143
|
+
|
|
144
|
+
<td class="name"><code>Playlists</code></td>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<td class="type">
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
<span class="param-type"><a href="module-Playlists.html">module:Playlists</a></span>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
</td>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<td class="description last"></td>
|
|
162
|
+
</tr>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</tbody>
|
|
166
|
+
</table>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</article>
|
|
222
|
+
|
|
223
|
+
</section>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
<br class="clear">
|
|
233
|
+
|
|
234
|
+
<footer>
|
|
235
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Thu Mar 27 2025 03:14:21 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
236
|
+
</footer>
|
|
237
|
+
|
|
238
|
+
<script>prettyPrint();</script>
|
|
239
|
+
<script src="scripts/polyfill.js"></script>
|
|
240
|
+
<script src="scripts/linenumber.js"></script>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
</body>
|
|
245
|
+
</html>
|