@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.8.32",
3
+ "version": "2.8.34",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -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, client.http({url: response.data.signedUrl, method: response.data.httpMethod, headers: {"Content-Type": file.type}, body: file}), response.data.id]))
122
- .then(([client, response, idn]) => Promise.all([client.apis.livebarn.publishTeamLogo({id: idn, teamId}), idn]))
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
  };
@@ -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 = {