@wxcc-desktop/sdk 1.3.4 → 1.3.7
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/dist/types/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ import { createScreenPopJsApi } from "./jsapi/screenpop-jsapi";
|
|
9
9
|
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
|
+
import { stationLogoutJsApi } from "./jsapi/agent-station-logout-jsapi";
|
12
13
|
export declare type AgentXJsApi = {
|
13
14
|
config: ReturnType<typeof createConfigJsApi>;
|
14
15
|
logger: ReturnType<typeof createLoggerJsApi>;
|
@@ -18,6 +19,7 @@ export declare type AgentXJsApi = {
|
|
18
19
|
agentStateInfo: ReturnType<typeof createAgentStateInfoJsApi>;
|
19
20
|
dialer: ReturnType<typeof createDialerJsApi>;
|
20
21
|
screenpop: ReturnType<typeof createScreenPopJsApi>;
|
22
|
+
logout: ReturnType<typeof stationLogoutJsApi>;
|
21
23
|
i18n: ReturnType<typeof createI18NJsApi>;
|
22
24
|
actions: ReturnType<typeof createActionsJsApi>;
|
23
25
|
rtdwc: ReturnType<typeof createRTDWCJsApi>;
|
@@ -0,0 +1,44 @@
|
|
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
|
+
eAgentLogoutSuccess: Parameters<AgentxService["aqm"]["agent"]["eAgentLogoutSuccess"]["listen"]>[0];
|
7
|
+
};
|
8
|
+
declare type AqmAgentEvents = AqmServiceEntityEvents<Listeners>;
|
9
|
+
declare type Config = {
|
10
|
+
logger: ReturnType<typeof createJsApiLogger>;
|
11
|
+
serviceChecker: ReturnType<typeof createServiceChecker>;
|
12
|
+
aqmEvents: AqmAgentEvents;
|
13
|
+
};
|
14
|
+
export declare class LogoutJsApi {
|
15
|
+
private readonly logger;
|
16
|
+
private readonly serviceChecker;
|
17
|
+
private readonly aqmEvents;
|
18
|
+
private SERVICE?;
|
19
|
+
private checkService;
|
20
|
+
constructor(config: Config);
|
21
|
+
init(SERVICE?: AgentxService): void;
|
22
|
+
cleanup(): void;
|
23
|
+
desktopLogout(p: {
|
24
|
+
data: Service.Aqm.Agent.Logout;
|
25
|
+
}): Promise<import("@wxcc-desktop/sdk-types/agentx-services/core/aqm-reqs").Msg<{
|
26
|
+
eventType: "AgentDesktopMessage";
|
27
|
+
agentId: string;
|
28
|
+
trackingId: string;
|
29
|
+
agentSessionId: string;
|
30
|
+
orgId: string;
|
31
|
+
status: string;
|
32
|
+
subStatus: string;
|
33
|
+
loggedOutBy?: string | undefined;
|
34
|
+
roles?: string[] | undefined;
|
35
|
+
type: "AgentLogoutSuccess";
|
36
|
+
}> | undefined>;
|
37
|
+
addEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
38
|
+
addOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
39
|
+
removeEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
40
|
+
removeOnceEventListener<T extends keyof Listeners>(eventName: T, listener: Listeners[T]): void;
|
41
|
+
removeAllEventListeners(): void;
|
42
|
+
}
|
43
|
+
export declare const stationLogoutJsApi: () => LogoutJsApi;
|
44
|
+
export {};
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wxcc-desktop/sdk",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.7",
|
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": "
|
10
|
+
"@uuip/unified-ui-platform-sdk": "1.3.1",
|
11
11
|
"@wxcc-desktop/sdk-types": "^1.0.4",
|
12
12
|
"event-emitter": "^0.3.5",
|
13
13
|
"js-cookie": "^3.0.1"
|