ue-softphone-sdk 4.0.17 → 4.0.19

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/README.md CHANGED
@@ -7,4 +7,6 @@
7
7
  -->
8
8
  极简互联电话条sdk
9
9
  > 4.0.12 针对safari 浏览器获取麦克风权限的适配
10
- > 4.0.13 网络检测请求地址修改;增加音量检测事件
10
+ > 4.0.13 网络检测请求地址修改;增加音量检测事件
11
+ > 4.0.18 增加muteRing方法,关闭铃声
12
+ > 4.0.19 增加monitor监控开关,默认关闭;增加(监听,抢接,强拆,强插,耳语)方法
@@ -19,6 +19,7 @@ interface InitOptions {
19
19
  error?: Function;
20
20
  server?: string;
21
21
  audioInfo?: AudioInfo;
22
+ sdkMonitorType?: any;
22
23
  isOpenNetwork?: boolean;
23
24
  volume?: {
24
25
  open: boolean;
@@ -28,6 +29,7 @@ interface InitOptions {
28
29
  pushCallinRingStatistics?: boolean;
29
30
  isOpenCallQueue?: boolean;
30
31
  openNlsTranslation?: boolean;
32
+ monitor?: boolean;
31
33
  }
32
34
  interface OnCallEventParams {
33
35
  success?: Function;
@@ -140,6 +142,31 @@ interface meetingParams {
140
142
  success?: Function;
141
143
  fail?: Function;
142
144
  }
145
+ interface listenParams {
146
+ agentNumber: String;
147
+ success?: Function;
148
+ fail?: Function;
149
+ }
150
+ interface lootParams {
151
+ agentNumber: String;
152
+ success?: Function;
153
+ fail?: Function;
154
+ }
155
+ interface whisperParams {
156
+ agentNumber: String;
157
+ success?: Function;
158
+ fail?: Function;
159
+ }
160
+ interface forcedHangupParams {
161
+ agentNumber: String;
162
+ success?: Function;
163
+ fail?: Function;
164
+ }
165
+ interface breakinParams {
166
+ agentNumber: String;
167
+ success?: Function;
168
+ fail?: Function;
169
+ }
143
170
  export default class ueSoftphone {
144
171
  static ueTimer: any;
145
172
  static loginToken: String | undefined;
@@ -152,6 +179,7 @@ export default class ueSoftphone {
152
179
  static AudioTask: any;
153
180
  static MonitorSocketinstance: any;
154
181
  static UserConfig: any;
182
+ static isCanRing: any;
155
183
  static noop(): void;
156
184
  static debug: (msg: any) => void;
157
185
  static log: (msg: any) => void;
@@ -163,6 +191,7 @@ export default class ueSoftphone {
163
191
  private attachEventCallbacks;
164
192
  private attachMonitorEventCallbacks;
165
193
  private attachNlsTranslationEventCallbacks;
194
+ private allMonitorEventCallbacks;
166
195
  constructor(options?: InitOptions);
167
196
  private init;
168
197
  private getDomain;
@@ -187,12 +216,18 @@ export default class ueSoftphone {
187
216
  stopVolumeDetection: () => void;
188
217
  listenCallVolume: (callbacks: OnCallVolumeParams) => void;
189
218
  stopListenVolume: (callbacks: OnCallVolumeParams) => void;
219
+ private turnOffRingCallbacks;
220
+ muteRing: (callbacks: OnCallVolumeParams) => void;
221
+ sdkMonitorMsg: (params: any) => void;
190
222
  private initAgentQueue;
191
223
  private initQueue;
192
224
  static createQueueMonitorEventHandle(callbacks?: any): void;
193
225
  static createopenNlsTransEventHandle(callbacks?: any): void;
226
+ static createopenAllMonitorEventHandle(callbacks?: any, msg?: any): void;
227
+ static handleHttpMonitor(msg: any, callbacks: any): void;
194
228
  listenCallQueueEvent: (callbacks: any) => void;
195
229
  listenTranslationEvent: (callbacks: any) => void;
230
+ listenMonitor: (callbacks: any) => void;
196
231
  static useDefaultDependencies(deps: any): {
197
232
  newWebSocket(server: string, proto: any): any;
198
233
  request(url: string, options: any): any;
@@ -229,6 +264,11 @@ export default class ueSoftphone {
229
264
  threeWayCall(params: threeWayCallParams): void;
230
265
  evaluate(params: satisfactionParams): void;
231
266
  meeting(params: meetingParams): void;
267
+ listen(params: listenParams): void;
268
+ loot(params: lootParams): void;
269
+ forcedHangup(params: forcedHangupParams): void;
270
+ breakIn(params: breakinParams): void;
271
+ whisper(params: whisperParams): void;
232
272
  };
233
273
  private _callApi;
234
274
  private _agentApi;