@wxcc-desktop/sdk 1.3.0 → 1.3.2

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.
@@ -7,9 +7,11 @@ import { createI18NJsApi } from "./jsapi/i18n-jsapi";
7
7
  import { createLoggerJsApi } from "./jsapi/logger-jsapi";
8
8
  import { createScreenPopJsApi } from "./jsapi/screenpop-jsapi";
9
9
  import { createShortcutKeyJsApi } from "./jsapi/shortcut-key-jsapi";
10
+ import { createMonitoringJsApi } from "./jsapi/call-monitoring-jsapi";
10
11
  export declare type AgentXJsApi = {
11
12
  config: ReturnType<typeof createConfigJsApi>;
12
13
  logger: ReturnType<typeof createLoggerJsApi>;
14
+ monitoring: ReturnType<typeof createMonitoringJsApi>;
13
15
  shortcutKey: ReturnType<typeof createShortcutKeyJsApi>;
14
16
  agentContact: ReturnType<typeof createAgentContactJsApi>;
15
17
  agentStateInfo: ReturnType<typeof createAgentStateInfoJsApi>;
@@ -50,16 +50,28 @@ export declare class AgentContactJsApi {
50
50
  trackingId: string;
51
51
  consultMediaResourceId: string;
52
52
  interaction: Service.Aqm.Contact.Interaction;
53
+ childInteractionId?: string | undefined;
53
54
  interactionId: string;
54
55
  orgId: string;
55
56
  owner: string;
56
57
  queueMgr: string;
58
+ queueName?: string | undefined;
57
59
  type: string;
58
60
  ronaTimeout?: number | undefined;
59
61
  isConsulted?: boolean | undefined;
60
62
  isConferencing: boolean;
61
63
  updatedBy?: string | undefined;
62
64
  destinationType?: string | undefined;
65
+ autoResumed?: boolean | undefined;
66
+ reasonCode?: string | undefined;
67
+ reason?: string | undefined;
68
+ consultingAgentId?: string | undefined;
69
+ taskId?: string | undefined;
70
+ task?: Service.Aqm.Contact.Interaction | undefined;
71
+ supervisorId?: string | undefined;
72
+ monitorType?: string | undefined;
73
+ supervisorDN?: string | undefined;
74
+ id?: string | undefined;
63
75
  }> | undefined>;
64
76
  consultAccept(p: {
65
77
  interactionId: string;
@@ -71,16 +83,28 @@ export declare class AgentContactJsApi {
71
83
  trackingId: string;
72
84
  consultMediaResourceId: string;
73
85
  interaction: Service.Aqm.Contact.Interaction;
86
+ childInteractionId?: string | undefined;
74
87
  interactionId: string;
75
88
  orgId: string;
76
89
  owner: string;
77
90
  queueMgr: string;
91
+ queueName?: string | undefined;
78
92
  type: string;
79
93
  ronaTimeout?: number | undefined;
80
94
  isConsulted?: boolean | undefined;
81
95
  isConferencing: boolean;
82
96
  updatedBy?: string | undefined;
83
97
  destinationType?: string | undefined;
98
+ autoResumed?: boolean | undefined;
99
+ reasonCode?: string | undefined;
100
+ reason?: string | undefined;
101
+ consultingAgentId?: string | undefined;
102
+ taskId?: string | undefined;
103
+ task?: Service.Aqm.Contact.Interaction | undefined;
104
+ supervisorId?: string | undefined;
105
+ monitorType?: string | undefined;
106
+ supervisorDN?: string | undefined;
107
+ id?: string | undefined;
84
108
  }> | undefined>;
85
109
  buddyAgents(p: {
86
110
  data: Service.Aqm.Contact.BuddyAgents;
@@ -103,16 +127,28 @@ export declare class AgentContactJsApi {
103
127
  trackingId: string;
104
128
  consultMediaResourceId: string;
105
129
  interaction: Service.Aqm.Contact.Interaction;
130
+ childInteractionId?: string | undefined;
106
131
  interactionId: string;
107
132
  orgId: string;
108
133
  owner: string;
109
134
  queueMgr: string;
135
+ queueName?: string | undefined;
110
136
  type: string;
111
137
  ronaTimeout?: number | undefined;
112
138
  isConsulted?: boolean | undefined;
113
139
  isConferencing: boolean;
114
140
  updatedBy?: string | undefined;
115
141
  destinationType?: string | undefined;
142
+ autoResumed?: boolean | undefined;
143
+ reasonCode?: string | undefined;
144
+ reason?: string | undefined;
145
+ consultingAgentId?: string | undefined;
146
+ taskId?: string | undefined;
147
+ task?: Service.Aqm.Contact.Interaction | undefined;
148
+ supervisorId?: string | undefined;
149
+ monitorType?: string | undefined;
150
+ supervisorDN?: string | undefined;
151
+ id?: string | undefined;
116
152
  }> | undefined>;
117
153
  consultEnd(p: {
118
154
  interactionId: string;
@@ -125,16 +161,28 @@ export declare class AgentContactJsApi {
125
161
  trackingId: string;
126
162
  consultMediaResourceId: string;
127
163
  interaction: Service.Aqm.Contact.Interaction;
164
+ childInteractionId?: string | undefined;
128
165
  interactionId: string;
129
166
  orgId: string;
130
167
  owner: string;
131
168
  queueMgr: string;
169
+ queueName?: string | undefined;
132
170
  type: string;
133
171
  ronaTimeout?: number | undefined;
134
172
  isConsulted?: boolean | undefined;
135
173
  isConferencing: boolean;
136
174
  updatedBy?: string | undefined;
137
175
  destinationType?: string | undefined;
176
+ autoResumed?: boolean | undefined;
177
+ reasonCode?: string | undefined;
178
+ reason?: string | undefined;
179
+ consultingAgentId?: string | undefined;
180
+ taskId?: string | undefined;
181
+ task?: Service.Aqm.Contact.Interaction | undefined;
182
+ supervisorId?: string | undefined;
183
+ monitorType?: string | undefined;
184
+ supervisorDN?: string | undefined;
185
+ id?: string | undefined;
138
186
  }> | undefined>;
139
187
  cancelCtq(p: {
140
188
  interactionId: string;
@@ -147,16 +195,28 @@ export declare class AgentContactJsApi {
147
195
  trackingId: string;
148
196
  consultMediaResourceId: string;
149
197
  interaction: Service.Aqm.Contact.Interaction;
198
+ childInteractionId?: string | undefined;
150
199
  interactionId: string;
151
200
  orgId: string;
152
201
  owner: string;
153
202
  queueMgr: string;
203
+ queueName?: string | undefined;
154
204
  type: string;
155
205
  ronaTimeout?: number | undefined;
156
206
  isConsulted?: boolean | undefined;
157
207
  isConferencing: boolean;
158
208
  updatedBy?: string | undefined;
159
209
  destinationType?: string | undefined;
210
+ autoResumed?: boolean | undefined;
211
+ reasonCode?: string | undefined;
212
+ reason?: string | undefined;
213
+ consultingAgentId?: string | undefined;
214
+ taskId?: string | undefined;
215
+ task?: Service.Aqm.Contact.Interaction | undefined;
216
+ supervisorId?: string | undefined;
217
+ monitorType?: string | undefined;
218
+ supervisorDN?: string | undefined;
219
+ id?: string | undefined;
160
220
  }> | undefined>;
161
221
  wrapup(p: {
162
222
  interactionId: string;
@@ -169,16 +229,28 @@ export declare class AgentContactJsApi {
169
229
  trackingId: string;
170
230
  consultMediaResourceId: string;
171
231
  interaction: Service.Aqm.Contact.Interaction;
232
+ childInteractionId?: string | undefined;
172
233
  interactionId: string;
173
234
  orgId: string;
174
235
  owner: string;
175
236
  queueMgr: string;
237
+ queueName?: string | undefined;
176
238
  type: string;
177
239
  ronaTimeout?: number | undefined;
178
240
  isConsulted?: boolean | undefined;
179
241
  isConferencing: boolean;
180
242
  updatedBy?: string | undefined;
181
243
  destinationType?: string | undefined;
244
+ autoResumed?: boolean | undefined;
245
+ reasonCode?: string | undefined;
246
+ reason?: string | undefined;
247
+ consultingAgentId?: string | undefined;
248
+ taskId?: string | undefined;
249
+ task?: Service.Aqm.Contact.Interaction | undefined;
250
+ supervisorId?: string | undefined;
251
+ monitorType?: string | undefined;
252
+ supervisorDN?: string | undefined;
253
+ id?: string | undefined;
182
254
  }> | undefined>;
183
255
  vteamTransfer(p: {
184
256
  interactionId: string;
@@ -191,16 +263,28 @@ export declare class AgentContactJsApi {
191
263
  trackingId: string;
192
264
  consultMediaResourceId: string;
193
265
  interaction: Service.Aqm.Contact.Interaction;
266
+ childInteractionId?: string | undefined;
194
267
  interactionId: string;
195
268
  orgId: string;
196
269
  owner: string;
197
270
  queueMgr: string;
271
+ queueName?: string | undefined;
198
272
  type: string;
199
273
  ronaTimeout?: number | undefined;
200
274
  isConsulted?: boolean | undefined;
201
275
  isConferencing: boolean;
202
276
  updatedBy?: string | undefined;
203
277
  destinationType?: string | undefined;
278
+ autoResumed?: boolean | undefined;
279
+ reasonCode?: string | undefined;
280
+ reason?: string | undefined;
281
+ consultingAgentId?: string | undefined;
282
+ taskId?: string | undefined;
283
+ task?: Service.Aqm.Contact.Interaction | undefined;
284
+ supervisorId?: string | undefined;
285
+ monitorType?: string | undefined;
286
+ supervisorDN?: string | undefined;
287
+ id?: string | undefined;
204
288
  }> | undefined>;
205
289
  blindTransfer(p: {
206
290
  interactionId: string;
@@ -213,16 +297,28 @@ export declare class AgentContactJsApi {
213
297
  trackingId: string;
214
298
  consultMediaResourceId: string;
215
299
  interaction: Service.Aqm.Contact.Interaction;
300
+ childInteractionId?: string | undefined;
216
301
  interactionId: string;
217
302
  orgId: string;
218
303
  owner: string;
219
304
  queueMgr: string;
305
+ queueName?: string | undefined;
220
306
  type: string;
221
307
  ronaTimeout?: number | undefined;
222
308
  isConsulted?: boolean | undefined;
223
309
  isConferencing: boolean;
224
310
  updatedBy?: string | undefined;
225
311
  destinationType?: string | undefined;
312
+ autoResumed?: boolean | undefined;
313
+ reasonCode?: string | undefined;
314
+ reason?: string | undefined;
315
+ consultingAgentId?: string | undefined;
316
+ taskId?: string | undefined;
317
+ task?: Service.Aqm.Contact.Interaction | undefined;
318
+ supervisorId?: string | undefined;
319
+ monitorType?: string | undefined;
320
+ supervisorDN?: string | undefined;
321
+ id?: string | undefined;
226
322
  }> | undefined>;
227
323
  hold(p: {
228
324
  interactionId: string;
@@ -237,16 +333,28 @@ export declare class AgentContactJsApi {
237
333
  trackingId: string;
238
334
  consultMediaResourceId: string;
239
335
  interaction: Service.Aqm.Contact.Interaction;
336
+ childInteractionId?: string | undefined;
240
337
  interactionId: string;
241
338
  orgId: string;
242
339
  owner: string;
243
340
  queueMgr: string;
341
+ queueName?: string | undefined;
244
342
  type: string;
245
343
  ronaTimeout?: number | undefined;
246
344
  isConsulted?: boolean | undefined;
247
345
  isConferencing: boolean;
248
346
  updatedBy?: string | undefined;
249
347
  destinationType?: string | undefined;
348
+ autoResumed?: boolean | undefined;
349
+ reasonCode?: string | undefined;
350
+ reason?: string | undefined;
351
+ consultingAgentId?: string | undefined;
352
+ taskId?: string | undefined;
353
+ task?: Service.Aqm.Contact.Interaction | undefined;
354
+ supervisorId?: string | undefined;
355
+ monitorType?: string | undefined;
356
+ supervisorDN?: string | undefined;
357
+ id?: string | undefined;
250
358
  }> | undefined>;
251
359
  unHold(p: {
252
360
  interactionId: string;
@@ -261,16 +369,28 @@ export declare class AgentContactJsApi {
261
369
  trackingId: string;
262
370
  consultMediaResourceId: string;
263
371
  interaction: Service.Aqm.Contact.Interaction;
372
+ childInteractionId?: string | undefined;
264
373
  interactionId: string;
265
374
  orgId: string;
266
375
  owner: string;
267
376
  queueMgr: string;
377
+ queueName?: string | undefined;
268
378
  type: string;
269
379
  ronaTimeout?: number | undefined;
270
380
  isConsulted?: boolean | undefined;
271
381
  isConferencing: boolean;
272
382
  updatedBy?: string | undefined;
273
383
  destinationType?: string | undefined;
384
+ autoResumed?: boolean | undefined;
385
+ reasonCode?: string | undefined;
386
+ reason?: string | undefined;
387
+ consultingAgentId?: string | undefined;
388
+ taskId?: string | undefined;
389
+ task?: Service.Aqm.Contact.Interaction | undefined;
390
+ supervisorId?: string | undefined;
391
+ monitorType?: string | undefined;
392
+ supervisorDN?: string | undefined;
393
+ id?: string | undefined;
274
394
  }> | undefined>;
275
395
  consult(p: {
276
396
  interactionId: string;
@@ -284,16 +404,28 @@ export declare class AgentContactJsApi {
284
404
  trackingId: string;
285
405
  consultMediaResourceId: string;
286
406
  interaction: Service.Aqm.Contact.Interaction;
407
+ childInteractionId?: string | undefined;
287
408
  interactionId: string;
288
409
  orgId: string;
289
410
  owner: string;
290
411
  queueMgr: string;
412
+ queueName?: string | undefined;
291
413
  type: string;
292
414
  ronaTimeout?: number | undefined;
293
415
  isConsulted?: boolean | undefined;
294
416
  isConferencing: boolean;
295
417
  updatedBy?: string | undefined;
296
418
  destinationType?: string | undefined;
419
+ autoResumed?: boolean | undefined;
420
+ reasonCode?: string | undefined;
421
+ reason?: string | undefined;
422
+ consultingAgentId?: string | undefined;
423
+ taskId?: string | undefined;
424
+ task?: Service.Aqm.Contact.Interaction | undefined;
425
+ supervisorId?: string | undefined;
426
+ monitorType?: string | undefined;
427
+ supervisorDN?: string | undefined;
428
+ id?: string | undefined;
297
429
  }> | undefined>;
298
430
  consultConference(p: {
299
431
  interactionId: string;
@@ -306,16 +438,28 @@ export declare class AgentContactJsApi {
306
438
  trackingId: string;
307
439
  consultMediaResourceId: string;
308
440
  interaction: Service.Aqm.Contact.Interaction;
441
+ childInteractionId?: string | undefined;
309
442
  interactionId: string;
310
443
  orgId: string;
311
444
  owner: string;
312
445
  queueMgr: string;
446
+ queueName?: string | undefined;
313
447
  type: string;
314
448
  ronaTimeout?: number | undefined;
315
449
  isConsulted?: boolean | undefined;
316
450
  isConferencing: boolean;
317
451
  updatedBy?: string | undefined;
318
452
  destinationType?: string | undefined;
453
+ autoResumed?: boolean | undefined;
454
+ reasonCode?: string | undefined;
455
+ reason?: string | undefined;
456
+ consultingAgentId?: string | undefined;
457
+ taskId?: string | undefined;
458
+ task?: Service.Aqm.Contact.Interaction | undefined;
459
+ supervisorId?: string | undefined;
460
+ monitorType?: string | undefined;
461
+ supervisorDN?: string | undefined;
462
+ id?: string | undefined;
319
463
  }> | undefined>;
320
464
  decline(p: {
321
465
  interactionId: string;
@@ -331,16 +475,28 @@ export declare class AgentContactJsApi {
331
475
  trackingId: string;
332
476
  consultMediaResourceId: string;
333
477
  interaction: Service.Aqm.Contact.Interaction;
478
+ childInteractionId?: string | undefined;
334
479
  interactionId: string;
335
480
  orgId: string;
336
481
  owner: string;
337
482
  queueMgr: string;
483
+ queueName?: string | undefined;
338
484
  type: string;
339
485
  ronaTimeout?: number | undefined;
340
486
  isConsulted?: boolean | undefined;
341
487
  isConferencing: boolean;
342
488
  updatedBy?: string | undefined;
343
489
  destinationType?: string | undefined;
490
+ autoResumed?: boolean | undefined;
491
+ reasonCode?: string | undefined;
492
+ reason?: string | undefined;
493
+ consultingAgentId?: string | undefined;
494
+ taskId?: string | undefined;
495
+ task?: Service.Aqm.Contact.Interaction | undefined;
496
+ supervisorId?: string | undefined;
497
+ monitorType?: string | undefined;
498
+ supervisorDN?: string | undefined;
499
+ id?: string | undefined;
344
500
  }> | undefined>;
345
501
  consultTransfer(p: {
346
502
  interactionId: string;
@@ -353,16 +509,28 @@ export declare class AgentContactJsApi {
353
509
  trackingId: string;
354
510
  consultMediaResourceId: string;
355
511
  interaction: Service.Aqm.Contact.Interaction;
512
+ childInteractionId?: string | undefined;
356
513
  interactionId: string;
357
514
  orgId: string;
358
515
  owner: string;
359
516
  queueMgr: string;
517
+ queueName?: string | undefined;
360
518
  type: string;
361
519
  ronaTimeout?: number | undefined;
362
520
  isConsulted?: boolean | undefined;
363
521
  isConferencing: boolean;
364
522
  updatedBy?: string | undefined;
365
523
  destinationType?: string | undefined;
524
+ autoResumed?: boolean | undefined;
525
+ reasonCode?: string | undefined;
526
+ reason?: string | undefined;
527
+ consultingAgentId?: string | undefined;
528
+ taskId?: string | undefined;
529
+ task?: Service.Aqm.Contact.Interaction | undefined;
530
+ supervisorId?: string | undefined;
531
+ monitorType?: string | undefined;
532
+ supervisorDN?: string | undefined;
533
+ id?: string | undefined;
366
534
  }> | undefined>;
367
535
  vteamList(p: {
368
536
  data: Service.Aqm.Contact.VTeam;
@@ -385,16 +553,28 @@ export declare class AgentContactJsApi {
385
553
  trackingId: string;
386
554
  consultMediaResourceId: string;
387
555
  interaction: Service.Aqm.Contact.Interaction;
556
+ childInteractionId?: string | undefined;
388
557
  interactionId: string;
389
558
  orgId: string;
390
559
  owner: string;
391
560
  queueMgr: string;
561
+ queueName?: string | undefined;
392
562
  type: string;
393
563
  ronaTimeout?: number | undefined;
394
564
  isConsulted?: boolean | undefined;
395
565
  isConferencing: boolean;
396
566
  updatedBy?: string | undefined;
397
567
  destinationType?: string | undefined;
568
+ autoResumed?: boolean | undefined;
569
+ reasonCode?: string | undefined;
570
+ reason?: string | undefined;
571
+ consultingAgentId?: string | undefined;
572
+ taskId?: string | undefined;
573
+ task?: Service.Aqm.Contact.Interaction | undefined;
574
+ supervisorId?: string | undefined;
575
+ monitorType?: string | undefined;
576
+ supervisorDN?: string | undefined;
577
+ id?: string | undefined;
398
578
  }> | undefined>;
399
579
  resumeRecording(p: {
400
580
  interactionId: string;
@@ -409,16 +589,28 @@ export declare class AgentContactJsApi {
409
589
  trackingId: string;
410
590
  consultMediaResourceId: string;
411
591
  interaction: Service.Aqm.Contact.Interaction;
592
+ childInteractionId?: string | undefined;
412
593
  interactionId: string;
413
594
  orgId: string;
414
595
  owner: string;
415
596
  queueMgr: string;
597
+ queueName?: string | undefined;
416
598
  type: string;
417
599
  ronaTimeout?: number | undefined;
418
600
  isConsulted?: boolean | undefined;
419
601
  isConferencing: boolean;
420
602
  updatedBy?: string | undefined;
421
603
  destinationType?: string | undefined;
604
+ autoResumed?: boolean | undefined;
605
+ reasonCode?: string | undefined;
606
+ reason?: string | undefined;
607
+ consultingAgentId?: string | undefined;
608
+ taskId?: string | undefined;
609
+ task?: Service.Aqm.Contact.Interaction | undefined;
610
+ supervisorId?: string | undefined;
611
+ monitorType?: string | undefined;
612
+ supervisorDN?: string | undefined;
613
+ id?: string | undefined;
422
614
  }> | undefined>;
423
615
  addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
424
616
  addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
@@ -2,7 +2,7 @@ import { AgentxService, Service } from "@wxcc-desktop/sdk-types";
2
2
  import { createJsApiLogger } from "./common/_logger";
3
3
  import { createServiceChecker } from "./common/_service-checker";
4
4
  declare type IdleCodeData = {
5
- id: number;
5
+ id: string;
6
6
  name: string;
7
7
  };
8
8
  declare type LatestInfoData = {
@@ -0,0 +1,51 @@
1
+ import { AgentxService, Service } from "@wxcc-desktop/sdk-types";
2
+ import { createJsApiLogger } from "./common/_logger";
3
+ import { createServiceChecker } from "./common/_service-checker";
4
+ import { AqmServiceEntityEvents } from "./common/_service-events";
5
+ declare type Listeners = {
6
+ eMonitoringOffered: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringOffered"]["listen"]>[0];
7
+ eMonitoringStarted: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringStarted"]["listen"]>[0];
8
+ eMonitoringRequestCreateFailed: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringRequestCreateFailed"]["listen"]>[0];
9
+ eMonitoringFailed: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringFailed"]["listen"]>[0];
10
+ eMonitoringEnded: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringEnded"]["listen"]>[0];
11
+ eMonitoringEndFailed: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringEndFailed"]["listen"]>[0];
12
+ eMonitoringHeld: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringHeld"]["listen"]>[0];
13
+ eMonitoringHoldFailed: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringHoldFailed"]["listen"]>[0];
14
+ eMonitoringUnHeld: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringUnHeld"]["listen"]>[0];
15
+ eMonitoringUnHoldFailed: Parameters<AgentxService["aqm"]["supervisor"]["eMonitoringUnHoldFailed"]["listen"]>[0];
16
+ };
17
+ declare type AqmSupervisorEvents = AqmServiceEntityEvents<Listeners>;
18
+ declare type Config = {
19
+ logger: ReturnType<typeof createJsApiLogger>;
20
+ serviceChecker: ReturnType<typeof createServiceChecker>;
21
+ aqmEvents: AqmSupervisorEvents;
22
+ };
23
+ export declare class CallMonitorJsApi {
24
+ private readonly logger;
25
+ private readonly serviceChecker;
26
+ private readonly aqmEvents;
27
+ private SERVICE?;
28
+ private checkService;
29
+ constructor(config: Config);
30
+ init(SERVICE?: AgentxService): void;
31
+ cleanup(): void;
32
+ startMonitoring(p: {
33
+ data: Service.Aqm.Supervisor.MonitoringRequest;
34
+ }): Promise<any>;
35
+ endMonitoring(p: {
36
+ interactionId: string;
37
+ }): Promise<any>;
38
+ holdMonitoring(p: {
39
+ interactionId: string;
40
+ }): Promise<any>;
41
+ unHoldMonitoring(p: {
42
+ interactionId: string;
43
+ }): Promise<any>;
44
+ addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
45
+ addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
46
+ removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
47
+ removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
48
+ removeAllEventListeners(): void;
49
+ }
50
+ export declare const createMonitoringJsApi: () => CallMonitorJsApi;
51
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { AgentxService } from "@wxcc-desktop/sdk-types";
2
2
  import { createJsApiLogger } from "./_logger";
3
- declare type AqmServiceEntities = AgentxService["aqm"]["agent"] | AgentxService["aqm"]["configs"] | AgentxService["aqm"]["contact"] | AgentxService["aqm"]["dialer"] | AgentxService["aqm"]["screenpop"];
3
+ declare type AqmServiceEntities = AgentxService["aqm"]["agent"] | AgentxService["aqm"]["configs"] | AgentxService["aqm"]["contact"] | AgentxService["aqm"]["dialer"] | AgentxService["aqm"]["supervisor"] | AgentxService["aqm"]["screenpop"];
4
4
  declare type Events<Listeners> = keyof Listeners;
5
5
  declare type Config = {
6
6
  logger: ReturnType<typeof createJsApiLogger>;
@@ -30,39 +30,36 @@ export declare class DialerJsApi {
30
30
  trackingId: string;
31
31
  consultMediaResourceId: string;
32
32
  interaction: Service.Aqm.Contact.Interaction;
33
+ childInteractionId?: string | undefined;
33
34
  interactionId: string;
34
35
  orgId: string;
35
36
  owner: string;
36
37
  queueMgr: string;
38
+ queueName?: string | undefined;
37
39
  type: string;
38
40
  ronaTimeout?: number | undefined;
39
41
  isConsulted?: boolean | undefined;
40
42
  isConferencing: boolean;
41
43
  updatedBy?: string | undefined;
42
44
  destinationType?: string | undefined;
45
+ autoResumed?: boolean | undefined;
46
+ reasonCode?: string | undefined;
47
+ reason?: string | undefined;
48
+ consultingAgentId?: string | undefined;
49
+ taskId?: string | undefined;
50
+ task?: Service.Aqm.Contact.Interaction | undefined;
51
+ supervisorId?: string | undefined;
52
+ monitorType?: string | undefined;
53
+ supervisorDN?: string | undefined;
54
+ id?: string | undefined;
43
55
  }> | undefined>;
44
56
  updateCadVariables(p: {
45
57
  interactionId: string;
46
58
  data: Service.Aqm.Dialer.updateCadPayLoad;
47
- }): Promise<import("@wxcc-desktop/sdk-types/agentx-services/core/aqm-reqs").Msg<{
48
- mediaResourceId: string;
49
- eventType: string;
50
- agentId: string;
51
- destAgentId: string;
52
- trackingId: string;
53
- consultMediaResourceId: string;
54
- interaction: Service.Aqm.Contact.Interaction;
55
- interactionId: string;
56
- orgId: string;
57
- owner: string;
58
- queueMgr: string;
59
- type: string;
60
- ronaTimeout?: number | undefined;
61
- isConsulted?: boolean | undefined;
62
- isConferencing: boolean;
63
- updatedBy?: string | undefined;
64
- destinationType?: string | undefined;
65
- }> | undefined>;
59
+ secureCad?: Array<string>;
60
+ keyId: string | null;
61
+ keyVersion: number | null;
62
+ }): Promise<any>;
66
63
  addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
67
64
  addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
68
65
  removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
@@ -61,6 +61,8 @@ export declare class ShortcutKeyJsApi {
61
61
  REFRESH_KEY: string;
62
62
  SWITCH_TASK_KEY: string;
63
63
  ACCEPT_ALL_TASK_KEY: string;
64
+ EXPAND_COLLAPSE_WEBEX: string;
65
+ MINIMIZE_RESTORE_WEBEX: string;
64
66
  } | undefined;
65
67
  }
66
68
  export declare const createShortcutKeyJsApi: () => ShortcutKeyJsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxcc-desktop/sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "author": "Roman Manchenko",
5
5
  "license": "ISC",
6
6
  "repository": "git@sqbu-github.cisco.com:CBABU/agentx-js-api.git",
@@ -8,7 +8,7 @@
8
8
  "types": "./dist/types/index.d.ts",
9
9
  "dependencies": {
10
10
  "@uuip/unified-ui-platform-sdk": "^1.2.6",
11
- "@wxcc-desktop/sdk-types": "^1.0.3",
11
+ "@wxcc-desktop/sdk-types": "^1.0.4",
12
12
  "event-emitter": "^0.3.5",
13
13
  "js-cookie": "^3.0.1"
14
14
  },