@rongcloud/engine 4.6.0-beem.2 → 4.6.0-beem.5
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 +88 -9
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- 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 - v4.6.0-beem.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.6.0-beem.5
|
|
3
|
+
* CommitId - be09ae60f45b2f2e97b0f7897216e2bbfbc6a1c5
|
|
4
|
+
* Thu May 12 2022 18:23:09 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1204,7 +1204,19 @@ declare enum RTCMode {
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* 直播模式
|
|
1206
1206
|
*/
|
|
1207
|
-
LIVE = 2
|
|
1207
|
+
LIVE = 2,
|
|
1208
|
+
/**
|
|
1209
|
+
* sip呼叫
|
|
1210
|
+
*/
|
|
1211
|
+
SIP = 4,
|
|
1212
|
+
/**
|
|
1213
|
+
* 呼叫模式.包括单呼和群呼
|
|
1214
|
+
*/
|
|
1215
|
+
CALL = 5,
|
|
1216
|
+
/**
|
|
1217
|
+
* 会议
|
|
1218
|
+
*/
|
|
1219
|
+
MEETING = 6
|
|
1208
1220
|
}
|
|
1209
1221
|
/**
|
|
1210
1222
|
* 直播类型
|
|
@@ -2881,6 +2893,10 @@ declare enum MessageType {
|
|
|
2881
2893
|
* 消息送达报告,仅单聊
|
|
2882
2894
|
*/
|
|
2883
2895
|
DELIVERED = "RC:Delivered",
|
|
2896
|
+
/**
|
|
2897
|
+
* 消息送达状态报告,仅群聊
|
|
2898
|
+
*/
|
|
2899
|
+
DELIVERED_MSG = "RC:DRMsg",
|
|
2884
2900
|
CHATROOM_JOIN = "RC:ChrmJoinNtf",
|
|
2885
2901
|
/**
|
|
2886
2902
|
* 用户退出聊天室
|
|
@@ -3243,6 +3259,14 @@ interface IMessageDeliver {
|
|
|
3243
3259
|
conversationType: ConversationType;
|
|
3244
3260
|
targetId: string;
|
|
3245
3261
|
}
|
|
3262
|
+
interface IGroupMessageDeliveredStatusInfo {
|
|
3263
|
+
MessageUId: string;
|
|
3264
|
+
deliveryCount: number;
|
|
3265
|
+
}
|
|
3266
|
+
interface IGroupMessageDeliverStatus {
|
|
3267
|
+
totalCount: number;
|
|
3268
|
+
list: IGroupMessageDeliveredStatusInfo[];
|
|
3269
|
+
}
|
|
3246
3270
|
|
|
3247
3271
|
/**
|
|
3248
3272
|
* engine 基本接口定义,用于约束 Electron 下主进程、渲染进程、JSEngine 的编码一致性
|
|
@@ -3590,6 +3614,8 @@ interface IEngine {
|
|
|
3590
3614
|
* 获取当前 userId
|
|
3591
3615
|
*/
|
|
3592
3616
|
getCurrentUserId(): string;
|
|
3617
|
+
getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
3618
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
3593
3619
|
/**
|
|
3594
3620
|
* 设置用户在线状态监听器
|
|
3595
3621
|
*/
|
|
@@ -3659,16 +3685,33 @@ interface IEngine {
|
|
|
3659
3685
|
*/
|
|
3660
3686
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
3661
3687
|
/**
|
|
3662
|
-
*
|
|
3663
|
-
|
|
3688
|
+
* 通过关键字与 channelId 搜索所有会话
|
|
3689
|
+
*/
|
|
3664
3690
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3665
3691
|
/**
|
|
3666
|
-
*
|
|
3667
|
-
|
|
3692
|
+
* 通过关键字搜索所有会话
|
|
3693
|
+
*/
|
|
3694
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3695
|
+
/**
|
|
3696
|
+
* 按内容搜索指定会话内的消息
|
|
3697
|
+
*/
|
|
3668
3698
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
3669
3699
|
messages: IReceivedMessage[];
|
|
3670
3700
|
count: number;
|
|
3671
3701
|
}>;
|
|
3702
|
+
/**
|
|
3703
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
3704
|
+
*/
|
|
3705
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
3706
|
+
messages: IReceivedMessage[];
|
|
3707
|
+
count: number;
|
|
3708
|
+
}>;
|
|
3709
|
+
/**
|
|
3710
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
3711
|
+
*/
|
|
3712
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
3713
|
+
messages: IReceivedMessage[];
|
|
3714
|
+
}>;
|
|
3672
3715
|
/**
|
|
3673
3716
|
* 获取会话下所有未读的 @ 消息
|
|
3674
3717
|
*/
|
|
@@ -3799,6 +3842,7 @@ declare type ITagListener = () => void;
|
|
|
3799
3842
|
declare type IConversationTagListener = () => void;
|
|
3800
3843
|
declare type ItypingStateListener = (data: ITypingMessage[]) => void;
|
|
3801
3844
|
declare type IMessageDeliveredListener = (data: IMessageDeliver[]) => void;
|
|
3845
|
+
declare type IGroupMessageDeliveredStatusListener = (data: IGroupMessageDeliverStatus) => void;
|
|
3802
3846
|
declare type IMessageBlockedListener = (data: IBlockedMessageInfo) => void;
|
|
3803
3847
|
interface ISendExMsgOptions {
|
|
3804
3848
|
channelId: string;
|
|
@@ -3863,6 +3907,10 @@ interface IWatcher {
|
|
|
3863
3907
|
* 单聊消息送达通知
|
|
3864
3908
|
*/
|
|
3865
3909
|
messageDelivered?: IMessageDeliveredListener;
|
|
3910
|
+
/**
|
|
3911
|
+
* 群聊消息送达状态通知
|
|
3912
|
+
*/
|
|
3913
|
+
groupMessageDeliveredStatus?: IGroupMessageDeliveredStatusListener;
|
|
3866
3914
|
messageBlocked?: IMessageBlockedListener;
|
|
3867
3915
|
}
|
|
3868
3916
|
interface IPluginGenerator<API, InitOption> {
|
|
@@ -4019,6 +4067,7 @@ declare class APIContext {
|
|
|
4019
4067
|
private _typingStatusListener;
|
|
4020
4068
|
private _pullFinishedListener;
|
|
4021
4069
|
private _messageDeliveredListerer;
|
|
4070
|
+
private _groupMessageDeliveredStatusListerer;
|
|
4022
4071
|
private _MessageBlockedListener;
|
|
4023
4072
|
private _callInfoListener;
|
|
4024
4073
|
/**
|
|
@@ -4462,10 +4511,18 @@ declare class APIContext {
|
|
|
4462
4511
|
status: string;
|
|
4463
4512
|
}>>;
|
|
4464
4513
|
searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4514
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4465
4515
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
4466
4516
|
messages: IReceivedMessage[];
|
|
4467
4517
|
count: number;
|
|
4468
4518
|
}>>;
|
|
4519
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
|
|
4520
|
+
messages: IReceivedMessage[];
|
|
4521
|
+
count: number;
|
|
4522
|
+
}>>;
|
|
4523
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
|
|
4524
|
+
messages: IReceivedMessage[];
|
|
4525
|
+
}>>;
|
|
4469
4526
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
4470
4527
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
4471
4528
|
/**
|
|
@@ -4488,6 +4545,8 @@ declare class APIContext {
|
|
|
4488
4545
|
key: string;
|
|
4489
4546
|
value: string;
|
|
4490
4547
|
}>;
|
|
4548
|
+
getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4549
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4491
4550
|
/**
|
|
4492
4551
|
* 加入房间
|
|
4493
4552
|
* @param roomId
|
|
@@ -4684,6 +4743,7 @@ interface IEngineWatcher {
|
|
|
4684
4743
|
onRTCDataChange: (data: IServerRTCRoomEntry[], roomId?: string) => void;
|
|
4685
4744
|
pullFinished: () => void;
|
|
4686
4745
|
messageDelivered: (data: IMessageDeliver[]) => void;
|
|
4746
|
+
groupMessageDeliveredStatus: (data: IGroupMessageDeliverStatus) => void;
|
|
4687
4747
|
callInfo: (data: string) => void;
|
|
4688
4748
|
}
|
|
4689
4749
|
/**
|
|
@@ -5073,6 +5133,8 @@ declare abstract class AEngine implements IEngine {
|
|
|
5073
5133
|
* 获取当前 userId
|
|
5074
5134
|
*/
|
|
5075
5135
|
abstract getCurrentUserId(): string;
|
|
5136
|
+
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5137
|
+
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5076
5138
|
/**
|
|
5077
5139
|
* 设置用户在线状态监听器
|
|
5078
5140
|
*/
|
|
@@ -5145,6 +5207,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5145
5207
|
* 通过关键字搜索会话
|
|
5146
5208
|
*/
|
|
5147
5209
|
abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5210
|
+
/**
|
|
5211
|
+
* 通过关键字搜索所有会话
|
|
5212
|
+
*/
|
|
5213
|
+
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5148
5214
|
/**
|
|
5149
5215
|
* 按内容搜索会话内的消息
|
|
5150
5216
|
*/
|
|
@@ -5152,6 +5218,19 @@ declare abstract class AEngine implements IEngine {
|
|
|
5152
5218
|
messages: IReceivedMessage[];
|
|
5153
5219
|
count: number;
|
|
5154
5220
|
}>;
|
|
5221
|
+
/**
|
|
5222
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
5223
|
+
*/
|
|
5224
|
+
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
5225
|
+
messages: IReceivedMessage[];
|
|
5226
|
+
count: number;
|
|
5227
|
+
}>;
|
|
5228
|
+
/**
|
|
5229
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
5230
|
+
*/
|
|
5231
|
+
abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
5232
|
+
messages: IReceivedMessage[];
|
|
5233
|
+
}>;
|
|
5155
5234
|
/**
|
|
5156
5235
|
* 获取会话下所有未读的 @ 消息
|
|
5157
5236
|
*/
|
|
@@ -5695,4 +5774,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5695
5774
|
*/
|
|
5696
5775
|
declare const version: string;
|
|
5697
5776
|
|
|
5698
|
-
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEngine, IEngineWatcher, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGroupMessageDeliverInfo, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageBlockedListener, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntriesOption, IRemoveChatRoomEntryOption, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|
|
5777
|
+
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEngine, IEngineWatcher, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusListener, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageBlockedListener, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntriesOption, IRemoveChatRoomEntryOption, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|