@94ai/nf-softphone 8.3.8 → 8.3.10
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/softphone-pure.d.ts +90 -90
- package/package/softphone-pure.html +667 -667
- package/package.json +3 -3
package/lib/softphone-pure.d.ts
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
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
|
-
callShow: '0' | '1';
|
|
24
|
-
transferToLaborShow: '0' | '1';
|
|
25
|
-
restShow: '0' | '1';
|
|
26
|
-
networkDetectShow: '0' | '1';
|
|
27
|
-
muteShow: '0' | '1';
|
|
28
|
-
logShow: '0' | '1';
|
|
29
|
-
timingShow: '0' | '1';
|
|
30
|
-
signShow: '0' | '1';
|
|
31
|
-
softphoneConnectCallBack: Function;
|
|
32
|
-
softphoneCallRefreshCallBack: Function;
|
|
33
|
-
softphoneSeatStatusChangeCallBack: Function;
|
|
34
|
-
softphoneAcceptCallBack: Function;
|
|
35
|
-
softphoneIgnoreCallBack: Function;
|
|
36
|
-
softphoneHangupCallBack: Function;
|
|
37
|
-
softphoneSessionStateChangeCallBack: Function;
|
|
38
|
-
softphoneIncomingCallBack: Function;
|
|
39
|
-
softphoneSendDtmfCallBack: Function;
|
|
40
|
-
softphoneConnectRegisteredCallBack: Function;
|
|
41
|
-
softphoneSignOverduedCallBack: Function;
|
|
42
|
-
};
|
|
43
|
-
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
44
|
-
export declare class SoftphoneManager {
|
|
45
|
-
id: any;
|
|
46
|
-
timer: any;
|
|
47
|
-
constructor();
|
|
48
|
-
option: Partial<Option>;
|
|
49
|
-
loadCssCode: (code: any) => void;
|
|
50
|
-
removeCssCode: () => void;
|
|
51
|
-
getContextDomElement: (el: string) => Element | null;
|
|
52
|
-
getSoftphoneDomElement: (el: string) => Element | null;
|
|
53
|
-
signOverdued: (data: {
|
|
54
|
-
sign: string;
|
|
55
|
-
timestamp: string | number;
|
|
56
|
-
}) => void;
|
|
57
|
-
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
|
+
callShow: '0' | '1';
|
|
24
|
+
transferToLaborShow: '0' | '1';
|
|
25
|
+
restShow: '0' | '1';
|
|
26
|
+
networkDetectShow: '0' | '1';
|
|
27
|
+
muteShow: '0' | '1';
|
|
28
|
+
logShow: '0' | '1';
|
|
29
|
+
timingShow: '0' | '1';
|
|
30
|
+
signShow: '0' | '1';
|
|
31
|
+
softphoneConnectCallBack: Function;
|
|
32
|
+
softphoneCallRefreshCallBack: Function;
|
|
33
|
+
softphoneSeatStatusChangeCallBack: Function;
|
|
34
|
+
softphoneAcceptCallBack: Function;
|
|
35
|
+
softphoneIgnoreCallBack: Function;
|
|
36
|
+
softphoneHangupCallBack: Function;
|
|
37
|
+
softphoneSessionStateChangeCallBack: Function;
|
|
38
|
+
softphoneIncomingCallBack: Function;
|
|
39
|
+
softphoneSendDtmfCallBack: Function;
|
|
40
|
+
softphoneConnectRegisteredCallBack: Function;
|
|
41
|
+
softphoneSignOverduedCallBack: Function;
|
|
42
|
+
};
|
|
43
|
+
declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
44
|
+
export declare class SoftphoneManager {
|
|
45
|
+
id: any;
|
|
46
|
+
timer: any;
|
|
47
|
+
constructor();
|
|
48
|
+
option: Partial<Option>;
|
|
49
|
+
loadCssCode: (code: any) => void;
|
|
50
|
+
removeCssCode: () => void;
|
|
51
|
+
getContextDomElement: (el: string) => Element | null;
|
|
52
|
+
getSoftphoneDomElement: (el: string) => Element | null;
|
|
53
|
+
signOverdued: (data: {
|
|
54
|
+
sign: string;
|
|
55
|
+
timestamp: string | number;
|
|
56
|
+
}) => void;
|
|
57
|
+
handlingCommunication: (e: {
|
|
58
58
|
data: `{
|
|
59
59
|
type: string,
|
|
60
60
|
ancestorOrigin: string,
|
|
61
61
|
origin: string,
|
|
62
62
|
data: 'expand' | 'shrink'
|
|
63
|
-
}` | string;
|
|
64
|
-
}) => void;
|
|
65
|
-
handlingScroll: (...args: any[]) => any;
|
|
66
|
-
handlerInteractive: () => void;
|
|
67
|
-
handlerDomRemove: () => void;
|
|
68
|
-
_containerScrolling: any;
|
|
69
|
-
get containerScrolling(): boolean;
|
|
70
|
-
set containerScrolling(value: boolean);
|
|
71
|
-
handlingScrollTransparent: () => void;
|
|
72
|
-
refreshStyle: () => Promise<{
|
|
73
|
-
top: number;
|
|
74
|
-
left: number;
|
|
75
|
-
leftMargin: string;
|
|
76
|
-
} | {
|
|
77
|
-
leftMargin: number;
|
|
78
|
-
top: number;
|
|
79
|
-
left: number;
|
|
80
|
-
}>;
|
|
81
|
-
handlerDomGenerater: () => Promise<void>;
|
|
82
|
-
initSoftphone: (option: any) => this;
|
|
83
|
-
postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
|
|
84
|
-
connect: () => void;
|
|
85
|
-
disconnect: () => void;
|
|
86
|
-
seatsStatusChange: (status: boolean) => void;
|
|
87
|
-
accept: () => void;
|
|
88
|
-
ignore: () => void;
|
|
89
|
-
hangup: () => void;
|
|
90
|
-
sendDtmf: () => void;
|
|
91
|
-
removeTimer: () => void;
|
|
92
|
-
destroy: () => void;
|
|
93
|
-
}
|
|
94
|
-
declare const softphoneManager: SoftphoneManager;
|
|
95
|
-
export default softphoneManager;
|
|
63
|
+
}` | string;
|
|
64
|
+
}) => void;
|
|
65
|
+
handlingScroll: (...args: any[]) => any;
|
|
66
|
+
handlerInteractive: () => void;
|
|
67
|
+
handlerDomRemove: () => void;
|
|
68
|
+
_containerScrolling: any;
|
|
69
|
+
get containerScrolling(): boolean;
|
|
70
|
+
set containerScrolling(value: boolean);
|
|
71
|
+
handlingScrollTransparent: () => void;
|
|
72
|
+
refreshStyle: () => Promise<{
|
|
73
|
+
top: number;
|
|
74
|
+
left: number;
|
|
75
|
+
leftMargin: string;
|
|
76
|
+
} | {
|
|
77
|
+
leftMargin: number;
|
|
78
|
+
top: number;
|
|
79
|
+
left: number;
|
|
80
|
+
}>;
|
|
81
|
+
handlerDomGenerater: () => Promise<void>;
|
|
82
|
+
initSoftphone: (option: any) => this;
|
|
83
|
+
postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
|
|
84
|
+
connect: () => void;
|
|
85
|
+
disconnect: () => void;
|
|
86
|
+
seatsStatusChange: (status: boolean) => void;
|
|
87
|
+
accept: () => void;
|
|
88
|
+
ignore: () => void;
|
|
89
|
+
hangup: () => void;
|
|
90
|
+
sendDtmf: () => void;
|
|
91
|
+
removeTimer: () => void;
|
|
92
|
+
destroy: () => void;
|
|
93
|
+
}
|
|
94
|
+
declare const softphoneManager: SoftphoneManager;
|
|
95
|
+
export default softphoneManager;
|