@rongcloud/engine 5.4.2-beem.1 → 5.4.2-beem.4
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 +42 -74
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1411,6 +1411,7 @@ declare enum LogTagId {
|
|
|
1411
1411
|
L_MEDIA_UPLOAD_T = "L-media_upload-T",
|
|
1412
1412
|
L_MEDIA_UPLOAD_R = "L-media_upload-R",
|
|
1413
1413
|
G_UPLOAD_LOG_S = "G-upload_log-S",
|
|
1414
|
+
G_REPORT_LOG_S = "G-report_log-S",
|
|
1414
1415
|
G_UPLOAD_LOG_E = "G-upload_log-E",
|
|
1415
1416
|
G_GET_REAL_TIMELOG_COMMAND_S = "G-get_real_timelog_command-S",
|
|
1416
1417
|
L_CHECK_ALIVE_IM_T = "L-check_alive_im-T",
|
|
@@ -3913,7 +3914,7 @@ interface ILogInfo {
|
|
|
3913
3914
|
tagId?: LogTagId;
|
|
3914
3915
|
}
|
|
3915
3916
|
interface IRealTimeLog {
|
|
3916
|
-
level:
|
|
3917
|
+
level: number;
|
|
3917
3918
|
content: string;
|
|
3918
3919
|
}
|
|
3919
3920
|
interface ILogExtensions {
|
|
@@ -3925,6 +3926,16 @@ interface ILogInit {
|
|
|
3925
3926
|
localLogLevel?: LogLevel;
|
|
3926
3927
|
customLogPrint?: (logLevel: LogLevel, msg: string) => void;
|
|
3927
3928
|
}
|
|
3929
|
+
interface IInitBigDataOption {
|
|
3930
|
+
runtime?: IRuntime;
|
|
3931
|
+
appkey?: string;
|
|
3932
|
+
version?: string;
|
|
3933
|
+
userId?: string;
|
|
3934
|
+
}
|
|
3935
|
+
interface IBigdataLogInit extends IInitBigDataOption {
|
|
3936
|
+
logUrl: string;
|
|
3937
|
+
sessionId: string;
|
|
3938
|
+
}
|
|
3928
3939
|
|
|
3929
3940
|
/**
|
|
3930
3941
|
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
@@ -4581,6 +4592,17 @@ interface IAPIContextOption {
|
|
|
4581
4592
|
* 是否校验证书,默认为 true
|
|
4582
4593
|
*/
|
|
4583
4594
|
checkCA?: boolean;
|
|
4595
|
+
/**
|
|
4596
|
+
* 实时日志收集功能自定义上传策略
|
|
4597
|
+
* @param {number} logSwitch 日志收集功能开关,0 关闭;1 开启
|
|
4598
|
+
* @param {LogLevel} level 日志上传级别
|
|
4599
|
+
* @param {number} itv: interval 即日志上传间隔,单位秒,最小时间间隔 1 秒
|
|
4600
|
+
*/
|
|
4601
|
+
logPolicy?: {
|
|
4602
|
+
logSwitch?: number;
|
|
4603
|
+
level?: LogLevel;
|
|
4604
|
+
itv?: number;
|
|
4605
|
+
};
|
|
4584
4606
|
}
|
|
4585
4607
|
|
|
4586
4608
|
interface IPluginGenerator<API, InitOption> {
|
|
@@ -6457,82 +6479,11 @@ declare const isValidExpansion: (expansion: {
|
|
|
6457
6479
|
[key: string]: string;
|
|
6458
6480
|
} | undefined) => IIsValidExpansion;
|
|
6459
6481
|
|
|
6460
|
-
/** ******************************************新重构logger,按照Web新日志规范上报 ********************************** **/
|
|
6461
|
-
declare const sessionId: string;
|
|
6462
|
-
/**
|
|
6463
|
-
* logLevelTransformer
|
|
6464
|
-
* @description 数据中心与前端日志规范LogLevel定义不统一
|
|
6465
|
-
* WebLogLevel(前端日志级别) -> ServerLogLevel(服务器日志级别)
|
|
6466
|
-
* @param level { LogLevel }
|
|
6467
|
-
* @returns serverLogLevel
|
|
6468
|
-
*/
|
|
6469
|
-
declare function logLevelTransformer(level: LogLevel): number;
|
|
6470
|
-
/**
|
|
6471
|
-
* 序列化引用型数据为字符串
|
|
6472
|
-
* @value value
|
|
6473
|
-
*/
|
|
6474
|
-
declare const formatLogObj: (value: unknown) => unknown;
|
|
6475
|
-
/**
|
|
6476
|
-
* 缓存日志
|
|
6477
|
-
* @param logLevel 打印等级
|
|
6478
|
-
* @param logObj 日志内容
|
|
6479
|
-
* @param tagId 日志tag
|
|
6480
|
-
*/
|
|
6481
|
-
declare function insertIntoLogCache(logLevel: LogLevel, tagId: string, logObj: any, logSource?: LogSource): ILogInfo;
|
|
6482
|
-
/**
|
|
6483
|
-
* 本地默认输出函数
|
|
6484
|
-
* @param level
|
|
6485
|
-
* @param args
|
|
6486
|
-
*/
|
|
6487
|
-
declare function _defaultStdout(level: LogLevel, msgTag: string, ...logContents: any[]): void;
|
|
6488
|
-
/**
|
|
6489
|
-
* Trace ID 生成器
|
|
6490
|
-
*/
|
|
6491
|
-
declare function ID(): string;
|
|
6492
|
-
declare function init(userLogInfo: ILogInit): void;
|
|
6493
|
-
declare function log(logLevel: LogLevel, tagId: LogTagId | string, logObj?: Object, logExtens?: ILogExtensions): void;
|
|
6494
|
-
declare const debug: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6495
|
-
declare const info: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6496
|
-
declare const warn: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6497
|
-
declare const error: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6498
|
-
declare const fatal: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6499
|
-
|
|
6500
|
-
declare const base_sessionId: typeof sessionId;
|
|
6501
|
-
declare const base_logLevelTransformer: typeof logLevelTransformer;
|
|
6502
|
-
declare const base_formatLogObj: typeof formatLogObj;
|
|
6503
|
-
declare const base_insertIntoLogCache: typeof insertIntoLogCache;
|
|
6504
|
-
declare const base__defaultStdout: typeof _defaultStdout;
|
|
6505
|
-
declare const base_ID: typeof ID;
|
|
6506
|
-
declare const base_init: typeof init;
|
|
6507
|
-
declare const base_log: typeof log;
|
|
6508
|
-
declare const base_debug: typeof debug;
|
|
6509
|
-
declare const base_info: typeof info;
|
|
6510
|
-
declare const base_warn: typeof warn;
|
|
6511
|
-
declare const base_error: typeof error;
|
|
6512
|
-
declare const base_fatal: typeof fatal;
|
|
6513
|
-
declare namespace base {
|
|
6514
|
-
export {
|
|
6515
|
-
base_sessionId as sessionId,
|
|
6516
|
-
base_logLevelTransformer as logLevelTransformer,
|
|
6517
|
-
base_formatLogObj as formatLogObj,
|
|
6518
|
-
base_insertIntoLogCache as insertIntoLogCache,
|
|
6519
|
-
base__defaultStdout as _defaultStdout,
|
|
6520
|
-
base_ID as ID,
|
|
6521
|
-
base_init as init,
|
|
6522
|
-
base_log as log,
|
|
6523
|
-
base_debug as debug,
|
|
6524
|
-
base_info as info,
|
|
6525
|
-
base_warn as warn,
|
|
6526
|
-
base_error as error,
|
|
6527
|
-
base_fatal as fatal,
|
|
6528
|
-
};
|
|
6529
|
-
}
|
|
6530
|
-
|
|
6531
6482
|
/** *********************实时日志上报***************** */
|
|
6532
6483
|
|
|
6533
6484
|
/**
|
|
6534
6485
|
* 缓存日志实时
|
|
6535
|
-
* @param logLevel 日志等级
|
|
6486
|
+
* @param {LogLevel} logLevel 日志等级
|
|
6536
6487
|
* @param tagId 日志标签
|
|
6537
6488
|
* @param content 日志内容
|
|
6538
6489
|
*/
|
|
@@ -6599,6 +6550,23 @@ declare class Logger {
|
|
|
6599
6550
|
}
|
|
6600
6551
|
declare const _default: Logger;
|
|
6601
6552
|
|
|
6553
|
+
declare const logger: {
|
|
6554
|
+
reportLog: typeof reportLog;
|
|
6555
|
+
logLevelTransformer(level: LogLevel): number;
|
|
6556
|
+
insertIntoLogCache(logLevel: LogLevel, tagId: string, logObj: any, logSource?: LogSource | undefined): ILogInfo;
|
|
6557
|
+
_defaultStdout(level: LogLevel, msgTag: string, ...logContents: any[]): void;
|
|
6558
|
+
ID(): string;
|
|
6559
|
+
init(userLogInfo: ILogInit): void;
|
|
6560
|
+
log(logLevel: LogLevel, tagId: string, logObj?: Object, logExtens?: ILogExtensions): void;
|
|
6561
|
+
sessionId: string;
|
|
6562
|
+
formatLogObj: (value: unknown) => unknown;
|
|
6563
|
+
debug: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6564
|
+
info: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6565
|
+
warn: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6566
|
+
error: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6567
|
+
fatal: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6568
|
+
};
|
|
6569
|
+
|
|
6602
6570
|
declare const randomNum: (min: number, max: number) => number;
|
|
6603
6571
|
declare const getUUID: () => string;
|
|
6604
6572
|
declare const getUUID22: () => string;
|
|
@@ -6844,4 +6812,4 @@ declare const ONE_LOG_SIZE_MAX = 1000;
|
|
|
6844
6812
|
*/
|
|
6845
6813
|
declare const version: string;
|
|
6846
6814
|
|
|
6847
|
-
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogExtensions, ILogInfo, ILogInit, IM_CHATROOM_PULL_INTERVAL_TIME, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRealTimeLog, 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, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogSource, LogTagId, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType,
|
|
6815
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBigdataLogInit, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IInitBigDataOption, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogExtensions, ILogInfo, ILogInit, IM_CHATROOM_PULL_INTERVAL_TIME, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRealTimeLog, 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, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogSource, LogTagId, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, reportLog, todo, usingCppEngine, validate, version };
|