@rongcloud/engine 5.7.3-beem.9 → 5.7.4-beem.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/index.d.ts CHANGED
@@ -46,7 +46,15 @@ declare enum ConversationType {
46
46
  /**
47
47
  * RTCLib 特有的会话类型
48
48
  */
49
- RTC_ROOM = 12
49
+ RTC_ROOM = 12,
50
+ /**
51
+ * 官方号
52
+ */
53
+ OFFICIAL = 13,
54
+ /**
55
+ * 广播会话
56
+ * */
57
+ BROADCAST = 14
50
58
  }
51
59
 
52
60
  /**
@@ -1842,6 +1850,7 @@ interface IReceivedConversation {
1842
1850
  */
1843
1851
  versionTime?: number;
1844
1852
  unreadMentionedCount?: number;
1853
+ sortTime: number;
1845
1854
  }
1846
1855
  /**
1847
1856
  * @category Interface
@@ -3473,6 +3482,7 @@ interface IEngine {
3473
3482
  */
3474
3483
  getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
3475
3484
  clearData(): Promise<IAsyncRes<boolean>>;
3485
+ subscribeAccount(targetId: string, channelId: string, subscribe: boolean): Promise<ErrorCode>;
3476
3486
  /**
3477
3487
  * 获取运行时的系统信息,仅限 Electron 平台可用
3478
3488
  */
@@ -3912,6 +3922,10 @@ interface IReceivedMessage {
3912
3922
  * 扩展内容
3913
3923
  */
3914
3924
  extraContent?: string;
3925
+ /**
3926
+ * 搜索结果高亮
3927
+ * */
3928
+ ftsHighlight?: string;
3915
3929
  }
3916
3930
  /**
3917
3931
  * @category Interface
@@ -4134,6 +4148,18 @@ interface ISendMsgOptions {
4134
4148
  * 标识该消息是否为重发消息,仅 electron 中有效。
4135
4149
  */
4136
4150
  isResend?: boolean;
4151
+ /**
4152
+ * 会话标签,位与的方式,默认15 <br/>
4153
+ * 0x08 接收 - 不创建会话 <br/>
4154
+ * 0x04 接收 - 不更新排序 <br/>
4155
+ * 0x02 发送 - 不创建会话 <br/>
4156
+ * 0x01 发送 - 不更新排序 <br/>
4157
+ * */
4158
+ sessionTag?: number;
4159
+ /**
4160
+ * 是否为广播会话,默认为false
4161
+ * */
4162
+ isBroadcast?: boolean;
4137
4163
  }
4138
4164
  interface IInsertMsgOptions {
4139
4165
  senderUserId: string;
@@ -4150,6 +4176,14 @@ interface IInsertMsgOptions {
4150
4176
  canIncludeExpansion?: boolean;
4151
4177
  expansionMsg?: string;
4152
4178
  channelId: string;
4179
+ /**
4180
+ * 会话标签,位与的方式,默认15 <br/>
4181
+ * 0x08 接收 - 不创建会话 <br/>
4182
+ * 0x04 接收 - 不更新排序 <br/>
4183
+ * 0x02 发送 - 不创建会话 <br/>
4184
+ * 0x01 发送 - 不更新排序 <br/>
4185
+ * */
4186
+ sessionTag?: number;
4153
4187
  }
4154
4188
  interface IInsertMessage {
4155
4189
  conversationType: number;
@@ -5911,9 +5945,10 @@ declare class APIContext {
5911
5945
  list: IReceivedMessage[];
5912
5946
  hasMore: boolean;
5913
5947
  }>>;
5914
- getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
5948
+ getConversationListWithAllChannel(types?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
5915
5949
  getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
5916
5950
  clearData(): Promise<IAsyncRes<boolean>>;
5951
+ subscribeAccount(targetId: string, channelId: string, subscribe: boolean): Promise<ErrorCode>;
5917
5952
  createLogger(id: string, type: LogType): BasicLogger;
5918
5953
  /**
5919
5954
  * 设置融云消息重排开关
@@ -6833,7 +6868,7 @@ declare abstract class AEngine {
6833
6868
  syncTime: number;
6834
6869
  hasMore: boolean;
6835
6870
  }>>;
6836
- abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
6871
+ abstract getConversationListWithAllChannel(types?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
6837
6872
  abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
6838
6873
  /**
6839
6874
  * 设置用户在线状态监听器
@@ -7027,6 +7062,7 @@ declare abstract class AEngine {
7027
7062
  */
7028
7063
  abstract getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
7029
7064
  abstract clearData(): Promise<IAsyncRes<boolean>>;
7065
+ abstract subscribeAccount(targetId: string, channelId: string, subscribe: boolean): Promise<ErrorCode>;
7030
7066
  /**
7031
7067
  * 超级群获取指定会话未读 @ 消息列表
7032
7068
  */