@rongcloud/engine 5.1.0 → 5.1.1-custom-qihoo.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCEngine - v5.1.0
3
- * CommitId - a336c0de6ae1d26b24ec675889d919bcb2195568
4
- * Fri Jan 07 2022 15:56:12 GMT+0800 (China Standard Time)
2
+ * RCEngine - v5.1.1-custom-qihoo.1
3
+ * CommitId - 6d3b3f993e4c20bcb8f5ebd44d47ac0c94cb46df
4
+ * Thu Jan 20 2022 18:35:17 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  /**
@@ -980,6 +980,10 @@ declare enum ErrorCode {
980
980
  EXTRA_METHOD_UNDEFINED = -4,
981
981
  /** 主进程内方法错误 */
982
982
  MAIN_PROCESS_ERROR = -5,
983
+ /**
984
+ * 参数变更
985
+ */
986
+ PARAMETER_CHANGED = -6,
983
987
  /**
984
988
  * 成功
985
989
  */
@@ -1679,6 +1683,10 @@ interface IBaseConversationInfo {
1679
1683
  targetId: string;
1680
1684
  channelId: string;
1681
1685
  }
1686
+ interface IConversationState extends IBaseConversationInfo {
1687
+ unreadCount: number;
1688
+ unreadMentionedCount: number;
1689
+ }
1682
1690
 
1683
1691
  /**
1684
1692
  * 导航信息数据就结构
@@ -3031,8 +3039,9 @@ interface IEngine {
3031
3039
  * @param isPersited 是否存储
3032
3040
  * @param isCounted 是否技术
3033
3041
  * @param searchProps 搜索字段,只在搭配协议栈使用时有效
3042
+ * @param isStatusMessage 是否是状态消息
3034
3043
  */
3035
- registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps: string[]): void;
3044
+ registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps: string[], isStatusMessage: boolean): void;
3036
3045
  /**
3037
3046
  * 加入聊天室
3038
3047
  * @param count 拉取消息数量
@@ -3192,6 +3201,8 @@ interface IEngine {
3192
3201
  * 获取当前 userId
3193
3202
  */
3194
3203
  getCurrentUserId(): string;
3204
+ getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
3205
+ getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
3195
3206
  /**
3196
3207
  * 设置用户在线状态监听器
3197
3208
  */
@@ -3972,10 +3983,8 @@ interface IWatcher {
3972
3983
  onDisconnect?: () => void;
3973
3984
  onSuspend?: () => void;
3974
3985
  readReceiptReceived?: (conversation: IConversationOption, messageUId: string, sentTime: number) => void;
3975
- messageReceiptRequest?: (conversation: IConversationOption, messageUId: string) => void;
3976
- messageReceiptResponse?: (conversation: IConversationOption, messageUId: string, sender: {
3977
- [responseUserIdList: string]: number;
3978
- }) => void;
3986
+ messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
3987
+ messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
3979
3988
  /**
3980
3989
  * 敏感词被拦截监听
3981
3990
  */
@@ -4172,8 +4181,9 @@ declare class APIContext {
4172
4181
  * @param isPersited 是否存储
4173
4182
  * @param isCounted 是否技术
4174
4183
  * @param searchProps 搜索字段,只在搭配协议栈使用时有效
4184
+ * @param isStatusMessage 是否是状态消息
4175
4185
  */
4176
- registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps?: string[]): void;
4186
+ registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps?: string[], isStatusMessage?: boolean): void;
4177
4187
  /**
4178
4188
  * 发送消息
4179
4189
  * @param conversationType
@@ -4491,6 +4501,10 @@ declare class APIContext {
4491
4501
  * 获取所有群聊会话 @ 消息未读数
4492
4502
  */
4493
4503
  getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
4504
+ /**
4505
+ * 获取本地全部会话的状态
4506
+ */
4507
+ getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
4494
4508
  /**
4495
4509
  * 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
4496
4510
  * 对于未实现的方法,接口响应 Unsupport 错误码
@@ -4589,6 +4603,8 @@ declare class APIContext {
4589
4603
  list: IReceivedMessage[];
4590
4604
  hasMore: boolean;
4591
4605
  }>>;
4606
+ getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
4607
+ getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
4592
4608
  /**
4593
4609
  * 加入房间
4594
4610
  * @param roomId
@@ -5113,8 +5129,9 @@ declare abstract class AEngine implements IEngine {
5113
5129
  * @param isPersited 是否存储
5114
5130
  * @param isCounted 是否技术
5115
5131
  * @param searchProps 搜索字段,只在搭配协议栈使用时有效
5132
+ * @param isStatusMessage 是否是状态消息
5116
5133
  */
5117
- abstract registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps: string[]): void;
5134
+ abstract registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps: string[], isStatusMessage: boolean): void;
5118
5135
  /**
5119
5136
  * 加入聊天室
5120
5137
  * @param count 拉取消息数量
@@ -5278,6 +5295,8 @@ declare abstract class AEngine implements IEngine {
5278
5295
  * 获取当前 userId
5279
5296
  */
5280
5297
  abstract getCurrentUserId(): string;
5298
+ abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
5299
+ abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
5281
5300
  /**
5282
5301
  * 设置用户在线状态监听器
5283
5302
  */
@@ -5400,6 +5419,10 @@ declare abstract class AEngine implements IEngine {
5400
5419
  * 获取所有群聊会话 @ 消息未读数
5401
5420
  */
5402
5421
  abstract getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
5422
+ /**
5423
+ * 获取本地全部会话的状态
5424
+ */
5425
+ abstract getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
5403
5426
  abstract joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType): IPromiseResult<IJoinRTCRoomData>;
5404
5427
  abstract quitRTCRoom(roomId: string): Promise<ErrorCode>;
5405
5428
  abstract rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<ErrorCode>;
@@ -5912,4 +5935,4 @@ declare enum CONNECTION_TYPE {
5912
5935
  */
5913
5936
  declare const version: string;
5914
5937
 
5915
- 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, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, 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, 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 };
5938
+ 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, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, 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, 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 };