@webex/cc-store 1.28.0-ccwidgets.117 → 1.28.0-ccwidgets.119

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,5 @@
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
+ import { OutdialAniEntriesResponse, OutdialAniParams } from 'node_modules/@webex/contact-center/dist/types/services/config/types';
2
3
  import { DestinationType } from 'node_modules/@webex/contact-center/dist/types/services/task/types';
3
4
  import { AgentProfileUpdate, LogContext, SetStateResponse, StationLoginResponse, StationLogoutResponse, Team, UpdateDeviceTypeResponse } from 'node_modules/@webex/contact-center/dist/types/types';
4
5
  interface IContactCenter {
@@ -14,12 +15,16 @@ interface IContactCenter {
14
15
  getAllTasks: () => Record<string, ITask>;
15
16
  };
16
17
  getBuddyAgents(data: BuddyAgents): Promise<BuddyAgentsResponse>;
17
- getQueues(search?: string, filter?: string, page?: number, pageSize?: number): Promise<ContactServiceQueue[]>;
18
+ getQueues(params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
19
+ getEntryPoints(params?: EntryPointSearchParams): Promise<EntryPointListResponse>;
20
+ addressBook: AddressBook;
18
21
  agentConfig?: {
19
22
  regexUS: RegExp | string;
20
23
  agentId: string;
24
+ outdialANIId: string;
21
25
  };
22
26
  setAgentState(data: StateChange): Promise<SetStateResponse>;
27
+ getOutdialAniEntries(params: OutdialAniParams): Promise<OutdialAniEntriesResponse>;
23
28
  }
24
29
  type IWebex = {
25
30
  cc: IContactCenter;
@@ -92,6 +97,10 @@ interface IStoreWrapper extends IStore {
92
97
  onErrorCallback?: (widgetName: string, error: Error) => void;
93
98
  setCurrentTask(task: ITask): void;
94
99
  refreshTaskList(): void;
100
+ getBuddyAgents(mediaType?: string): Promise<BuddyDetails[]>;
101
+ getQueues(mediaType?: string, params?: ContactServiceQueueSearchParams): Promise<ContactServiceQueuesResponse>;
102
+ getEntryPoints(params?: EntryPointSearchParams): Promise<EntryPointListResponse>;
103
+ getAddressBookEntries(params?: AddressBookEntrySearchParams): Promise<AddressBookEntriesResponse>;
95
104
  setDeviceType(option: string): void;
96
105
  setDialNumber(input: string): void;
97
106
  setCurrentState(state: string): void;
@@ -174,9 +183,26 @@ type AgentLoginProfile = {
174
183
  telephony: number;
175
184
  };
176
185
  };
186
+ type PaginatedListParams = {
187
+ page: number;
188
+ pageSize: number;
189
+ search?: string;
190
+ };
191
+ type FetchPaginatedList<T> = (params: PaginatedListParams) => Promise<{
192
+ data: T[];
193
+ meta?: {
194
+ page?: number;
195
+ totalPages?: number;
196
+ };
197
+ }>;
198
+ type TransformPaginatedData<T, U> = (item: T, page: number, index: number) => U;
177
199
  declare const DIALNUMBER: string;
178
200
  declare const EXTENSION: string;
179
201
  declare const DESKTOP: string;
202
+ declare const MEDIA_TYPE_TELEPHONY_LOWER = "telephony";
203
+ declare const MEDIA_TYPE_TELEPHONY_UPPER = "TELEPHONY";
204
+ declare const DEVICE_TYPE_BROWSER = "BROWSER";
205
+ declare const AGENT_STATE_AVAILABLE = "Available";
180
206
  declare const LoginOptions: {
181
207
  [key: string]: string;
182
208
  };
@@ -188,5 +214,5 @@ declare const ERROR_TRIGGERING_IDLE_CODES: {
188
214
  CHANNEL_FAILURE: string;
189
215
  RONA: string;
190
216
  };
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, };
217
+ 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, };
218
+ 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<Array<ContactServiceQueue>>;
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.117",
4
+ "version": "1.28.0-ccwidgets.119",
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.4",
25
+ "@webex/contact-center": "3.9.0-next.18",
26
26
  "mobx": "6.13.5",
27
27
  "typescript": "5.6.3"
28
28
  },