@@ -56,6 +56,10 @@ interface SendBird_Instance {
5656 createUserListQuery ( ) : UserListQuery ;
5757 createBlockedUserListQuery ( ) : UserListQuery ;
5858
59+ // Background/Foreground Appstate for push notifications in React Native / Ionic
60+ setBackgroundState ( ) : void ;
61+ setForegroundState ( ) : void ;
62+
5963 currentUser : User ;
6064 GroupChannel : GroupChannel ;
6165 OpenChannel : OpenChannel ;
@@ -105,6 +109,7 @@ interface BaseMessage {
105109 createdAt : number ;
106110 channelType : string ;
107111 messageType : string ;
112+ customType : string ;
108113}
109114
110115interface AdminMessage extends BaseMessage {
@@ -154,6 +159,7 @@ interface BaseChannel {
154159 coverUrl : string ;
155160 createdAt : number ;
156161 data : string ;
162+ customType : string ;
157163
158164 createPreviousMessageListQuery ( ) : PreviousMessageListQuery ;
159165 createMessageListQuery ( ) : MessageListQuery ;
@@ -189,6 +195,15 @@ interface BaseChannel {
189195 deleteAllMetaData ( callback : Function ) : void ;
190196
191197 deleteMessage ( message : FileMessage | UserMessage , callback : Function ) : void ;
198+
199+ /* GetMessages */
200+ getNextMessagesByTimestamp ( ts : number , isInclusive : boolean , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
201+ getPreviousMessagesByTimestamp ( ts : number , isInclusive : boolean , prevtResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
202+ getPreviousAndNextMessagesByTimestamp ( ts : number , prevtResultSize : number , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
203+ getNextMessagesByID ( messageId : number , isInclusive : boolean , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
204+ getPreviousMessagesByID ( messageId : number , isInclusive : boolean , prevtResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
205+ getPreviousAndNextMessagesByID ( messageId : number , prevtResultSize : number , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
206+
192207}
193208
194209interface ChannelHandlerFactory {
@@ -197,7 +212,7 @@ interface ChannelHandlerFactory {
197212
198213interface ChannelHandler_Instance {
199214 onMessageReceived ( channel : GroupChannel | OpenChannel , message : AdminMessage | UserMessage ) : void ;
200- onMessageDeleted ( channel : GroupChannel , messageId : string ) : void ;
215+ onMessageDeleted ( channel : GroupChannel , messageId : number ) : void ;
201216 onReadReceiptUpdated ( channel : GroupChannel ) : void ;
202217 onTypingStatusUpdated ( channel : GroupChannel ) : void ;
203218 onTypingStatusUpdated ( channel : GroupChannel ) : void ;
@@ -224,6 +239,7 @@ interface OpenChannel extends BaseChannel {
224239 createChannel ( callback : Function ) : void ;
225240 createChannel ( name : string , coverUrl : string , data : any , callback : Function ) : void ;
226241 createChannel ( name : string , coverUrl : string , data : any , operatorUserIds : any , callback : Function ) : void ;
242+ createChannel ( name : string , coverUrl : string , data : any , operatorUserIds : any , customType : Function , callback : Function ) : void ;
227243
228244 enter ( callback : Function ) : void ;
229245 exit ( callback : Function ) : void ;
@@ -283,7 +299,9 @@ interface GroupChannel extends BaseChannel {
283299 createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
284300 createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
285301 createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , callback : Function ) : void ;
302+ createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , customType : string , callback : Function ) : void ;
286303 createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , callback : Function ) : void ;
304+ createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , customType : string , callback : Function ) : void ;
287305
288306 getChannel ( channelUrl : string , callback : Function ) : void ;
289307
0 commit comments