musora-content-services 1.0.256 → 1.0.257
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/node.js.yml +0 -0
- package/CHANGELOG.md +2 -0
- package/babel.config.js +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/jsdoc.json +0 -0
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/services/railcontent.js +11 -0
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.0.257](https://github.com/railroadmedia/musora-content-services/compare/v1.0.256...v1.0.257) (2025-01-03)
|
|
6
|
+
|
|
5
7
|
### [1.0.256](https://github.com/railroadmedia/musora-content-services/compare/v1.0.255...v1.0.256) (2025-01-02)
|
|
6
8
|
|
|
7
9
|
### [1.0.255](https://github.com/railroadmedia/musora-content-services/compare/v1.0.254...v1.0.255) (2025-01-02)
|
package/babel.config.js
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
|
package/jsdoc.json
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
postChallengesHideCompletedBanner,
|
|
72
72
|
postChallengesLeave,
|
|
73
73
|
postChallengesSetStartDate,
|
|
74
|
+
postChallengesSoloNotification,
|
|
74
75
|
postChallengesUnlock,
|
|
75
76
|
postContentCompleted,
|
|
76
77
|
postContentLiked,
|
|
@@ -257,6 +258,7 @@ declare module 'musora-content-services' {
|
|
|
257
258
|
postChallengesHideCompletedBanner,
|
|
258
259
|
postChallengesLeave,
|
|
259
260
|
postChallengesSetStartDate,
|
|
261
|
+
postChallengesSoloNotification,
|
|
260
262
|
postChallengesUnlock,
|
|
261
263
|
postContentCompleted,
|
|
262
264
|
postContentLiked,
|
package/src/index.js
CHANGED
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
postChallengesHideCompletedBanner,
|
|
72
72
|
postChallengesLeave,
|
|
73
73
|
postChallengesSetStartDate,
|
|
74
|
+
postChallengesSoloNotification,
|
|
74
75
|
postChallengesUnlock,
|
|
75
76
|
postContentCompleted,
|
|
76
77
|
postContentLiked,
|
|
@@ -256,6 +257,7 @@ export {
|
|
|
256
257
|
postChallengesHideCompletedBanner,
|
|
257
258
|
postChallengesLeave,
|
|
258
259
|
postChallengesSetStartDate,
|
|
260
|
+
postChallengesSoloNotification,
|
|
259
261
|
postChallengesUnlock,
|
|
260
262
|
postContentCompleted,
|
|
261
263
|
postContentLiked,
|
|
@@ -575,6 +575,17 @@ export async function postChallengesCommunityNotification(contentId) {
|
|
|
575
575
|
return await fetchHandler(url, 'post');
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
+
/**
|
|
579
|
+
* Enable solo notifications for the provided challenge
|
|
580
|
+
*
|
|
581
|
+
* @param {int|string} contentId - railcontent id of the challenge
|
|
582
|
+
* @returns {Promise<any|null>}
|
|
583
|
+
*/
|
|
584
|
+
export async function postChallengesSoloNotification(contentId) {
|
|
585
|
+
let url = `/challenges/notifications/solo_reminders/${contentId}`;
|
|
586
|
+
return await fetchHandler(url, 'post');
|
|
587
|
+
}
|
|
588
|
+
|
|
578
589
|
/**
|
|
579
590
|
* Complete the challenge lesson and update challenge progress
|
|
580
591
|
*
|