@webex/cc-store 1.28.0-ccwidgets.116 → 1.28.0-ccwidgets.118
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentLogin, Profile, BuddyDetails, ContactServiceQueue, ITask, BuddyAgents, BuddyAgentsResponse, StateChange, Logout } from '@webex/contact-center';
|
|
1
|
+
import { AgentLogin, Profile, BuddyDetails, ContactServiceQueue, ITask, BuddyAgents, BuddyAgentsResponse, StateChange, Logout, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, AddressBook } from '@webex/contact-center';
|
|
2
2
|
import { DestinationType } from 'node_modules/@webex/contact-center/dist/types/services/task/types';
|
|
3
3
|
import { AgentProfileUpdate, LogContext, SetStateResponse, StationLoginResponse, StationLogoutResponse, Team, UpdateDeviceTypeResponse } from 'node_modules/@webex/contact-center/dist/types/types';
|
|
4
4
|
interface IContactCenter {
|
|
@@ -14,7 +14,9 @@ interface IContactCenter {
|
|
|
14
14
|
getAllTasks: () => Record<string, ITask>;
|
|
15
15
|
};
|
|
16
16
|
getBuddyAgents(data: BuddyAgents): Promise<BuddyAgentsResponse>;
|
|
17
|
-
getQueues(
|
|
17
|
+
getQueues(params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
|
|
18
|
+
getEntryPoints(params?: EntryPointSearchParams): Promise<EntryPointListResponse>;
|
|
19
|
+
addressBook: AddressBook;
|
|
18
20
|
agentConfig?: {
|
|
19
21
|
regexUS: RegExp | string;
|
|
20
22
|
agentId: string;
|
|
@@ -92,6 +94,10 @@ interface IStoreWrapper extends IStore {
|
|
|
92
94
|
onErrorCallback?: (widgetName: string, error: Error) => void;
|
|
93
95
|
setCurrentTask(task: ITask): void;
|
|
94
96
|
refreshTaskList(): void;
|
|
97
|
+
getBuddyAgents(mediaType?: string): Promise<BuddyDetails[]>;
|
|
98
|
+
getQueues(mediaType?: string, params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
|
|
99
|
+
getEntryPoints(params?: EntryPointSearchParams): Promise<EntryPointListResponse>;
|
|
100
|
+
getAddressBookEntries(params?: AddressBookEntrySearchParams): Promise<AddressBookEntriesResponse>;
|
|
95
101
|
setDeviceType(option: string): void;
|
|
96
102
|
setDialNumber(input: string): void;
|
|
97
103
|
setCurrentState(state: string): void;
|
|
@@ -174,9 +180,26 @@ type AgentLoginProfile = {
|
|
|
174
180
|
telephony: number;
|
|
175
181
|
};
|
|
176
182
|
};
|
|
183
|
+
type PaginatedListParams = {
|
|
184
|
+
page: number;
|
|
185
|
+
pageSize: number;
|
|
186
|
+
search?: string;
|
|
187
|
+
};
|
|
188
|
+
type FetchPaginatedList<T> = (params: PaginatedListParams) => Promise<{
|
|
189
|
+
data: T[];
|
|
190
|
+
meta?: {
|
|
191
|
+
page?: number;
|
|
192
|
+
totalPages?: number;
|
|
193
|
+
};
|
|
194
|
+
}>;
|
|
195
|
+
type TransformPaginatedData<T, U> = (item: T, page: number, index: number) => U;
|
|
177
196
|
declare const DIALNUMBER: string;
|
|
178
197
|
declare const EXTENSION: string;
|
|
179
198
|
declare const DESKTOP: string;
|
|
199
|
+
declare const MEDIA_TYPE_TELEPHONY_LOWER = "telephony";
|
|
200
|
+
declare const MEDIA_TYPE_TELEPHONY_UPPER = "TELEPHONY";
|
|
201
|
+
declare const DEVICE_TYPE_BROWSER = "BROWSER";
|
|
202
|
+
declare const AGENT_STATE_AVAILABLE = "Available";
|
|
180
203
|
declare const LoginOptions: {
|
|
181
204
|
[key: string]: string;
|
|
182
205
|
};
|
|
@@ -188,5 +211,5 @@ declare const ERROR_TRIGGERING_IDLE_CODES: {
|
|
|
188
211
|
CHANNEL_FAILURE: string;
|
|
189
212
|
RONA: string;
|
|
190
213
|
};
|
|
191
|
-
export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, IWebex, };
|
|
192
|
-
export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, DIALNUMBER, EXTENSION, DESKTOP, LoginOptions, ERROR_TRIGGERING_IDLE_CODES, };
|
|
214
|
+
export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, EntryPointRecord, EntryPointListResponse, EntryPointSearchParams, AddressBookEntry, AddressBookEntriesResponse, AddressBookEntrySearchParams, ContactServiceQueuesResponse, ContactServiceQueueSearchParams, IWebex, PaginatedListParams, FetchPaginatedList, TransformPaginatedData, };
|
|
215
|
+
export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, DIALNUMBER, EXTENSION, DESKTOP, MEDIA_TYPE_TELEPHONY_LOWER, MEDIA_TYPE_TELEPHONY_UPPER, DEVICE_TYPE_BROWSER, AGENT_STATE_AVAILABLE, LoginOptions, ERROR_TRIGGERING_IDLE_CODES, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask, BuddyDetails, ContactServiceQueue, AgentLoginProfile } from './store.types';
|
|
1
|
+
import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask, BuddyDetails, ContactServiceQueue, ContactServiceQueueSearchParams, EntryPointListResponse, EntryPointSearchParams, AddressBookEntriesResponse, AddressBookEntrySearchParams, AgentLoginProfile } from './store.types';
|
|
2
2
|
declare class StoreWrapper implements IStoreWrapper {
|
|
3
3
|
store: IStore;
|
|
4
4
|
onIncomingTask: ({ task }: {
|
|
@@ -97,7 +97,17 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
97
97
|
handleTaskHydrate: (event: any) => void;
|
|
98
98
|
handleTaskReject: (task: ITask, reason: string) => void;
|
|
99
99
|
getBuddyAgents: (mediaType?: string) => Promise<Array<BuddyDetails>>;
|
|
100
|
-
getQueues: (mediaType?: string) => Promise<
|
|
100
|
+
getQueues: (mediaType?: string, params?: ContactServiceQueueSearchParams) => Promise<{
|
|
101
|
+
data: ContactServiceQueue[];
|
|
102
|
+
meta: {
|
|
103
|
+
page: number;
|
|
104
|
+
pageSize: number;
|
|
105
|
+
total: number;
|
|
106
|
+
totalPages: number;
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
109
|
+
getEntryPoints: (params?: EntryPointSearchParams) => Promise<EntryPointListResponse>;
|
|
110
|
+
getAddressBookEntries: (params?: AddressBookEntrySearchParams) => Promise<AddressBookEntriesResponse>;
|
|
101
111
|
cleanUpStore: () => void;
|
|
102
112
|
setupIncomingTaskHandler: (ccSDK: IContactCenter) => void;
|
|
103
113
|
}
|
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.118",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test:styles": "eslint"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@webex/contact-center": "3.9.0-next.
|
|
25
|
+
"@webex/contact-center": "3.9.0-next.10",
|
|
26
26
|
"mobx": "6.13.5",
|
|
27
27
|
"typescript": "5.6.3"
|
|
28
28
|
},
|