musora-content-services 1.0.188 → 1.0.189
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/jest.config.js +0 -0
- package/package.json +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.js +4 -0
- package/src/services/config.js +0 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/railcontent.js +21 -0
- package/src/services/userPermissions.js +0 -0
- package/test/contentLikes.test.js +0 -0
- package/test/initializeTests.js +0 -0
- package/test/lastUpdated.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.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.189](https://github.com/railroadmedia/musora-content-services/compare/v1.0.188...v1.0.189) (2024-11-28)
|
|
6
|
+
|
|
5
7
|
### [1.0.188](https://github.com/railroadmedia/musora-content-services/compare/v1.0.187...v1.0.188) (2024-11-28)
|
|
6
8
|
|
|
7
9
|
### [1.0.187](https://github.com/railroadmedia/musora-content-services/compare/v1.0.186...v1.0.187) (2024-11-28)
|
package/README.md
CHANGED
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
deletePlaylistLike,
|
|
37
37
|
duplicatePlaylist,
|
|
38
38
|
fetchAllCompletedStates,
|
|
39
|
+
fetchCarouselCardData,
|
|
39
40
|
fetchChallengeIndexMetadata,
|
|
40
41
|
fetchChallengeLessonData,
|
|
41
42
|
fetchChallengeMetadata,
|
|
@@ -65,6 +66,7 @@ import {
|
|
|
65
66
|
postChallengesCompleteLesson,
|
|
66
67
|
postChallengesEnroll,
|
|
67
68
|
postChallengesEnrollmentNotification,
|
|
69
|
+
postChallengesHideCompletedBanner,
|
|
68
70
|
postChallengesLeave,
|
|
69
71
|
postChallengesSetStartDate,
|
|
70
72
|
postChallengesUnlock,
|
|
@@ -159,6 +161,7 @@ declare module 'musora-content-services' {
|
|
|
159
161
|
fetchByRailContentId,
|
|
160
162
|
fetchByRailContentIds,
|
|
161
163
|
fetchByReference,
|
|
164
|
+
fetchCarouselCardData,
|
|
162
165
|
fetchCatalogMetadata,
|
|
163
166
|
fetchChallengeIndexMetadata,
|
|
164
167
|
fetchChallengeLessonData,
|
|
@@ -240,6 +243,7 @@ declare module 'musora-content-services' {
|
|
|
240
243
|
postChallengesCompleteLesson,
|
|
241
244
|
postChallengesEnroll,
|
|
242
245
|
postChallengesEnrollmentNotification,
|
|
246
|
+
postChallengesHideCompletedBanner,
|
|
243
247
|
postChallengesLeave,
|
|
244
248
|
postChallengesSetStartDate,
|
|
245
249
|
postChallengesUnlock,
|
package/src/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
deletePlaylistLike,
|
|
37
37
|
duplicatePlaylist,
|
|
38
38
|
fetchAllCompletedStates,
|
|
39
|
+
fetchCarouselCardData,
|
|
39
40
|
fetchChallengeIndexMetadata,
|
|
40
41
|
fetchChallengeLessonData,
|
|
41
42
|
fetchChallengeMetadata,
|
|
@@ -65,6 +66,7 @@ import {
|
|
|
65
66
|
postChallengesCompleteLesson,
|
|
66
67
|
postChallengesEnroll,
|
|
67
68
|
postChallengesEnrollmentNotification,
|
|
69
|
+
postChallengesHideCompletedBanner,
|
|
68
70
|
postChallengesLeave,
|
|
69
71
|
postChallengesSetStartDate,
|
|
70
72
|
postChallengesUnlock,
|
|
@@ -158,6 +160,7 @@ export {
|
|
|
158
160
|
fetchByRailContentId,
|
|
159
161
|
fetchByRailContentIds,
|
|
160
162
|
fetchByReference,
|
|
163
|
+
fetchCarouselCardData,
|
|
161
164
|
fetchCatalogMetadata,
|
|
162
165
|
fetchChallengeIndexMetadata,
|
|
163
166
|
fetchChallengeLessonData,
|
|
@@ -239,6 +242,7 @@ export {
|
|
|
239
242
|
postChallengesCompleteLesson,
|
|
240
243
|
postChallengesEnroll,
|
|
241
244
|
postChallengesEnrollmentNotification,
|
|
245
|
+
postChallengesHideCompletedBanner,
|
|
242
246
|
postChallengesLeave,
|
|
243
247
|
postChallengesSetStartDate,
|
|
244
248
|
postChallengesUnlock,
|
package/src/services/config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -412,6 +412,16 @@ export async function fetchChallengeUserActiveChallenges(brand = null) {
|
|
|
412
412
|
return await fetchHandler(url, 'get');
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Fetch All Carousel Card Data
|
|
417
|
+
*
|
|
418
|
+
* @returns {Promise<any|null>}
|
|
419
|
+
*/
|
|
420
|
+
export async function fetchCarouselCardData() {
|
|
421
|
+
let url = `/api/v1/content/carousel`;
|
|
422
|
+
return await fetchHandler(url, 'get');
|
|
423
|
+
}
|
|
424
|
+
|
|
415
425
|
/**
|
|
416
426
|
* Fetch all completed badges for the user ordered by completion date descending
|
|
417
427
|
*
|
|
@@ -507,6 +517,17 @@ export async function postChallengesCompleteLesson(contentId) {
|
|
|
507
517
|
return await fetchHandler(url, 'post');
|
|
508
518
|
}
|
|
509
519
|
|
|
520
|
+
/**
|
|
521
|
+
* Hide challenge completed award bannare
|
|
522
|
+
*
|
|
523
|
+
* @param {int|string} contentId - railcontent id of the challenge
|
|
524
|
+
* @returns {Promise<any|null>}
|
|
525
|
+
*/
|
|
526
|
+
export async function postChallengesHideCompletedBanner(contentId) {
|
|
527
|
+
let url = `/challenges/hide_completed_banner/${contentId}`;
|
|
528
|
+
return await fetchHandler(url, 'post');
|
|
529
|
+
}
|
|
530
|
+
|
|
510
531
|
/**
|
|
511
532
|
* Fetches user playlists for a specific brand.
|
|
512
533
|
*
|
|
File without changes
|
|
File without changes
|
package/test/initializeTests.js
CHANGED
|
File without changes
|
package/test/lastUpdated.test.js
CHANGED
|
File without changes
|
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|
|
File without changes
|
package/tools/generate-index.js
CHANGED
|
File without changes
|