@reactoo/watchtogether-sdk-js 2.8.24 → 2.8.26

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.24",
3
+ "version": "2.8.26",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -60,9 +60,9 @@ let auth = function () {
60
60
  return this.__privates.auth.__language;
61
61
  },
62
62
 
63
- signUp: (username, password, email, phone) => {
63
+ signUp: (username, password, email, phone, firstname, lastname, note, domain) => {
64
64
  return this.__privates.auth.__client
65
- .then(client => client.apis.auth.signUp({},{requestBody:{username, password, email, phone}}))
65
+ .then(client => client.apis.auth.signUp({},{requestBody:{username, password, email, phone, firstname, lastname, note, domain}}))
66
66
  },
67
67
 
68
68
  confirmSignUp: (confirmationCode, username, displayname, isPublic = true ) => {
@@ -4,7 +4,7 @@ import {chunkArray} from "./utils";
4
4
 
5
5
  let liveBarn = function() {
6
6
  return {
7
- getLiveBarnSurfaceList: ({fulltextPhrase, comingSoon, online, countries, sports, surfaceStatus, feedModes, cities, provinces, venues, ids, size, startKey, sort} = {}) => {
7
+ getLiveBarnSurfaceList: ({fulltextPhrase, comingSoon, online, countries, sports, surfaceStatus, feedModes, cities, provinces, venues, roomId, ids, size, startKey, sort} = {}) => {
8
8
  return chunkArray(ids, 50)
9
9
  .reduce((promiseChain, idsChunk) => {
10
10
  return promiseChain.then(chainResponse => {
@@ -19,6 +19,7 @@ let liveBarn = function() {
19
19
  ...(cities?.length && {cities: cities.join(',')}),
20
20
  ...(provinces?.length && {provinces: provinces.join(',')}),
21
21
  ...(venues?.length && {venues: venues.join(',')}),
22
+ ...(roomId && {roomId}),
22
23
  ...(idsChunk?.length && {ids: idsChunk.join(',')}),
23
24
  ...(size && !ids?.length && {size}),
24
25
  ...(startKey && {startKey}),
@@ -87,7 +87,7 @@ let room = function () {
87
87
  }))
88
88
  },
89
89
 
90
- updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, isLongpolling, videoCodec, customAttributes, dotAttribute} = {}) => {
90
+ updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, isLongpolling, isHostAudioOnly, videoCodec, customAttributes, dotAttribute} = {}) => {
91
91
  let _da = dotAttribute
92
92
  ? (Array.isArray(dotAttribute)
93
93
  ? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
@@ -114,6 +114,7 @@ let room = function () {
114
114
  defaultRegion,
115
115
  isSimulcast,
116
116
  isLongpolling,
117
+ isHostAudioOnly,
117
118
  videoCodec,
118
119
  customAttributes,
119
120
  wtChannelId,
@@ -141,13 +141,17 @@ let user = function () {
141
141
  });
142
142
  }, Promise.resolve({data: {items: [], size: 0, startKey: null}}));
143
143
  },
144
- getUserList: ({type = 'instanceType', roomId, ids, size = 20, startKey = null}) => {
144
+ getUserList: ({type = 'instanceType', roomId, fulltextPhrase, pendingApproval, lb_subscription, lb_admin, ids, size = 20, startKey = null}) => {
145
145
  return chunkArray(ids, 50)
146
146
  .reduce((promiseChain, idsChunk) => {
147
147
  return promiseChain.then(chainResponse => {
148
148
  let apiParams = {
149
149
  type,
150
150
  ...(roomId && {roomId}),
151
+ ...(fulltextPhrase && {fulltextPhrase}),
152
+ ...(pendingApproval !== undefined && {pendingApproval}),
153
+ ...(lb_subscription !== undefined && {lb_subscription}),
154
+ ...(lb_admin !== undefined && {lb_admin}),
151
155
  ...(idsChunk?.length && {ids: idsChunk.join(',')}),
152
156
  ...(size && !ids && {size}),
153
157
  ...(startKey && {startKey})