@rongcloud/engine 5.8.2-enterprise-alpha.18 → 5.8.2-enterprise-lz.2

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
@@ -2481,6 +2481,10 @@ interface ISendMsgOptions {
2481
2481
  * 超级群专有字段,是否断档,若断档需要客户判断是否拉取
2482
2482
  */
2483
2483
  isInterrupt?: boolean;
2484
+ /**
2485
+ * 是否加密
2486
+ */
2487
+ encrypted?: boolean;
2484
2488
  }
2485
2489
  interface IInsertMsgOptions {
2486
2490
  senderUserId: string;
@@ -3632,7 +3636,6 @@ interface INaviRequestOption {
3632
3636
  token: string;
3633
3637
  platform: string;
3634
3638
  protocol?: string;
3635
- mac?: string;
3636
3639
  }
3637
3640
  interface IServerAddressData {
3638
3641
  addr: string;
@@ -5049,7 +5052,7 @@ interface IEngine {
5049
5052
  /**
5050
5053
  * 设置消息内容
5051
5054
  */
5052
- setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
5055
+ setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
5053
5056
  /**
5054
5057
  * 设置消息搜索字段
5055
5058
  */
@@ -5057,7 +5060,7 @@ interface IEngine {
5057
5060
  /**
5058
5061
  * 通过关键字与 channelId 搜索所有会话
5059
5062
  */
5060
- searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
5063
+ searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[], includeDeleted?: boolean): IPromiseResult<IReceivedConversation[]>;
5061
5064
  searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
5062
5065
  /**
5063
5066
  * 按内容搜索会话内的消息
@@ -5844,7 +5847,7 @@ interface IWatcher {
5844
5847
  * 群聊消息送达状态通知
5845
5848
  */
5846
5849
  groupMessageDeliveredStatus?: IGroupMessageDeliveredStatusListener;
5847
- readReceiptReceived?: (conversation: IConversationOption, message: string, sentTime: number, senderUserId: string) => void;
5850
+ readReceiptReceived?: (conversation: IConversationOption, messageUId: string, sentTime: number) => void;
5848
5851
  messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
5849
5852
  messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
5850
5853
  /**
@@ -6734,7 +6737,7 @@ declare class APIContext {
6734
6737
  /**
6735
6738
  * 设置消息内容
6736
6739
  */
6737
- setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
6740
+ setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
6738
6741
  /**
6739
6742
  * 设置消息搜索字段
6740
6743
  */
@@ -6765,7 +6768,7 @@ declare class APIContext {
6765
6768
  getUserStatus(userId: string): Promise<IAsyncRes<{
6766
6769
  status: string;
6767
6770
  }>>;
6768
- searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
6771
+ searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[], includeDeleted?: boolean): Promise<IAsyncRes<IReceivedConversation[]>>;
6769
6772
  searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
6770
6773
  searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
6771
6774
  messages: IReceivedMessage[];
@@ -6841,6 +6844,12 @@ declare class APIContext {
6841
6844
  * 测试代理
6842
6845
  */
6843
6846
  testProxy(proxy: IProxy, testHost: string): Promise<IResponse>;
6847
+ initAndOpenDatabase(userId: string): Promise<IAsyncRes<void>>;
6848
+ closeDatabase(): Promise<IAsyncRes<void>>;
6849
+ getMessagesByMessageTypeFromConversationTypes(targetIds: string[] | null, channelIds: string[] | null, objectName: string[] | null, keyWord: string | null, timestamp: number, desc: 0 | 1, count: number, conversationTypes: ConversationType[] | null): Promise<IAsyncRes<{
6850
+ list: IReceivedMessage[];
6851
+ hasMore: boolean;
6852
+ }>>;
6844
6853
  }
6845
6854
 
6846
6855
  declare class PluginContext {
@@ -7768,7 +7777,7 @@ declare abstract class AEngine {
7768
7777
  /**
7769
7778
  * 设置消息内容
7770
7779
  */
7771
- abstract setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
7780
+ abstract setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
7772
7781
  /**
7773
7782
  * 设置消息搜索字段
7774
7783
  */
@@ -7776,7 +7785,7 @@ declare abstract class AEngine {
7776
7785
  /**
7777
7786
  * 通过关键字搜索会话
7778
7787
  */
7779
- abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
7788
+ abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[], includeDeleted?: boolean): IPromiseResult<IReceivedConversation[]>;
7780
7789
  /**
7781
7790
  * 通过关键字搜索所有会话
7782
7791
  */
@@ -7960,6 +7969,12 @@ declare abstract class AEngine {
7960
7969
  * 设置当前网络
7961
7970
  */
7962
7971
  abstract setNetwork(data: INetwork, isUnPrintLog?: boolean): void;
7972
+ abstract initAndOpenDatabase(userId: string): Promise<IAsyncRes<void>>;
7973
+ abstract closeDatabase(): Promise<IAsyncRes<void>>;
7974
+ abstract getMessagesByMessageTypeFromConversationTypes(targetIds: string[] | null, channelIds: string[] | null, objectName: string[] | null, keyWord: string | null, timestamp: number, desc: 0 | 1, count: number, conversationTypes: ConversationType[] | null): IPromiseResult<{
7975
+ list: IReceivedMessage[];
7976
+ hasMore: boolean;
7977
+ }>;
7963
7978
  }
7964
7979
 
7965
7980
  interface IUrlCenterInitOption {