@webex/cc-store 1.28.0-ccwidgets.29 → 1.28.0-ccwidgets.30
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.
|
@@ -44,7 +44,7 @@ interface IStore {
|
|
|
44
44
|
showMultipleLoginAlert: boolean;
|
|
45
45
|
currentTheme: string;
|
|
46
46
|
customState: ICustomState;
|
|
47
|
-
init(params: InitParams, callback: (ccSDK: IContactCenter) =>
|
|
47
|
+
init(params: InitParams, callback: (ccSDK: IContactCenter) => void): Promise<void>;
|
|
48
48
|
registerCC(webex?: WithWebex['webex']): Promise<void>;
|
|
49
49
|
}
|
|
50
50
|
interface IStoreWrapper extends IStore {
|
|
@@ -81,11 +81,19 @@ declare enum TASK_EVENTS {
|
|
|
81
81
|
TASK_END = "task:end",
|
|
82
82
|
TASK_WRAPUP = "task:wrapup",
|
|
83
83
|
TASK_REJECT = "task:rejected",
|
|
84
|
-
TASK_HYDRATE = "task:hydrate"
|
|
84
|
+
TASK_HYDRATE = "task:hydrate",
|
|
85
|
+
AGENT_CONTACT_ASSIGNED = "AgentContactAssigned",
|
|
86
|
+
CONTACT_RECORDING_PAUSED = "ContactRecordingPaused",
|
|
87
|
+
CONTACT_RECORDING_RESUMED = "ContactRecordingResumed",
|
|
88
|
+
AGENT_WRAPPEDUP = "AgentWrappedUp"
|
|
85
89
|
}
|
|
86
90
|
declare enum CC_EVENTS {
|
|
91
|
+
AGENT_DN_REGISTERED = "AgentDNRegistered",
|
|
92
|
+
AGENT_LOGOUT_SUCCESS = "AgentLogoutSuccess",
|
|
93
|
+
AGENT_STATION_LOGIN_SUCCESS = "AgentStationLoginSuccess",
|
|
87
94
|
AGENT_MULTI_LOGIN = "agent:multiLogin",
|
|
88
|
-
AGENT_STATE_CHANGE = "agent:stateChange"
|
|
95
|
+
AGENT_STATE_CHANGE = "agent:stateChange",
|
|
96
|
+
AGENT_RELOGIN_SUCCESS = "AgentReloginSuccess"
|
|
89
97
|
}
|
|
90
98
|
interface ICustomStateSet {
|
|
91
99
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStoreWrapper, IStore, InitParams, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask } from './store.types';
|
|
1
|
+
import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask } from './store.types';
|
|
2
2
|
declare class StoreWrapper implements IStoreWrapper {
|
|
3
3
|
store: IStore;
|
|
4
4
|
onTaskRejected?: (reason: string) => void;
|
|
@@ -36,17 +36,23 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
36
36
|
setWrapupCodes: (wrapupCodes: IWrapupCode[]) => void;
|
|
37
37
|
setState: (state: ICustomState | IdleCode) => void;
|
|
38
38
|
setTaskRejected: (callback: ((reason: string) => void) | undefined) => void;
|
|
39
|
+
setCCCallback: (event: CC_EVENTS | TASK_EVENTS, callback: any) => void;
|
|
40
|
+
setTaskCallback: (event: TASK_EVENTS, callback: any, taskId: string) => void;
|
|
41
|
+
removeCCCallback: (event: CC_EVENTS) => void;
|
|
42
|
+
removeTaskCallback: (event: TASK_EVENTS, callback: any, taskId: string) => void;
|
|
39
43
|
init(options: InitParams): Promise<void>;
|
|
40
44
|
registerCC: (webex?: WithWebex["webex"]) => Promise<void>;
|
|
41
|
-
handleTaskRemove: (
|
|
42
|
-
handleTaskEnd: (
|
|
43
|
-
handleTaskAssigned: (
|
|
44
|
-
|
|
45
|
+
handleTaskRemove: (event: any) => void;
|
|
46
|
+
handleTaskEnd: (event: any) => void;
|
|
47
|
+
handleTaskAssigned: (event: any) => void;
|
|
48
|
+
handleTaskWrapUp: (event: any) => void;
|
|
49
|
+
handleIncomingTask: (event: any) => void;
|
|
45
50
|
handleStateChange: (data: any) => void;
|
|
46
51
|
handleMultiLoginCloseSession: (data: any) => void;
|
|
47
|
-
handleTaskHydrate: (
|
|
52
|
+
handleTaskHydrate: (event: any) => void;
|
|
48
53
|
handleTaskReject: (taskId: string, reason: string) => void;
|
|
49
|
-
|
|
54
|
+
cleanUpStore: () => void;
|
|
55
|
+
setupIncomingTaskHandler: (ccSDK: IContactCenter) => void;
|
|
50
56
|
}
|
|
51
57
|
declare const storeWrapper: StoreWrapper;
|
|
52
58
|
export default storeWrapper;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/cc-store",
|
|
3
3
|
"description": "Webex Contact Center Widgets: Widgets Store",
|
|
4
|
-
"version": "1.28.0-ccwidgets.
|
|
4
|
+
"version": "1.28.0-ccwidgets.30",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"mobx": "6.13.5",
|
|
25
25
|
"typescript": "5.6.3",
|
|
26
|
-
"webex": "3.7.0-wxcc.
|
|
26
|
+
"webex": "3.7.0-wxcc.18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "7.25.2",
|