@@ -198,29 +198,45 @@ interface BaseChannel {
198198 createMessageListQuery ( ) : MessageListQuery ;
199199
200200 /* SendMessage */
201- sendFileMessage ( file : any , callback : Function ) : FileMessage ;
202- sendFileMessage ( file : any , progressHandler : Function , callback : Function ) : FileMessage ;
203- sendFileMessage ( file : any , data : string , callback : Function ) : FileMessage ;
204- sendFileMessage ( file : any , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
205- sendFileMessage ( file : any , data : string , customType : string , callback : Function ) : FileMessage ;
206- sendFileMessage ( file : any , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
207- sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : FileMessage ;
208- sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , progressHandler : Function , callback : Function ) : FileMessage ;
209- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , callback : Function ) : FileMessage ;
210- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
211- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : FileMessage ;
212- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
213- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : FileMessage ;
214- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , progressHandler : Function , callback : Function ) : FileMessage ;
201+ sendFileMessage ( file : File , callback : Function ) : FileMessage ;
202+ sendFileMessage ( file : File , data : string , callback : Function ) : FileMessage ;
203+ sendFileMessage ( file : File , data : string , customType : string , callback : Function ) : FileMessage ;
204+ sendFileMessage ( file : File , data : string , customType : string , thumbnailSizes : Array < ThumbnailSize > , callback : Function ) : FileMessage ;
205+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , callback : Function ) : FileMessage ;
206+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : FileMessage ;
207+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : Array < ThumbnailSize > , callback : Function ) : FileMessage ;
208+
209+ sendFileMessage ( file : File , progressHandler : Function , callback : Function ) : FileMessage ;
210+ sendFileMessage ( file : File , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
211+ sendFileMessage ( file : File , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
212+ sendFileMessage ( file : File , data : string , customType : string , thumbnailSizes : Array < ThumbnailSize > , progressHandler : Function , callback : Function ) : FileMessage ;
213+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
214+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
215+ sendFileMessage ( file : File , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : Array < ThumbnailSize > , progressHandler : Function , callback : Function ) : FileMessage ;
216+
217+ sendFileMessage ( file : string , callback : Function ) : FileMessage ;
218+ sendFileMessage ( file : string , data : string , callback : Function ) : FileMessage ;
219+ sendFileMessage ( file : string , data : string , customType : string , callback : Function ) : FileMessage ;
220+ sendFileMessage ( file : string , name : string , type : string , size : number , data : string , callback : Function ) : FileMessage ;
221+ sendFileMessage ( file : string , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : FileMessage ;
222+
223+ sendFileMessage ( file : string , progressHandler : Function , callback : Function ) : FileMessage ;
224+ sendFileMessage ( file : string , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
225+ sendFileMessage ( file : string , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
226+ sendFileMessage ( file : string , name : string , type : string , size : number , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
227+ sendFileMessage ( file : string , name : string , type : string , size : number , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
215228
216229 sendUserMessage ( message : string , callback : Function ) : UserMessage ;
217230 sendUserMessage ( message : string , data : string , callback : Function ) : UserMessage ;
218231 sendUserMessage ( message : string , data : string , customType : string , callback : Function ) : UserMessage ;
219- sendUserMessage ( message : string , data : string , customType : string , targetLanguages : [ string ] , callback : Function ) : UserMessage ;
232+ sendUserMessage ( message : string , data : string , customType : string , targetLanguages : Array < string > , callback : Function ) : UserMessage ;
220233
221234 /* UpdateMessage */
222- updateUserMessage ( messageId : number , message : string , data : string , customType : string , callback : Function ) : void ;
223235 updateFileMessage ( messageId : number , data : string , customType : string , callback : Function ) : void ;
236+ updateUserMessage ( messageId : number , message : string , data : string , customType : string , callback : Function ) : void ;
237+
238+ /* DeleteMessage */
239+ deleteMessage ( message : FileMessage | UserMessage , callback : Function ) : void ;
224240
225241 /* Cancel File Upload */
226242 cancelUploadingFileMessage ( messageReqId : string , callback : Function ) : boolean ;
@@ -245,8 +261,6 @@ interface BaseChannel {
245261 deleteMetaData ( key : string , callback : Function ) : void ;
246262 deleteAllMetaData ( callback : Function ) : void ;
247263
248- deleteMessage ( message : FileMessage | UserMessage , callback : Function ) : void ;
249-
250264 /* GetMessages */
251265 getNextMessagesByTimestamp ( ts : number , isInclusive : boolean , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
252266 getPreviousMessagesByTimestamp ( ts : number , isInclusive : boolean , prevtResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
@@ -263,7 +277,7 @@ interface ChannelHandlerFactory {
263277
264278interface ChannelHandler_Instance {
265279 onMessageReceived ( channel : GroupChannel | OpenChannel , message : AdminMessage | UserMessage ) : void ;
266- onMessageDeleted ( channel : GroupChannel , messageId : number ) : void ;
280+ onMessageDeleted ( channel : GroupChannel | OpenChannel , messageId : number ) : void ;
267281 onReadReceiptUpdated ( channel : GroupChannel ) : void ;
268282 onTypingStatusUpdated ( channel : GroupChannel ) : void ;
269283 onTypingStatusUpdated ( channel : GroupChannel ) : void ;
@@ -281,14 +295,19 @@ interface ChannelHandler_Instance {
281295 onChannelDeleted ( channelUrl : string ) : void ;
282296 onUserReceivedInvitation ( channel : GroupChannel , inviter : User , invitees : Array < Member > ) : void ;
283297 onUserDeclinedInvitation ( channel : GroupChannel , inviter : User , invitee : Array < Member > ) : void ;
298+ onMetaDataCreated ( channel : GroupChannel | OpenChannel , metaData : Object ) : void ;
299+ onMetaDataUpdated ( channel : GroupChannel | OpenChannel , metaData : Object ) : void ;
300+ onMetaDataDeleted ( channel : GroupChannel | OpenChannel , metaData : Array < string > ) : void ;
301+ onMetaCountersCreated ( channel : GroupChannel | OpenChannel , metaCounter : Object ) : void ;
302+ onMetaCountersUpdated ( channel : GroupChannel | OpenChannel , metaCounter : Object ) : void ;
303+ onMetaCountersDeleted ( channel : GroupChannel | OpenChannel , metaCounter : Array < string > ) : void ;
284304}
285305
286306
287307/**
288308 * Open Channel
289309 */
290310interface OpenChannel extends BaseChannel {
291-
292311 createChannel ( callback : Function ) : void ;
293312 createChannel ( name : string , coverUrlOrImageFile : string | File , data : string , callback : Function ) : void ;
294313 createChannel ( name : string , coverUrlOrImageFile : string | File , data : string , operatorUserIds : Array < string > | string , callback : Function ) : void ;
@@ -362,13 +381,16 @@ interface GroupChannelListQuery {
362381 userIdsFilter : Array < string > ;
363382 userIdsFilterExactMatch : boolean ;
364383 queryType : 'AND' | 'OR' ;
384+ nicknameContainsFilter : string ;
385+ channelNameContainsFilter : string ;
365386 next ( callback ?: Function ) : void ;
366387}
367388
368389interface GroupChannel extends BaseChannel {
369390 isDistinct : boolean ;
370391 isPushEnabled : boolean ;
371392 unreadMessageCount : number ;
393+ inviter : User ;
372394 members : Array < Member > ;
373395 lastMessage : BaseMessage ;
374396 memberCount : number ;
0 commit comments