@rongcloud/engine 5.0.2-custom-qihoo.1 → 5.0.3-alpha.1
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 +55 -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.0.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v5.0.3-alpha.1
|
|
3
|
+
* CommitId - 19b3a26341747fa66c9ef0742388df8d8787ba39
|
|
4
|
+
* Tue Jan 04 2022 14:07:36 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -942,6 +942,7 @@ interface IBlockedMessageInfo {
|
|
|
942
942
|
blockedMessageUId: string;
|
|
943
943
|
conversationType: number;
|
|
944
944
|
targetId: string;
|
|
945
|
+
channelId: string;
|
|
945
946
|
blockType: MessageBlockType;
|
|
946
947
|
}
|
|
947
948
|
|
|
@@ -1968,7 +1969,7 @@ interface IChatroomListenerData {
|
|
|
1968
1969
|
*/
|
|
1969
1970
|
chatroomDestroyed?: string;
|
|
1970
1971
|
}
|
|
1971
|
-
interface
|
|
1972
|
+
interface IChatroomEntry {
|
|
1972
1973
|
/**
|
|
1973
1974
|
* 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
1974
1975
|
*/
|
|
@@ -2011,7 +2012,7 @@ interface IChatroomInfo {
|
|
|
2011
2012
|
*/
|
|
2012
2013
|
userCount: number;
|
|
2013
2014
|
}
|
|
2014
|
-
interface
|
|
2015
|
+
interface IRemoveChatroomEntry {
|
|
2015
2016
|
/**
|
|
2016
2017
|
* 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
2017
2018
|
*/
|
|
@@ -2025,7 +2026,7 @@ interface IRemoveChatRoomEntry {
|
|
|
2025
2026
|
*/
|
|
2026
2027
|
notificationExtra?: string;
|
|
2027
2028
|
}
|
|
2028
|
-
interface
|
|
2029
|
+
interface IRemoveChatroomEntries {
|
|
2029
2030
|
/**
|
|
2030
2031
|
* key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
2031
2032
|
*/
|
|
@@ -2040,7 +2041,7 @@ interface IRemoveChatRoomEntries {
|
|
|
2040
2041
|
*/
|
|
2041
2042
|
notificationExtra?: string;
|
|
2042
2043
|
}
|
|
2043
|
-
interface
|
|
2044
|
+
interface IChatroomEntries {
|
|
2044
2045
|
/**
|
|
2045
2046
|
* entries ,要设置的属性列表
|
|
2046
2047
|
* key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
@@ -2241,9 +2242,9 @@ interface IRequest {
|
|
|
2241
2242
|
*/
|
|
2242
2243
|
timeout?: number;
|
|
2243
2244
|
/**
|
|
2244
|
-
*
|
|
2245
|
+
* 期望返回的数据格式,如果为 json 则返回后会对返回的数据进行一次 JSON.parse, 在小程序平台需要
|
|
2245
2246
|
*/
|
|
2246
|
-
dataType?:
|
|
2247
|
+
dataType?: 'json' | 'text' | 'base64' | 'arraybuffer';
|
|
2247
2248
|
}
|
|
2248
2249
|
interface IStorage {
|
|
2249
2250
|
setItem(key: string, value: string): void;
|
|
@@ -3328,6 +3329,27 @@ interface ITypingMessage {
|
|
|
3328
3329
|
list: Array<ITypingUser>;
|
|
3329
3330
|
}
|
|
3330
3331
|
|
|
3332
|
+
/**
|
|
3333
|
+
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
3334
|
+
* @deprecated
|
|
3335
|
+
*/
|
|
3336
|
+
declare type IRemoveChatRoomEntries = IRemoveChatroomEntries;
|
|
3337
|
+
/**
|
|
3338
|
+
* 定义已废弃,请使用 `IChatroomEntry` 替换
|
|
3339
|
+
* @deprecated
|
|
3340
|
+
*/
|
|
3341
|
+
declare type IChatRoomEntry = IChatroomEntry;
|
|
3342
|
+
/**
|
|
3343
|
+
* 定义已废弃,请使用 `IChatroomEntries` 替换
|
|
3344
|
+
* @deprecated
|
|
3345
|
+
*/
|
|
3346
|
+
declare type IChatRoomEntries = IChatroomEntries;
|
|
3347
|
+
/**
|
|
3348
|
+
* 定义已废弃,请使用 `IRemoveChatroomEntry` 替换
|
|
3349
|
+
* @deprecated
|
|
3350
|
+
*/
|
|
3351
|
+
declare type IRemoveChatRoomEntry = IRemoveChatroomEntry;
|
|
3352
|
+
|
|
3331
3353
|
/**
|
|
3332
3354
|
* 序列化、反序列化数据通道
|
|
3333
3355
|
*/
|
|
@@ -4093,6 +4115,10 @@ declare class APIContext {
|
|
|
4093
4115
|
* 清除会话消息未读数
|
|
4094
4116
|
*/
|
|
4095
4117
|
clearUnreadCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
4118
|
+
/**
|
|
4119
|
+
* 清除全部会话消息未读数
|
|
4120
|
+
*/
|
|
4121
|
+
clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4096
4122
|
/**
|
|
4097
4123
|
* 获取指定会话消息未读数
|
|
4098
4124
|
*/
|
|
@@ -4162,8 +4188,8 @@ declare class APIContext {
|
|
|
4162
4188
|
* @param roomId 聊天室房间 id
|
|
4163
4189
|
* @param entry 属性信息
|
|
4164
4190
|
*/
|
|
4165
|
-
setChatroomEntry(roomId: string, entry:
|
|
4166
|
-
setChatroomEntries(roomId: string, entryOptions:
|
|
4191
|
+
setChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
|
|
4192
|
+
setChatroomEntries(roomId: string, entryOptions: IChatroomEntries): Promise<{
|
|
4167
4193
|
code: ErrorCode;
|
|
4168
4194
|
data?: any;
|
|
4169
4195
|
}>;
|
|
@@ -4173,21 +4199,21 @@ declare class APIContext {
|
|
|
4173
4199
|
* @param roomId 聊天室房间 id
|
|
4174
4200
|
* @param entry 属性信息
|
|
4175
4201
|
*/
|
|
4176
|
-
forceSetChatroomEntry(roomId: string, entry:
|
|
4202
|
+
forceSetChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
|
|
4177
4203
|
/**
|
|
4178
4204
|
* 删除聊天室属性
|
|
4179
4205
|
* @description 该方法仅限于删除自己设置的聊天室属性
|
|
4180
4206
|
* @param roomId 聊天室房间 id
|
|
4181
4207
|
* @param entry 要移除的属性信息
|
|
4182
4208
|
*/
|
|
4183
|
-
removeChatroomEntry(roomId: string, entry:
|
|
4209
|
+
removeChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
|
|
4184
4210
|
/**
|
|
4185
4211
|
* 批量删除聊天室属性
|
|
4186
4212
|
* @description 该方法仅限于删除自己设置的聊天室属性
|
|
4187
4213
|
* @param roomId 聊天室房间 id
|
|
4188
4214
|
* @param entry 要移除的属性信息
|
|
4189
4215
|
*/
|
|
4190
|
-
removeChatroomEntries(roomId: string, entryOptions:
|
|
4216
|
+
removeChatroomEntries(roomId: string, entryOptions: IRemoveChatroomEntries): Promise<{
|
|
4191
4217
|
code: ErrorCode;
|
|
4192
4218
|
data?: any;
|
|
4193
4219
|
}>;
|
|
@@ -4197,7 +4223,7 @@ declare class APIContext {
|
|
|
4197
4223
|
* @param roomId 聊天室房间 id
|
|
4198
4224
|
* @param entry 要移除的属性信息
|
|
4199
4225
|
*/
|
|
4200
|
-
forceRemoveChatroomEntry(roomId: string, entry:
|
|
4226
|
+
forceRemoveChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
|
|
4201
4227
|
/**
|
|
4202
4228
|
* 获取聊天室中的指定属性
|
|
4203
4229
|
* @param roomId 聊天室房间 id
|
|
@@ -4220,7 +4246,15 @@ declare class APIContext {
|
|
|
4220
4246
|
* * 1:升序,用于获取晚于指定时间戳发送的消息
|
|
4221
4247
|
* @param timestamp 指定拉取消息用到的时间戳。默认值为 `0`,表示按当前时间拉取
|
|
4222
4248
|
*/
|
|
4223
|
-
|
|
4249
|
+
getChatroomHistoryMessages(roomId: string, count?: number, order?: 0 | 1, timestamp?: number): Promise<IAsyncRes<{
|
|
4250
|
+
list: IReceivedMessage[];
|
|
4251
|
+
hasMore: boolean;
|
|
4252
|
+
}>>;
|
|
4253
|
+
/**
|
|
4254
|
+
* 方法已废弃,推荐使用 `getChatroomHistoryMessages` 替代
|
|
4255
|
+
* @deprecated
|
|
4256
|
+
*/
|
|
4257
|
+
getChatRoomHistoryMessages: (roomId: string, count?: number, order?: 0 | 1, timestamp?: number) => Promise<IAsyncRes<{
|
|
4224
4258
|
list: IReceivedMessage[];
|
|
4225
4259
|
hasMore: boolean;
|
|
4226
4260
|
}>>;
|
|
@@ -4858,6 +4892,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
4858
4892
|
* 清除指定会话未读数
|
|
4859
4893
|
*/
|
|
4860
4894
|
abstract clearConversationUnreadCount(conversationType: ConversationType, targetId: string, channelId: string): Promise<ErrorCode>;
|
|
4895
|
+
/**
|
|
4896
|
+
* 清除全部会话未读数
|
|
4897
|
+
*/
|
|
4898
|
+
abstract clearAllUnreadCount(): Promise<ErrorCode>;
|
|
4861
4899
|
/**
|
|
4862
4900
|
* 获取第一个未读消息
|
|
4863
4901
|
*/
|
|
@@ -5713,4 +5751,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5713
5751
|
*/
|
|
5714
5752
|
declare const version: string;
|
|
5715
5753
|
|
|
5716
|
-
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, IChatRoomEntries, IChatRoomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, 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, IRequest, 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 };
|
|
5754
|
+
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, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, 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, IRequest, 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 };
|