ysyt-agent-sdk 1.0.71 → 1.0.73
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/src/index.d.ts +5 -2
- package/dist/src/internal/_internalStore.d.ts +1 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/utils/logger.d.ts +9 -0
- package/dist/ysyt-agent-sdk.cjs.js +4 -13
- package/dist/ysyt-agent-sdk.esm.js +4 -13
- package/dist/ysyt-agent-sdk.umd.js +8 -17
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export type * from './types';
|
|
|
3
3
|
export * from './types/Enum';
|
|
4
4
|
declare class YSYTAgentSdk {
|
|
5
5
|
#private;
|
|
6
|
-
|
|
6
|
+
private static _instance;
|
|
7
|
+
private constructor();
|
|
8
|
+
static getInstance(): YSYTAgentSdk;
|
|
7
9
|
initWebRtc(): Promise<void>;
|
|
8
10
|
/**
|
|
9
11
|
* 初始化SDK
|
|
@@ -13,8 +15,9 @@ declare class YSYTAgentSdk {
|
|
|
13
15
|
* @param appSecret
|
|
14
16
|
* @param agentNo 坐席工号
|
|
15
17
|
* @param enableBrowserAlert 是否开启浏览器通知
|
|
18
|
+
* @param logBuiltinEnabled 是否开启日志
|
|
16
19
|
*/
|
|
17
|
-
init({ actionNodeParams, url, appKey, appSecret, agentNo, enableBrowserAlert }: InitInfoType): Promise<void>;
|
|
20
|
+
init({ actionNodeParams, url, appKey, appSecret, agentNo, enableBrowserAlert, logBuiltinEnabled, }: InitInfoType): Promise<void>;
|
|
18
21
|
on<K extends keyof Events>(event: K, handler: (data: Events[K]) => void): this;
|
|
19
22
|
off<K extends keyof Events>(event: K, listener: (msg: Events[K]) => void): void;
|
|
20
23
|
offAll(): void;
|