@wxcc-desktop/sdk 1.3.7 → 1.3.11
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 +15 -0
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/jsapi/actions-jsapi.d.ts +4 -0
- package/dist/types/jsapi/agent-contact-jsapi.d.ts +33 -16
- package/dist/types/jsapi/agent-state-info-jsapi.d.ts +3 -0
- package/dist/types/jsapi/dialer-jsapi.d.ts +2 -1
- package/dist/types/jsapi/post-interaction-jsapi.d.ts +26 -0
- package/dist/types/jsapi/shortcut-key-jsapi.d.ts +1 -0
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ import { createShortcutKeyJsApi } from "./jsapi/shortcut-key-jsapi";
|
|
10
10
|
import { createRTDWCJsApi } from "./jsapi/rtdwc-jsapi";
|
11
11
|
import { createMonitoringJsApi } from "./jsapi/call-monitoring-jsapi";
|
12
12
|
import { stationLogoutJsApi } from "./jsapi/agent-station-logout-jsapi";
|
13
|
+
import { createPostInteractionJsApi } from "./jsapi/post-interaction-jsapi";
|
13
14
|
export declare type AgentXJsApi = {
|
14
15
|
config: ReturnType<typeof createConfigJsApi>;
|
15
16
|
logger: ReturnType<typeof createLoggerJsApi>;
|
@@ -23,5 +24,6 @@ export declare type AgentXJsApi = {
|
|
23
24
|
i18n: ReturnType<typeof createI18NJsApi>;
|
24
25
|
actions: ReturnType<typeof createActionsJsApi>;
|
25
26
|
rtdwc: ReturnType<typeof createRTDWCJsApi>;
|
27
|
+
postInteractions: ReturnType<typeof createPostInteractionJsApi>;
|
26
28
|
};
|
27
29
|
export declare const Desktop: AgentXJsApi;
|
@@ -30,6 +30,10 @@ export declare class ActionsJsApi {
|
|
30
30
|
getWrapUpCodes(): Promise<import("@agentx/agentx-services").Service.Aqm.Configs.WrapUpReason[] | undefined>;
|
31
31
|
getClosestElement(el: any, selector: string): HTMLElement | null;
|
32
32
|
toggleMiximizeRestore: (e: MouseEvent | KeyboardEvent) => void;
|
33
|
+
toggleVoiceInteractionPanel: () => void;
|
34
|
+
toggleMuteUnmuteWebRtcCall: () => void;
|
35
|
+
declineWebRtcCall: () => void;
|
36
|
+
acceptWebRtcCall: () => void;
|
33
37
|
}
|
34
38
|
export declare const createActionsJsApi: () => ActionsJsApi;
|
35
39
|
export {};
|
@@ -40,6 +40,7 @@ export declare class AgentContactJsApi {
|
|
40
40
|
constructor(config: Config);
|
41
41
|
init(SERVICE?: AgentxService): void;
|
42
42
|
cleanup(): void;
|
43
|
+
sendDtmf(digit: any): void;
|
43
44
|
accept(p: {
|
44
45
|
interactionId: string;
|
45
46
|
}): Promise<import("@wxcc-desktop/sdk-types/agentx-services/core/aqm-reqs").Msg<{
|
@@ -63,7 +64,7 @@ export declare class AgentContactJsApi {
|
|
63
64
|
updatedBy?: string | undefined;
|
64
65
|
destinationType?: string | undefined;
|
65
66
|
autoResumed?: boolean | undefined;
|
66
|
-
reasonCode?: string | undefined;
|
67
|
+
reasonCode?: string | number | undefined;
|
67
68
|
reason?: string | undefined;
|
68
69
|
consultingAgentId?: string | undefined;
|
69
70
|
taskId?: string | undefined;
|
@@ -72,6 +73,7 @@ export declare class AgentContactJsApi {
|
|
72
73
|
monitorType?: string | undefined;
|
73
74
|
supervisorDN?: string | undefined;
|
74
75
|
id?: string | undefined;
|
76
|
+
isWebCallMute?: boolean | undefined;
|
75
77
|
}> | undefined>;
|
76
78
|
consultAccept(p: {
|
77
79
|
interactionId: string;
|
@@ -96,7 +98,7 @@ export declare class AgentContactJsApi {
|
|
96
98
|
updatedBy?: string | undefined;
|
97
99
|
destinationType?: string | undefined;
|
98
100
|
autoResumed?: boolean | undefined;
|
99
|
-
reasonCode?: string | undefined;
|
101
|
+
reasonCode?: string | number | undefined;
|
100
102
|
reason?: string | undefined;
|
101
103
|
consultingAgentId?: string | undefined;
|
102
104
|
taskId?: string | undefined;
|
@@ -105,6 +107,7 @@ export declare class AgentContactJsApi {
|
|
105
107
|
monitorType?: string | undefined;
|
106
108
|
supervisorDN?: string | undefined;
|
107
109
|
id?: string | undefined;
|
110
|
+
isWebCallMute?: boolean | undefined;
|
108
111
|
}> | undefined>;
|
109
112
|
buddyAgents(p: {
|
110
113
|
data: Service.Aqm.Contact.BuddyAgents;
|
@@ -140,7 +143,7 @@ export declare class AgentContactJsApi {
|
|
140
143
|
updatedBy?: string | undefined;
|
141
144
|
destinationType?: string | undefined;
|
142
145
|
autoResumed?: boolean | undefined;
|
143
|
-
reasonCode?: string | undefined;
|
146
|
+
reasonCode?: string | number | undefined;
|
144
147
|
reason?: string | undefined;
|
145
148
|
consultingAgentId?: string | undefined;
|
146
149
|
taskId?: string | undefined;
|
@@ -149,6 +152,7 @@ export declare class AgentContactJsApi {
|
|
149
152
|
monitorType?: string | undefined;
|
150
153
|
supervisorDN?: string | undefined;
|
151
154
|
id?: string | undefined;
|
155
|
+
isWebCallMute?: boolean | undefined;
|
152
156
|
}> | undefined>;
|
153
157
|
consultEnd(p: {
|
154
158
|
interactionId: string;
|
@@ -174,7 +178,7 @@ export declare class AgentContactJsApi {
|
|
174
178
|
updatedBy?: string | undefined;
|
175
179
|
destinationType?: string | undefined;
|
176
180
|
autoResumed?: boolean | undefined;
|
177
|
-
reasonCode?: string | undefined;
|
181
|
+
reasonCode?: string | number | undefined;
|
178
182
|
reason?: string | undefined;
|
179
183
|
consultingAgentId?: string | undefined;
|
180
184
|
taskId?: string | undefined;
|
@@ -183,6 +187,7 @@ export declare class AgentContactJsApi {
|
|
183
187
|
monitorType?: string | undefined;
|
184
188
|
supervisorDN?: string | undefined;
|
185
189
|
id?: string | undefined;
|
190
|
+
isWebCallMute?: boolean | undefined;
|
186
191
|
}> | undefined>;
|
187
192
|
cancelCtq(p: {
|
188
193
|
interactionId: string;
|
@@ -208,7 +213,7 @@ export declare class AgentContactJsApi {
|
|
208
213
|
updatedBy?: string | undefined;
|
209
214
|
destinationType?: string | undefined;
|
210
215
|
autoResumed?: boolean | undefined;
|
211
|
-
reasonCode?: string | undefined;
|
216
|
+
reasonCode?: string | number | undefined;
|
212
217
|
reason?: string | undefined;
|
213
218
|
consultingAgentId?: string | undefined;
|
214
219
|
taskId?: string | undefined;
|
@@ -217,6 +222,7 @@ export declare class AgentContactJsApi {
|
|
217
222
|
monitorType?: string | undefined;
|
218
223
|
supervisorDN?: string | undefined;
|
219
224
|
id?: string | undefined;
|
225
|
+
isWebCallMute?: boolean | undefined;
|
220
226
|
}> | undefined>;
|
221
227
|
wrapup(p: {
|
222
228
|
interactionId: string;
|
@@ -242,7 +248,7 @@ export declare class AgentContactJsApi {
|
|
242
248
|
updatedBy?: string | undefined;
|
243
249
|
destinationType?: string | undefined;
|
244
250
|
autoResumed?: boolean | undefined;
|
245
|
-
reasonCode?: string | undefined;
|
251
|
+
reasonCode?: string | number | undefined;
|
246
252
|
reason?: string | undefined;
|
247
253
|
consultingAgentId?: string | undefined;
|
248
254
|
taskId?: string | undefined;
|
@@ -251,6 +257,7 @@ export declare class AgentContactJsApi {
|
|
251
257
|
monitorType?: string | undefined;
|
252
258
|
supervisorDN?: string | undefined;
|
253
259
|
id?: string | undefined;
|
260
|
+
isWebCallMute?: boolean | undefined;
|
254
261
|
}> | undefined>;
|
255
262
|
vteamTransfer(p: {
|
256
263
|
interactionId: string;
|
@@ -276,7 +283,7 @@ export declare class AgentContactJsApi {
|
|
276
283
|
updatedBy?: string | undefined;
|
277
284
|
destinationType?: string | undefined;
|
278
285
|
autoResumed?: boolean | undefined;
|
279
|
-
reasonCode?: string | undefined;
|
286
|
+
reasonCode?: string | number | undefined;
|
280
287
|
reason?: string | undefined;
|
281
288
|
consultingAgentId?: string | undefined;
|
282
289
|
taskId?: string | undefined;
|
@@ -285,6 +292,7 @@ export declare class AgentContactJsApi {
|
|
285
292
|
monitorType?: string | undefined;
|
286
293
|
supervisorDN?: string | undefined;
|
287
294
|
id?: string | undefined;
|
295
|
+
isWebCallMute?: boolean | undefined;
|
288
296
|
}> | undefined>;
|
289
297
|
blindTransfer(p: {
|
290
298
|
interactionId: string;
|
@@ -310,7 +318,7 @@ export declare class AgentContactJsApi {
|
|
310
318
|
updatedBy?: string | undefined;
|
311
319
|
destinationType?: string | undefined;
|
312
320
|
autoResumed?: boolean | undefined;
|
313
|
-
reasonCode?: string | undefined;
|
321
|
+
reasonCode?: string | number | undefined;
|
314
322
|
reason?: string | undefined;
|
315
323
|
consultingAgentId?: string | undefined;
|
316
324
|
taskId?: string | undefined;
|
@@ -319,6 +327,7 @@ export declare class AgentContactJsApi {
|
|
319
327
|
monitorType?: string | undefined;
|
320
328
|
supervisorDN?: string | undefined;
|
321
329
|
id?: string | undefined;
|
330
|
+
isWebCallMute?: boolean | undefined;
|
322
331
|
}> | undefined>;
|
323
332
|
hold(p: {
|
324
333
|
interactionId: string;
|
@@ -346,7 +355,7 @@ export declare class AgentContactJsApi {
|
|
346
355
|
updatedBy?: string | undefined;
|
347
356
|
destinationType?: string | undefined;
|
348
357
|
autoResumed?: boolean | undefined;
|
349
|
-
reasonCode?: string | undefined;
|
358
|
+
reasonCode?: string | number | undefined;
|
350
359
|
reason?: string | undefined;
|
351
360
|
consultingAgentId?: string | undefined;
|
352
361
|
taskId?: string | undefined;
|
@@ -355,6 +364,7 @@ export declare class AgentContactJsApi {
|
|
355
364
|
monitorType?: string | undefined;
|
356
365
|
supervisorDN?: string | undefined;
|
357
366
|
id?: string | undefined;
|
367
|
+
isWebCallMute?: boolean | undefined;
|
358
368
|
}> | undefined>;
|
359
369
|
unHold(p: {
|
360
370
|
interactionId: string;
|
@@ -382,7 +392,7 @@ export declare class AgentContactJsApi {
|
|
382
392
|
updatedBy?: string | undefined;
|
383
393
|
destinationType?: string | undefined;
|
384
394
|
autoResumed?: boolean | undefined;
|
385
|
-
reasonCode?: string | undefined;
|
395
|
+
reasonCode?: string | number | undefined;
|
386
396
|
reason?: string | undefined;
|
387
397
|
consultingAgentId?: string | undefined;
|
388
398
|
taskId?: string | undefined;
|
@@ -391,6 +401,7 @@ export declare class AgentContactJsApi {
|
|
391
401
|
monitorType?: string | undefined;
|
392
402
|
supervisorDN?: string | undefined;
|
393
403
|
id?: string | undefined;
|
404
|
+
isWebCallMute?: boolean | undefined;
|
394
405
|
}> | undefined>;
|
395
406
|
consult(p: {
|
396
407
|
interactionId: string;
|
@@ -417,7 +428,7 @@ export declare class AgentContactJsApi {
|
|
417
428
|
updatedBy?: string | undefined;
|
418
429
|
destinationType?: string | undefined;
|
419
430
|
autoResumed?: boolean | undefined;
|
420
|
-
reasonCode?: string | undefined;
|
431
|
+
reasonCode?: string | number | undefined;
|
421
432
|
reason?: string | undefined;
|
422
433
|
consultingAgentId?: string | undefined;
|
423
434
|
taskId?: string | undefined;
|
@@ -426,6 +437,7 @@ export declare class AgentContactJsApi {
|
|
426
437
|
monitorType?: string | undefined;
|
427
438
|
supervisorDN?: string | undefined;
|
428
439
|
id?: string | undefined;
|
440
|
+
isWebCallMute?: boolean | undefined;
|
429
441
|
}> | undefined>;
|
430
442
|
consultConference(p: {
|
431
443
|
interactionId: string;
|
@@ -451,7 +463,7 @@ export declare class AgentContactJsApi {
|
|
451
463
|
updatedBy?: string | undefined;
|
452
464
|
destinationType?: string | undefined;
|
453
465
|
autoResumed?: boolean | undefined;
|
454
|
-
reasonCode?: string | undefined;
|
466
|
+
reasonCode?: string | number | undefined;
|
455
467
|
reason?: string | undefined;
|
456
468
|
consultingAgentId?: string | undefined;
|
457
469
|
taskId?: string | undefined;
|
@@ -460,6 +472,7 @@ export declare class AgentContactJsApi {
|
|
460
472
|
monitorType?: string | undefined;
|
461
473
|
supervisorDN?: string | undefined;
|
462
474
|
id?: string | undefined;
|
475
|
+
isWebCallMute?: boolean | undefined;
|
463
476
|
}> | undefined>;
|
464
477
|
decline(p: {
|
465
478
|
interactionId: string;
|
@@ -488,7 +501,7 @@ export declare class AgentContactJsApi {
|
|
488
501
|
updatedBy?: string | undefined;
|
489
502
|
destinationType?: string | undefined;
|
490
503
|
autoResumed?: boolean | undefined;
|
491
|
-
reasonCode?: string | undefined;
|
504
|
+
reasonCode?: string | number | undefined;
|
492
505
|
reason?: string | undefined;
|
493
506
|
consultingAgentId?: string | undefined;
|
494
507
|
taskId?: string | undefined;
|
@@ -497,6 +510,7 @@ export declare class AgentContactJsApi {
|
|
497
510
|
monitorType?: string | undefined;
|
498
511
|
supervisorDN?: string | undefined;
|
499
512
|
id?: string | undefined;
|
513
|
+
isWebCallMute?: boolean | undefined;
|
500
514
|
}> | undefined>;
|
501
515
|
consultTransfer(p: {
|
502
516
|
interactionId: string;
|
@@ -522,7 +536,7 @@ export declare class AgentContactJsApi {
|
|
522
536
|
updatedBy?: string | undefined;
|
523
537
|
destinationType?: string | undefined;
|
524
538
|
autoResumed?: boolean | undefined;
|
525
|
-
reasonCode?: string | undefined;
|
539
|
+
reasonCode?: string | number | undefined;
|
526
540
|
reason?: string | undefined;
|
527
541
|
consultingAgentId?: string | undefined;
|
528
542
|
taskId?: string | undefined;
|
@@ -531,6 +545,7 @@ export declare class AgentContactJsApi {
|
|
531
545
|
monitorType?: string | undefined;
|
532
546
|
supervisorDN?: string | undefined;
|
533
547
|
id?: string | undefined;
|
548
|
+
isWebCallMute?: boolean | undefined;
|
534
549
|
}> | undefined>;
|
535
550
|
vteamList(p: {
|
536
551
|
data: Service.Aqm.Contact.VTeam;
|
@@ -566,7 +581,7 @@ export declare class AgentContactJsApi {
|
|
566
581
|
updatedBy?: string | undefined;
|
567
582
|
destinationType?: string | undefined;
|
568
583
|
autoResumed?: boolean | undefined;
|
569
|
-
reasonCode?: string | undefined;
|
584
|
+
reasonCode?: string | number | undefined;
|
570
585
|
reason?: string | undefined;
|
571
586
|
consultingAgentId?: string | undefined;
|
572
587
|
taskId?: string | undefined;
|
@@ -575,6 +590,7 @@ export declare class AgentContactJsApi {
|
|
575
590
|
monitorType?: string | undefined;
|
576
591
|
supervisorDN?: string | undefined;
|
577
592
|
id?: string | undefined;
|
593
|
+
isWebCallMute?: boolean | undefined;
|
578
594
|
}> | undefined>;
|
579
595
|
resumeRecording(p: {
|
580
596
|
interactionId: string;
|
@@ -602,7 +618,7 @@ export declare class AgentContactJsApi {
|
|
602
618
|
updatedBy?: string | undefined;
|
603
619
|
destinationType?: string | undefined;
|
604
620
|
autoResumed?: boolean | undefined;
|
605
|
-
reasonCode?: string | undefined;
|
621
|
+
reasonCode?: string | number | undefined;
|
606
622
|
reason?: string | undefined;
|
607
623
|
consultingAgentId?: string | undefined;
|
608
624
|
taskId?: string | undefined;
|
@@ -611,6 +627,7 @@ export declare class AgentContactJsApi {
|
|
611
627
|
monitorType?: string | undefined;
|
612
628
|
supervisorDN?: string | undefined;
|
613
629
|
id?: string | undefined;
|
630
|
+
isWebCallMute?: boolean | undefined;
|
614
631
|
}> | undefined>;
|
615
632
|
addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
616
633
|
addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
@@ -75,6 +75,9 @@ export declare class AgentStateInfoJsapi {
|
|
75
75
|
lastIdleCodeChangeTimestamp: number;
|
76
76
|
lastStateChangeTimestamp: number;
|
77
77
|
type: "AgentStateChangeSuccess";
|
78
|
+
changedBy: string | null;
|
79
|
+
changedById: string | null;
|
80
|
+
changedByName: string | null;
|
78
81
|
}> | undefined>;
|
79
82
|
mockOutdialAniList(): Promise<import("@wxcc-desktop/sdk-types/agentx-services/core/aqm-reqs").Msg<{
|
80
83
|
data: Record<string, any>;
|
@@ -43,7 +43,7 @@ export declare class DialerJsApi {
|
|
43
43
|
updatedBy?: string | undefined;
|
44
44
|
destinationType?: string | undefined;
|
45
45
|
autoResumed?: boolean | undefined;
|
46
|
-
reasonCode?: string | undefined;
|
46
|
+
reasonCode?: string | number | undefined;
|
47
47
|
reason?: string | undefined;
|
48
48
|
consultingAgentId?: string | undefined;
|
49
49
|
taskId?: string | undefined;
|
@@ -52,6 +52,7 @@ export declare class DialerJsApi {
|
|
52
52
|
monitorType?: string | undefined;
|
53
53
|
supervisorDN?: string | undefined;
|
54
54
|
id?: string | undefined;
|
55
|
+
isWebCallMute?: boolean | undefined;
|
55
56
|
}> | undefined>;
|
56
57
|
updateCadVariables(p: {
|
57
58
|
interactionId: string;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { AgentxService } from "@wxcc-desktop/sdk-types";
|
2
|
+
import { createJsApiLogger } from "./common/_logger";
|
3
|
+
import { createServiceChecker } from "./common/_service-checker";
|
4
|
+
declare type Config = {
|
5
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
6
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
7
|
+
};
|
8
|
+
export declare class PostInteractionJsApi {
|
9
|
+
private readonly logger;
|
10
|
+
private readonly serviceChecker;
|
11
|
+
private SERVICE?;
|
12
|
+
private checkService;
|
13
|
+
constructor(config: Config);
|
14
|
+
init(SERVICE?: AgentxService): void;
|
15
|
+
cleanup(): void;
|
16
|
+
fetchTasks(p: {
|
17
|
+
startTime: number;
|
18
|
+
endTime: number;
|
19
|
+
pageNumber: number;
|
20
|
+
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.SearchResults | undefined>;
|
21
|
+
fetchCapture(p: {
|
22
|
+
taskId: string;
|
23
|
+
}): Promise<import("@wxcc-desktop/sdk-types").Service.QMW.CaptureResults | undefined>;
|
24
|
+
}
|
25
|
+
export declare const createPostInteractionJsApi: () => PostInteractionJsApi;
|
26
|
+
export {};
|
@@ -63,6 +63,7 @@ export declare class ShortcutKeyJsApi {
|
|
63
63
|
ACCEPT_ALL_TASK_KEY: string;
|
64
64
|
EXPAND_COLLAPSE_WEBEX: string;
|
65
65
|
MINIMIZE_RESTORE_WEBEX: string;
|
66
|
+
OPEN_DTMF_KEYPAD: string;
|
66
67
|
} | undefined;
|
67
68
|
}
|
68
69
|
export declare const createShortcutKeyJsApi: () => ShortcutKeyJsApi;
|
package/package.json
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wxcc-desktop/sdk",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.11",
|
4
4
|
"author": "Roman Manchenko",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "git@sqbu-github.cisco.com:CBABU/agentx-js-api.git",
|
7
7
|
"main": "./dist/index.js",
|
8
8
|
"types": "./dist/types/index.d.ts",
|
9
9
|
"dependencies": {
|
10
|
-
"@uuip/unified-ui-platform-sdk": "1.3.
|
11
|
-
"@wxcc-desktop/sdk-types": "^1.0.
|
10
|
+
"@uuip/unified-ui-platform-sdk": "^1.3.6",
|
11
|
+
"@wxcc-desktop/sdk-types": "^1.0.7",
|
12
12
|
"event-emitter": "^0.3.5",
|
13
13
|
"js-cookie": "^3.0.1"
|
14
14
|
},
|