@rongcloud/engine 5.2.1-enterprise-alpha.1 → 5.2.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/dist/index.d.ts +6 -32
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v5.2.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.2.2
|
|
3
|
+
* CommitId - bc1982fda01469b9049b02b4a85abfb209ffdc30
|
|
4
|
+
* Thu Apr 07 2022 16:33:24 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -439,6 +439,7 @@ interface IServerUserSetting {
|
|
|
439
439
|
interface ISyncMsgArgs {
|
|
440
440
|
inboxTime: number;
|
|
441
441
|
sendboxTime: number;
|
|
442
|
+
broadcastSyncTime?: number;
|
|
442
443
|
}
|
|
443
444
|
interface IGetMsgOption {
|
|
444
445
|
timestamp?: number;
|
|
@@ -3424,27 +3425,16 @@ interface IEngine {
|
|
|
3424
3425
|
*/
|
|
3425
3426
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
3426
3427
|
/**
|
|
3427
|
-
*
|
|
3428
|
+
* 通过关键字搜索会话
|
|
3428
3429
|
*/
|
|
3429
3430
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3430
3431
|
/**
|
|
3431
|
-
*
|
|
3432
|
-
*/
|
|
3433
|
-
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3434
|
-
/**
|
|
3435
|
-
* 按内容搜索指定会话内的消息
|
|
3432
|
+
* 按内容搜索会话内的消息
|
|
3436
3433
|
*/
|
|
3437
3434
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
3438
3435
|
messages: IReceivedMessage[];
|
|
3439
3436
|
count: number;
|
|
3440
3437
|
}>;
|
|
3441
|
-
/**
|
|
3442
|
-
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
3443
|
-
*/
|
|
3444
|
-
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number): IPromiseResult<{
|
|
3445
|
-
messages: IReceivedMessage[];
|
|
3446
|
-
count: number;
|
|
3447
|
-
}>;
|
|
3448
3438
|
/**
|
|
3449
3439
|
* 获取会话下所有未读的 @ 消息
|
|
3450
3440
|
*/
|
|
@@ -4851,15 +4841,10 @@ declare class APIContext {
|
|
|
4851
4841
|
status: string;
|
|
4852
4842
|
}>>;
|
|
4853
4843
|
searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4854
|
-
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4855
4844
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
4856
4845
|
messages: IReceivedMessage[];
|
|
4857
4846
|
count: number;
|
|
4858
4847
|
}>>;
|
|
4859
|
-
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number): Promise<IAsyncRes<{
|
|
4860
|
-
messages: IReceivedMessage[];
|
|
4861
|
-
count: number;
|
|
4862
|
-
}>>;
|
|
4863
4848
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
4864
4849
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
4865
4850
|
/**
|
|
@@ -5711,10 +5696,6 @@ declare abstract class AEngine implements IEngine {
|
|
|
5711
5696
|
* 通过关键字搜索会话
|
|
5712
5697
|
*/
|
|
5713
5698
|
abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5714
|
-
/**
|
|
5715
|
-
* 通过关键字搜索所有会话
|
|
5716
|
-
*/
|
|
5717
|
-
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5718
5699
|
/**
|
|
5719
5700
|
* 按内容搜索会话内的消息
|
|
5720
5701
|
*/
|
|
@@ -5722,13 +5703,6 @@ declare abstract class AEngine implements IEngine {
|
|
|
5722
5703
|
messages: IReceivedMessage[];
|
|
5723
5704
|
count: number;
|
|
5724
5705
|
}>;
|
|
5725
|
-
/**
|
|
5726
|
-
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
5727
|
-
*/
|
|
5728
|
-
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number): IPromiseResult<{
|
|
5729
|
-
messages: IReceivedMessage[];
|
|
5730
|
-
count: number;
|
|
5731
|
-
}>;
|
|
5732
5706
|
/**
|
|
5733
5707
|
* 获取会话下所有未读的 @ 消息
|
|
5734
5708
|
*/
|