@reactoo/watchtogether-sdk-js 2.8.26 → 2.8.28
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/room.js
CHANGED
|
@@ -188,13 +188,14 @@ let room = function () {
|
|
|
188
188
|
.then(client => client.apis.wt.getRoomChatList(apiParams))
|
|
189
189
|
},
|
|
190
190
|
|
|
191
|
-
getRoomsList: ({ type = 'participant', activeOnly = null, instanceType = this.__instanceType, size = 20, startKey = null, includeWtEventModels = false, demo = false, viewType = 'list', wtChannelId = undefined} = {}) => {
|
|
191
|
+
getRoomsList: ({ type = 'participant', activeOnly = null, instanceType = this.__instanceType, fulltextPhrase = null, size = 20, startKey = null, includeWtEventModels = false, demo = false, viewType = 'list', wtChannelId = undefined} = {}) => {
|
|
192
192
|
let apiParams = {
|
|
193
193
|
type, instanceType,
|
|
194
194
|
size,
|
|
195
195
|
includeWtEventModels,
|
|
196
196
|
demo,
|
|
197
197
|
viewType,
|
|
198
|
+
...(fulltextPhrase && {fulltextPhrase}),
|
|
198
199
|
...(wtChannelId && {wtChannelId}),
|
|
199
200
|
...(activeOnly && {activeOnly}),
|
|
200
201
|
...(startKey && {startKey})
|
package/src/models/user.js
CHANGED
|
@@ -12,7 +12,14 @@ let user = function () {
|
|
|
12
12
|
|
|
13
13
|
updateUser: (data = {}) => {
|
|
14
14
|
return this.__privates.auth.__client
|
|
15
|
-
.then(client => client.apis.user.updateUser({id: data.id, lastRoomId: data.lastRoomId}, {requestBody: {
|
|
15
|
+
.then(client => client.apis.user.updateUser({id: data.id, lastRoomId: data.lastRoomId}, {requestBody: {
|
|
16
|
+
...(data.displayname && {displayname: data.displayname}),
|
|
17
|
+
...(data.bio && {bio: data.bio}),
|
|
18
|
+
...(data.permissions && {permissions: data.permissions}),
|
|
19
|
+
...(data.customAttributes && {customAttributes: data.customAttributes}),
|
|
20
|
+
...(data.phone && {phone: data.phone}),
|
|
21
|
+
...(data.email && {email: data.email}),
|
|
22
|
+
}}));
|
|
16
23
|
},
|
|
17
24
|
|
|
18
25
|
uploadAvatar: (file, lastRoomId) => {
|