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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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,
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
File without changes
File without changes
File without changes
package/test/log.js CHANGED
File without changes
File without changes
File without changes