@94ai/nf-softphone 9.0.0 → 10.0.0
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/lib/index.d.ts +779 -779
- package/lib/nf-softphone.cjs.js +5 -4
- package/lib/nf-softphone.esm-bundler.js +5 -4
- package/lib/nf-softphone.vue.d.ts +193 -193
- package/lib/softphone-pure.d.ts +94 -94
- package/lib/softphone.d.ts +49 -49
- package/lib/style/css.d.ts +1 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/type.d.ts +46 -46
- package/package/html/softphone.js +2 -4
- package/package/html/util.js +2 -1
- package/package/nf-softphone.vue +3 -1
- package/package/softphone-pure.ts +10 -26
- package/package/softphone.ts +1 -3
- package/package.json +8 -8
package/lib/nf-softphone.cjs.js
CHANGED
|
@@ -315,10 +315,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
315
315
|
}, 500, false);
|
|
316
316
|
vueDemi.onMounted(async () => {
|
|
317
317
|
var _a2, _b, _c;
|
|
318
|
+
const position = await refreshStyle();
|
|
319
|
+
if (!position || !iframeDom.value)
|
|
320
|
+
return;
|
|
318
321
|
const {
|
|
319
322
|
top,
|
|
320
323
|
left
|
|
321
|
-
} =
|
|
324
|
+
} = position;
|
|
322
325
|
const {
|
|
323
326
|
envMap,
|
|
324
327
|
env,
|
|
@@ -598,9 +601,7 @@ class SoftphoneManager {
|
|
|
598
601
|
const styleId = "nf-softphone";
|
|
599
602
|
const css = document.getElementById(styleId);
|
|
600
603
|
if (css) {
|
|
601
|
-
|
|
602
|
-
css.parentNode.removeChild(css);
|
|
603
|
-
}
|
|
604
|
+
css.parentNode.removeChild(css);
|
|
604
605
|
}
|
|
605
606
|
};
|
|
606
607
|
this.getContextDomElement = (el) => {
|
|
@@ -313,10 +313,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
313
313
|
}, 500, false);
|
|
314
314
|
onMounted(async () => {
|
|
315
315
|
var _a2, _b, _c;
|
|
316
|
+
const position = await refreshStyle();
|
|
317
|
+
if (!position || !iframeDom.value)
|
|
318
|
+
return;
|
|
316
319
|
const {
|
|
317
320
|
top,
|
|
318
321
|
left
|
|
319
|
-
} =
|
|
322
|
+
} = position;
|
|
320
323
|
const {
|
|
321
324
|
envMap,
|
|
322
325
|
env,
|
|
@@ -596,9 +599,7 @@ class SoftphoneManager {
|
|
|
596
599
|
const styleId = "nf-softphone";
|
|
597
600
|
const css = document.getElementById(styleId);
|
|
598
601
|
if (css) {
|
|
599
|
-
|
|
600
|
-
css.parentNode.removeChild(css);
|
|
601
|
-
}
|
|
602
|
+
css.parentNode.removeChild(css);
|
|
602
603
|
}
|
|
603
604
|
};
|
|
604
605
|
this.getContextDomElement = (el) => {
|
|
@@ -1,193 +1,193 @@
|
|
|
1
|
-
import { Env } from './type';
|
|
2
|
-
declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
sgGateway?: string | undefined;
|
|
4
|
-
sgBase?: string | undefined;
|
|
5
|
-
sgOpen?: string | undefined;
|
|
6
|
-
sgDomain?: string | undefined;
|
|
7
|
-
scrollingText?: string | undefined;
|
|
8
|
-
scrollview?: string | undefined;
|
|
9
|
-
envMap?: Partial<Record<Env, string>> | undefined;
|
|
10
|
-
env?: Env | undefined;
|
|
11
|
-
agentId?: string | undefined;
|
|
12
|
-
agentTag?: string | undefined;
|
|
13
|
-
appKey?: string | undefined;
|
|
14
|
-
appSecret?: string | undefined;
|
|
15
|
-
extStatus?: string | undefined;
|
|
16
|
-
timestamp?: string | number | undefined;
|
|
17
|
-
sign?: string | undefined;
|
|
18
|
-
origin?: string | undefined;
|
|
19
|
-
ancestorOrigin?: string | undefined;
|
|
20
|
-
destinationOrigin?: string | undefined;
|
|
21
|
-
callShow?: "0" | "1" | undefined;
|
|
22
|
-
transferToLaborShow?: "0" | "1" | undefined;
|
|
23
|
-
restShow?: "0" | "1" | undefined;
|
|
24
|
-
networkDetectShow?: "0" | "1" | undefined;
|
|
25
|
-
muteShow?: "0" | "1" | undefined;
|
|
26
|
-
logShow?: "0" | "1" | undefined;
|
|
27
|
-
timingShow?: "0" | "1" | undefined;
|
|
28
|
-
signShow?: "0" | "1" | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
scrollingText: undefined;
|
|
31
|
-
scrollview: undefined;
|
|
32
|
-
envMap: () => {
|
|
33
|
-
test: string;
|
|
34
|
-
dev: string;
|
|
35
|
-
sg: string;
|
|
36
|
-
gray: string;
|
|
37
|
-
prod: string;
|
|
38
|
-
};
|
|
39
|
-
env: string;
|
|
40
|
-
sgGateway: undefined;
|
|
41
|
-
sgBase: undefined;
|
|
42
|
-
sgOpen: undefined;
|
|
43
|
-
sgDomain: undefined;
|
|
44
|
-
agentId: undefined;
|
|
45
|
-
agentTag: undefined;
|
|
46
|
-
appKey: undefined;
|
|
47
|
-
appSecret: undefined;
|
|
48
|
-
timestamp: undefined;
|
|
49
|
-
sign: undefined;
|
|
50
|
-
extStatus: string;
|
|
51
|
-
origin: string;
|
|
52
|
-
ancestorOrigin: string;
|
|
53
|
-
destinationOrigin: string;
|
|
54
|
-
callShow: string;
|
|
55
|
-
transferToLaborShow: string;
|
|
56
|
-
restShow: string;
|
|
57
|
-
networkDetectShow: string;
|
|
58
|
-
muteShow: string;
|
|
59
|
-
logShow: string;
|
|
60
|
-
timingShow: string;
|
|
61
|
-
signShow: string;
|
|
62
|
-
}>, {
|
|
63
|
-
requestOpenApi: (param: any) => Promise<unknown>;
|
|
64
|
-
connect: () => void;
|
|
65
|
-
disconnect: () => void;
|
|
66
|
-
seatsStatusChange: (status: any) => void;
|
|
67
|
-
accept: () => void;
|
|
68
|
-
ignore: () => void;
|
|
69
|
-
hangup: () => void;
|
|
70
|
-
sendDtmf: () => void;
|
|
71
|
-
iframeDom: import("vue-demi").Ref<any>;
|
|
72
|
-
iframeContainer: import("vue-demi").Ref<any>;
|
|
73
|
-
container: import("vue-demi").Ref<any>;
|
|
74
|
-
containerScrolling: import("vue-demi").Ref<any>;
|
|
75
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
76
|
-
"softphone-connect": (event: any) => void;
|
|
77
|
-
"softphone-seats-status-change": (event: any) => void;
|
|
78
|
-
"softphone-accept": (event: any) => void;
|
|
79
|
-
"softphone-ignore": (event: any) => void;
|
|
80
|
-
"softphone-hangup": (event: any) => void;
|
|
81
|
-
"softphone-send-dtmf": (event: any) => void;
|
|
82
|
-
"softphone-call-refresh": (event: any) => void;
|
|
83
|
-
"softphone-session-state-change": (event: any) => void;
|
|
84
|
-
"softphone-incoming": (event: any) => void;
|
|
85
|
-
"softphone-connect-registered": (event: any) => void;
|
|
86
|
-
"softphone-sign-overdued": (event: any) => void;
|
|
87
|
-
"softphone-auto-ignore-callback": (event: any) => void;
|
|
88
|
-
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
89
|
-
sgGateway?: string | undefined;
|
|
90
|
-
sgBase?: string | undefined;
|
|
91
|
-
sgOpen?: string | undefined;
|
|
92
|
-
sgDomain?: string | undefined;
|
|
93
|
-
scrollingText?: string | undefined;
|
|
94
|
-
scrollview?: string | undefined;
|
|
95
|
-
envMap?: Partial<Record<Env, string>> | undefined;
|
|
96
|
-
env?: Env | undefined;
|
|
97
|
-
agentId?: string | undefined;
|
|
98
|
-
agentTag?: string | undefined;
|
|
99
|
-
appKey?: string | undefined;
|
|
100
|
-
appSecret?: string | undefined;
|
|
101
|
-
extStatus?: string | undefined;
|
|
102
|
-
timestamp?: string | number | undefined;
|
|
103
|
-
sign?: string | undefined;
|
|
104
|
-
origin?: string | undefined;
|
|
105
|
-
ancestorOrigin?: string | undefined;
|
|
106
|
-
destinationOrigin?: string | undefined;
|
|
107
|
-
callShow?: "0" | "1" | undefined;
|
|
108
|
-
transferToLaborShow?: "0" | "1" | undefined;
|
|
109
|
-
restShow?: "0" | "1" | undefined;
|
|
110
|
-
networkDetectShow?: "0" | "1" | undefined;
|
|
111
|
-
muteShow?: "0" | "1" | undefined;
|
|
112
|
-
logShow?: "0" | "1" | undefined;
|
|
113
|
-
timingShow?: "0" | "1" | undefined;
|
|
114
|
-
signShow?: "0" | "1" | undefined;
|
|
115
|
-
}>, {
|
|
116
|
-
scrollingText: undefined;
|
|
117
|
-
scrollview: undefined;
|
|
118
|
-
envMap: () => {
|
|
119
|
-
test: string;
|
|
120
|
-
dev: string;
|
|
121
|
-
sg: string;
|
|
122
|
-
gray: string;
|
|
123
|
-
prod: string;
|
|
124
|
-
};
|
|
125
|
-
env: string;
|
|
126
|
-
sgGateway: undefined;
|
|
127
|
-
sgBase: undefined;
|
|
128
|
-
sgOpen: undefined;
|
|
129
|
-
sgDomain: undefined;
|
|
130
|
-
agentId: undefined;
|
|
131
|
-
agentTag: undefined;
|
|
132
|
-
appKey: undefined;
|
|
133
|
-
appSecret: undefined;
|
|
134
|
-
timestamp: undefined;
|
|
135
|
-
sign: undefined;
|
|
136
|
-
extStatus: string;
|
|
137
|
-
origin: string;
|
|
138
|
-
ancestorOrigin: string;
|
|
139
|
-
destinationOrigin: string;
|
|
140
|
-
callShow: string;
|
|
141
|
-
transferToLaborShow: string;
|
|
142
|
-
restShow: string;
|
|
143
|
-
networkDetectShow: string;
|
|
144
|
-
muteShow: string;
|
|
145
|
-
logShow: string;
|
|
146
|
-
timingShow: string;
|
|
147
|
-
signShow: string;
|
|
148
|
-
}>>>, {
|
|
149
|
-
sgGateway: string;
|
|
150
|
-
sgBase: string;
|
|
151
|
-
sgOpen: string;
|
|
152
|
-
sgDomain: string;
|
|
153
|
-
scrollingText: string;
|
|
154
|
-
scrollview: string;
|
|
155
|
-
envMap: Partial<Record<Env, string>>;
|
|
156
|
-
env: Env;
|
|
157
|
-
agentId: string;
|
|
158
|
-
agentTag: string;
|
|
159
|
-
appKey: string;
|
|
160
|
-
appSecret: string;
|
|
161
|
-
extStatus: string;
|
|
162
|
-
timestamp: string | number;
|
|
163
|
-
sign: string;
|
|
164
|
-
origin: string;
|
|
165
|
-
ancestorOrigin: string;
|
|
166
|
-
destinationOrigin: string;
|
|
167
|
-
callShow: '0' | '1';
|
|
168
|
-
transferToLaborShow: '0' | '1';
|
|
169
|
-
restShow: '0' | '1';
|
|
170
|
-
networkDetectShow: '0' | '1';
|
|
171
|
-
muteShow: '0' | '1';
|
|
172
|
-
logShow: '0' | '1';
|
|
173
|
-
timingShow: '0' | '1';
|
|
174
|
-
signShow: '0' | '1';
|
|
175
|
-
}>;
|
|
176
|
-
export default _default;
|
|
177
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
178
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
179
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
180
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
181
|
-
} : {
|
|
182
|
-
type: import('vue').PropType<T[K]>;
|
|
183
|
-
required: true;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
187
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
188
|
-
default: D[K];
|
|
189
|
-
}> : P[K];
|
|
190
|
-
};
|
|
191
|
-
declare type __VLS_Prettify<T> = {
|
|
192
|
-
[K in keyof T]: T[K];
|
|
193
|
-
} & {};
|
|
1
|
+
import { Env } from './type';
|
|
2
|
+
declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
sgGateway?: string | undefined;
|
|
4
|
+
sgBase?: string | undefined;
|
|
5
|
+
sgOpen?: string | undefined;
|
|
6
|
+
sgDomain?: string | undefined;
|
|
7
|
+
scrollingText?: string | undefined;
|
|
8
|
+
scrollview?: string | undefined;
|
|
9
|
+
envMap?: Partial<Record<Env, string>> | undefined;
|
|
10
|
+
env?: Env | undefined;
|
|
11
|
+
agentId?: string | undefined;
|
|
12
|
+
agentTag?: string | undefined;
|
|
13
|
+
appKey?: string | undefined;
|
|
14
|
+
appSecret?: string | undefined;
|
|
15
|
+
extStatus?: string | undefined;
|
|
16
|
+
timestamp?: string | number | undefined;
|
|
17
|
+
sign?: string | undefined;
|
|
18
|
+
origin?: string | undefined;
|
|
19
|
+
ancestorOrigin?: string | undefined;
|
|
20
|
+
destinationOrigin?: string | undefined;
|
|
21
|
+
callShow?: "0" | "1" | undefined;
|
|
22
|
+
transferToLaborShow?: "0" | "1" | undefined;
|
|
23
|
+
restShow?: "0" | "1" | undefined;
|
|
24
|
+
networkDetectShow?: "0" | "1" | undefined;
|
|
25
|
+
muteShow?: "0" | "1" | undefined;
|
|
26
|
+
logShow?: "0" | "1" | undefined;
|
|
27
|
+
timingShow?: "0" | "1" | undefined;
|
|
28
|
+
signShow?: "0" | "1" | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
scrollingText: undefined;
|
|
31
|
+
scrollview: undefined;
|
|
32
|
+
envMap: () => {
|
|
33
|
+
test: string;
|
|
34
|
+
dev: string;
|
|
35
|
+
sg: string;
|
|
36
|
+
gray: string;
|
|
37
|
+
prod: string;
|
|
38
|
+
};
|
|
39
|
+
env: string;
|
|
40
|
+
sgGateway: undefined;
|
|
41
|
+
sgBase: undefined;
|
|
42
|
+
sgOpen: undefined;
|
|
43
|
+
sgDomain: undefined;
|
|
44
|
+
agentId: undefined;
|
|
45
|
+
agentTag: undefined;
|
|
46
|
+
appKey: undefined;
|
|
47
|
+
appSecret: undefined;
|
|
48
|
+
timestamp: undefined;
|
|
49
|
+
sign: undefined;
|
|
50
|
+
extStatus: string;
|
|
51
|
+
origin: string;
|
|
52
|
+
ancestorOrigin: string;
|
|
53
|
+
destinationOrigin: string;
|
|
54
|
+
callShow: string;
|
|
55
|
+
transferToLaborShow: string;
|
|
56
|
+
restShow: string;
|
|
57
|
+
networkDetectShow: string;
|
|
58
|
+
muteShow: string;
|
|
59
|
+
logShow: string;
|
|
60
|
+
timingShow: string;
|
|
61
|
+
signShow: string;
|
|
62
|
+
}>, {
|
|
63
|
+
requestOpenApi: (param: any) => Promise<unknown>;
|
|
64
|
+
connect: () => void;
|
|
65
|
+
disconnect: () => void;
|
|
66
|
+
seatsStatusChange: (status: any) => void;
|
|
67
|
+
accept: () => void;
|
|
68
|
+
ignore: () => void;
|
|
69
|
+
hangup: () => void;
|
|
70
|
+
sendDtmf: () => void;
|
|
71
|
+
iframeDom: import("vue-demi").Ref<any>;
|
|
72
|
+
iframeContainer: import("vue-demi").Ref<any>;
|
|
73
|
+
container: import("vue-demi").Ref<any>;
|
|
74
|
+
containerScrolling: import("vue-demi").Ref<any>;
|
|
75
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
76
|
+
"softphone-connect": (event: any) => void;
|
|
77
|
+
"softphone-seats-status-change": (event: any) => void;
|
|
78
|
+
"softphone-accept": (event: any) => void;
|
|
79
|
+
"softphone-ignore": (event: any) => void;
|
|
80
|
+
"softphone-hangup": (event: any) => void;
|
|
81
|
+
"softphone-send-dtmf": (event: any) => void;
|
|
82
|
+
"softphone-call-refresh": (event: any) => void;
|
|
83
|
+
"softphone-session-state-change": (event: any) => void;
|
|
84
|
+
"softphone-incoming": (event: any) => void;
|
|
85
|
+
"softphone-connect-registered": (event: any) => void;
|
|
86
|
+
"softphone-sign-overdued": (event: any) => void;
|
|
87
|
+
"softphone-auto-ignore-callback": (event: any) => void;
|
|
88
|
+
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
89
|
+
sgGateway?: string | undefined;
|
|
90
|
+
sgBase?: string | undefined;
|
|
91
|
+
sgOpen?: string | undefined;
|
|
92
|
+
sgDomain?: string | undefined;
|
|
93
|
+
scrollingText?: string | undefined;
|
|
94
|
+
scrollview?: string | undefined;
|
|
95
|
+
envMap?: Partial<Record<Env, string>> | undefined;
|
|
96
|
+
env?: Env | undefined;
|
|
97
|
+
agentId?: string | undefined;
|
|
98
|
+
agentTag?: string | undefined;
|
|
99
|
+
appKey?: string | undefined;
|
|
100
|
+
appSecret?: string | undefined;
|
|
101
|
+
extStatus?: string | undefined;
|
|
102
|
+
timestamp?: string | number | undefined;
|
|
103
|
+
sign?: string | undefined;
|
|
104
|
+
origin?: string | undefined;
|
|
105
|
+
ancestorOrigin?: string | undefined;
|
|
106
|
+
destinationOrigin?: string | undefined;
|
|
107
|
+
callShow?: "0" | "1" | undefined;
|
|
108
|
+
transferToLaborShow?: "0" | "1" | undefined;
|
|
109
|
+
restShow?: "0" | "1" | undefined;
|
|
110
|
+
networkDetectShow?: "0" | "1" | undefined;
|
|
111
|
+
muteShow?: "0" | "1" | undefined;
|
|
112
|
+
logShow?: "0" | "1" | undefined;
|
|
113
|
+
timingShow?: "0" | "1" | undefined;
|
|
114
|
+
signShow?: "0" | "1" | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
scrollingText: undefined;
|
|
117
|
+
scrollview: undefined;
|
|
118
|
+
envMap: () => {
|
|
119
|
+
test: string;
|
|
120
|
+
dev: string;
|
|
121
|
+
sg: string;
|
|
122
|
+
gray: string;
|
|
123
|
+
prod: string;
|
|
124
|
+
};
|
|
125
|
+
env: string;
|
|
126
|
+
sgGateway: undefined;
|
|
127
|
+
sgBase: undefined;
|
|
128
|
+
sgOpen: undefined;
|
|
129
|
+
sgDomain: undefined;
|
|
130
|
+
agentId: undefined;
|
|
131
|
+
agentTag: undefined;
|
|
132
|
+
appKey: undefined;
|
|
133
|
+
appSecret: undefined;
|
|
134
|
+
timestamp: undefined;
|
|
135
|
+
sign: undefined;
|
|
136
|
+
extStatus: string;
|
|
137
|
+
origin: string;
|
|
138
|
+
ancestorOrigin: string;
|
|
139
|
+
destinationOrigin: string;
|
|
140
|
+
callShow: string;
|
|
141
|
+
transferToLaborShow: string;
|
|
142
|
+
restShow: string;
|
|
143
|
+
networkDetectShow: string;
|
|
144
|
+
muteShow: string;
|
|
145
|
+
logShow: string;
|
|
146
|
+
timingShow: string;
|
|
147
|
+
signShow: string;
|
|
148
|
+
}>>>, {
|
|
149
|
+
sgGateway: string;
|
|
150
|
+
sgBase: string;
|
|
151
|
+
sgOpen: string;
|
|
152
|
+
sgDomain: string;
|
|
153
|
+
scrollingText: string;
|
|
154
|
+
scrollview: string;
|
|
155
|
+
envMap: Partial<Record<Env, string>>;
|
|
156
|
+
env: Env;
|
|
157
|
+
agentId: string;
|
|
158
|
+
agentTag: string;
|
|
159
|
+
appKey: string;
|
|
160
|
+
appSecret: string;
|
|
161
|
+
extStatus: string;
|
|
162
|
+
timestamp: string | number;
|
|
163
|
+
sign: string;
|
|
164
|
+
origin: string;
|
|
165
|
+
ancestorOrigin: string;
|
|
166
|
+
destinationOrigin: string;
|
|
167
|
+
callShow: '0' | '1';
|
|
168
|
+
transferToLaborShow: '0' | '1';
|
|
169
|
+
restShow: '0' | '1';
|
|
170
|
+
networkDetectShow: '0' | '1';
|
|
171
|
+
muteShow: '0' | '1';
|
|
172
|
+
logShow: '0' | '1';
|
|
173
|
+
timingShow: '0' | '1';
|
|
174
|
+
signShow: '0' | '1';
|
|
175
|
+
}>;
|
|
176
|
+
export default _default;
|
|
177
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
178
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
179
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
180
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
181
|
+
} : {
|
|
182
|
+
type: import('vue').PropType<T[K]>;
|
|
183
|
+
required: true;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
187
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
188
|
+
default: D[K];
|
|
189
|
+
}> : P[K];
|
|
190
|
+
};
|
|
191
|
+
declare type __VLS_Prettify<T> = {
|
|
192
|
+
[K in keyof T]: T[K];
|
|
193
|
+
} & {};
|
package/lib/softphone-pure.d.ts
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
declare type Option = {
|
|
2
|
-
origin: string;
|
|
3
|
-
ancestorOrigin: string;
|
|
4
|
-
destinationOrigin: string;
|
|
5
|
-
scrollingText: string;
|
|
6
|
-
scrollview: string;
|
|
7
|
-
envMap: Record<Env, string>;
|
|
8
|
-
env: string;
|
|
9
|
-
selector: string;
|
|
10
|
-
el: string;
|
|
11
|
-
agentTag: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
appKey: string;
|
|
14
|
-
appSecret: string;
|
|
15
|
-
timestamp: string | number;
|
|
16
|
-
sign: string;
|
|
17
|
-
sgGateway: string;
|
|
18
|
-
sgBase: string;
|
|
19
|
-
sgOpen: string;
|
|
20
|
-
sgDomain: string;
|
|
21
|
-
extStatus: '0' | '1';
|
|
22
|
-
instanceMap: Record<string, any>;
|
|
23
|
-
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
-
callShow: '0' | '1';
|
|
25
|
-
transferToLaborShow: '0' | '1';
|
|
26
|
-
restShow: '0' | '1';
|
|
27
|
-
networkDetectShow: '0' | '1';
|
|
28
|
-
muteShow: '0' | '1';
|
|
29
|
-
logShow: '0' | '1';
|
|
30
|
-
timingShow: '0' | '1';
|
|
31
|
-
signShow: '0' | '1';
|
|
32
|
-
softphoneConnectCallBack: Function;
|
|
33
|
-
softphoneCallRefreshCallBack: Function;
|
|
34
|
-
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
-
softphoneAcceptCallBack: Function;
|
|
36
|
-
softphoneIgnoreCallBack: Function;
|
|
37
|
-
softphoneHangupCallBack: Function;
|
|
38
|
-
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
-
softphoneIncomingCallBack: Function;
|
|
40
|
-
softphoneSendDtmfCallBack: Function;
|
|
41
|
-
softphoneAutoIgnoreCallback: Function;
|
|
42
|
-
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
-
softphoneSignOverduedCallBack: Function;
|
|
44
|
-
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
-
};
|
|
46
|
-
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
47
|
-
export declare class SoftphoneManager {
|
|
48
|
-
id: any;
|
|
49
|
-
timer: any;
|
|
50
|
-
constructor();
|
|
51
|
-
option: Partial<Option>;
|
|
52
|
-
loadCssCode: (code: any) => void;
|
|
53
|
-
removeCssCode: () => void;
|
|
54
|
-
getContextDomElement: (el: string) => Element | null;
|
|
55
|
-
getSoftphoneDomElement: (el: string) => Element | null;
|
|
56
|
-
signOverdued: (data: {
|
|
57
|
-
sign: string;
|
|
58
|
-
timestamp: string | number;
|
|
59
|
-
}) => void;
|
|
60
|
-
handlingCommunication: (e: {
|
|
1
|
+
declare type Option = {
|
|
2
|
+
origin: string;
|
|
3
|
+
ancestorOrigin: string;
|
|
4
|
+
destinationOrigin: string;
|
|
5
|
+
scrollingText: string;
|
|
6
|
+
scrollview: string;
|
|
7
|
+
envMap: Record<Env, string>;
|
|
8
|
+
env: string;
|
|
9
|
+
selector: string;
|
|
10
|
+
el: string;
|
|
11
|
+
agentTag: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
appKey: string;
|
|
14
|
+
appSecret: string;
|
|
15
|
+
timestamp: string | number;
|
|
16
|
+
sign: string;
|
|
17
|
+
sgGateway: string;
|
|
18
|
+
sgBase: string;
|
|
19
|
+
sgOpen: string;
|
|
20
|
+
sgDomain: string;
|
|
21
|
+
extStatus: '0' | '1';
|
|
22
|
+
instanceMap: Record<string, any>;
|
|
23
|
+
requestOpenApiCallBackMap: Record<string, any>;
|
|
24
|
+
callShow: '0' | '1';
|
|
25
|
+
transferToLaborShow: '0' | '1';
|
|
26
|
+
restShow: '0' | '1';
|
|
27
|
+
networkDetectShow: '0' | '1';
|
|
28
|
+
muteShow: '0' | '1';
|
|
29
|
+
logShow: '0' | '1';
|
|
30
|
+
timingShow: '0' | '1';
|
|
31
|
+
signShow: '0' | '1';
|
|
32
|
+
softphoneConnectCallBack: Function;
|
|
33
|
+
softphoneCallRefreshCallBack: Function;
|
|
34
|
+
softphoneSeatStatusChangeCallBack: Function;
|
|
35
|
+
softphoneAcceptCallBack: Function;
|
|
36
|
+
softphoneIgnoreCallBack: Function;
|
|
37
|
+
softphoneHangupCallBack: Function;
|
|
38
|
+
softphoneSessionStateChangeCallBack: Function;
|
|
39
|
+
softphoneIncomingCallBack: Function;
|
|
40
|
+
softphoneSendDtmfCallBack: Function;
|
|
41
|
+
softphoneAutoIgnoreCallback: Function;
|
|
42
|
+
softphoneConnectRegisteredCallBack: Function;
|
|
43
|
+
softphoneSignOverduedCallBack: Function;
|
|
44
|
+
softphoneRequestOpenApiCallBack: Function;
|
|
45
|
+
};
|
|
46
|
+
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
47
|
+
export declare class SoftphoneManager {
|
|
48
|
+
id: any;
|
|
49
|
+
timer: any;
|
|
50
|
+
constructor();
|
|
51
|
+
option: Partial<Option>;
|
|
52
|
+
loadCssCode: (code: any) => void;
|
|
53
|
+
removeCssCode: () => void;
|
|
54
|
+
getContextDomElement: (el: string) => Element | null;
|
|
55
|
+
getSoftphoneDomElement: (el: string) => Element | null;
|
|
56
|
+
signOverdued: (data: {
|
|
57
|
+
sign: string;
|
|
58
|
+
timestamp: string | number;
|
|
59
|
+
}) => void;
|
|
60
|
+
handlingCommunication: (e: {
|
|
61
61
|
data: `{
|
|
62
62
|
type: string,
|
|
63
63
|
ancestorOrigin: string,
|
|
64
64
|
origin: string,
|
|
65
65
|
data: 'expand' | 'shrink'
|
|
66
|
-
}` | string;
|
|
67
|
-
}) => void;
|
|
68
|
-
handlingScroll: (...
|
|
69
|
-
handlerInteractive: () => void;
|
|
70
|
-
handlerDomRemove: () => void;
|
|
71
|
-
_containerScrolling: any;
|
|
72
|
-
get containerScrolling(): boolean;
|
|
73
|
-
set containerScrolling(value: boolean);
|
|
74
|
-
handlingScrollTransparent: () => void;
|
|
75
|
-
refreshStyle: () => Promise<{
|
|
76
|
-
top: number;
|
|
77
|
-
left: number;
|
|
78
|
-
leftMargin: string;
|
|
79
|
-
} | {
|
|
80
|
-
leftMargin: number;
|
|
81
|
-
top: number;
|
|
82
|
-
left: number;
|
|
83
|
-
}>;
|
|
84
|
-
handlerDomGenerater: () => Promise<void>;
|
|
85
|
-
initSoftphone: (option: any) => this;
|
|
86
|
-
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
87
|
-
connect: () => void;
|
|
88
|
-
disconnect: () => void;
|
|
89
|
-
seatsStatusChange: (status: boolean) => void;
|
|
90
|
-
accept: () => void;
|
|
91
|
-
ignore: () => void;
|
|
92
|
-
hangup: () => void;
|
|
93
|
-
sendDtmf: () => void;
|
|
94
|
-
requestOpenApi: (param: any) => Promise<unknown>;
|
|
95
|
-
removeTimer: () => void;
|
|
96
|
-
destroy: () => void;
|
|
97
|
-
}
|
|
98
|
-
declare const softphoneManager: SoftphoneManager;
|
|
99
|
-
export default softphoneManager;
|
|
66
|
+
}` | string;
|
|
67
|
+
}) => void;
|
|
68
|
+
handlingScroll: (...callArgs: any[]) => any;
|
|
69
|
+
handlerInteractive: () => void;
|
|
70
|
+
handlerDomRemove: () => void;
|
|
71
|
+
_containerScrolling: any;
|
|
72
|
+
get containerScrolling(): boolean;
|
|
73
|
+
set containerScrolling(value: boolean);
|
|
74
|
+
handlingScrollTransparent: () => void;
|
|
75
|
+
refreshStyle: () => Promise<{
|
|
76
|
+
top: number;
|
|
77
|
+
left: number;
|
|
78
|
+
leftMargin: string;
|
|
79
|
+
} | {
|
|
80
|
+
leftMargin: number;
|
|
81
|
+
top: number;
|
|
82
|
+
left: number;
|
|
83
|
+
}>;
|
|
84
|
+
handlerDomGenerater: () => Promise<void>;
|
|
85
|
+
initSoftphone: (option: any) => this;
|
|
86
|
+
postMessageCommunicate: (type: any, status?: boolean | undefined, param?: any) => void;
|
|
87
|
+
connect: () => void;
|
|
88
|
+
disconnect: () => void;
|
|
89
|
+
seatsStatusChange: (status: boolean) => void;
|
|
90
|
+
accept: () => void;
|
|
91
|
+
ignore: () => void;
|
|
92
|
+
hangup: () => void;
|
|
93
|
+
sendDtmf: () => void;
|
|
94
|
+
requestOpenApi: (param: any) => Promise<unknown>;
|
|
95
|
+
removeTimer: () => void;
|
|
96
|
+
destroy: () => void;
|
|
97
|
+
}
|
|
98
|
+
declare const softphoneManager: SoftphoneManager;
|
|
99
|
+
export default softphoneManager;
|