@94ai/nf-softphone 7.0.0 → 8.0.5
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 +775 -773
- package/lib/nf-softphone.cjs.js +59 -9
- package/lib/nf-softphone.esm-bundler.js +59 -9
- package/lib/nf-softphone.vue.d.ts +191 -190
- package/lib/softphone.d.ts +48 -44
- package/lib/style/css.d.ts +1 -1
- package/lib/style/index.d.ts +1 -1
- package/lib/type.d.ts +43 -42
- package/package/nf-softphone.vue +40 -8
- package/package/softphone.ts +32 -0
- package/package/type.ts +1 -0
- package/package.json +3 -3
package/lib/nf-softphone.cjs.js
CHANGED
|
@@ -215,6 +215,18 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
215
215
|
emit("softphone-send-dtmf", data);
|
|
216
216
|
} else if (data.type === "softphone-connect-registered") {
|
|
217
217
|
emit("softphone-connect-registered", data);
|
|
218
|
+
} else if (data.type === "softphone-sign-overdued") {
|
|
219
|
+
const done = (data2) => {
|
|
220
|
+
const {
|
|
221
|
+
sign,
|
|
222
|
+
timestamp
|
|
223
|
+
} = data2;
|
|
224
|
+
signOverdued({
|
|
225
|
+
sign,
|
|
226
|
+
timestamp
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
emit("softphone-sign-overdued", done);
|
|
218
230
|
}
|
|
219
231
|
}
|
|
220
232
|
}
|
|
@@ -350,27 +362,33 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
350
362
|
timer = void 0;
|
|
351
363
|
}
|
|
352
364
|
});
|
|
353
|
-
const postMessageCommunicate = (type,
|
|
365
|
+
const postMessageCommunicate = (type, data = {}, operationType = "manual", ancestorOrigin = props.ancestorOrigin, destinationOrigin = props.destinationOrigin) => {
|
|
354
366
|
var _a2;
|
|
355
367
|
(_a2 = iframeDom.value) == null ? void 0 : _a2.contentWindow.postMessage(JSON.stringify({
|
|
356
368
|
origin: "nf-softphone",
|
|
357
|
-
ancestorOrigin: props.ancestorOrigin,
|
|
358
|
-
destinationOrigin: props.destinationOrigin,
|
|
369
|
+
ancestorOrigin: ancestorOrigin || props.ancestorOrigin,
|
|
370
|
+
destinationOrigin: destinationOrigin || props.destinationOrigin,
|
|
359
371
|
type,
|
|
360
372
|
data: {
|
|
361
|
-
|
|
362
|
-
type:
|
|
373
|
+
...data,
|
|
374
|
+
type: operationType
|
|
363
375
|
}
|
|
364
376
|
}), "*");
|
|
365
377
|
};
|
|
366
378
|
const connect = () => {
|
|
367
|
-
postMessageCommunicate("softphone-connect",
|
|
379
|
+
postMessageCommunicate("softphone-connect", {
|
|
380
|
+
status: true
|
|
381
|
+
});
|
|
368
382
|
};
|
|
369
383
|
const disconnect = () => {
|
|
370
|
-
postMessageCommunicate("softphone-connect",
|
|
384
|
+
postMessageCommunicate("softphone-connect", {
|
|
385
|
+
status: false
|
|
386
|
+
});
|
|
371
387
|
};
|
|
372
388
|
const seatsStatusChange = (status) => {
|
|
373
|
-
postMessageCommunicate("softphone-seats-status-change",
|
|
389
|
+
postMessageCommunicate("softphone-seats-status-change", {
|
|
390
|
+
status
|
|
391
|
+
});
|
|
374
392
|
};
|
|
375
393
|
const accept = () => {
|
|
376
394
|
postMessageCommunicate("softphone-accept");
|
|
@@ -384,6 +402,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
384
402
|
const sendDtmf = () => {
|
|
385
403
|
postMessageCommunicate("softphone-send-dtmf");
|
|
386
404
|
};
|
|
405
|
+
const signOverdued = (data) => {
|
|
406
|
+
postMessageCommunicate("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
|
|
407
|
+
};
|
|
387
408
|
return Object.assign({
|
|
388
409
|
container,
|
|
389
410
|
iframeContainer,
|
|
@@ -505,6 +526,12 @@ class SoftphoneManager {
|
|
|
505
526
|
},
|
|
506
527
|
softphoneConnectRegisteredCallBack: () => {
|
|
507
528
|
console.log("softphone-connect-registered");
|
|
529
|
+
},
|
|
530
|
+
softphoneSignOverduedCallBack: (done) => {
|
|
531
|
+
done({
|
|
532
|
+
timestamp: void 0,
|
|
533
|
+
sign: void 0
|
|
534
|
+
});
|
|
508
535
|
}
|
|
509
536
|
};
|
|
510
537
|
this.loadCssCode = (code) => {
|
|
@@ -535,8 +562,19 @@ class SoftphoneManager {
|
|
|
535
562
|
var _a;
|
|
536
563
|
return ((_a = this.getContextDomElement(this.option.el)) == null ? void 0 : _a.querySelector(el)) || this.getContextDomElement(el) || document.querySelector(el);
|
|
537
564
|
};
|
|
565
|
+
this.signOverdued = (data) => {
|
|
566
|
+
var _a;
|
|
567
|
+
const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
|
|
568
|
+
(_a = iframe == null ? void 0 : iframe.contentWindow) == null ? void 0 : _a.postMessage(JSON.stringify({
|
|
569
|
+
origin: "nf-softphone",
|
|
570
|
+
ancestorOrigin: this.option.ancestorOrigin,
|
|
571
|
+
destinationOrigin: "ai-softphone",
|
|
572
|
+
type: "softphone-sign-overdued",
|
|
573
|
+
data
|
|
574
|
+
}), "*");
|
|
575
|
+
};
|
|
538
576
|
this.handlingCommunication = (e) => {
|
|
539
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
577
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
540
578
|
const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
|
|
541
579
|
if (iframe) {
|
|
542
580
|
let data = {};
|
|
@@ -574,6 +612,18 @@ class SoftphoneManager {
|
|
|
574
612
|
(_r = (_q = this.option).softphoneSendDtmfCallBack) == null ? void 0 : _r.call(_q, data);
|
|
575
613
|
} else if (data.type === "softphone-connect-registered") {
|
|
576
614
|
(_t = (_s = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _t.call(_s, data);
|
|
615
|
+
} else if (data.type === "softphone-sign-overdued") {
|
|
616
|
+
const done = (data2) => {
|
|
617
|
+
const {
|
|
618
|
+
sign,
|
|
619
|
+
timestamp
|
|
620
|
+
} = data2;
|
|
621
|
+
this.signOverdued({
|
|
622
|
+
sign,
|
|
623
|
+
timestamp
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
(_v = (_u = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _v.call(_u, done);
|
|
577
627
|
}
|
|
578
628
|
}
|
|
579
629
|
}
|
|
@@ -213,6 +213,18 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
213
213
|
emit("softphone-send-dtmf", data);
|
|
214
214
|
} else if (data.type === "softphone-connect-registered") {
|
|
215
215
|
emit("softphone-connect-registered", data);
|
|
216
|
+
} else if (data.type === "softphone-sign-overdued") {
|
|
217
|
+
const done = (data2) => {
|
|
218
|
+
const {
|
|
219
|
+
sign,
|
|
220
|
+
timestamp
|
|
221
|
+
} = data2;
|
|
222
|
+
signOverdued({
|
|
223
|
+
sign,
|
|
224
|
+
timestamp
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
emit("softphone-sign-overdued", done);
|
|
216
228
|
}
|
|
217
229
|
}
|
|
218
230
|
}
|
|
@@ -348,27 +360,33 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
348
360
|
timer = void 0;
|
|
349
361
|
}
|
|
350
362
|
});
|
|
351
|
-
const postMessageCommunicate = (type,
|
|
363
|
+
const postMessageCommunicate = (type, data = {}, operationType = "manual", ancestorOrigin = props.ancestorOrigin, destinationOrigin = props.destinationOrigin) => {
|
|
352
364
|
var _a2;
|
|
353
365
|
(_a2 = iframeDom.value) == null ? void 0 : _a2.contentWindow.postMessage(JSON.stringify({
|
|
354
366
|
origin: "nf-softphone",
|
|
355
|
-
ancestorOrigin: props.ancestorOrigin,
|
|
356
|
-
destinationOrigin: props.destinationOrigin,
|
|
367
|
+
ancestorOrigin: ancestorOrigin || props.ancestorOrigin,
|
|
368
|
+
destinationOrigin: destinationOrigin || props.destinationOrigin,
|
|
357
369
|
type,
|
|
358
370
|
data: {
|
|
359
|
-
|
|
360
|
-
type:
|
|
371
|
+
...data,
|
|
372
|
+
type: operationType
|
|
361
373
|
}
|
|
362
374
|
}), "*");
|
|
363
375
|
};
|
|
364
376
|
const connect = () => {
|
|
365
|
-
postMessageCommunicate("softphone-connect",
|
|
377
|
+
postMessageCommunicate("softphone-connect", {
|
|
378
|
+
status: true
|
|
379
|
+
});
|
|
366
380
|
};
|
|
367
381
|
const disconnect = () => {
|
|
368
|
-
postMessageCommunicate("softphone-connect",
|
|
382
|
+
postMessageCommunicate("softphone-connect", {
|
|
383
|
+
status: false
|
|
384
|
+
});
|
|
369
385
|
};
|
|
370
386
|
const seatsStatusChange = (status) => {
|
|
371
|
-
postMessageCommunicate("softphone-seats-status-change",
|
|
387
|
+
postMessageCommunicate("softphone-seats-status-change", {
|
|
388
|
+
status
|
|
389
|
+
});
|
|
372
390
|
};
|
|
373
391
|
const accept = () => {
|
|
374
392
|
postMessageCommunicate("softphone-accept");
|
|
@@ -382,6 +400,9 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
382
400
|
const sendDtmf = () => {
|
|
383
401
|
postMessageCommunicate("softphone-send-dtmf");
|
|
384
402
|
};
|
|
403
|
+
const signOverdued = (data) => {
|
|
404
|
+
postMessageCommunicate("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
|
|
405
|
+
};
|
|
385
406
|
return Object.assign({
|
|
386
407
|
container,
|
|
387
408
|
iframeContainer,
|
|
@@ -503,6 +524,12 @@ class SoftphoneManager {
|
|
|
503
524
|
},
|
|
504
525
|
softphoneConnectRegisteredCallBack: () => {
|
|
505
526
|
console.log("softphone-connect-registered");
|
|
527
|
+
},
|
|
528
|
+
softphoneSignOverduedCallBack: (done) => {
|
|
529
|
+
done({
|
|
530
|
+
timestamp: void 0,
|
|
531
|
+
sign: void 0
|
|
532
|
+
});
|
|
506
533
|
}
|
|
507
534
|
};
|
|
508
535
|
this.loadCssCode = (code) => {
|
|
@@ -533,8 +560,19 @@ class SoftphoneManager {
|
|
|
533
560
|
var _a;
|
|
534
561
|
return ((_a = this.getContextDomElement(this.option.el)) == null ? void 0 : _a.querySelector(el)) || this.getContextDomElement(el) || document.querySelector(el);
|
|
535
562
|
};
|
|
563
|
+
this.signOverdued = (data) => {
|
|
564
|
+
var _a;
|
|
565
|
+
const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
|
|
566
|
+
(_a = iframe == null ? void 0 : iframe.contentWindow) == null ? void 0 : _a.postMessage(JSON.stringify({
|
|
567
|
+
origin: "nf-softphone",
|
|
568
|
+
ancestorOrigin: this.option.ancestorOrigin,
|
|
569
|
+
destinationOrigin: "ai-softphone",
|
|
570
|
+
type: "softphone-sign-overdued",
|
|
571
|
+
data
|
|
572
|
+
}), "*");
|
|
573
|
+
};
|
|
536
574
|
this.handlingCommunication = (e) => {
|
|
537
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
575
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
538
576
|
const iframe = this.getSoftphoneDomElement(".nf-softphone-iframe");
|
|
539
577
|
if (iframe) {
|
|
540
578
|
let data = {};
|
|
@@ -572,6 +610,18 @@ class SoftphoneManager {
|
|
|
572
610
|
(_r = (_q = this.option).softphoneSendDtmfCallBack) == null ? void 0 : _r.call(_q, data);
|
|
573
611
|
} else if (data.type === "softphone-connect-registered") {
|
|
574
612
|
(_t = (_s = this.option).softphoneConnectRegisteredCallBack) == null ? void 0 : _t.call(_s, data);
|
|
613
|
+
} else if (data.type === "softphone-sign-overdued") {
|
|
614
|
+
const done = (data2) => {
|
|
615
|
+
const {
|
|
616
|
+
sign,
|
|
617
|
+
timestamp
|
|
618
|
+
} = data2;
|
|
619
|
+
this.signOverdued({
|
|
620
|
+
sign,
|
|
621
|
+
timestamp
|
|
622
|
+
});
|
|
623
|
+
};
|
|
624
|
+
(_v = (_u = this.option).softphoneSignOverduedCallBack) == null ? void 0 : _v.call(_u, done);
|
|
575
625
|
}
|
|
576
626
|
}
|
|
577
627
|
}
|
|
@@ -1,190 +1,191 @@
|
|
|
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: string;
|
|
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
|
-
connect: () => void;
|
|
64
|
-
disconnect: () => void;
|
|
65
|
-
seatsStatusChange: (status: any) => void;
|
|
66
|
-
accept: () => void;
|
|
67
|
-
ignore: () => void;
|
|
68
|
-
hangup: () => void;
|
|
69
|
-
sendDtmf: () => void;
|
|
70
|
-
iframeDom: import("vue-demi").Ref<any>;
|
|
71
|
-
iframeContainer: import("vue-demi").Ref<any>;
|
|
72
|
-
container: import("vue-demi").Ref<any>;
|
|
73
|
-
containerScrolling: import("vue-demi").Ref<any>;
|
|
74
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
75
|
-
"softphone-connect": (event: any) => void;
|
|
76
|
-
"softphone-seats-status-change": (event: any) => void;
|
|
77
|
-
"softphone-accept": (event: any) => void;
|
|
78
|
-
"softphone-ignore": (event: any) => void;
|
|
79
|
-
"softphone-hangup": (event: any) => void;
|
|
80
|
-
"softphone-send-dtmf": (event: any) => void;
|
|
81
|
-
"softphone-call-refresh": (event: any) => void;
|
|
82
|
-
"softphone-session-state-change": (event: any) => void;
|
|
83
|
-
"softphone-incoming": (event: any) => void;
|
|
84
|
-
"softphone-connect-registered": (event: any) => void;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
declare type
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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: string;
|
|
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
|
+
connect: () => void;
|
|
64
|
+
disconnect: () => void;
|
|
65
|
+
seatsStatusChange: (status: any) => void;
|
|
66
|
+
accept: () => void;
|
|
67
|
+
ignore: () => void;
|
|
68
|
+
hangup: () => void;
|
|
69
|
+
sendDtmf: () => void;
|
|
70
|
+
iframeDom: import("vue-demi").Ref<any>;
|
|
71
|
+
iframeContainer: import("vue-demi").Ref<any>;
|
|
72
|
+
container: import("vue-demi").Ref<any>;
|
|
73
|
+
containerScrolling: import("vue-demi").Ref<any>;
|
|
74
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
75
|
+
"softphone-connect": (event: any) => void;
|
|
76
|
+
"softphone-seats-status-change": (event: any) => void;
|
|
77
|
+
"softphone-accept": (event: any) => void;
|
|
78
|
+
"softphone-ignore": (event: any) => void;
|
|
79
|
+
"softphone-hangup": (event: any) => void;
|
|
80
|
+
"softphone-send-dtmf": (event: any) => void;
|
|
81
|
+
"softphone-call-refresh": (event: any) => void;
|
|
82
|
+
"softphone-session-state-change": (event: any) => void;
|
|
83
|
+
"softphone-incoming": (event: any) => void;
|
|
84
|
+
"softphone-connect-registered": (event: any) => void;
|
|
85
|
+
"softphone-sign-overdued": (event: any) => void;
|
|
86
|
+
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
87
|
+
sgGateway?: string | undefined;
|
|
88
|
+
sgBase?: string | undefined;
|
|
89
|
+
sgOpen?: string | undefined;
|
|
90
|
+
sgDomain?: string | undefined;
|
|
91
|
+
scrollingText?: string | undefined;
|
|
92
|
+
scrollview?: string | undefined;
|
|
93
|
+
envMap?: Partial<Record<Env, string>> | undefined;
|
|
94
|
+
env?: Env | undefined;
|
|
95
|
+
agentId?: string | undefined;
|
|
96
|
+
agentTag?: string | undefined;
|
|
97
|
+
appKey?: string | undefined;
|
|
98
|
+
appSecret?: string | undefined;
|
|
99
|
+
extStatus?: string | undefined;
|
|
100
|
+
timestamp?: string | number | undefined;
|
|
101
|
+
sign?: string | undefined;
|
|
102
|
+
origin?: string | undefined;
|
|
103
|
+
ancestorOrigin?: string | undefined;
|
|
104
|
+
destinationOrigin?: string | undefined;
|
|
105
|
+
callShow?: "0" | "1" | undefined;
|
|
106
|
+
transferToLaborShow?: "0" | "1" | undefined;
|
|
107
|
+
restShow?: "0" | "1" | undefined;
|
|
108
|
+
networkDetectShow?: "0" | "1" | undefined;
|
|
109
|
+
muteShow?: "0" | "1" | undefined;
|
|
110
|
+
logShow?: "0" | "1" | undefined;
|
|
111
|
+
timingShow?: "0" | "1" | undefined;
|
|
112
|
+
signShow?: "0" | "1" | undefined;
|
|
113
|
+
}>, {
|
|
114
|
+
scrollingText: string;
|
|
115
|
+
scrollview: undefined;
|
|
116
|
+
envMap: () => {
|
|
117
|
+
test: string;
|
|
118
|
+
dev: string;
|
|
119
|
+
sg: string;
|
|
120
|
+
gray: string;
|
|
121
|
+
prod: string;
|
|
122
|
+
};
|
|
123
|
+
env: string;
|
|
124
|
+
sgGateway: undefined;
|
|
125
|
+
sgBase: undefined;
|
|
126
|
+
sgOpen: undefined;
|
|
127
|
+
sgDomain: undefined;
|
|
128
|
+
agentId: undefined;
|
|
129
|
+
agentTag: undefined;
|
|
130
|
+
appKey: undefined;
|
|
131
|
+
appSecret: undefined;
|
|
132
|
+
timestamp: undefined;
|
|
133
|
+
sign: undefined;
|
|
134
|
+
extStatus: string;
|
|
135
|
+
origin: string;
|
|
136
|
+
ancestorOrigin: string;
|
|
137
|
+
destinationOrigin: string;
|
|
138
|
+
callShow: string;
|
|
139
|
+
transferToLaborShow: string;
|
|
140
|
+
restShow: string;
|
|
141
|
+
networkDetectShow: string;
|
|
142
|
+
muteShow: string;
|
|
143
|
+
logShow: string;
|
|
144
|
+
timingShow: string;
|
|
145
|
+
signShow: string;
|
|
146
|
+
}>>>, {
|
|
147
|
+
sgGateway: string;
|
|
148
|
+
sgBase: string;
|
|
149
|
+
sgOpen: string;
|
|
150
|
+
sgDomain: string;
|
|
151
|
+
scrollingText: string;
|
|
152
|
+
scrollview: string;
|
|
153
|
+
envMap: Partial<Record<Env, string>>;
|
|
154
|
+
env: Env;
|
|
155
|
+
agentId: string;
|
|
156
|
+
agentTag: string;
|
|
157
|
+
appKey: string;
|
|
158
|
+
appSecret: string;
|
|
159
|
+
extStatus: string;
|
|
160
|
+
timestamp: string | number;
|
|
161
|
+
sign: string;
|
|
162
|
+
origin: string;
|
|
163
|
+
ancestorOrigin: string;
|
|
164
|
+
destinationOrigin: string;
|
|
165
|
+
callShow: '0' | '1';
|
|
166
|
+
transferToLaborShow: '0' | '1';
|
|
167
|
+
restShow: '0' | '1';
|
|
168
|
+
networkDetectShow: '0' | '1';
|
|
169
|
+
muteShow: '0' | '1';
|
|
170
|
+
logShow: '0' | '1';
|
|
171
|
+
timingShow: '0' | '1';
|
|
172
|
+
signShow: '0' | '1';
|
|
173
|
+
}>;
|
|
174
|
+
export default _default;
|
|
175
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
176
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
177
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
178
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
179
|
+
} : {
|
|
180
|
+
type: import('vue').PropType<T[K]>;
|
|
181
|
+
required: true;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
185
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
186
|
+
default: D[K];
|
|
187
|
+
}> : P[K];
|
|
188
|
+
};
|
|
189
|
+
declare type __VLS_Prettify<T> = {
|
|
190
|
+
[K in keyof T]: T[K];
|
|
191
|
+
} & {};
|