@reactoo/watchtogether-sdk-js 2.8.5 → 2.8.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -110,6 +110,11 @@ let asset = function() {
110
110
  createStreamAsset: (id, title, streamType, regionalPreference, ingestType, source, profile) => {
111
111
  return this.__privates.auth.__client
112
112
  .then(client => client.apis.asset.publishAsset({id}, {requestBody: {assetType: 'stream', title, stream: {streamType, regionalPreference, ingestType, source, profile}}}));
113
+ },
114
+
115
+ createHighlightAsset: (id, title, roomIds, highlight = {}) => {
116
+ return this.__privates.auth.__client
117
+ .then(client => client.apis.asset.publishAsset({id}, {requestBody: {assetType: 'highlight',...(roomIds ? {roomIds} : {}), title, highlight}}));
113
118
  }
114
119
  }
115
120
  };