@reactoo/watchtogether-sdk-js 2.5.77 → 2.5.78

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.
@@ -17,7 +17,7 @@
17
17
  <button onclick="unpublish()">unpublish</button>
18
18
  <button onclick="toggleVideo()">toggle video</button>
19
19
  <button onclick="toggleAudio()">toggle audio</button>
20
- <button onclick="hento()">sign to goole</button>
20
+ <button onclick="hento()">get client</button>
21
21
  </div>
22
22
 
23
23
  </div>
@@ -44,9 +44,9 @@
44
44
 
45
45
  function hento() {
46
46
  //Instance.system.getSettings();
47
- Instance.auth.socialAuth({provider: 'youtube', action: 'generateAuthUrl'})
47
+ Instance.system.getClient()
48
48
  .then(r => {
49
- window.open(r.data.redirectUrl);
49
+ console.log(r)
50
50
  })
51
51
 
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.77",
3
+ "version": "2.5.78",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -208,11 +208,11 @@ let room = function () {
208
208
 
209
209
  },
210
210
 
211
- roomRecorder: ({roomId, operation = 'get', config} = {}) => {
211
+ roomRecorder: ({roomId, operation = 'get', config, destinationIds} = {}) => {
212
212
  return this.__privates.auth.__client
213
213
  .then(client => client.apis.wt.recordRoom({}, {
214
214
  requestBody: {
215
- roomId, operation, config
215
+ roomId, operation, config, destinationIds
216
216
  }
217
217
  }))
218
218
  },
@@ -75,6 +75,12 @@ let system = function () {
75
75
  return this.__privates.auth.__client.then(client => {
76
76
  return client.spec?.components?.schemas
77
77
  })
78
+ },
79
+
80
+ getClient: () => {
81
+ return this.__privates.auth.__client.then(client => {
82
+ return client
83
+ });
78
84
  }
79
85
  }
80
86
  }