@rongcloud/engine 5.8.2-enterprise-alpha.15 → 5.8.2-enterprise-alpha.16
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 +23 -7
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
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;
|
|
@@ -5048,7 +5052,7 @@ interface IEngine {
|
|
|
5048
5052
|
/**
|
|
5049
5053
|
* 设置消息内容
|
|
5050
5054
|
*/
|
|
5051
|
-
setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
|
|
5055
|
+
setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
|
|
5052
5056
|
/**
|
|
5053
5057
|
* 设置消息搜索字段
|
|
5054
5058
|
*/
|
|
@@ -5056,7 +5060,7 @@ interface IEngine {
|
|
|
5056
5060
|
/**
|
|
5057
5061
|
* 通过关键字与 channelId 搜索所有会话
|
|
5058
5062
|
*/
|
|
5059
|
-
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[]>;
|
|
5060
5064
|
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5061
5065
|
/**
|
|
5062
5066
|
* 按内容搜索会话内的消息
|
|
@@ -5843,7 +5847,7 @@ interface IWatcher {
|
|
|
5843
5847
|
* 群聊消息送达状态通知
|
|
5844
5848
|
*/
|
|
5845
5849
|
groupMessageDeliveredStatus?: IGroupMessageDeliveredStatusListener;
|
|
5846
|
-
readReceiptReceived?: (conversation: IConversationOption,
|
|
5850
|
+
readReceiptReceived?: (conversation: IConversationOption, messageUId: string, sentTime: number) => void;
|
|
5847
5851
|
messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
|
|
5848
5852
|
messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
|
|
5849
5853
|
/**
|
|
@@ -6733,7 +6737,7 @@ declare class APIContext {
|
|
|
6733
6737
|
/**
|
|
6734
6738
|
* 设置消息内容
|
|
6735
6739
|
*/
|
|
6736
|
-
setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
|
|
6740
|
+
setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
|
|
6737
6741
|
/**
|
|
6738
6742
|
* 设置消息搜索字段
|
|
6739
6743
|
*/
|
|
@@ -6764,7 +6768,7 @@ declare class APIContext {
|
|
|
6764
6768
|
getUserStatus(userId: string): Promise<IAsyncRes<{
|
|
6765
6769
|
status: string;
|
|
6766
6770
|
}>>;
|
|
6767
|
-
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[]>>;
|
|
6768
6772
|
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
6769
6773
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
6770
6774
|
messages: IReceivedMessage[];
|
|
@@ -6840,6 +6844,12 @@ declare class APIContext {
|
|
|
6840
6844
|
* 测试代理
|
|
6841
6845
|
*/
|
|
6842
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
|
+
}>>;
|
|
6843
6853
|
}
|
|
6844
6854
|
|
|
6845
6855
|
declare class PluginContext {
|
|
@@ -7767,7 +7777,7 @@ declare abstract class AEngine {
|
|
|
7767
7777
|
/**
|
|
7768
7778
|
* 设置消息内容
|
|
7769
7779
|
*/
|
|
7770
|
-
abstract setMessageContent(messageId: number, content: any, messageType: string): Promise<ErrorCode>;
|
|
7780
|
+
abstract setMessageContent(messageId: number, content: any, messageType: string, searchWord: string): Promise<ErrorCode>;
|
|
7771
7781
|
/**
|
|
7772
7782
|
* 设置消息搜索字段
|
|
7773
7783
|
*/
|
|
@@ -7775,7 +7785,7 @@ declare abstract class AEngine {
|
|
|
7775
7785
|
/**
|
|
7776
7786
|
* 通过关键字搜索会话
|
|
7777
7787
|
*/
|
|
7778
|
-
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[]>;
|
|
7779
7789
|
/**
|
|
7780
7790
|
* 通过关键字搜索所有会话
|
|
7781
7791
|
*/
|
|
@@ -7959,6 +7969,12 @@ declare abstract class AEngine {
|
|
|
7959
7969
|
* 设置当前网络
|
|
7960
7970
|
*/
|
|
7961
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
|
+
}>;
|
|
7962
7978
|
}
|
|
7963
7979
|
|
|
7964
7980
|
interface IUrlCenterInitOption {
|