musora-content-services 1.0.196 → 1.0.198

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,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.0.198](https://github.com/railroadmedia/musora-content-services/compare/v1.0.185...v1.0.198) (2024-11-29)
6
+
7
+ ### [1.0.197](https://github.com/railroadmedia/musora-content-services/compare/v1.0.196...v1.0.197) (2024-11-29)
8
+
5
9
  ### [1.0.196](https://github.com/railroadmedia/musora-content-services/compare/v1.0.195...v1.0.196) (2024-11-29)
6
10
 
7
11
  ### [1.0.195](https://github.com/railroadmedia/musora-content-services/compare/v1.0.194...v1.0.195) (2024-11-29)
File without changes
package/docs/index.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.196",
3
+ "version": "1.0.198",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
File without changes
File without changes
package/src/index.d.ts CHANGED
File without changes
package/src/index.js CHANGED
File without changes
File without changes
File without changes
@@ -795,8 +795,9 @@ export async function fetchPlaylist(playlistId) {
795
795
  * .then(items => console.log(items))
796
796
  * .catch(error => console.error('Error fetching playlist items:', error));
797
797
  */
798
- export async function fetchPlaylistItems(playlistId) {
799
- const url = `/playlists/playlist-lessons?playlist_id=${playlistId}`;
798
+ export async function fetchPlaylistItems(playlistId, {sort} = {}) {
799
+ const sortString = sort ? `&sort=${sort}` : '';
800
+ const url = `/playlists/playlist-lessons?playlist_id=${playlistId}${sortString}`;
800
801
  return await fetchHandler(url, "GET");
801
802
  }
802
803
 
@@ -1958,7 +1958,7 @@ function buildEntityAndTotalQuery(
1958
1958
  {
1959
1959
  ${fields}
1960
1960
  },
1961
- "total": count(*[${filter}])
1961
+ "total": 0
1962
1962
  }`;
1963
1963
  return query;
1964
1964
  }
File without changes
File without changes
File without changes
File without changes