@rongcloud/engine 5.7.1 → 5.7.2
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 +56 -5
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2151,6 +2151,37 @@ interface IInsertMsgOptions {
|
|
|
2151
2151
|
expansionMsg?: string;
|
|
2152
2152
|
channelId: string;
|
|
2153
2153
|
}
|
|
2154
|
+
interface IInsertMessage {
|
|
2155
|
+
conversationType: number;
|
|
2156
|
+
targetId: string;
|
|
2157
|
+
channelId: string;
|
|
2158
|
+
messageDirection: number;
|
|
2159
|
+
messageType: string;
|
|
2160
|
+
content: any;
|
|
2161
|
+
messageUId: string;
|
|
2162
|
+
senderUserId: string;
|
|
2163
|
+
sentStatus?: number;
|
|
2164
|
+
sentTime?: number;
|
|
2165
|
+
disableNotification?: boolean;
|
|
2166
|
+
canIncludeExpansion?: boolean;
|
|
2167
|
+
expansion?: {
|
|
2168
|
+
[key: string]: any;
|
|
2169
|
+
} | null;
|
|
2170
|
+
receivedStatus?: number;
|
|
2171
|
+
/**
|
|
2172
|
+
* 插入消息是否计入未读数: true 计数 false 不计数, 默认不计数
|
|
2173
|
+
*/
|
|
2174
|
+
isUnread?: boolean;
|
|
2175
|
+
/**
|
|
2176
|
+
* 消息搜索关键字
|
|
2177
|
+
*/
|
|
2178
|
+
searchContent?: string;
|
|
2179
|
+
/**
|
|
2180
|
+
* 来源
|
|
2181
|
+
*/
|
|
2182
|
+
source?: string;
|
|
2183
|
+
isMentioned?: boolean;
|
|
2184
|
+
}
|
|
2154
2185
|
interface ISendExMsgOptions {
|
|
2155
2186
|
channelId: string;
|
|
2156
2187
|
conversationType: ConversationType;
|
|
@@ -5010,7 +5041,7 @@ declare class APIContext {
|
|
|
5010
5041
|
getServerTime(): number;
|
|
5011
5042
|
getDeviceId(): string;
|
|
5012
5043
|
getCurrentUserId(): string;
|
|
5013
|
-
getConnectionStatus():
|
|
5044
|
+
getConnectionStatus(): RCConnectionStatus;
|
|
5014
5045
|
get token(): string;
|
|
5015
5046
|
refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
5016
5047
|
/**
|
|
@@ -5523,6 +5554,11 @@ declare class APIContext {
|
|
|
5523
5554
|
* 向本地插入一条消息,不发送到服务器
|
|
5524
5555
|
*/
|
|
5525
5556
|
insertMessage(conversationType: ConversationType, targetId: string, insertOptions: IInsertMsgOptions): Promise<IAsyncRes<IReceivedMessage>>;
|
|
5557
|
+
batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<boolean>>;
|
|
5558
|
+
/**
|
|
5559
|
+
* 获取会话所有消息数
|
|
5560
|
+
*/
|
|
5561
|
+
getMessageCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<number>>;
|
|
5526
5562
|
/**
|
|
5527
5563
|
* 删除本地消息
|
|
5528
5564
|
*/
|
|
@@ -5772,7 +5808,7 @@ declare class PluginContext {
|
|
|
5772
5808
|
/**
|
|
5773
5809
|
* 获取当前连接状态
|
|
5774
5810
|
*/
|
|
5775
|
-
getConnectionStatus():
|
|
5811
|
+
getConnectionStatus(): RCConnectionStatus;
|
|
5776
5812
|
getDeviceId(): string;
|
|
5777
5813
|
/**
|
|
5778
5814
|
* 发送消息
|
|
@@ -6600,6 +6636,16 @@ declare abstract class AEngine {
|
|
|
6600
6636
|
* 向本地插入一条消息,不发送到服务器
|
|
6601
6637
|
*/
|
|
6602
6638
|
abstract insertMessage(conversationType: ConversationType, targetId: string, insertOptions: IInsertMsgOptions): IPromiseResult<IReceivedMessage>;
|
|
6639
|
+
/**
|
|
6640
|
+
* 向本地批量插入消息
|
|
6641
|
+
* @param messages
|
|
6642
|
+
* @param checkDuplicate
|
|
6643
|
+
*/
|
|
6644
|
+
abstract batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): IPromiseResult<boolean>;
|
|
6645
|
+
/**
|
|
6646
|
+
* 查询会话消息数
|
|
6647
|
+
*/
|
|
6648
|
+
abstract getMessageCount(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<number>;
|
|
6603
6649
|
/**
|
|
6604
6650
|
* 删除本地消息
|
|
6605
6651
|
*/
|
|
@@ -7363,8 +7409,13 @@ declare const REAT_TIME_LOG_SIZE: number;
|
|
|
7363
7409
|
declare const DB_LOG_MAX_SIZE = 100000;
|
|
7364
7410
|
declare const DB_LOG_FLUSH_FREQUENCY = 3000;
|
|
7365
7411
|
declare const ONE_LOG_SIZE_MAX = 1000;
|
|
7366
|
-
/**
|
|
7367
|
-
declare const
|
|
7412
|
+
/** 日志上报默认策略 */
|
|
7413
|
+
declare const DEFAULT_LOG_POLICY: {
|
|
7414
|
+
url: string;
|
|
7415
|
+
level: number;
|
|
7416
|
+
itv: number;
|
|
7417
|
+
times: number;
|
|
7418
|
+
};
|
|
7368
7419
|
/** SDK 版本号 */
|
|
7369
7420
|
declare const VERSION: string;
|
|
7370
7421
|
/**
|
|
@@ -7384,4 +7435,4 @@ declare type AbsCodec<T> = Codec<T>;
|
|
|
7384
7435
|
*/
|
|
7385
7436
|
declare const version: string;
|
|
7386
7437
|
|
|
7387
|
-
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,
|
|
7438
|
+
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, DEFAULT_LOG_POLICY, 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, IInsertMessage, 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, 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 };
|