@rongcloud/engine 5.0.2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCEngine - v5.0.2
3
- * CommitId - 2f7e168dbfa90aeb36ded32505fa5b07d1fde72f
4
- * Thu Dec 30 2021 14:14:19 GMT+0800 (China Standard Time)
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
  /**
@@ -1969,7 +1969,7 @@ interface IChatroomListenerData {
1969
1969
  */
1970
1970
  chatroomDestroyed?: string;
1971
1971
  }
1972
- interface IChatRoomEntry {
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 IRemoveChatRoomEntry {
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 IRemoveChatRoomEntries {
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 IChatRoomEntries {
2044
+ interface IChatroomEntries {
2045
2045
  /**
2046
2046
  * entries ,要设置的属性列表
2047
2047
  * key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
@@ -3329,6 +3329,27 @@ interface ITypingMessage {
3329
3329
  list: Array<ITypingUser>;
3330
3330
  }
3331
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
+
3332
3353
  /**
3333
3354
  * 序列化、反序列化数据通道
3334
3355
  */
@@ -4167,8 +4188,8 @@ declare class APIContext {
4167
4188
  * @param roomId 聊天室房间 id
4168
4189
  * @param entry 属性信息
4169
4190
  */
4170
- setChatroomEntry(roomId: string, entry: IChatRoomEntry): Promise<ErrorCode>;
4171
- setChatroomEntries(roomId: string, entryOptions: IChatRoomEntries): Promise<{
4191
+ setChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
4192
+ setChatroomEntries(roomId: string, entryOptions: IChatroomEntries): Promise<{
4172
4193
  code: ErrorCode;
4173
4194
  data?: any;
4174
4195
  }>;
@@ -4178,21 +4199,21 @@ declare class APIContext {
4178
4199
  * @param roomId 聊天室房间 id
4179
4200
  * @param entry 属性信息
4180
4201
  */
4181
- forceSetChatroomEntry(roomId: string, entry: IChatRoomEntry): Promise<ErrorCode>;
4202
+ forceSetChatroomEntry(roomId: string, entry: IChatroomEntry): Promise<ErrorCode>;
4182
4203
  /**
4183
4204
  * 删除聊天室属性
4184
4205
  * @description 该方法仅限于删除自己设置的聊天室属性
4185
4206
  * @param roomId 聊天室房间 id
4186
4207
  * @param entry 要移除的属性信息
4187
4208
  */
4188
- removeChatroomEntry(roomId: string, entry: IRemoveChatRoomEntry): Promise<ErrorCode>;
4209
+ removeChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
4189
4210
  /**
4190
4211
  * 批量删除聊天室属性
4191
4212
  * @description 该方法仅限于删除自己设置的聊天室属性
4192
4213
  * @param roomId 聊天室房间 id
4193
4214
  * @param entry 要移除的属性信息
4194
4215
  */
4195
- removeChatroomEntries(roomId: string, entryOptions: IRemoveChatRoomEntries): Promise<{
4216
+ removeChatroomEntries(roomId: string, entryOptions: IRemoveChatroomEntries): Promise<{
4196
4217
  code: ErrorCode;
4197
4218
  data?: any;
4198
4219
  }>;
@@ -4202,7 +4223,7 @@ declare class APIContext {
4202
4223
  * @param roomId 聊天室房间 id
4203
4224
  * @param entry 要移除的属性信息
4204
4225
  */
4205
- forceRemoveChatroomEntry(roomId: string, entry: IRemoveChatRoomEntry): Promise<ErrorCode>;
4226
+ forceRemoveChatroomEntry(roomId: string, entry: IRemoveChatroomEntry): Promise<ErrorCode>;
4206
4227
  /**
4207
4228
  * 获取聊天室中的指定属性
4208
4229
  * @param roomId 聊天室房间 id
@@ -4225,7 +4246,15 @@ declare class APIContext {
4225
4246
  * * 1:升序,用于获取晚于指定时间戳发送的消息
4226
4247
  * @param timestamp 指定拉取消息用到的时间戳。默认值为 `0`,表示按当前时间拉取
4227
4248
  */
4228
- getChatRoomHistoryMessages(roomId: string, count?: number, order?: 0 | 1, timestamp?: number): Promise<IAsyncRes<{
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<{
4229
4258
  list: IReceivedMessage[];
4230
4259
  hasMore: boolean;
4231
4260
  }>>;
@@ -5722,4 +5751,4 @@ declare enum CONNECTION_TYPE {
5722
5751
  */
5723
5752
  declare const version: string;
5724
5753
 
5725
- 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 };