@rongcloud/engine 4.6.0-beem.3 → 4.6.0-beem.6
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 +68 -8
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- 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 - v4.6.0-beem.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.6.0-beem.6
|
|
3
|
+
* CommitId - 8d63e55a9dfc42a2704331082d4d1b7680a2d6ad
|
|
4
|
+
* Sat May 14 2022 00:11:05 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1204,7 +1204,19 @@ declare enum RTCMode {
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* 直播模式
|
|
1206
1206
|
*/
|
|
1207
|
-
LIVE = 2
|
|
1207
|
+
LIVE = 2,
|
|
1208
|
+
/**
|
|
1209
|
+
* sip呼叫
|
|
1210
|
+
*/
|
|
1211
|
+
SIP = 4,
|
|
1212
|
+
/**
|
|
1213
|
+
* 呼叫模式.包括单呼和群呼
|
|
1214
|
+
*/
|
|
1215
|
+
CALL = 5,
|
|
1216
|
+
/**
|
|
1217
|
+
* 会议
|
|
1218
|
+
*/
|
|
1219
|
+
MEETING = 6
|
|
1208
1220
|
}
|
|
1209
1221
|
/**
|
|
1210
1222
|
* 直播类型
|
|
@@ -3602,6 +3614,8 @@ interface IEngine {
|
|
|
3602
3614
|
* 获取当前 userId
|
|
3603
3615
|
*/
|
|
3604
3616
|
getCurrentUserId(): string;
|
|
3617
|
+
getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
3618
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
3605
3619
|
/**
|
|
3606
3620
|
* 设置用户在线状态监听器
|
|
3607
3621
|
*/
|
|
@@ -3671,16 +3685,33 @@ interface IEngine {
|
|
|
3671
3685
|
*/
|
|
3672
3686
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
3673
3687
|
/**
|
|
3674
|
-
*
|
|
3675
|
-
|
|
3688
|
+
* 通过关键字与 channelId 搜索所有会话
|
|
3689
|
+
*/
|
|
3676
3690
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3677
3691
|
/**
|
|
3678
|
-
*
|
|
3679
|
-
|
|
3692
|
+
* 通过关键字搜索所有会话
|
|
3693
|
+
*/
|
|
3694
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3695
|
+
/**
|
|
3696
|
+
* 按内容搜索指定会话内的消息
|
|
3697
|
+
*/
|
|
3680
3698
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
3681
3699
|
messages: IReceivedMessage[];
|
|
3682
3700
|
count: number;
|
|
3683
3701
|
}>;
|
|
3702
|
+
/**
|
|
3703
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
3704
|
+
*/
|
|
3705
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
3706
|
+
messages: IReceivedMessage[];
|
|
3707
|
+
count: number;
|
|
3708
|
+
}>;
|
|
3709
|
+
/**
|
|
3710
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
3711
|
+
*/
|
|
3712
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
3713
|
+
messages: IReceivedMessage[];
|
|
3714
|
+
}>;
|
|
3684
3715
|
/**
|
|
3685
3716
|
* 获取会话下所有未读的 @ 消息
|
|
3686
3717
|
*/
|
|
@@ -4480,10 +4511,18 @@ declare class APIContext {
|
|
|
4480
4511
|
status: string;
|
|
4481
4512
|
}>>;
|
|
4482
4513
|
searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4514
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4483
4515
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
4484
4516
|
messages: IReceivedMessage[];
|
|
4485
4517
|
count: number;
|
|
4486
4518
|
}>>;
|
|
4519
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
|
|
4520
|
+
messages: IReceivedMessage[];
|
|
4521
|
+
count: number;
|
|
4522
|
+
}>>;
|
|
4523
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
|
|
4524
|
+
messages: IReceivedMessage[];
|
|
4525
|
+
}>>;
|
|
4487
4526
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
4488
4527
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
4489
4528
|
/**
|
|
@@ -4506,6 +4545,8 @@ declare class APIContext {
|
|
|
4506
4545
|
key: string;
|
|
4507
4546
|
value: string;
|
|
4508
4547
|
}>;
|
|
4548
|
+
getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4549
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4509
4550
|
/**
|
|
4510
4551
|
* 加入房间
|
|
4511
4552
|
* @param roomId
|
|
@@ -5092,6 +5133,8 @@ declare abstract class AEngine implements IEngine {
|
|
|
5092
5133
|
* 获取当前 userId
|
|
5093
5134
|
*/
|
|
5094
5135
|
abstract getCurrentUserId(): string;
|
|
5136
|
+
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5137
|
+
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5095
5138
|
/**
|
|
5096
5139
|
* 设置用户在线状态监听器
|
|
5097
5140
|
*/
|
|
@@ -5164,6 +5207,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5164
5207
|
* 通过关键字搜索会话
|
|
5165
5208
|
*/
|
|
5166
5209
|
abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5210
|
+
/**
|
|
5211
|
+
* 通过关键字搜索所有会话
|
|
5212
|
+
*/
|
|
5213
|
+
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5167
5214
|
/**
|
|
5168
5215
|
* 按内容搜索会话内的消息
|
|
5169
5216
|
*/
|
|
@@ -5171,6 +5218,19 @@ declare abstract class AEngine implements IEngine {
|
|
|
5171
5218
|
messages: IReceivedMessage[];
|
|
5172
5219
|
count: number;
|
|
5173
5220
|
}>;
|
|
5221
|
+
/**
|
|
5222
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
5223
|
+
*/
|
|
5224
|
+
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
5225
|
+
messages: IReceivedMessage[];
|
|
5226
|
+
count: number;
|
|
5227
|
+
}>;
|
|
5228
|
+
/**
|
|
5229
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
5230
|
+
*/
|
|
5231
|
+
abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
5232
|
+
messages: IReceivedMessage[];
|
|
5233
|
+
}>;
|
|
5174
5234
|
/**
|
|
5175
5235
|
* 获取会话下所有未读的 @ 消息
|
|
5176
5236
|
*/
|