@rongcloud/engine 5.7.5 → 5.7.7

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/index.d.ts CHANGED
@@ -1289,7 +1289,11 @@ declare enum UploadMethod {
1289
1289
  /**
1290
1290
  * stc上传
1291
1291
  */
1292
- STC = 4
1292
+ STC = 4,
1293
+ /**
1294
+ * minio上传
1295
+ */
1296
+ MINIO = 5
1293
1297
  }
1294
1298
 
1295
1299
  /**
@@ -1700,6 +1704,7 @@ interface IAndroidPushConfig {
1700
1704
  * Large icon 可以出现在大图版和多字版消息中,显示在右边。
1701
1705
  * 国内版仅 MIUI12 以上版本支持,以下版本均不支持;国际版支持。
1702
1706
  * 图片要求:大小 120 * 120px,格式为 png 或者 jpg 格式。
1707
+ * @since 5.7.3 版本开始支持
1703
1708
  */
1704
1709
  miLargeIconUrl?: string;
1705
1710
  /**
@@ -1709,17 +1714,19 @@ interface IAndroidPushConfig {
1709
1714
  /**
1710
1715
  * 华为推送消息分类
1711
1716
  * 更多信息请参考华为消息分类标准文档: https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835
1712
- * 5.7.3 版本开始支持
1717
+ * @since 5.7.3 版本开始支持
1713
1718
  */
1714
1719
  categoryHW?: string;
1715
1720
  /**
1716
1721
  * 华为推送消息级别
1717
1722
  * LOW: 表示消息为资讯营销
1718
1723
  * NORMAL: 消息为服务与通讯
1724
+ * @since 5.7.3 版本开始支持
1719
1725
  */
1720
1726
  importanceHW?: 'NORMAL' | 'LOW';
1721
1727
  /**
1722
1728
  * 华为通知类型的推送所使用的通知图片 url
1729
+ * @since 5.7.3 版本开始支持
1723
1730
  */
1724
1731
  imageUrlHW?: string;
1725
1732
  /**
@@ -1730,6 +1737,15 @@ interface IAndroidPushConfig {
1730
1737
  * vivo 的类型
1731
1738
  */
1732
1739
  typeVivo?: string;
1740
+ /**
1741
+ * Vivo 分类
1742
+ * 即时消息[IM],账号与资产[ACCOUNT],日程待办[TODO],设备信息[DEVICE_REMINDER],订单与物流[ORDER],订阅提醒[SUBSCRIPTION]
1743
+ * 运营消息分类
1744
+ * 新闻[NEWS],内容推荐[CONTENT],运营活动[MARKETING],社交动态[SOCIAL]
1745
+ *
1746
+ * @since 5.7.5
1747
+ */
1748
+ categoryVivo?: string;
1733
1749
  /**
1734
1750
  * google FCM 的推送配置
1735
1751
  */
@@ -2838,6 +2854,22 @@ interface IUploadAuth {
2838
2854
  * stc 存储空间名称
2839
2855
  */
2840
2856
  stcBucketName: string;
2857
+ /**
2858
+ * minio Authorization 头
2859
+ */
2860
+ minioAuthorization: string;
2861
+ /**
2862
+ * minio xAmzContentSha256
2863
+ */
2864
+ minioContentSha256: string;
2865
+ /**
2866
+ * minio date
2867
+ */
2868
+ minioDate: string;
2869
+ /**
2870
+ * minio 存储空间名称
2871
+ */
2872
+ minioBucketName: string;
2841
2873
  }
2842
2874
 
2843
2875
  interface IRTCRoomInfo {
@@ -5113,6 +5145,7 @@ declare class APIContext {
5113
5145
  * 启动定时移除typing
5114
5146
  */
5115
5147
  private _startCheckTypingInfo;
5148
+ private _notifyTypingChanged;
5116
5149
  getConnectedTime(): number;
5117
5150
  getServerTime(): number;
5118
5151
  getDeviceId(): string;
@@ -7004,20 +7037,6 @@ declare const isValidExpansion: (expansion: {
7004
7037
  [key: string]: string;
7005
7038
  } | undefined) => IIsValidExpansion;
7006
7039
 
7007
- /**
7008
- * @deprecated
7009
- * logLevelTransformer
7010
- * @description 数据中心与前端日志规范LogLevel定义不统一
7011
- * WebLogLevel(前端日志级别) -> ServerLogLevel(服务器日志级别)
7012
- * @param level LogLevel
7013
- * @returns serverLogLevel
7014
- */
7015
- declare function logLevelTransformer(level: LogLevel): number;
7016
- /**
7017
- * @deprecated
7018
- * Trace ID 生成器
7019
- */
7020
- declare function ID(): string;
7021
7040
  /**
7022
7041
  * @deprecated
7023
7042
  */
@@ -7047,8 +7066,6 @@ declare const error: (tagId: string, logObj?: Object | undefined, logExtens?: an
7047
7066
  */
7048
7067
  declare const fatal: (tagId: string, logObj?: Object | undefined, logExtens?: any) => void;
7049
7068
 
7050
- declare const base_logLevelTransformer: typeof logLevelTransformer;
7051
- declare const base_ID: typeof ID;
7052
7069
  declare const base_init: typeof init;
7053
7070
  declare const base_log: typeof log;
7054
7071
  declare const base_debug: typeof debug;
@@ -7058,8 +7075,6 @@ declare const base_error: typeof error;
7058
7075
  declare const base_fatal: typeof fatal;
7059
7076
  declare namespace base {
7060
7077
  export {
7061
- base_logLevelTransformer as logLevelTransformer,
7062
- base_ID as ID,
7063
7078
  base_init as init,
7064
7079
  base_log as log,
7065
7080
  base_debug as debug,
@@ -7070,76 +7085,6 @@ declare namespace base {
7070
7085
  };
7071
7086
  }
7072
7087
 
7073
- /**
7074
- * @deprecated
7075
- * @description 兼容旧版用法,建议用Logger静态方法
7076
- * 1、不符合新版Web日志规范
7077
- * 2、不支持自定义TagId
7078
- * 3、后续可能删除,要逐步迁移新Web规范
7079
- */
7080
- declare class Logger {
7081
- readonly tagId: string;
7082
- readonly logSource?: LogSource | undefined;
7083
- private readonly initiator?;
7084
- /**
7085
- *
7086
- * @param tagId
7087
- * @param logSource 类型
7088
- * @param initiator 发起方(A: APP 层,L: Lib 层)
7089
- */
7090
- constructor(tagId: string, logSource?: LogSource | undefined, initiator?: string | undefined);
7091
- /**
7092
- * @deprecated
7093
- * 自定义本地打印日志级别
7094
- * @param logLevel
7095
- */
7096
- setLogLevel(logLevel?: LogLevel): void;
7097
- /**
7098
- * @deprecated
7099
- * 自定义本地打印函数
7100
- */
7101
- setLogStdout(stdout?: (level: LogLevel, content: string) => void): void;
7102
- /**
7103
- * @deprecated
7104
- */
7105
- private log;
7106
- /**
7107
- * @deprecated
7108
- */
7109
- debug: (...args: any[]) => void;
7110
- /**
7111
- * @deprecated
7112
- */
7113
- info: (...args: any[]) => void;
7114
- /**
7115
- * @deprecated
7116
- */
7117
- warn: (...args: any[]) => void;
7118
- /**
7119
- * @deprecated
7120
- */
7121
- error: (...args: any[]) => void;
7122
- /**
7123
- * @deprecated
7124
- */
7125
- fatal: (...args: any[]) => void;
7126
- /**
7127
- * @deprecated
7128
- * 函数已废弃,使用 `setLogLevel` 与 `setStdout` 方法替代
7129
- */
7130
- set(outLevel: LogLevel, stdout?: (level: LogLevel, ...args: any[]) => void): void;
7131
- /**
7132
- * 接口已废弃,改用 `setLogStdout`
7133
- * @param stdout
7134
- * @deprecated
7135
- */
7136
- setStdout(stdout?: (level: LogLevel, msgTag: string, ...args: any[]) => void): void;
7137
- }
7138
- /**
7139
- * @deprecated
7140
- */
7141
- declare const logger: Logger;
7142
-
7143
7088
  declare const getUUID: () => string;
7144
7089
  declare const getUUID22: () => string;
7145
7090
 
@@ -7403,4 +7348,4 @@ declare type AbsCodec<T> = Codec<T>;
7403
7348
  */
7404
7349
  declare const version: string;
7405
7350
 
7406
- export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BAIDU_STORAGE_SERVER_URI, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DEFAULT_LOG_POLICY, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMessage, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRecallMsgContent, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PUBLIC_CLOUD_NAVI_URIS, PluginContext, QINIU_STORAGE_SERVER_URI, RCAssertError, RCConnectionStatus, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, SentStatus, StoreKeys, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, UserGroupChangeType, VERSION, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, deInitLogDB, logger as engineLogger, forEach, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, initLogDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, transcsv, usingCppEngine, validate, version };
7351
+ export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BAIDU_STORAGE_SERVER_URI, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DEFAULT_LOG_POLICY, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMessage, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRecallMsgContent, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PUBLIC_CLOUD_NAVI_URIS, PluginContext, QINIU_STORAGE_SERVER_URI, RCAssertError, RCConnectionStatus, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, SentStatus, StoreKeys, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, UserGroupChangeType, VERSION, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, deInitLogDB, forEach, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, initLogDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, transcsv, usingCppEngine, validate, version };