@webex/cc-store 1.28.0-next.1 → 1.28.0-next.3
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/types/store.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare class Store implements IStore {
|
|
|
19
19
|
currentState: string;
|
|
20
20
|
customState: ICustomState;
|
|
21
21
|
isQueueConsultInProgress: boolean;
|
|
22
|
+
isDeclineButtonEnabled: boolean;
|
|
22
23
|
currentConsultQueueId: string;
|
|
23
24
|
consultStartTimeStamp: any;
|
|
24
25
|
lastStateChangeTimestamp?: number;
|
|
@@ -78,6 +78,7 @@ interface IStore {
|
|
|
78
78
|
currentTheme: string;
|
|
79
79
|
customState: ICustomState;
|
|
80
80
|
isQueueConsultInProgress: boolean;
|
|
81
|
+
isDeclineButtonEnabled: boolean;
|
|
81
82
|
currentConsultQueueId: string;
|
|
82
83
|
consultStartTimeStamp?: number;
|
|
83
84
|
callControlAudio: MediaStream | null;
|
|
@@ -112,6 +113,7 @@ interface IStoreWrapper extends IStore {
|
|
|
112
113
|
setAgentProfile(profile: Profile): void;
|
|
113
114
|
setTeamId(id: string): void;
|
|
114
115
|
setIsMuted(value: boolean): void;
|
|
116
|
+
setIsDeclineButtonEnabled(value: boolean): void;
|
|
115
117
|
setOnError(callback: (widgetName: string, error: Error) => void): void;
|
|
116
118
|
}
|
|
117
119
|
interface IWrapupCode {
|
|
@@ -144,6 +146,7 @@ declare enum TASK_EVENTS {
|
|
|
144
146
|
TASK_RECORDING_PAUSED = "task:recordingPaused",
|
|
145
147
|
TASK_RECORDING_RESUMED = "task:recordingResumed",
|
|
146
148
|
TASK_OFFER_CONSULT = "task:offerConsult",
|
|
149
|
+
TASK_AUTO_ANSWERED = "task:autoAnswered",
|
|
147
150
|
TASK_CONFERENCE_ESTABLISHING = "task:conferenceEstablishing",
|
|
148
151
|
TASK_CONFERENCE_STARTED = "task:conferenceStarted",
|
|
149
152
|
TASK_CONFERENCE_FAILED = "task:conferenceFailed",
|
|
@@ -35,6 +35,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
35
35
|
get consultStartTimeStamp(): number;
|
|
36
36
|
get callControlAudio(): MediaStream;
|
|
37
37
|
get isQueueConsultInProgress(): boolean;
|
|
38
|
+
get isDeclineButtonEnabled(): boolean;
|
|
38
39
|
get currentConsultQueueId(): string;
|
|
39
40
|
get isEndConsultEnabled(): boolean;
|
|
40
41
|
get allowConsultToQueue(): boolean;
|
|
@@ -58,6 +59,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
58
59
|
setConsultStartTimeStamp: (timestamp: number) => void;
|
|
59
60
|
setCallControlAudio: (audio: MediaStream | null) => void;
|
|
60
61
|
setIsQueueConsultInProgress: (value: boolean) => void;
|
|
62
|
+
setIsDeclineButtonEnabled: (value: boolean) => void;
|
|
61
63
|
setCurrentConsultQueueId: (queueId: string | null) => void;
|
|
62
64
|
setState: (state: ICustomState | IdleCode) => void;
|
|
63
65
|
setIncomingTaskCb: (callback: ({ task }: {
|
|
@@ -83,6 +85,7 @@ declare class StoreWrapper implements IStoreWrapper {
|
|
|
83
85
|
handleConsulting: () => void;
|
|
84
86
|
handleConsultEnd: () => void;
|
|
85
87
|
handleConsultOffer: () => void;
|
|
88
|
+
handleAutoAnswer: () => void;
|
|
86
89
|
handleConsultAccepted: (event: any) => void;
|
|
87
90
|
handleConsultQueueCancelled: () => void;
|
|
88
91
|
handleConferenceStarted: () => void;
|
|
@@ -46,3 +46,12 @@ export declare function isInteractionOnHold(task: ITask): boolean;
|
|
|
46
46
|
export declare const setmTypeForEPDN: (task: ITask, mType: string) => string;
|
|
47
47
|
export declare const findMediaResourceId: (task: ITask, mType: string) => string;
|
|
48
48
|
export declare const findHoldStatus: (task: ITask, mType: string, agentId: string) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Finds the hold timestamp for a specific media type (mainCall, consult, etc.)
|
|
51
|
+
* Used for timer alignment in Consult & Conference scenarios to match Agent Desktop behavior.
|
|
52
|
+
*
|
|
53
|
+
* @param task - The task object containing interaction data
|
|
54
|
+
* @param mType - The media type to search for ('mainCall', 'consult', 'conference')
|
|
55
|
+
* @returns The hold timestamp in milliseconds or null if not on hold
|
|
56
|
+
*/
|
|
57
|
+
export declare const findHoldTimestamp: (task: ITask, mType: string) => number | null;
|
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.
|
|
5
|
+
"version": "1.28.0-next.3",
|
|
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.10.0-next.
|
|
26
|
+
"@webex/contact-center": "3.10.0-next.20",
|
|
27
27
|
"mobx": "6.13.5",
|
|
28
28
|
"typescript": "5.6.3"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@testing-library/react": "16.0.1",
|
|
39
39
|
"@types/jest": "29.5.14",
|
|
40
40
|
"@types/react-test-renderer": "18",
|
|
41
|
-
"@webex/test-fixtures": "0.0.0",
|
|
41
|
+
"@webex/test-fixtures": "0.0.0-next.1",
|
|
42
42
|
"babel-jest": "29.7.0",
|
|
43
43
|
"babel-loader": "9.2.1",
|
|
44
44
|
"eslint": "^9.20.1",
|