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 ;
0 commit comments