@rongcloud/engine 5.9.0-alpha.1 → 5.9.0-alpha.2
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 +9 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7475,6 +7475,7 @@ declare class APIContext {
|
|
|
7475
7475
|
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
7476
7476
|
clearData(): Promise<IAsyncRes<boolean>>;
|
|
7477
7477
|
createLogger(id: string, type: LogType): BasicLogger;
|
|
7478
|
+
createStatisticLogger(id: string, type: LogType): BasicStatistic;
|
|
7478
7479
|
/**
|
|
7479
7480
|
* 设置融云消息重排开关
|
|
7480
7481
|
*/
|
|
@@ -7605,6 +7606,13 @@ declare class PluginContext {
|
|
|
7605
7606
|
* @param type 目前仅支持 `IM` 与 `RTC` 两个值
|
|
7606
7607
|
*/
|
|
7607
7608
|
createLogger(id: string, type: LogType): BasicLogger;
|
|
7609
|
+
/**
|
|
7610
|
+
* 创建埋点工具实例
|
|
7611
|
+
* @param id 埋点工具 ID,用于区分埋点实例,以确定埋点调用者身份
|
|
7612
|
+
* @param type 目前仅支持 `IM` 与 `RTC` 两个值
|
|
7613
|
+
* @description 埋点工具实例与日志工具实例的区别在于,埋点工具仅用于处理等级为 -2 的埋点数据,不会输出到控制台
|
|
7614
|
+
*/
|
|
7615
|
+
createStatisticLogger(id: string, type: LogType): BasicStatistic;
|
|
7608
7616
|
}
|
|
7609
7617
|
|
|
7610
7618
|
declare class RTCPluginContext extends PluginContext {
|
|
@@ -7884,6 +7892,7 @@ declare abstract class AEngine {
|
|
|
7884
7892
|
* 为非 engine 包创建 logger 工具实例
|
|
7885
7893
|
*/
|
|
7886
7894
|
abstract createLogger(id: string, type: LogType): BasicLogger;
|
|
7895
|
+
abstract createStatisticLogger(id: string, type: LogType): BasicStatistic;
|
|
7887
7896
|
/**
|
|
7888
7897
|
* 获取 engine 包内部 logger 工具
|
|
7889
7898
|
*/
|