@koi-design/callkit 2.3.0-beta.4 → 2.3.0-beta.6
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/index.d.ts +0 -2
- package/dist/index.global.js +5 -5
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4907,8 +4907,6 @@ declare class Config {
|
|
|
4907
4907
|
reset: (form: string) => Promise<void>;
|
|
4908
4908
|
validate: () => boolean;
|
|
4909
4909
|
isLogin: () => boolean;
|
|
4910
|
-
/** 判断当前坐席类型是否为 SIP */
|
|
4911
|
-
isPhoneTypeSIP: () => boolean;
|
|
4912
4910
|
check(): boolean;
|
|
4913
4911
|
getTrackLogsConfig(): {
|
|
4914
4912
|
enabled: boolean;
|
package/dist/index.global.js
CHANGED
|
@@ -3889,7 +3889,7 @@ var WebCall = (() => {
|
|
|
3889
3889
|
// package.json
|
|
3890
3890
|
var package_default = {
|
|
3891
3891
|
name: "@koi-design/callkit",
|
|
3892
|
-
version: "2.3.0-beta.
|
|
3892
|
+
version: "2.3.0-beta.6",
|
|
3893
3893
|
description: "callkit",
|
|
3894
3894
|
author: "koi",
|
|
3895
3895
|
license: "ISC",
|
|
@@ -4034,8 +4034,6 @@ var WebCall = (() => {
|
|
|
4034
4034
|
return true;
|
|
4035
4035
|
};
|
|
4036
4036
|
isLogin = () => this.validate();
|
|
4037
|
-
/** 判断当前坐席类型是否为 SIP */
|
|
4038
|
-
isPhoneTypeSIP = () => this.config.userInfo.phoneType === PhoneTypeEnum.SIP;
|
|
4039
4037
|
check() {
|
|
4040
4038
|
if (!this.isLogin()) {
|
|
4041
4039
|
this.callKit.logger.warn("User not logged in", {
|
|
@@ -20552,7 +20550,8 @@ ${log}` : log;
|
|
|
20552
20550
|
caller: "CallKit.register",
|
|
20553
20551
|
content: {}
|
|
20554
20552
|
});
|
|
20555
|
-
|
|
20553
|
+
const { userInfo } = this.config.getConfig();
|
|
20554
|
+
if (userInfo.phoneType === PhoneTypeEnum.SIP) {
|
|
20556
20555
|
this.connect.register();
|
|
20557
20556
|
}
|
|
20558
20557
|
}
|
|
@@ -20664,7 +20663,8 @@ ${log}` : log;
|
|
|
20664
20663
|
force
|
|
20665
20664
|
}
|
|
20666
20665
|
});
|
|
20667
|
-
|
|
20666
|
+
const { userInfo } = this.config.getConfig();
|
|
20667
|
+
if (userInfo.phoneType === PhoneTypeEnum.SIP) {
|
|
20668
20668
|
if (this.connect.isCalling()) {
|
|
20669
20669
|
await this.hangup();
|
|
20670
20670
|
}
|