@reactoo/watchtogether-sdk-js 2.8.32 → 2.8.34
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/live-barn.js
CHANGED
|
@@ -118,9 +118,11 @@ let liveBarn = function() {
|
|
|
118
118
|
uploadTeamLogo: (file, teamId) => {
|
|
119
119
|
return this.__privates.auth.__client
|
|
120
120
|
.then(client => Promise.all([client, client.apis.livebarn.initiateTeamLogoUpload({id: generateUUID(), teamId})]))
|
|
121
|
-
.then(([client, response]) => Promise.all([client
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
.then(([client, response]) => Promise.all([client.http({url: response.data.signedUrl, method: response.data.httpMethod, headers: {"Content-Type": file.type}, body: file}), response.data.id]));
|
|
122
|
+
},
|
|
123
|
+
publishTeamLogo: (fileId, teamId) => {
|
|
124
|
+
return this.__privates.auth.__client
|
|
125
|
+
.then(client => client.apis.livebarn.publishTeamLogo({id: fileId, teamId}));
|
|
124
126
|
},
|
|
125
127
|
};
|
|
126
128
|
};
|
package/src/models/system.js
CHANGED
|
@@ -45,6 +45,10 @@ let system = function () {
|
|
|
45
45
|
return this.__privates.auth.__client
|
|
46
46
|
.then(client => client.apis.wt.admin({},{requestBody:{instanceType : this.__instanceType, ...data}}));
|
|
47
47
|
},
|
|
48
|
+
requestSupport: (data = {}) => {
|
|
49
|
+
return this.__privates.auth.__client
|
|
50
|
+
.then(client => client.apis.wt.admin({},{requestBody:{...data}}));
|
|
51
|
+
},
|
|
48
52
|
analytics: ({action, startKey = null, limit = 20} = {}) => {
|
|
49
53
|
|
|
50
54
|
let apiParams = {
|