ue-softphone-sdk 4.0.18 → 4.0.20

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
@@ -8,4 +8,8 @@
8
8
  极简互联电话条sdk
9
9
  > 4.0.12 针对safari 浏览器获取麦克风权限的适配
10
10
  > 4.0.13 网络检测请求地址修改;增加音量检测事件
11
- > 4.0.18 增加muteRing方法,关闭铃声
11
+ > 4.0.18 增加muteRing方法,关闭铃声
12
+ > 4.0.19 增加monitor监控开关,默认关闭;增加(监听,抢接,强拆,强插,耳语)方法
13
+ > 4.0.20
14
+ > a.增加closeSdkMonitor监控关闭方法,type(summary: 监控总览, agent: 座席监控, queue: 服务组监控)
15
+ > b.sdkMonitorMsg方法,开启监控总览 type类型由string改为array
@@ -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,8 +142,35 @@ 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
- static ueTimer: any;
171
+ static summaryUeTimer: any;
172
+ static agentUeTimer: any;
173
+ static queueUeTimer: any;
145
174
  static loginToken: String | undefined;
146
175
  static agentInfo: any;
147
176
  static initOptions: InitOptions;
@@ -164,6 +193,7 @@ export default class ueSoftphone {
164
193
  private attachEventCallbacks;
165
194
  private attachMonitorEventCallbacks;
166
195
  private attachNlsTranslationEventCallbacks;
196
+ private allMonitorEventCallbacks;
167
197
  constructor(options?: InitOptions);
168
198
  private init;
169
199
  private getDomain;
@@ -190,12 +220,18 @@ export default class ueSoftphone {
190
220
  stopListenVolume: (callbacks: OnCallVolumeParams) => void;
191
221
  private turnOffRingCallbacks;
192
222
  muteRing: (callbacks: OnCallVolumeParams) => void;
223
+ sdkMonitorMsg: (params: any) => void;
224
+ closeSdkMonitor: (params: any) => void;
193
225
  private initAgentQueue;
194
226
  private initQueue;
195
227
  static createQueueMonitorEventHandle(callbacks?: any): void;
196
228
  static createopenNlsTransEventHandle(callbacks?: any): void;
229
+ static createopenAllMonitorEventHandle(callbacks?: any): void;
230
+ static changeMonitorEventHandle(callbacks: any, msg: any): void;
231
+ static handleHttpMonitor(msg: any, callbacks: any): void;
197
232
  listenCallQueueEvent: (callbacks: any) => void;
198
233
  listenTranslationEvent: (callbacks: any) => void;
234
+ listenMonitor: (callbacks: any) => void;
199
235
  static useDefaultDependencies(deps: any): {
200
236
  newWebSocket(server: string, proto: any): any;
201
237
  request(url: string, options: any): any;
@@ -232,6 +268,11 @@ export default class ueSoftphone {
232
268
  threeWayCall(params: threeWayCallParams): void;
233
269
  evaluate(params: satisfactionParams): void;
234
270
  meeting(params: meetingParams): void;
271
+ listen(params: listenParams): void;
272
+ loot(params: lootParams): void;
273
+ forcedHangup(params: forcedHangupParams): void;
274
+ breakIn(params: breakinParams): void;
275
+ whisper(params: whisperParams): void;
235
276
  };
236
277
  private _callApi;
237
278
  private _agentApi;