Skip to content

Commit 1593af1

Browse files
committed
v3.0.86
1 parent a92acb7 commit 1593af1

File tree

6 files changed

+77
-21
lines changed

6 files changed

+77
-21
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
## v3.0.86(NOV 8, 2018)
5+
* Added `ApplicationUserListQuery`.
6+
* It is used to get users created in the application.
7+
* It could be derived by `createApplicationUserListQuery()` in `SendBird`.
8+
* `userIdsFilter`: use to filter through userIds to get users.
9+
* `metaDataKeyFilter`: use to filter by user's metaData to get users. If you set this value, you should set `metaDataValuesFilter` too.
10+
* `metaDataValuesFilter`: use to filter by user's metaData to get users. If you set this value, you should set `metaDataKeyFilter` too.
11+
* Added `userIdsFilter` in `BlockedUserListQuery` to get filtered by userIds among users blocked by currentUser.
12+
* Deprecated `createUserListQuery()` in `SendBird`. We recommend that you use `createApplicationUserListQuery()`.
13+
414
## v3.0.85(OCT 31, 2018)
515
* Added `ScheduledUserMessage` feature to send `UserMessage` at the time specified by a user.
616
* Added `ScheduledUserMessage` that is a scheduled `UserMessage`.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SendBird JavaScript SDK
2424
# TypeScript
2525
Install via NPM and import like below in your TypeScript file:
2626
```javascript
27-
import * as SendBird from 'SendBird';
27+
import * as SendBird from 'sendbird';
2828
var sb = new SendBird({'appId': 'APP_ID'});
2929
// do something...
3030
```
@@ -49,7 +49,7 @@ For more information about `SyncManager`, please refer to [SyncManager README](h
4949

5050
# [Documentation](https://docs.sendbird.com/javascript)
5151

52-
## v3.0.85(OCT 31, 2018)
52+
## v3.0.86(OCT 31, 2018)
5353
If you want to check the record of other version, go to [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
5454
* Added `ScheduledUserMessage` feature to send `UserMessage` at the time specified by a user.
5555
* Added `ScheduledUserMessage` that is a scheduled `UserMessage`.

SendBird.d.ts

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird SDK v3.0.85
2+
* Type Definitions for SendBird SDK v3.0.86
33
* homepage: https://sendbird.com/
44
* git: https://github.com/smilefam/SendBird-SDK-JavaScript
55
*/
@@ -85,9 +85,11 @@ declare namespace SendBird {
8585
removeUserEventHandler(id: string): void;
8686
removeAllUserEventHandler(): void;
8787

88-
createUserListQuery(): UserListQuery;
89-
createUserListQuery(userIds: Array<string>): UserListQuery;
90-
createBlockedUserListQuery(): UserListQuery;
88+
createUserListQuery(): UserListQuery; // DEPRECATED
89+
createUserListQuery(userIds: Array<string>): UserListQuery; // DEPRECATED
90+
createApplicationUserListQuery(): ApplicationUserListQuery;
91+
92+
createBlockedUserListQuery(): BlockedUserListQuery;
9193

9294
blockUser(userToBlock: User, callback?: userCallback): void;
9395
blockUserWithUserId(userToBlock: string, callback?: userCallback): void;
@@ -847,9 +849,9 @@ declare namespace SendBird {
847849
enter(callback: openChannelCallback): void;
848850
exit(callback: openChannelCallback): void;
849851

850-
createParticipantListQuery(): UserListQuery;
851-
createMutedUserListQuery(): UserListQuery;
852-
createBannedUserListQuery(): UserListQuery;
852+
createParticipantListQuery(): ParticipantListQuery;
853+
createMutedUserListQuery(): MutedUserListQuery;
854+
createBannedUserListQuery(): BannedUserListQuery;
853855

854856
updateChannel(name: string, coverUrl: string, data: string, callback: openChannelCallback): void;
855857
updateChannel(
@@ -903,7 +905,7 @@ declare namespace SendBird {
903905
}
904906

905907
type userListQueryCallback = (userList: Array<User>, error: SendBirdError) => void;
906-
interface UserListQuery {
908+
interface UserListQuery { // DEPRECATED
907909
limit: number;
908910
hasNext: boolean;
909911
isLoading: boolean;
@@ -913,6 +915,50 @@ declare namespace SendBird {
913915
next(callback: userListQueryCallback): void;
914916
}
915917

918+
interface ApplicationUserListQuery {
919+
limit: number;
920+
hasNext: boolean;
921+
isLoading: boolean;
922+
userIdsFilter: Array<string>;
923+
metaDataKeyFilter: string;
924+
metaDataValuesFilter: Array<string>;
925+
926+
next(callback: userListQueryCallback): void;
927+
}
928+
929+
interface BlockedUserListQuery {
930+
limit: number;
931+
hasNext: boolean;
932+
isLoading: boolean;
933+
userIdsFilter: Array<string>;
934+
935+
next(callback: userListQueryCallback): void;
936+
}
937+
938+
interface ParticipantListQuery {
939+
limit: number;
940+
hasNext: boolean;
941+
isLoading: boolean;
942+
943+
next(callback: userListQueryCallback): void;
944+
}
945+
946+
interface MutedUserListQuery {
947+
limit: number;
948+
hasNext: boolean;
949+
isLoading: boolean;
950+
951+
next(callback: userListQueryCallback): void;
952+
}
953+
954+
interface BannedUserListQuery {
955+
limit: number;
956+
hasNext: boolean;
957+
isLoading: boolean;
958+
959+
next(callback: userListQueryCallback): void;
960+
}
961+
916962
interface OperatorListQuery {
917963
limit: number;
918964
hasNext: boolean;
@@ -1125,7 +1171,7 @@ declare namespace SendBird {
11251171
setMyCountPreference(preference: 'all' | 'unread_message_count_only' | 'unread_mention_count_only' | 'off', callback: commonCallback): void;
11261172

11271173
createMemberListQuery(): GroupChannelMemberListQuery;
1128-
createBannedUserListQuery(): UserListQuery;
1174+
createBannedUserListQuery(): BannedUserListQuery;
11291175

11301176
banUser(user: User, seconds: number, description: string, callback: commonCallback): void;
11311177
banUserWithUserId(userId: string, seconds: number, description: string, callback: commonCallback): void;

SendBird.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.85",
3+
"version": "3.0.86",
44
"authors": ["SendBird <[email protected]>"],
55
"homepage": "https://github.com/smilefam/SendBird-SDK-JavaScript",
66
"description": "SendBird JavaScript SDK",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.85",
3+
"version": "3.0.86",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)