@webex/cc-store 1.28.0-ccwidgets.79 → 1.28.0-ccwidgets.80
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 { IContactCenter, Team, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState,
|
|
1
|
+
import { IContactCenter, Team, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, ICustomState, AgentLoginProfile } from './store.types';
|
|
2
2
|
import { ITask } from '@webex/plugin-cc';
|
|
3
3
|
declare class Store implements IStore {
|
|
4
4
|
private static instance;
|
|
@@ -35,7 +35,6 @@ declare class Store implements IStore {
|
|
|
35
35
|
isEndConsultEnabled: boolean;
|
|
36
36
|
allowConsultToQueue: boolean;
|
|
37
37
|
agentProfile: AgentLoginProfile;
|
|
38
|
-
taskMetaData: Record<string, TaskMetaData>;
|
|
39
38
|
constructor();
|
|
40
39
|
static getInstance(): Store;
|
|
41
40
|
registerCC(webex?: WithWebex['webex']): Promise<void>;
|
|
@@ -23,15 +23,6 @@ type IdleCode = {
|
|
|
23
23
|
isSystem: boolean;
|
|
24
24
|
isDefault: boolean;
|
|
25
25
|
};
|
|
26
|
-
type TaskMetaData = {
|
|
27
|
-
consultCompleted: boolean;
|
|
28
|
-
consultInitiated: boolean;
|
|
29
|
-
consultAccepted: boolean;
|
|
30
|
-
isQueueConsultInProgress: boolean;
|
|
31
|
-
currentConsultQueueId: string;
|
|
32
|
-
consultStartTimeStamp: number;
|
|
33
|
-
consultOfferReceived: boolean;
|
|
34
|
-
};
|
|
35
26
|
interface IStore {
|
|
36
27
|
featureFlags: {
|
|
37
28
|
[key: string]: boolean;
|
|
@@ -45,7 +36,6 @@ interface IStore {
|
|
|
45
36
|
wrapupCodes: IWrapupCode[];
|
|
46
37
|
currentTask: ITask;
|
|
47
38
|
taskList: Record<string, ITask>;
|
|
48
|
-
taskMetaData: Record<string, TaskMetaData>;
|
|
49
39
|
isAgentLoggedIn: boolean;
|
|
50
40
|
deviceType: string;
|
|
51
41
|
teamId: string;
|
|
@@ -153,5 +143,5 @@ type AgentLoginProfile = {
|
|
|
153
143
|
telephony: number;
|
|
154
144
|
};
|
|
155
145
|
};
|
|
156
|
-
export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue,
|
|
146
|
+
export type { IContactCenter, ITask, Profile, Team, AgentLogin, WithWebex, IdleCode, InitParams, IStore, ILogger, IWrapupCode, IStoreWrapper, ICustomState, DestinationType, BuddyDetails, ContactServiceQueue, AgentLoginProfile, };
|
|
157
147
|
export { CC_EVENTS, TASK_EVENTS, ENGAGED_LABEL, ENGAGED_USERNAME };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask, BuddyDetails, ContactServiceQueue,
|
|
1
|
+
import { IStoreWrapper, IStore, InitParams, TASK_EVENTS, CC_EVENTS, IWrapupCode, WithWebex, ICustomState, IdleCode, IContactCenter, ITask, BuddyDetails, ContactServiceQueue, AgentLoginProfile } from './store.types';
|
|
2
2
|
declare class StoreWrapper implements IStoreWrapper {
|
|
3
3
|
store: IStore;
|
|
4
4
|
onIncomingTask: ({ task }: {
|
|
@@ -40,9 +40,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
40
40
|
get currentConsultQueueId(): string;
|
|
41
41
|
get isEndConsultEnabled(): boolean;
|
|
42
42
|
get allowConsultToQueue(): boolean;
|
|
43
|
-
get taskMetaData(): Record<string, TaskMetaData>;
|
|
44
43
|
get agentProfile(): AgentLoginProfile;
|
|
45
|
-
setTaskMetaData: (taskId: string, data: TaskMetaData) => void;
|
|
46
44
|
setCurrentTheme: (theme: string) => void;
|
|
47
45
|
setShowMultipleLoginAlert: (value: boolean) => void;
|
|
48
46
|
setDeviceType: (option: string) => void;
|