@rongcloud/engine 5.1.0-rtc-roompk.1 → 5.1.0
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 +54 -17
- 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 - v5.1.0
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.1.0
|
|
3
|
+
* CommitId - a336c0de6ae1d26b24ec675889d919bcb2195568
|
|
4
|
+
* Fri Jan 07 2022 15:56:12 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1969,7 +1969,7 @@ interface IChatroomListenerData {
|
|
|
1969
1969
|
*/
|
|
1970
1970
|
chatroomDestroyed?: string;
|
|
1971
1971
|
}
|
|
1972
|
-
interface
|
|
1972
|
+
interface IChatroomEntry {
|
|
1973
1973
|
/**
|
|
1974
1974
|
* 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
1975
1975
|
*/
|
|
@@ -2012,7 +2012,7 @@ interface IChatroomInfo {
|
|
|
2012
2012
|
*/
|
|
2013
2013
|
userCount: number;
|
|
2014
2014
|
}
|
|
2015
|
-
interface
|
|
2015
|
+
interface IRemoveChatroomEntry {
|
|
2016
2016
|
/**
|
|
2017
2017
|
* 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
2018
2018
|
*/
|
|
@@ -2026,7 +2026,7 @@ interface IRemoveChatRoomEntry {
|
|
|
2026
2026
|
*/
|
|
2027
2027
|
notificationExtra?: string;
|
|
2028
2028
|
}
|
|
2029
|
-
interface
|
|
2029
|
+
interface IRemoveChatroomEntries {
|
|
2030
2030
|
/**
|
|
2031
2031
|
* key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
2032
2032
|
*/
|
|
@@ -2041,7 +2041,7 @@ interface IRemoveChatRoomEntries {
|
|
|
2041
2041
|
*/
|
|
2042
2042
|
notificationExtra?: string;
|
|
2043
2043
|
}
|
|
2044
|
-
interface
|
|
2044
|
+
interface IChatroomEntries {
|
|
2045
2045
|
/**
|
|
2046
2046
|
* entries ,要设置的属性列表
|
|
2047
2047
|
* key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
@@ -2242,9 +2242,9 @@ interface IRequest {
|
|
|
2242
2242
|
*/
|
|
2243
2243
|
timeout?: number;
|
|
2244
2244
|
/**
|
|
2245
|
-
*
|
|
2245
|
+
* 期望返回的数据格式,如果为 json 则返回后会对返回的数据进行一次 JSON.parse, 在小程序平台需要
|
|
2246
2246
|
*/
|
|
2247
|
-
dataType?:
|
|
2247
|
+
dataType?: 'json' | 'text' | 'base64' | 'arraybuffer';
|
|
2248
2248
|
}
|
|
2249
2249
|
interface IStorage {
|
|
2250
2250
|
setItem(key: string, value: string): void;
|
|
@@ -3438,6 +3438,27 @@ interface ITypingMessage {
|
|
|
3438
3438
|
list: Array<ITypingUser>;
|
|
3439
3439
|
}
|
|
3440
3440
|
|
|
3441
|
+
/**
|
|
3442
|
+
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
3443
|
+
* @deprecated
|
|
3444
|
+
*/
|
|
3445
|
+
declare type IRemoveChatRoomEntries = IRemoveChatroomEntries;
|
|
3446
|
+
/**
|
|
3447
|
+
* 定义已废弃,请使用 `IChatroomEntry` 替换
|
|
3448
|
+
* @deprecated
|
|
3449
|
+
*/
|
|
3450
|
+
declare type IChatRoomEntry = IChatroomEntry;
|
|
3451
|
+
/**
|
|
3452
|
+
* 定义已废弃,请使用 `IChatroomEntries` 替换
|
|
3453
|
+
* @deprecated
|
|
3454
|
+
*/
|
|
3455
|
+
declare type IChatRoomEntries = IChatroomEntries;
|
|
3456
|
+
/**
|
|
3457
|
+
* 定义已废弃,请使用 `IRemoveChatroomEntry` 替换
|
|
3458
|
+
* @deprecated
|
|
3459
|
+
*/
|
|
3460
|
+
declare type IRemoveChatRoomEntry = IRemoveChatroomEntry;
|
|
3461
|
+
|
|
3441
3462
|
/**
|
|
3442
3463
|
* 序列化、反序列化数据通道
|
|
3443
3464
|
*/
|
|
@@ -4219,6 +4240,10 @@ declare class APIContext {
|
|
|
4219
4240
|
* 清除会话消息未读数
|
|
4220
4241
|
*/
|
|
4221
4242
|
clearUnreadCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
4243
|
+
/**
|
|
4244
|
+
* 清除全部会话消息未读数
|
|
4245
|
+
*/
|
|
4246
|
+
clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4222
4247
|
/**
|
|
4223
4248
|
* 获取指定会话消息未读数
|
|
4224
4249
|
*/
|
|
@@ -4288,8 +4313,8 @@ declare class APIContext {
|
|
|
4288
4313
|
* @param roomId 聊天室房间 id
|
|
4289
4314
|
* @param entry 属性信息
|
|
4290
4315
|
*/
|
|
4291
|
-
setChatroomEntry(roomId: string, entry:
|
|
4292
|
-
setChatroomEntries(roomId: string, entryOptions:
|
|
4316
|
+
setChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
|
|
4317
|
+
setChatroomEntries(roomId: string, entryOptions: IChatroomEntries): Promise<{
|
|
4293
4318
|
code: ErrorCode;
|
|
4294
4319
|
data?: any;
|
|
4295
4320
|
}>;
|
|
@@ -4299,21 +4324,21 @@ declare class APIContext {
|
|
|
4299
4324
|
* @param roomId 聊天室房间 id
|
|
4300
4325
|
* @param entry 属性信息
|
|
4301
4326
|
*/
|
|
4302
|
-
forceSetChatroomEntry(roomId: string, entry:
|
|
4327
|
+
forceSetChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
|
|
4303
4328
|
/**
|
|
4304
4329
|
* 删除聊天室属性
|
|
4305
4330
|
* @description 该方法仅限于删除自己设置的聊天室属性
|
|
4306
4331
|
* @param roomId 聊天室房间 id
|
|
4307
4332
|
* @param entry 要移除的属性信息
|
|
4308
4333
|
*/
|
|
4309
|
-
removeChatroomEntry(roomId: string, entry:
|
|
4334
|
+
removeChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
|
|
4310
4335
|
/**
|
|
4311
4336
|
* 批量删除聊天室属性
|
|
4312
4337
|
* @description 该方法仅限于删除自己设置的聊天室属性
|
|
4313
4338
|
* @param roomId 聊天室房间 id
|
|
4314
4339
|
* @param entry 要移除的属性信息
|
|
4315
4340
|
*/
|
|
4316
|
-
removeChatroomEntries(roomId: string, entryOptions:
|
|
4341
|
+
removeChatroomEntries(roomId: string, entryOptions: IRemoveChatroomEntries): Promise<{
|
|
4317
4342
|
code: ErrorCode;
|
|
4318
4343
|
data?: any;
|
|
4319
4344
|
}>;
|
|
@@ -4323,7 +4348,7 @@ declare class APIContext {
|
|
|
4323
4348
|
* @param roomId 聊天室房间 id
|
|
4324
4349
|
* @param entry 要移除的属性信息
|
|
4325
4350
|
*/
|
|
4326
|
-
forceRemoveChatroomEntry(roomId: string, entry:
|
|
4351
|
+
forceRemoveChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
|
|
4327
4352
|
/**
|
|
4328
4353
|
* 获取聊天室中的指定属性
|
|
4329
4354
|
* @param roomId 聊天室房间 id
|
|
@@ -4346,7 +4371,15 @@ declare class APIContext {
|
|
|
4346
4371
|
* * 1:升序,用于获取晚于指定时间戳发送的消息
|
|
4347
4372
|
* @param timestamp 指定拉取消息用到的时间戳。默认值为 `0`,表示按当前时间拉取
|
|
4348
4373
|
*/
|
|
4349
|
-
|
|
4374
|
+
getChatroomHistoryMessages(roomId: string, count?: number, order?: 0 | 1, timestamp?: number): Promise<IAsyncRes<{
|
|
4375
|
+
list: IReceivedMessage[];
|
|
4376
|
+
hasMore: boolean;
|
|
4377
|
+
}>>;
|
|
4378
|
+
/**
|
|
4379
|
+
* 方法已废弃,推荐使用 `getChatroomHistoryMessages` 替代
|
|
4380
|
+
* @deprecated
|
|
4381
|
+
*/
|
|
4382
|
+
getChatRoomHistoryMessages: (roomId: string, count?: number, order?: 0 | 1, timestamp?: number) => Promise<IAsyncRes<{
|
|
4350
4383
|
list: IReceivedMessage[];
|
|
4351
4384
|
hasMore: boolean;
|
|
4352
4385
|
}>>;
|
|
@@ -5016,6 +5049,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5016
5049
|
* 清除指定会话未读数
|
|
5017
5050
|
*/
|
|
5018
5051
|
abstract clearConversationUnreadCount(conversationType: ConversationType, targetId: string, channelId: string): Promise<ErrorCode>;
|
|
5052
|
+
/**
|
|
5053
|
+
* 清除全部会话未读数
|
|
5054
|
+
*/
|
|
5055
|
+
abstract clearAllUnreadCount(): Promise<ErrorCode>;
|
|
5019
5056
|
/**
|
|
5020
5057
|
* 获取第一个未读消息
|
|
5021
5058
|
*/
|
|
@@ -5875,4 +5912,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5875
5912
|
*/
|
|
5876
5913
|
declare const version: string;
|
|
5877
5914
|
|
|
5878
|
-
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|
|
5915
|
+
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|