@webex/cc-store 1.28.0-ccwidgets.92 → 1.28.0-ccwidgets.94
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/index.js +1 -1
- package/dist/types/{store/src/store.d.ts → store.d.ts} +1 -1
- package/dist/types/{store/src/store.types.d.ts → store.types.d.ts} +39 -7
- package/dist/types/{store/src/storeEventsWrapper.d.ts → storeEventsWrapper.d.ts} +6 -4
- package/package.json +5 -3
- package/dist/types/cc-components/src/components/StationLogin/constants.d.ts +0 -32
- /package/dist/types/{store/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{store/src/util.d.ts → util.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IContactCenter, Team, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile } from './store.types';
|
|
2
1
|
import { ITask } from '@webex/plugin-cc';
|
|
2
|
+
import { IContactCenter, Team, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile, WithWebex } from './store.types';
|
|
3
3
|
declare class Store implements IStore {
|
|
4
4
|
private static instance;
|
|
5
5
|
teams: Team[];
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
import { AgentLogin,
|
|
1
|
+
import { AgentLogin, Profile, BuddyDetails, ContactServiceQueue, ITask, BuddyAgents, BuddyAgentsResponse, StateChange, Logout } from '@webex/plugin-cc';
|
|
2
|
+
import { DestinationType } from 'node_modules/@webex/plugin-cc/dist/types/services/task/types';
|
|
3
|
+
import { AgentProfileUpdate, LogContext, SetStateResponse, StationLoginResponse, StationLogoutResponse, Team, UpdateDeviceTypeResponse } from 'node_modules/@webex/plugin-cc/dist/types/types';
|
|
4
|
+
interface IContactCenter {
|
|
5
|
+
on: (event: string, callback: (data: any) => void) => void;
|
|
6
|
+
off: (event: string, callback?: (data: any) => void) => void;
|
|
7
|
+
updateAgentProfile(data: AgentProfileUpdate): Promise<UpdateDeviceTypeResponse>;
|
|
8
|
+
stationLogin(data: AgentLogin): Promise<StationLoginResponse>;
|
|
9
|
+
deregister(): Promise<void>;
|
|
10
|
+
stationLogout(data: Logout): Promise<StationLogoutResponse>;
|
|
11
|
+
LoggerProxy: ILogger;
|
|
12
|
+
register(): Promise<Profile>;
|
|
13
|
+
taskManager: {
|
|
14
|
+
getAllTasks: () => Record<string, ITask>;
|
|
15
|
+
};
|
|
16
|
+
getBuddyAgents(data: BuddyAgents): Promise<BuddyAgentsResponse>;
|
|
17
|
+
getQueues(search?: string, filter?: string, page?: number, pageSize?: number): Promise<ContactServiceQueue[]>;
|
|
18
|
+
agentConfig?: {
|
|
19
|
+
regexUS: RegExp | string;
|
|
20
|
+
agentId: string;
|
|
21
|
+
};
|
|
22
|
+
setAgentState(data: StateChange): Promise<SetStateResponse>;
|
|
23
|
+
}
|
|
24
|
+
type IWebex = {
|
|
25
|
+
cc: IContactCenter;
|
|
26
|
+
once: (event: string, callback: (data: any) => void) => void;
|
|
27
|
+
};
|
|
2
28
|
type ILogger = {
|
|
3
29
|
log: (message: string, context?: LogContext) => void;
|
|
4
30
|
info: (message: string, context?: LogContext) => void;
|
|
@@ -6,16 +32,16 @@ type ILogger = {
|
|
|
6
32
|
trace: (message: string, context?: LogContext) => void;
|
|
7
33
|
error: (message: string, context?: LogContext) => void;
|
|
8
34
|
};
|
|
9
|
-
|
|
35
|
+
type WithWebex = {
|
|
10
36
|
webex: {
|
|
11
37
|
cc: IContactCenter;
|
|
12
38
|
logger: ILogger;
|
|
13
39
|
};
|
|
14
|
-
}
|
|
15
|
-
|
|
40
|
+
};
|
|
41
|
+
type WithWebexConfig = {
|
|
16
42
|
webexConfig: any;
|
|
17
43
|
access_token: string;
|
|
18
|
-
}
|
|
44
|
+
};
|
|
19
45
|
type InitParams = WithWebex | WithWebexConfig;
|
|
20
46
|
type IdleCode = {
|
|
21
47
|
name: string;
|
|
@@ -146,5 +172,11 @@ type AgentLoginProfile = {
|
|
|
146
172
|
telephony: number;
|
|
147
173
|
};
|
|
148
174
|
};
|
|
149
|
-
|
|
150
|
-
|
|
175
|
+
declare const DIALNUMBER: string;
|
|
176
|
+
declare const EXTENSION: string;
|
|
177
|
+
declare const DESKTOP: string;
|
|
178
|
+
declare const LoginOptions: {
|
|
179
|
+
[key: string]: string;
|
|
180
|
+
};
|
|
181
|
+
export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, IWebex, };
|
|
182
|
+
export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, DIALNUMBER, EXTENSION, DESKTOP, LoginOptions };
|
|
@@ -11,7 +11,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
11
11
|
get featureFlags(): {
|
|
12
12
|
[key: string]: boolean;
|
|
13
13
|
};
|
|
14
|
-
get teams(): Team[];
|
|
14
|
+
get teams(): import("node_modules/@webex/plugin-cc/dist/types/types").Team[];
|
|
15
15
|
get loginOptions(): string[];
|
|
16
16
|
get cc(): IContactCenter;
|
|
17
17
|
get logger(): import("./store.types").ILogger;
|
|
@@ -52,7 +52,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
52
52
|
setLastStateChangeTimestamp: (timestamp: number) => void;
|
|
53
53
|
setLastIdleCodeChangeTimestamp: (timestamp: number) => void;
|
|
54
54
|
setIsAgentLoggedIn: (value: boolean) => void;
|
|
55
|
-
setCurrentTask: (task: ITask, isClicked?: boolean) => void;
|
|
55
|
+
setCurrentTask: (task: ITask | null, isClicked?: boolean) => void;
|
|
56
56
|
refreshTaskList: () => void;
|
|
57
57
|
setWrapupCodes: (wrapupCodes: IWrapupCode[]) => void;
|
|
58
58
|
setConsultCompleted: (value: boolean) => void;
|
|
@@ -64,10 +64,12 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
64
64
|
setIsQueueConsultInProgress: (value: boolean) => void;
|
|
65
65
|
setCurrentConsultQueueId: (queueId: string | null) => void;
|
|
66
66
|
setState: (state: ICustomState | IdleCode) => void;
|
|
67
|
-
setIncomingTaskCb: (callback: (task:
|
|
67
|
+
setIncomingTaskCb: (callback: ({ task }: {
|
|
68
|
+
task: ITask;
|
|
69
|
+
}) => void) => void;
|
|
68
70
|
setTaskRejected: (callback: ((task: ITask, reason: string) => void) | undefined) => void;
|
|
69
71
|
setTaskAssigned: (callback: ((task: ITask) => void) | undefined) => void;
|
|
70
|
-
setTaskSelected: (callback: ((task: ITask) => void) | undefined) => void;
|
|
72
|
+
setTaskSelected: (callback: ((task: ITask, isClicked?: boolean) => void) | undefined) => void;
|
|
71
73
|
setCCCallback: (event: CC_EVENTS | TASK_EVENTS, callback: any) => void;
|
|
72
74
|
setTaskCallback: (event: TASK_EVENTS, callback: any, taskId: string) => void;
|
|
73
75
|
setAgentProfile: (profile: AgentLoginProfile) => void;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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.94",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"publishConfig": {
|
|
8
9
|
"access": "public"
|
|
@@ -17,11 +18,11 @@
|
|
|
17
18
|
"build": "yarn run -T tsc",
|
|
18
19
|
"build:src": "yarn run clean:dist && webpack",
|
|
19
20
|
"build:watch": "webpack --watch",
|
|
20
|
-
"test:unit": "jest --coverage",
|
|
21
|
+
"test:unit": "tsc --project tsconfig.test.json && jest --coverage",
|
|
21
22
|
"test:styles": "eslint"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@webex/plugin-cc": "3.8.1-next.
|
|
25
|
+
"@webex/plugin-cc": "3.8.1-next.12",
|
|
25
26
|
"mobx": "6.13.5",
|
|
26
27
|
"typescript": "5.6.3"
|
|
27
28
|
},
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"@testing-library/react": "16.0.1",
|
|
37
38
|
"@types/jest": "29.5.14",
|
|
38
39
|
"@types/react-test-renderer": "18",
|
|
40
|
+
"@webex/test-fixtures": "0.0.0",
|
|
39
41
|
"babel-jest": "29.7.0",
|
|
40
42
|
"babel-loader": "9.2.1",
|
|
41
43
|
"eslint": "^9.20.1",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const StationLoginLabels: {
|
|
2
|
-
MULTIPLE_SIGN_IN_ALERT_MESSAGE: string;
|
|
3
|
-
MULTIPLE_SIGN_IN_ALERT_TITLE: string;
|
|
4
|
-
CONTINUE: string;
|
|
5
|
-
CANCEL: string;
|
|
6
|
-
SIGN_OUT: string;
|
|
7
|
-
LOGOUT: string;
|
|
8
|
-
SAVE_AND_CONTINUE: string;
|
|
9
|
-
CC_SIGN_OUT: string;
|
|
10
|
-
CC_SIGN_OUT_CONFIRM: string;
|
|
11
|
-
INTERACTION_PREFERENCES: string;
|
|
12
|
-
HANDLE_CALLS: string;
|
|
13
|
-
HANDLE_CALLS_TOOLTIP: string;
|
|
14
|
-
YOUR_TEAM: string;
|
|
15
|
-
IS_REQUIRED: string;
|
|
16
|
-
DN_FORMAT_ERROR: string;
|
|
17
|
-
DEFAULT_ERROR: string;
|
|
18
|
-
CONFIRM: string;
|
|
19
|
-
CONFIRM_INTERACTION_PREFERENCE_CHANGES_TITLE: string;
|
|
20
|
-
CONFIRM_INTERACTION_PREFERENCE_CHANGES_MESSAGE: string;
|
|
21
|
-
SAVE: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const SignInErrors: {
|
|
24
|
-
DUPLICATE_LOCATION: string;
|
|
25
|
-
};
|
|
26
|
-
declare const DIALNUMBER: string;
|
|
27
|
-
declare const EXTENSION: string;
|
|
28
|
-
declare const DESKTOP: string;
|
|
29
|
-
declare const LoginOptions: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
32
|
-
export { DIALNUMBER, EXTENSION, DESKTOP, LoginOptions };
|
|
File without changes
|
|
File without changes
|