musora-content-services 1.0.170 → 1.0.171
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/CHANGELOG.md +2 -0
- package/README.md +0 -0
- package/docs/config.js.html +0 -0
- package/docs/index.html +0 -0
- package/docs/module-Config.html +0 -0
- package/docs/module-Railcontent-Services.html +0 -0
- package/docs/module-Sanity-Services.html +0 -0
- package/docs/railcontent.js.html +0 -0
- package/docs/sanity.js.html +0 -0
- package/jest.config.js +0 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +0 -0
- package/src/filterBuilder.js +0 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/services/config.js +0 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/contentProgress.js +0 -0
- package/src/services/dataContext.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/railcontent.js +11 -0
- package/src/services/userPermissions.js +0 -0
- package/test/contentLikes.test.js +0 -0
- package/test/contentProgress.test.js +0 -0
- package/test/initializeTests.js +0 -0
- package/test/lastUpdated.test.js +0 -0
- package/test/live/contentProgressLive.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
- package/test/sanityQueryService.test.js +0 -0
- package/test/userPermissions.test.js +0 -0
- package/tools/generate-index.js +0 -0
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.171](https://github.com/railroadmedia/musora-content-services/compare/v1.0.170...v1.0.171) (2024-11-12)
|
|
6
|
+
|
|
5
7
|
### [1.0.170](https://github.com/railroadmedia/musora-content-services/compare/v1.0.169...v1.0.170) (2024-11-12)
|
|
6
8
|
|
|
7
9
|
### [1.0.169](https://github.com/railroadmedia/musora-content-services/compare/v1.0.168...v1.0.169) (2024-11-11)
|
package/README.md
CHANGED
|
File without changes
|
package/docs/config.js.html
CHANGED
|
File without changes
|
package/docs/index.html
CHANGED
|
File without changes
|
package/docs/module-Config.html
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/railcontent.js.html
CHANGED
|
File without changes
|
package/docs/sanity.js.html
CHANGED
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/contentMetaData.js
CHANGED
|
File without changes
|
package/src/filterBuilder.js
CHANGED
|
File without changes
|
package/src/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
fetchChallengeIndexMetadata,
|
|
37
37
|
fetchChallengeLessonData,
|
|
38
38
|
fetchChallengeMetadata,
|
|
39
|
+
fetchChallengeUserActiveChallenges,
|
|
39
40
|
fetchCompletedContent,
|
|
40
41
|
fetchCompletedState,
|
|
41
42
|
fetchContentInProgress,
|
|
@@ -151,6 +152,7 @@ declare module 'musora-content-services' {
|
|
|
151
152
|
fetchChallengeLessonData,
|
|
152
153
|
fetchChallengeMetadata,
|
|
153
154
|
fetchChallengeOverview,
|
|
155
|
+
fetchChallengeUserActiveChallenges,
|
|
154
156
|
fetchChildren,
|
|
155
157
|
fetchCoachLessons,
|
|
156
158
|
fetchCommentModContentData,
|
package/src/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
fetchChallengeIndexMetadata,
|
|
37
37
|
fetchChallengeLessonData,
|
|
38
38
|
fetchChallengeMetadata,
|
|
39
|
+
fetchChallengeUserActiveChallenges,
|
|
39
40
|
fetchCompletedContent,
|
|
40
41
|
fetchCompletedState,
|
|
41
42
|
fetchContentInProgress,
|
|
@@ -150,6 +151,7 @@ export {
|
|
|
150
151
|
fetchChallengeLessonData,
|
|
151
152
|
fetchChallengeMetadata,
|
|
152
153
|
fetchChallengeOverview,
|
|
154
|
+
fetchChallengeUserActiveChallenges,
|
|
153
155
|
fetchChildren,
|
|
154
156
|
fetchCoachLessons,
|
|
155
157
|
fetchCommentModContentData,
|
package/src/services/config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -370,6 +370,17 @@ export async function fetchChallengeIndexMetadata(contentIds) {
|
|
|
370
370
|
return await fetchHandler(url, 'get');
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Get active brand challenges for the authorized user
|
|
375
|
+
*
|
|
376
|
+
* @returns {Promise<any|null>}
|
|
377
|
+
*/
|
|
378
|
+
export async function fetchChallengeUserActiveChallenges(brand = null) {
|
|
379
|
+
let brandParam = brand ? `?brand=${brand}` : '';
|
|
380
|
+
let url = `/challenges/user_active_challenges/get${brandParam}`;
|
|
381
|
+
return await fetchHandler(url, 'get');
|
|
382
|
+
}
|
|
383
|
+
|
|
373
384
|
/**
|
|
374
385
|
* Fetch all completed badges for the user ordered by completion date descending
|
|
375
386
|
*
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/test/initializeTests.js
CHANGED
|
File without changes
|
package/test/lastUpdated.test.js
CHANGED
|
File without changes
|
|
File without changes
|
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/tools/generate-index.js
CHANGED
|
File without changes
|