@reactoo/watchtogether-sdk-js 2.8.25 → 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
package/src/models/auth.js
CHANGED
|
@@ -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 ) => {
|
package/src/models/live-barn.js
CHANGED
|
@@ -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}),
|
package/src/models/user.js
CHANGED
|
@@ -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})
|