@rongcloud/engine 5.7.0-beem.1 → 5.7.0-beem.10
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/index.d.ts +61 -9
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1473,6 +1473,37 @@ declare enum ChatroomUserChangeType {
|
|
|
1473
1473
|
JOIN = 1
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
+
/**
|
|
1477
|
+
* 发送状态
|
|
1478
|
+
* @category Enum
|
|
1479
|
+
*/
|
|
1480
|
+
declare enum SentStatus {
|
|
1481
|
+
/**
|
|
1482
|
+
* 发送中。
|
|
1483
|
+
*/
|
|
1484
|
+
SENDING = 10,
|
|
1485
|
+
/**
|
|
1486
|
+
* 发送失败。
|
|
1487
|
+
*/
|
|
1488
|
+
FAILED = 20,
|
|
1489
|
+
/**
|
|
1490
|
+
* 已发送。
|
|
1491
|
+
*/
|
|
1492
|
+
SENT = 30,
|
|
1493
|
+
/**
|
|
1494
|
+
* 对方已接收。
|
|
1495
|
+
*/
|
|
1496
|
+
RECEIVED = 40,
|
|
1497
|
+
/**
|
|
1498
|
+
* 对方已读。
|
|
1499
|
+
*/
|
|
1500
|
+
READ = 50,
|
|
1501
|
+
/**
|
|
1502
|
+
* 对方已销毁。
|
|
1503
|
+
*/
|
|
1504
|
+
DESTROYED = 60
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1476
1507
|
declare enum StoreKeys {
|
|
1477
1508
|
/**
|
|
1478
1509
|
* Navi 数据缓存,暂未使用
|
|
@@ -1857,13 +1888,13 @@ interface IReceivedMessage {
|
|
|
1857
1888
|
*/
|
|
1858
1889
|
receivedStatus: number;
|
|
1859
1890
|
/**
|
|
1860
|
-
*
|
|
1891
|
+
* 消息本地 ID, web 端由 lib 内生成, PC 端由协议栈数据库生成自增ID
|
|
1861
1892
|
*/
|
|
1862
1893
|
messageId?: number;
|
|
1863
1894
|
/**
|
|
1864
|
-
*
|
|
1895
|
+
* 消息发送状态, web 端由 lib 内根据消息状态设置值为 发送中、已发送和发送失败 ,PC 端由协议栈自动维护或用户自己设置
|
|
1865
1896
|
*/
|
|
1866
|
-
sentStatus?:
|
|
1897
|
+
sentStatus?: SentStatus;
|
|
1867
1898
|
/**
|
|
1868
1899
|
* 已读回执信息(导航配置grpRRVer=1时群组类型消息内存在, 其他情况为undefined)
|
|
1869
1900
|
*/
|
|
@@ -1884,6 +1915,10 @@ interface IReceivedMessage {
|
|
|
1884
1915
|
* 拉取历史消息时表示该消息是否为超级群频道类型(仅超级群有效)
|
|
1885
1916
|
*/
|
|
1886
1917
|
channelType?: UltraGroupChannelType;
|
|
1918
|
+
/**
|
|
1919
|
+
* 扩展内容
|
|
1920
|
+
*/
|
|
1921
|
+
extraContent?: string;
|
|
1887
1922
|
}
|
|
1888
1923
|
/**
|
|
1889
1924
|
* @category Interface
|
|
@@ -2102,6 +2137,10 @@ interface ISendMsgOptions {
|
|
|
2102
2137
|
* 超级群专有字段,是否断档,若断档需要客户判断是否拉取
|
|
2103
2138
|
*/
|
|
2104
2139
|
isInterrupt?: boolean;
|
|
2140
|
+
/**
|
|
2141
|
+
* 标识该消息是否为重发消息,仅 electron 中有效。
|
|
2142
|
+
*/
|
|
2143
|
+
isResend?: boolean;
|
|
2105
2144
|
}
|
|
2106
2145
|
interface IInsertMsgOptions {
|
|
2107
2146
|
senderUserId: string;
|
|
@@ -3559,7 +3598,7 @@ declare abstract class AConnectionMgr {
|
|
|
3559
3598
|
* 关闭连接
|
|
3560
3599
|
* @param inReconnect
|
|
3561
3600
|
*/
|
|
3562
|
-
protected abstract close(inReconnect: boolean): void;
|
|
3601
|
+
protected abstract close(inReconnect: boolean, closeDB?: boolean): void;
|
|
3563
3602
|
/**
|
|
3564
3603
|
* 完成一次 ping 过程,并返回响应状态码
|
|
3565
3604
|
* @param timeout 超时时间
|
|
@@ -3568,7 +3607,7 @@ declare abstract class AConnectionMgr {
|
|
|
3568
3607
|
/**
|
|
3569
3608
|
* 业务层主动断开连接时调用
|
|
3570
3609
|
*/
|
|
3571
|
-
disconnect(): Promise<void>;
|
|
3610
|
+
disconnect(closeDB?: boolean): Promise<void>;
|
|
3572
3611
|
/**
|
|
3573
3612
|
* 清理重连计时器
|
|
3574
3613
|
*/
|
|
@@ -3788,7 +3827,7 @@ interface IEngine {
|
|
|
3788
3827
|
/**
|
|
3789
3828
|
* 断开连接
|
|
3790
3829
|
*/
|
|
3791
|
-
disconnect(): void;
|
|
3830
|
+
disconnect(closeDB?: boolean): void;
|
|
3792
3831
|
/**
|
|
3793
3832
|
* 拉取用户级配置数据
|
|
3794
3833
|
*/
|
|
@@ -4026,6 +4065,10 @@ interface IEngine {
|
|
|
4026
4065
|
* 获取消息
|
|
4027
4066
|
*/
|
|
4028
4067
|
getMessage(messageId: number | string): IPromiseResult<IReceivedMessage>;
|
|
4068
|
+
/**
|
|
4069
|
+
* 设置消息附加信息
|
|
4070
|
+
*/
|
|
4071
|
+
setTextMessageExtra(messageId: number, content: any): Promise<ErrorCode>;
|
|
4029
4072
|
/**
|
|
4030
4073
|
* 设置消息内容
|
|
4031
4074
|
*/
|
|
@@ -4995,7 +5038,7 @@ declare class APIContext {
|
|
|
4995
5038
|
设置 reconnectKickEnable 为 true 时,SDK 重连的时候发现此时已有别的设备连接成功,不再强行踢出已有设备,而是踢出重连设备。
|
|
4996
5039
|
*/
|
|
4997
5040
|
connect(token: string, reconnectKickEnable: boolean, traceId: string): Promise<IConnectResult>;
|
|
4998
|
-
disconnect(): Promise<void>;
|
|
5041
|
+
disconnect(closeDB?: boolean): Promise<void>;
|
|
4999
5042
|
reconnect(reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
5000
5043
|
private _getTokenWithoutNavi;
|
|
5001
5044
|
/**
|
|
@@ -5507,6 +5550,10 @@ declare class APIContext {
|
|
|
5507
5550
|
* 获取本地消息
|
|
5508
5551
|
*/
|
|
5509
5552
|
getMessage(messageId: number | string): Promise<IAsyncRes<IReceivedMessage>>;
|
|
5553
|
+
/**
|
|
5554
|
+
* 设置消息附加信息
|
|
5555
|
+
*/
|
|
5556
|
+
setTextMessageExtra(messageId: number, value: string): Promise<ErrorCode>;
|
|
5510
5557
|
/**
|
|
5511
5558
|
* 设置消息内容
|
|
5512
5559
|
*/
|
|
@@ -6258,8 +6305,9 @@ declare abstract class AEngine {
|
|
|
6258
6305
|
abstract getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
6259
6306
|
/**
|
|
6260
6307
|
* 断开连接
|
|
6308
|
+
* @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
|
|
6261
6309
|
*/
|
|
6262
|
-
abstract disconnect(): Promise<void>;
|
|
6310
|
+
abstract disconnect(closeDB?: boolean): Promise<void>;
|
|
6263
6311
|
/**
|
|
6264
6312
|
* 拉取用户级配置数据
|
|
6265
6313
|
*/
|
|
@@ -6579,6 +6627,10 @@ declare abstract class AEngine {
|
|
|
6579
6627
|
* 获取消息
|
|
6580
6628
|
*/
|
|
6581
6629
|
abstract getMessage(messageId: number | string): IPromiseResult<IReceivedMessage>;
|
|
6630
|
+
/**
|
|
6631
|
+
* 设置消息附加信息
|
|
6632
|
+
*/
|
|
6633
|
+
abstract setTextMessageExtra(messageId: number, value: string): Promise<ErrorCode>;
|
|
6582
6634
|
/**
|
|
6583
6635
|
* 设置消息内容
|
|
6584
6636
|
*/
|
|
@@ -7343,4 +7395,4 @@ declare type AbsCodec<T> = Codec<T>;
|
|
|
7343
7395
|
*/
|
|
7344
7396
|
declare const version: string;
|
|
7345
7397
|
|
|
7346
|
-
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString, LOG_REPORT_URI, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RCConnectionStatus, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, StoreKeys, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VERSION, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, deInitLogDB, logger as engineLogger, forEach, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, initLogDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, transcsv, usingCppEngine, validate, version };
|
|
7398
|
+
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString, LOG_REPORT_URI, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RCConnectionStatus, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, SentStatus, StoreKeys, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VERSION, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, deInitLogDB, logger as engineLogger, forEach, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, initLogDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, transcsv, usingCppEngine, validate, version };
|