@rongcloud/engine 5.0.1-custom-360.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +22 -4
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v5.0.1
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.0.1
|
|
3
|
+
* CommitId - f1a9d10a1360d232524dd1508679c3094111f838
|
|
4
|
+
* Thu Dec 09 2021 19:34:03 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -876,6 +876,10 @@ interface ISendMsgOptions {
|
|
|
876
876
|
* 20 个字符长度限制
|
|
877
877
|
*/
|
|
878
878
|
channelId?: string;
|
|
879
|
+
/**
|
|
880
|
+
* 客户端的消息标识
|
|
881
|
+
*/
|
|
882
|
+
messageId?: string;
|
|
879
883
|
}
|
|
880
884
|
interface IInsertMsgOptions {
|
|
881
885
|
senderUserId: string;
|
|
@@ -1269,7 +1273,7 @@ declare enum ErrorCode {
|
|
|
1269
1273
|
*/
|
|
1270
1274
|
EXPANSION_LIMIT_EXCEET = 34010,
|
|
1271
1275
|
/**
|
|
1272
|
-
*
|
|
1276
|
+
* 消息不支持扩展,原消息 canIncludeExpansion 值为 false (错误码与移动端对齐)
|
|
1273
1277
|
*/
|
|
1274
1278
|
MESSAGE_KV_NOT_SUPPORT = 34008,
|
|
1275
1279
|
CLEAR_HIS_TIME_ERROR = 34011,
|
|
@@ -1611,6 +1615,10 @@ interface IReceivedConversation {
|
|
|
1611
1615
|
* 搜索到的会话数量
|
|
1612
1616
|
*/
|
|
1613
1617
|
matchCount?: number;
|
|
1618
|
+
/**
|
|
1619
|
+
* @ 消息未读数
|
|
1620
|
+
*/
|
|
1621
|
+
unreadMentionedCount?: number;
|
|
1614
1622
|
}
|
|
1615
1623
|
interface IReceivedConversationByTag extends IReceivedConversation {
|
|
1616
1624
|
isTopInTag: boolean;
|
|
@@ -1655,6 +1663,10 @@ interface IUpdatedConversation {
|
|
|
1655
1663
|
*/
|
|
1656
1664
|
channelId?: string;
|
|
1657
1665
|
tags?: IUpdatedConversation[];
|
|
1666
|
+
/**
|
|
1667
|
+
* @ 消息未读数
|
|
1668
|
+
*/
|
|
1669
|
+
unreadMentionedCount?: number;
|
|
1658
1670
|
}
|
|
1659
1671
|
interface IBaseConversationInfo {
|
|
1660
1672
|
conversationType: ConversationType;
|
|
@@ -2155,6 +2167,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
|
|
|
2155
2167
|
key: string;
|
|
2156
2168
|
value: string;
|
|
2157
2169
|
}[];
|
|
2170
|
+
kvEntries: IServerRTCRoomEntry[];
|
|
2158
2171
|
}
|
|
2159
2172
|
interface KVString {
|
|
2160
2173
|
[key: string]: string;
|
|
@@ -3676,6 +3689,10 @@ declare class WebSocketChannel extends ADataChannel {
|
|
|
3676
3689
|
* @param apiVersion - apiVersion 需符合 `/\d+(\.\d+){2}/` 规则
|
|
3677
3690
|
*/
|
|
3678
3691
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
|
|
3692
|
+
/**
|
|
3693
|
+
* 发起连接请求
|
|
3694
|
+
*/
|
|
3695
|
+
private _connect;
|
|
3679
3696
|
/**
|
|
3680
3697
|
* 当前累计心跳超时次数
|
|
3681
3698
|
*/
|
|
@@ -3725,6 +3742,7 @@ declare class CometChannel extends ADataChannel {
|
|
|
3725
3742
|
* @returns
|
|
3726
3743
|
*/
|
|
3727
3744
|
connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
|
|
3745
|
+
private _connect;
|
|
3728
3746
|
private _idCount;
|
|
3729
3747
|
private _generateMessageId;
|
|
3730
3748
|
sendCometData(writer: BaseWriter, timeout?: number): Promise<void>;
|