ysyt-agent-sdk 1.0.104 → 1.0.106
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 +3 -1
- package/dist/src/internal/_internalStore.d.ts +1 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/utils/notification-util.d.ts +2 -1
- package/dist/ysyt-agent-sdk.cjs.js +2 -2
- package/dist/ysyt-agent-sdk.esm.js +2 -2
- package/dist/ysyt-agent-sdk.umd.js +2 -2
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare class YSYTAgentSdk {
|
|
|
22
22
|
* @param enableBrowserAlert 是否开启浏览器通知
|
|
23
23
|
* @param logBuiltinEnabled 是否开启日志
|
|
24
24
|
*/
|
|
25
|
-
init({ actionNodeParams, enableBrowserAlert, logBuiltinEnabled }: InitInfoType): Promise<void>;
|
|
25
|
+
init({ actionNodeParams, enableBrowserAlert, logBuiltinEnabled, browserAlertTime }: InitInfoType): Promise<void>;
|
|
26
26
|
on<K extends keyof Events>(event: K, handler: (data: Events[K]) => void): this;
|
|
27
27
|
off<K extends keyof Events>(event: K, listener: (msg: Events[K]) => void): void;
|
|
28
28
|
offAll(): void;
|
|
@@ -67,5 +67,7 @@ declare class YSYTAgentSdk {
|
|
|
67
67
|
};
|
|
68
68
|
getAgentData(): AgentDataType;
|
|
69
69
|
getRealTimeCustomerInfo(): Promise<CallCrmObject>;
|
|
70
|
+
setBrowserAlert(logBuiltinEnabled: boolean): void;
|
|
71
|
+
setBrowserAlertTime(browserAlertTime: number): void;
|
|
70
72
|
}
|
|
71
73
|
export default YSYTAgentSdk;
|
|
@@ -13,8 +13,9 @@ export declare class NotificationUtil {
|
|
|
13
13
|
* @param title 通知标题
|
|
14
14
|
* @param body 通知内容
|
|
15
15
|
* @param onClick 点击回调
|
|
16
|
+
* @param browser_alert_time 消失时间
|
|
16
17
|
*/
|
|
17
|
-
static show(title: string, body: string, onClick?: () => void): void;
|
|
18
|
+
static show(title: string, body: string, onClick?: () => void, browser_alert_time?: number): void;
|
|
18
19
|
/**
|
|
19
20
|
* 检查是否已授予音频权限(返回 true/false)
|
|
20
21
|
*/
|