@94ai/nf-softphone 8.0.5 → 8.0.8
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 -775
- package/lib/nf-softphone.vue.d.ts +191 -191
- package/lib/softphone.d.ts +48 -48
- package/lib/style/css.d.ts +1 -1
- package/lib/style/index.d.ts +1 -1
- package/lib/type.d.ts +43 -43
- package/package.json +3 -3
|
@@ -1,191 +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
|
-
"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
|
-
} & {};
|
|
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
|
+
} & {};
|
package/lib/softphone.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Option } from '../..nf-softphone/lib/type';
|
|
2
|
-
export declare class SoftphoneManager {
|
|
3
|
-
id: any;
|
|
4
|
-
timer: any;
|
|
5
|
-
constructor();
|
|
6
|
-
option: Partial<Option>;
|
|
7
|
-
loadCssCode: (code: any) => void;
|
|
8
|
-
removeCssCode: () => void;
|
|
9
|
-
getContextDomElement: (el: string) => Element | null;
|
|
10
|
-
getSoftphoneDomElement: (el: string) => Element | null;
|
|
11
|
-
signOverdued: (data: {
|
|
12
|
-
sign: string;
|
|
13
|
-
timestamp: string | number;
|
|
14
|
-
}) => void;
|
|
15
|
-
handlingCommunication: (e: {
|
|
1
|
+
import { Option } from '../..nf-softphone/lib/type';
|
|
2
|
+
export declare class SoftphoneManager {
|
|
3
|
+
id: any;
|
|
4
|
+
timer: any;
|
|
5
|
+
constructor();
|
|
6
|
+
option: Partial<Option>;
|
|
7
|
+
loadCssCode: (code: any) => void;
|
|
8
|
+
removeCssCode: () => void;
|
|
9
|
+
getContextDomElement: (el: string) => Element | null;
|
|
10
|
+
getSoftphoneDomElement: (el: string) => Element | null;
|
|
11
|
+
signOverdued: (data: {
|
|
12
|
+
sign: string;
|
|
13
|
+
timestamp: string | number;
|
|
14
|
+
}) => void;
|
|
15
|
+
handlingCommunication: (e: {
|
|
16
16
|
data: `{
|
|
17
17
|
type: string,
|
|
18
18
|
ancestorOrigin: string,
|
|
19
19
|
origin: string,
|
|
20
20
|
data: 'expand' | 'shrink'
|
|
21
|
-
}` | string;
|
|
22
|
-
}) => void;
|
|
23
|
-
handlingScroll: (...args: any[]) => any;
|
|
24
|
-
handlerInteractive: () => void;
|
|
25
|
-
handlerDomRemove: () => void;
|
|
26
|
-
_containerScrolling: any;
|
|
27
|
-
get containerScrolling(): boolean;
|
|
28
|
-
set containerScrolling(value: boolean);
|
|
29
|
-
handlingScrollTransparent: () => void;
|
|
30
|
-
refreshStyle: () => Promise<{
|
|
31
|
-
top: number;
|
|
32
|
-
left: number;
|
|
33
|
-
leftMargin: string;
|
|
34
|
-
} | {
|
|
35
|
-
leftMargin: number;
|
|
36
|
-
top: number;
|
|
37
|
-
left: number;
|
|
38
|
-
}>;
|
|
39
|
-
handlerDomGenerater: () => Promise<void>;
|
|
40
|
-
initSoftphone: (option: any) => this;
|
|
41
|
-
postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
|
|
42
|
-
connect: () => void;
|
|
43
|
-
disconnect: () => void;
|
|
44
|
-
seatsStatusChange: (status: boolean) => void;
|
|
45
|
-
accept: () => void;
|
|
46
|
-
ignore: () => void;
|
|
47
|
-
hangup: () => void;
|
|
48
|
-
sendDtmf: () => void;
|
|
49
|
-
removeTimer: () => void;
|
|
50
|
-
destroy: () => void;
|
|
51
|
-
}
|
|
52
|
-
declare const softphoneManager: SoftphoneManager;
|
|
53
|
-
export default softphoneManager;
|
|
21
|
+
}` | string;
|
|
22
|
+
}) => void;
|
|
23
|
+
handlingScroll: (...args: any[]) => any;
|
|
24
|
+
handlerInteractive: () => void;
|
|
25
|
+
handlerDomRemove: () => void;
|
|
26
|
+
_containerScrolling: any;
|
|
27
|
+
get containerScrolling(): boolean;
|
|
28
|
+
set containerScrolling(value: boolean);
|
|
29
|
+
handlingScrollTransparent: () => void;
|
|
30
|
+
refreshStyle: () => Promise<{
|
|
31
|
+
top: number;
|
|
32
|
+
left: number;
|
|
33
|
+
leftMargin: string;
|
|
34
|
+
} | {
|
|
35
|
+
leftMargin: number;
|
|
36
|
+
top: number;
|
|
37
|
+
left: number;
|
|
38
|
+
}>;
|
|
39
|
+
handlerDomGenerater: () => Promise<void>;
|
|
40
|
+
initSoftphone: (option: any) => this;
|
|
41
|
+
postMessageCommunicate: (type: any, status?: boolean | undefined) => void;
|
|
42
|
+
connect: () => void;
|
|
43
|
+
disconnect: () => void;
|
|
44
|
+
seatsStatusChange: (status: boolean) => void;
|
|
45
|
+
accept: () => void;
|
|
46
|
+
ignore: () => void;
|
|
47
|
+
hangup: () => void;
|
|
48
|
+
sendDtmf: () => void;
|
|
49
|
+
removeTimer: () => void;
|
|
50
|
+
destroy: () => void;
|
|
51
|
+
}
|
|
52
|
+
declare const softphoneManager: SoftphoneManager;
|
|
53
|
+
export default softphoneManager;
|
package/lib/style/css.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/lib/style/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/lib/type.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export 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
|
-
export declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
|
1
|
+
export 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
|
+
export declare type Env = 'test' | 'dev' | 'sg' | 'gray' | 'prod';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-softphone",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.8",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/ui/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^8.0.
|
|
17
|
+
"@94ai/nf-theme-chalk": "^8.0.8",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-softphone.cjs.js",
|
|
32
32
|
"module": "lib/nf-softphone.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "348837ce37e1b93e62681cbd0021bc66cc94e660"
|
|
34
34
|
}
|