@rongcloud/engine 4.6.0-beem.3 → 4.6.0-beem.4

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 - v4.6.0-beem.3
3
- * CommitId - 4d8902d56507c194e9555a4aadf89076191979c7
4
- * Wed Mar 09 2022 16:28:00 GMT+0800 (China Standard Time)
2
+ * RCEngine - v4.6.0-beem.4
3
+ * CommitId - 91772ec0ea266506f30b033d87f886e79ae4c209
4
+ * Fri Apr 01 2022 10:49:32 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  /**
@@ -3602,6 +3602,8 @@ interface IEngine {
3602
3602
  * 获取当前 userId
3603
3603
  */
3604
3604
  getCurrentUserId(): string;
3605
+ getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
3606
+ getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
3605
3607
  /**
3606
3608
  * 设置用户在线状态监听器
3607
3609
  */
@@ -3671,16 +3673,33 @@ interface IEngine {
3671
3673
  */
3672
3674
  setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
3673
3675
  /**
3674
- * 通过关键字搜索会话
3675
- */
3676
+ * 通过关键字与 channelId 搜索所有会话
3677
+ */
3676
3678
  searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
3677
3679
  /**
3678
- * 按内容搜索会话内的消息
3679
- */
3680
+ * 通过关键字搜索所有会话
3681
+ */
3682
+ searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
3683
+ /**
3684
+ * 按内容搜索指定会话内的消息
3685
+ */
3680
3686
  searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
3681
3687
  messages: IReceivedMessage[];
3682
3688
  count: number;
3683
3689
  }>;
3690
+ /**
3691
+ * 按内容搜索指定会话(不区分 channelId)的消息
3692
+ */
3693
+ searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
3694
+ messages: IReceivedMessage[];
3695
+ count: number;
3696
+ }>;
3697
+ /**
3698
+ * 按内容搜索时间范围内指定会话(不区分 channelId)的消息
3699
+ */
3700
+ searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
3701
+ messages: IReceivedMessage[];
3702
+ }>;
3684
3703
  /**
3685
3704
  * 获取会话下所有未读的 @ 消息
3686
3705
  */
@@ -4480,10 +4499,18 @@ declare class APIContext {
4480
4499
  status: string;
4481
4500
  }>>;
4482
4501
  searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
4502
+ searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
4483
4503
  searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
4484
4504
  messages: IReceivedMessage[];
4485
4505
  count: number;
4486
4506
  }>>;
4507
+ searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
4508
+ messages: IReceivedMessage[];
4509
+ count: number;
4510
+ }>>;
4511
+ searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
4512
+ messages: IReceivedMessage[];
4513
+ }>>;
4487
4514
  getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
4488
4515
  clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
4489
4516
  /**
@@ -4506,6 +4533,8 @@ declare class APIContext {
4506
4533
  key: string;
4507
4534
  value: string;
4508
4535
  }>;
4536
+ getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
4537
+ getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
4509
4538
  /**
4510
4539
  * 加入房间
4511
4540
  * @param roomId
@@ -5092,6 +5121,8 @@ declare abstract class AEngine implements IEngine {
5092
5121
  * 获取当前 userId
5093
5122
  */
5094
5123
  abstract getCurrentUserId(): string;
5124
+ abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
5125
+ abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
5095
5126
  /**
5096
5127
  * 设置用户在线状态监听器
5097
5128
  */
@@ -5164,6 +5195,10 @@ declare abstract class AEngine implements IEngine {
5164
5195
  * 通过关键字搜索会话
5165
5196
  */
5166
5197
  abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
5198
+ /**
5199
+ * 通过关键字搜索所有会话
5200
+ */
5201
+ abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
5167
5202
  /**
5168
5203
  * 按内容搜索会话内的消息
5169
5204
  */
@@ -5171,6 +5206,19 @@ declare abstract class AEngine implements IEngine {
5171
5206
  messages: IReceivedMessage[];
5172
5207
  count: number;
5173
5208
  }>;
5209
+ /**
5210
+ * 按内容搜索指定会话(不区分 channelId)的消息
5211
+ */
5212
+ abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
5213
+ messages: IReceivedMessage[];
5214
+ count: number;
5215
+ }>;
5216
+ /**
5217
+ * 按内容搜索时间范围内指定会话(不区分 channelId)的消息
5218
+ */
5219
+ abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
5220
+ messages: IReceivedMessage[];
5221
+ }>;
5174
5222
  /**
5175
5223
  * 获取会话下所有未读的 @ 消息
5176
5224
  */