@rongcloud/engine 5.1.0 → 5.1.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
3
+ * CommitId - 41dbe38d1b376ca0a791b23ed94be291e3f92e81
4
+ * Mon Jan 17 2022 19:48:11 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
  */
@@ -3192,6 +3196,8 @@ interface IEngine {
3192
3196
  * 获取当前 userId
3193
3197
  */
3194
3198
  getCurrentUserId(): string;
3199
+ getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
3200
+ getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
3195
3201
  /**
3196
3202
  * 设置用户在线状态监听器
3197
3203
  */
@@ -3972,10 +3978,8 @@ interface IWatcher {
3972
3978
  onDisconnect?: () => void;
3973
3979
  onSuspend?: () => void;
3974
3980
  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;
3981
+ messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
3982
+ messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
3979
3983
  /**
3980
3984
  * 敏感词被拦截监听
3981
3985
  */
@@ -4589,6 +4593,8 @@ declare class APIContext {
4589
4593
  list: IReceivedMessage[];
4590
4594
  hasMore: boolean;
4591
4595
  }>>;
4596
+ getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
4597
+ getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
4592
4598
  /**
4593
4599
  * 加入房间
4594
4600
  * @param roomId
@@ -5278,6 +5284,8 @@ declare abstract class AEngine implements IEngine {
5278
5284
  * 获取当前 userId
5279
5285
  */
5280
5286
  abstract getCurrentUserId(): string;
5287
+ abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
5288
+ abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
5281
5289
  /**
5282
5290
  * 设置用户在线状态监听器
5283
5291
  */