1
1
/**
2
- * Type Definitions for SendBird SDK v3.0.83
2
+ * Type Definitions for SendBird SDK v3.0.84
3
3
* homepage: https://sendbird.com/
4
4
* git: https://github.com/smilefam/SendBird-SDK-JavaScript
5
5
*/
@@ -365,6 +365,14 @@ declare namespace SendBird {
365
365
token : string ;
366
366
} ;
367
367
type getMessageChangeLogsByTokenHandler = ( data : messageChangeLogs , error : SendBirdError ) => void ;
368
+ type mutedInfo = {
369
+ isMuted : boolean ;
370
+ startAt : number ;
371
+ endAt : number ;
372
+ remainingDuration : number ;
373
+ description : string ;
374
+ } ;
375
+ type getMyMutedInfoHandler = ( info : mutedInfo , error : SendBirdError ) => void ;
368
376
interface BaseChannel {
369
377
url : string ;
370
378
name : string ;
@@ -381,6 +389,7 @@ declare namespace SendBird {
381
389
382
390
getMessageChangeLogsByToken ( callback : getMessageChangeLogsByTokenHandler ) : void ;
383
391
getMessageChangeLogsByToken ( token : string , callback : getMessageChangeLogsByTokenHandler ) : void ;
392
+ getMyMutedInfo ( callback : getMyMutedInfoHandler ) : void ;
384
393
385
394
createOperatorListQuery ( ) : OperatorListQuery ;
386
395
@@ -792,7 +801,9 @@ declare namespace SendBird {
792
801
unbanUserWithUserId ( userId : string , callback : commonCallback ) : void ;
793
802
794
803
muteUser ( user : User , callback : commonCallback ) : void ;
804
+ muteUser ( user : User , seconds : number , description : string , callback : commonCallback ) : void ;
795
805
muteUserWithUserId ( userId : string , callback : commonCallback ) : void ;
806
+ muteUserWithUserId ( userId : string , seconds : number , description : string , callback : commonCallback ) : void ;
796
807
unmuteUser ( user : User , callback : commonCallback ) : void ;
797
808
unmuteUserWithUserId ( userId : string , callback : commonCallback ) : void ;
798
809
@@ -975,7 +986,9 @@ declare namespace SendBird {
975
986
unbanUserWithUserId ( userId : string , callback : commonCallback ) : void ;
976
987
977
988
muteUser ( user : User , callback : commonCallback ) : void ;
989
+ muteUser ( user : User , seconds : number , description : string , callback : commonCallback ) : void ;
978
990
muteUserWithUserId ( userId : string , callback : commonCallback ) : void ;
991
+ muteUserWithUserId ( userId : string , seconds : number , description : string , callback : commonCallback ) : void ;
979
992
unmuteUser ( user : User , callback : commonCallback ) : void ;
980
993
unmuteUserWithUserId ( userId : string , callback : commonCallback ) : void ;
981
994
@@ -1070,7 +1083,7 @@ declare namespace SendBird {
1070
1083
hasNext : boolean ;
1071
1084
isLoading : boolean ;
1072
1085
includeEmpty : boolean ;
1073
- order : 'latest_last_message' | 'chronological' | 'channel_name_alphabetical' ;
1086
+ order : 'latest_last_message' | 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical' ;
1074
1087
userIdsFilter : Array < string > ; // DEPRECATED
1075
1088
userIdsFilterExactMatch : boolean ; // DEPRECATED
1076
1089
queryType : 'AND' | 'OR' ; // DEPRECATED
@@ -1085,6 +1098,7 @@ declare namespace SendBird {
1085
1098
channelUrlsFilter : Array < string > ;
1086
1099
superChannelFilter : 'all' | 'super' | 'nonsuper' ;
1087
1100
publicChannelFilter : 'all' | 'public' | 'private' ;
1101
+ metadataOrderKeyFilter : string ;
1088
1102
1089
1103
next ( callback : groupChannelListQueryCallback ) : void ;
1090
1104
}
@@ -1094,13 +1108,14 @@ declare namespace SendBird {
1094
1108
hasNext : boolean ;
1095
1109
isLoading : boolean ;
1096
1110
includeEmpty : boolean ;
1097
- order : 'chronological' | 'channel_name_alphabetical' ;
1111
+ order : 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical' ;
1098
1112
channelNameContainsFilter : string ;
1099
1113
channelUrlsFilter : Array < string > ;
1100
1114
customTypesFilter : Array < string > ;
1101
1115
customTypeStartsWithFilter : string ;
1102
1116
superChannelFilter : 'all' | 'super' | 'nonsuper' ;
1103
1117
membershipFilter : 'all' | 'joined' ;
1118
+ metadataOrderKeyFilter : string ;
1104
1119
next ( callback : groupChannelListQueryCallback ) : void ;
1105
1120
}
1106
1121
}
0 commit comments