@webex/cc-components 1.28.0-next.3 → 1.28.0-next.4
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.
|
@@ -13,6 +13,7 @@ export interface IncomingTaskData {
|
|
|
13
13
|
declineText: string | undefined;
|
|
14
14
|
title: string;
|
|
15
15
|
disableAccept: boolean;
|
|
16
|
+
disableDecline: boolean;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Extracts and processes all data needed for rendering an incoming task
|
|
@@ -20,4 +21,4 @@ export interface IncomingTaskData {
|
|
|
20
21
|
* @param isBrowser - Whether the device type is browser
|
|
21
22
|
* @returns Processed task data with computed values
|
|
22
23
|
*/
|
|
23
|
-
export declare const extractIncomingTaskData: (incomingTask: ITask, isBrowser: boolean, logger?: any) => IncomingTaskData;
|
|
24
|
+
export declare const extractIncomingTaskData: (incomingTask: ITask, isBrowser: boolean, logger?: any, isDeclineButtonEnabled?: boolean) => IncomingTaskData;
|
|
@@ -99,8 +99,12 @@ export interface TaskProps {
|
|
|
99
99
|
* Agent ID of the logged-in user
|
|
100
100
|
*/
|
|
101
101
|
agentId: string;
|
|
102
|
+
/**
|
|
103
|
+
* Flag to enable decline button on incoming task component
|
|
104
|
+
*/
|
|
105
|
+
isDeclineButtonEnabled?: boolean;
|
|
102
106
|
}
|
|
103
|
-
export type IncomingTaskComponentProps = Pick<TaskProps, 'isBrowser' | 'accept' | 'reject' | 'logger'> & Partial<Pick<TaskProps, 'incomingTask'>>;
|
|
107
|
+
export type IncomingTaskComponentProps = Pick<TaskProps, 'isBrowser' | 'accept' | 'reject' | 'logger'> & Partial<Pick<TaskProps, 'incomingTask' | 'isDeclineButtonEnabled'>>;
|
|
104
108
|
export type TaskListComponentProps = Pick<TaskProps, 'isBrowser' | 'acceptTask' | 'declineTask' | 'onTaskSelect' | 'logger' | 'agentId'> & Partial<Pick<TaskProps, 'currentTask' | 'taskList'>>;
|
|
105
109
|
/**
|
|
106
110
|
* Interface representing the properties for control actions on a task.
|
|
@@ -393,8 +397,13 @@ export interface OutdialCallProps {
|
|
|
393
397
|
* Logger instance for logging purpose.
|
|
394
398
|
*/
|
|
395
399
|
logger: ILogger;
|
|
400
|
+
/**
|
|
401
|
+
* Boolean indicating if there's an active telephony task.
|
|
402
|
+
* Used to disable the outdial button when a telephony task is in progress.
|
|
403
|
+
*/
|
|
404
|
+
isTelephonyTaskActive?: boolean;
|
|
396
405
|
}
|
|
397
|
-
export type OutdialCallComponentProps = Pick<OutdialCallProps, 'logger' | 'startOutdial' | 'getOutdialANIEntries'>;
|
|
406
|
+
export type OutdialCallComponentProps = Pick<OutdialCallProps, 'logger' | 'startOutdial' | 'getOutdialANIEntries' | 'isTelephonyTaskActive'>;
|
|
398
407
|
/**
|
|
399
408
|
* Interface representing the properties for CallControlListItem component.
|
|
400
409
|
*/
|
|
@@ -560,6 +569,7 @@ export interface TaskListItemData {
|
|
|
560
569
|
declineText: string | undefined;
|
|
561
570
|
title: string;
|
|
562
571
|
disableAccept: boolean;
|
|
572
|
+
disableDecline: boolean;
|
|
563
573
|
displayState: string;
|
|
564
574
|
}
|
|
565
575
|
export declare enum TaskState {
|