@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
package/src/models/asset.js
CHANGED
|
@@ -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
|
};
|