@webex/cc-store 1.28.0-next.13 → 1.28.0-next.15

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,5 +1,5 @@
1
1
  import { ITask } from '@webex/contact-center';
2
- import { IContactCenter, Team, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile, WithWebex } from './store.types';
2
+ import { IContactCenter, Team, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile, WithWebex, RealTimeTranscriptionData } from './store.types';
3
3
  declare class Store implements IStore {
4
4
  private static instance;
5
5
  teams: Team[];
@@ -36,6 +36,7 @@ declare class Store implements IStore {
36
36
  isMuted: boolean;
37
37
  isDigitalChannelsInitialized: boolean;
38
38
  dataCenter: string;
39
+ realtimeTranscriptionData: Partial<RealTimeTranscriptionData>[];
39
40
  constructor();
40
41
  static getInstance(): Store;
41
42
  registerCC(webex?: WithWebex['webex']): Promise<void>;
@@ -55,6 +55,27 @@ type IdleCode = {
55
55
  isSystem: boolean;
56
56
  isDefault: boolean;
57
57
  };
58
+ type RealTimeTranscriptionData = {
59
+ content: string;
60
+ conversationId: string;
61
+ isFinal: boolean;
62
+ languageCode?: string;
63
+ messageId: string;
64
+ orgId: string;
65
+ publishTimestamp: number | string;
66
+ role: string;
67
+ trackingId: string;
68
+ utteranceId: string;
69
+ };
70
+ type RealTimeTranscriptionEventPayload = {
71
+ agentId: string;
72
+ data: RealTimeTranscriptionData;
73
+ notifDetails: {
74
+ actionEvent?: string;
75
+ };
76
+ notifType: string;
77
+ orgId: string;
78
+ };
58
79
  interface IStore {
59
80
  featureFlags: {
60
81
  [key: string]: boolean;
@@ -90,6 +111,7 @@ interface IStore {
90
111
  isAddressBookEnabled: boolean;
91
112
  isDigitalChannelsInitialized: boolean;
92
113
  dataCenter: string;
114
+ realtimeTranscriptionData: Partial<RealTimeTranscriptionData>[];
93
115
  init(params: InitParams, callback: (ccSDK: IContactCenter) => void): Promise<void>;
94
116
  registerCC(webex?: WithWebex['webex']): Promise<void>;
95
117
  }
@@ -165,7 +187,8 @@ declare enum TASK_EVENTS {
165
187
  TASK_PARTICIPANT_LEFT_FAILED = "task:participantLeftFailed",
166
188
  TASK_MERGED = "task:merged",
167
189
  TASK_POST_CALL_ACTIVITY = "task:postCallActivity",
168
- TASK_OUTDIAL_FAILED = "task:outdialFailed"
190
+ TASK_OUTDIAL_FAILED = "task:outdialFailed",
191
+ REAL_TIME_TRANSCRIPTION = "REAL_TIME_TRANSCRIPTION"
169
192
  }
170
193
  declare enum CC_EVENTS {
171
194
  AGENT_DN_REGISTERED = "agent:dnRegistered",
@@ -230,7 +253,7 @@ declare const ERROR_TRIGGERING_IDLE_CODES: {
230
253
  CHANNEL_FAILURE: string;
231
254
  RONA: string;
232
255
  };
233
- 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, };
256
+ 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, RealTimeTranscriptionData, RealTimeTranscriptionEventPayload, };
234
257
  export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME, DIAL_NUMBER, EXTENSION, DESKTOP, MEDIA_TYPE_TELEPHONY_LOWER, MEDIA_TYPE_TELEPHONY_UPPER, DEVICE_TYPE_BROWSER, AGENT_STATE_AVAILABLE, LoginOptions, ERROR_TRIGGERING_IDLE_CODES, };
235
258
  export declare enum ConsultStatus {
236
259
  NO_CONSULTATION_IN_PROGRESS = "No consultation in progress",
@@ -1,4 +1,4 @@
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';
1
+ import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask, BuddyDetails, ContactServiceQueue, ContactServiceQueueSearchParams, EntryPointListResponse, EntryPointSearchParams, AddressBookEntriesResponse, AddressBookEntrySearchParams, AgentLoginProfile, RealTimeTranscriptionEventPayload } from './store.types';
2
2
  declare class StoreWrapper implements IStoreWrapper {
3
3
  store: IStore;
4
4
  onIncomingTask: ({ task }: {
@@ -9,6 +9,7 @@ declare class StoreWrapper implements IStoreWrapper {
9
9
  onTaskAssigned?: (task: ITask) => void;
10
10
  onTaskSelected?: (task: ITask, isClicked: boolean) => void;
11
11
  onErrorCallback?: (widgetName: string, error: Error) => void;
12
+ private realtimeTranscriptionListeners;
12
13
  constructor();
13
14
  get featureFlags(): {
14
15
  [key: string]: boolean;
@@ -38,6 +39,7 @@ declare class StoreWrapper implements IStoreWrapper {
38
39
  get isDeclineButtonEnabled(): boolean;
39
40
  get isDigitalChannelsInitialized(): boolean;
40
41
  get dataCenter(): string;
42
+ get realtimeTranscriptionData(): Partial<import("./store.types").RealTimeTranscriptionData>[];
41
43
  setDataCenter: (value: string) => void;
42
44
  get currentConsultQueueId(): string;
43
45
  get isEndConsultEnabled(): boolean;
@@ -106,6 +108,7 @@ declare class StoreWrapper implements IStoreWrapper {
106
108
  handleTaskHydrate: (event: any) => void;
107
109
  handleTaskReject: (task: ITask, reason: string) => void;
108
110
  handleOutdialFailed: (reason: string) => void;
111
+ handleRealtimeTranscription: (payload: RealTimeTranscriptionEventPayload) => void;
109
112
  getBuddyAgents: (mediaType?: string) => Promise<Array<BuddyDetails>>;
110
113
  getQueues: (mediaType?: string, params?: ContactServiceQueueSearchParams) => Promise<{
111
114
  data: ContactServiceQueue[];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@webex/cc-store",
3
3
  "description": "Webex Contact Center Widgets: Widgets Store",
4
4
  "license": "Cisco's General Terms (https://www.cisco.com/site/us/en/about/legal/contract-experience/index.html)",
5
- "version": "1.28.0-next.13",
5
+ "version": "1.28.0-next.15",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "publishConfig": {
@@ -23,7 +23,7 @@
23
23
  "deploy:npm": "yarn npm publish"
24
24
  },
25
25
  "dependencies": {
26
- "@webex/contact-center": "3.11.0-next.20",
26
+ "@webex/contact-center": "3.12.0-next.14",
27
27
  "mobx": "6.13.5",
28
28
  "typescript": "5.6.3"
29
29
  },