@webex/cc-task 1.28.0-next.37 → 1.28.0-next.38

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,69 @@
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+
5
+ /*!
6
+ * Copyright (c) 2015-2024 Cisco Systems, Inc. See LICENSE file.
7
+ */
8
+
9
+ /*!
10
+ * Platform.js v1.3.6
11
+ * Copyright 2014-2020 Benjamin Tan
12
+ * Copyright 2011-2013 John-David Dalton
13
+ * Available under MIT license
14
+ */
15
+
16
+ /*!
17
+ * The buffer module from node.js, for the browser.
18
+ *
19
+ * @author Feross Aboukhadijeh <https://feross.org>
20
+ * @license MIT
21
+ */
22
+
23
+ /*!
24
+ * js-logger - http://github.com/jonnyreeves/js-logger
25
+ * Jonny Reeves, http://jonnyreeves.co.uk/
26
+ * js-logger may be freely distributed under the MIT license.
27
+ */
28
+
29
+ /*!
30
+ * urlsafe-base64
31
+ */
32
+
33
+ /*! *****************************************************************************
34
+ Copyright (c) Microsoft Corporation.
35
+
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+ ***************************************************************************** */
47
+
1
48
  /*! For license information please see index.js.LICENSE.txt */
2
49
 
50
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
51
+
52
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
53
+
54
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
55
+
56
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
57
+
58
+ /**
59
+ * @license
60
+ * Lodash <https://lodash.com/>
61
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
62
+ * Released under MIT license <https://lodash.com/license>
63
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
64
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
65
+ */
66
+
3
67
  /**
4
68
  * @license React
5
69
  * use-sync-external-store-shim.production.js
@@ -9,3 +73,11 @@
9
73
  * This source code is licensed under the MIT license found in the
10
74
  * LICENSE file in the root directory of this source tree.
11
75
  */
76
+
77
+ /**
78
+ * core-decorators.js
79
+ * (c) 2017 Jay Phelps and contributors
80
+ * MIT Licensed
81
+ * https://github.com/jayphelps/core-decorators.js
82
+ * @license
83
+ */
@@ -0,0 +1,20 @@
1
+ import { ITask } from '@webex/cc-store';
2
+ import { Interaction, TaskUIControls } from '@webex/contact-center';
3
+ export type MainCadHoldInputs = {
4
+ currentTask: ITask | null;
5
+ controls: TaskUIControls;
6
+ agentId?: string;
7
+ holdDataVersion?: number;
8
+ };
9
+ export type MainCadHoldResult = {
10
+ isHeld: boolean;
11
+ interaction: Interaction | undefined;
12
+ holdTimestampMs: number | null;
13
+ };
14
+ /**
15
+ * Single source of truth for main CAD "On Hold" chip + timer inputs.
16
+ *
17
+ * Covers: simple consult (Agent 2), EP/DN consult, conference nested consult,
18
+ * plain conference hold, and refresh timer continuity (via resolveMainCadHoldTimestampMs).
19
+ */
20
+ export declare function deriveMainCadHoldState({ currentTask, controls, agentId, holdDataVersion, }: MainCadHoldInputs): MainCadHoldResult;
@@ -1,7 +1,34 @@
1
- import { ILogger } from '@webex/cc-store';
2
- import { ITask, Interaction } from '@webex/contact-center';
3
- import { Visibility } from '@webex/cc-components';
1
+ import { Interaction } from '@webex/contact-center';
2
+ import { ITask } from '@webex/cc-store';
3
+ type ConsultMediaEntry = {
4
+ holdTimestamp?: number | null;
5
+ };
6
+ export declare const getHoldAnchorStorageKey: (interactionId: string) => string;
7
+ export declare const getConsultHoldAnchorStorageKey: (interactionId: string) => string;
8
+ export declare const normalizeHoldTimestampMs: (raw: number) => number;
9
+ export declare const readHoldAnchor: (interactionId: string | undefined) => number | null;
10
+ export declare const writeHoldAnchor: (interactionId: string | undefined, timestampMs: number) => void;
11
+ export declare const clearHoldAnchor: (interactionId: string | undefined) => void;
12
+ export declare const readConsultHoldAnchor: (interactionId: string | undefined) => number | null;
13
+ export declare const writeConsultHoldAnchor: (interactionId: string | undefined, timestampMs: number) => void;
14
+ export declare const clearConsultHoldAnchor: (interactionId: string | undefined) => void;
15
+ /**
16
+ * Finds the hold timestamp for a specific media type from an interaction.
17
+ * Used by useHoldTimer for hold duration display.
18
+ *
19
+ * Note: There is a separate findHoldTimestamp in @webex/cc-store that takes ITask.
20
+ * This one takes Interaction directly.
21
+ */
4
22
  export declare function findHoldTimestamp(interaction: Interaction, mType?: string): number | null;
23
+ /**
24
+ * Resolve main CAD hold timer anchor in milliseconds.
25
+ * Prefers interaction media; falls back to session anchor for refresh continuity.
26
+ */
27
+ export declare function resolveMainCadHoldTimestampMs(interaction: Interaction | undefined, isHeld: boolean, interactionId?: string): number | null;
28
+ /**
29
+ * Resolve consult-leg hold timer anchor in milliseconds (Agent 1 initiator CAD).
30
+ */
31
+ export declare function resolveConsultHoldTimestampMs(consultMedia: ConsultMediaEntry | null | undefined, interactionId?: string): number;
5
32
  /**
6
33
  * Checks whether the given task is a campaign preview task based on
7
34
  * its outboundType or callProcessingDetails.campaignType.
@@ -15,124 +42,4 @@ export declare function isCampaignPreviewTask(task: ITask): boolean;
15
42
  * agent only skipped or removed the preview.
16
43
  */
17
44
  export declare function isUnacceptedCampaignPreview(task: ITask, acceptedCampaignIds: Set<string>): boolean;
18
- /**
19
- * Get visibility for Accept button
20
- */
21
- export declare function getAcceptButtonVisibility(isBrowser: boolean, isPhoneDevice: boolean, webRtcEnabled: boolean, isCall: boolean, isDigitalChannel: boolean): Visibility;
22
- /**
23
- * Get visibility for Decline button
24
- */
25
- export declare function getDeclineButtonVisibility(isBrowser: boolean, webRtcEnabled: boolean, isCall: boolean): Visibility;
26
- /**
27
- * Get visibility for End button (matches Agent Desktop behavior)
28
- */
29
- export declare function getEndButtonVisibility(isBrowser: boolean, isEndCallEnabled: boolean, isCall: boolean, isConsultInitiatedOrAcceptedOrBeingConsulted: boolean, isConferenceInProgress: boolean, isConsultCompleted: boolean, isHeld: boolean, consultCallHeld: boolean, task?: ITask, agentId?: string): Visibility;
30
- /**
31
- * Get visibility for Mute/Unmute button
32
- */
33
- export declare function getMuteUnmuteButtonVisibility(isBrowser: boolean, webRtcEnabled: boolean, isCall: boolean, isBeingConsulted: boolean): Visibility;
34
- /**
35
- * Get visibility for Hold/Resume button
36
- */
37
- export declare function getHoldResumeButtonVisibility(isTelephonySupported: boolean, isCall: boolean, isConferenceInProgress: boolean, isConsultInProgress: boolean, isHeld: boolean, isBeingConsulted: boolean, isConsultCompleted: boolean): Visibility;
38
- /**
39
- * Get visibility for Pause/Resume Recording button
40
- */
41
- export declare function getPauseResumeRecordingButtonVisibility(isTelephonySupported: boolean, isCall: boolean, isConferenceInProgress: boolean, isConsultInitiatedOrAccepted: boolean): Visibility;
42
- /**
43
- * Get visibility for Recording Indicator
44
- */
45
- export declare function getRecordingIndicatorVisibility(isCall: boolean): Visibility;
46
- /**
47
- * Get visibility for Transfer button
48
- */
49
- export declare function getTransferButtonVisibility(isTransferVisibility: boolean, isConferenceInProgress: boolean, isConsultInitiatedOrAccepted: boolean): Visibility;
50
- /**
51
- * Get visibility for Conference button
52
- */
53
- export declare function getConferenceButtonVisibility(isBrowser: boolean, webRtcEnabled: boolean, isCall: boolean, isChat: boolean, isBeingConsulted: boolean, conferenceEnabled: boolean): Visibility;
54
- /**
55
- * Get visibility for Exit Conference button
56
- */
57
- export declare function getExitConferenceButtonVisibility(isConferenceInProgress: boolean, isConsultInitiatedOrAccepted: boolean, consultCallHeld: boolean, isHeld: boolean, isConsultCompleted: boolean, conferenceEnabled: boolean): Visibility;
58
- /**
59
- * Get visibility for Merge Conference button
60
- */
61
- export declare function getMergeConferenceButtonVisibility(isConsultInitiatedOrAccepted: boolean, isConsultAccepted: boolean, consultCallHeld: boolean, isConferenceInProgress: boolean, isCustomerInCall: boolean, conferenceEnabled: boolean): Visibility;
62
- /**
63
- * Get visibility for Consult button
64
- */
65
- export declare function getConsultButtonVisibility(isTelephonySupported: boolean, isCall: boolean, isConsultInProgress: boolean, isCustomerInCall: boolean, conferenceParticipantsCount: number, maxParticipantsInConference: number, isBeingConsulted: boolean, isHeld: boolean, isConsultCompleted: boolean, isConferenceInProgress: boolean): Visibility;
66
- /**
67
- * Get visibility for End Consult button
68
- */
69
- export declare function getEndConsultButtonVisibility(isEndConsultEnabled: boolean, isTelephonySupported: boolean, isCall: boolean, isConsultInitiatedOrAccepted: boolean): Visibility;
70
- /**
71
- * Get visibility for Consult Transfer button
72
- */
73
- export declare function getConsultTransferButtonVisibility(isConsultInitiatedOrAccepted: boolean, isConsultAccepted: boolean, consultCallHeld: boolean, isConferenceInProgress: boolean, isCustomerInCall: boolean): Visibility;
74
- /**
75
- * Get visibility for Merge Conference Consult button
76
- */
77
- export declare function getMergeConferenceConsultButtonVisibility(isConsultAccepted: boolean, isConsultInitiated: boolean, consultCallHeld: boolean, isCustomerInCall: boolean, conferenceEnabled: boolean): Visibility;
78
- /**
79
- * Get visibility for Consult Transfer Consult button
80
- */
81
- export declare function getConsultTransferConsultButtonVisibility(isConsultAccepted: boolean, isConsultInitiated: boolean, consultCallHeld: boolean, isCustomerInCall: boolean): Visibility;
82
- /**
83
- * Get visibility for Mute/Unmute Consult button
84
- */
85
- export declare function getMuteUnmuteConsultButtonVisibility(isBrowser: boolean, webRtcEnabled: boolean, isCall: boolean, isConsultInitiated: boolean, isBeingConsulted: boolean): Visibility;
86
- /**
87
- * Get visibility for Switch to Main Call button
88
- */
89
- export declare function getSwitchToMainCallButtonVisibility(isBeingConsulted: boolean, isConsultAccepted: boolean, isConsultInitiated: boolean, consultCallHeld: boolean, isCustomerInCall: boolean, isConferenceInProgress: boolean): Visibility;
90
- /**
91
- * Get visibility for Switch to Consult button
92
- */
93
- export declare function getSwitchToConsultButtonVisibility(isBeingConsulted: boolean, consultCallHeld: boolean): Visibility;
94
- /**
95
- * Get visibility for Wrapup button
96
- */
97
- export declare function getWrapupButtonVisibility(task: ITask): Visibility;
98
- /**
99
- * This function determines the visibility of various controls based on the task's data.
100
- * @param deviceType The device type (Browser, Extension, AgentDN)
101
- * @param featureFlags Feature flags configuration object
102
- * @param task The task object
103
- * @param agentId The agent ID
104
- * @param conferenceEnabled Whether conference is enabled
105
- * @param logger Optional logger instance
106
- * @returns An object containing the visibility and state of various controls
107
- */
108
- export declare function getControlsVisibility(deviceType: string, featureFlags: {
109
- [key: string]: boolean;
110
- }, task: ITask, agentId: string, conferenceEnabled: boolean, logger?: ILogger): {
111
- accept: Visibility;
112
- decline: Visibility;
113
- end: Visibility;
114
- muteUnmute: Visibility;
115
- holdResume: Visibility;
116
- pauseResumeRecording: Visibility;
117
- recordingIndicator: Visibility;
118
- transfer: Visibility;
119
- conference: Visibility;
120
- exitConference: Visibility;
121
- mergeConference: Visibility;
122
- consult: Visibility;
123
- endConsult: Visibility;
124
- consultTransfer: Visibility;
125
- consultTransferConsult: Visibility;
126
- mergeConferenceConsult: Visibility;
127
- muteUnmuteConsult: Visibility;
128
- switchToMainCall: Visibility;
129
- switchToConsult: Visibility;
130
- wrapup: Visibility;
131
- isConferenceInProgress: boolean;
132
- isConsultInitiated: boolean;
133
- isConsultInitiatedAndAccepted: boolean;
134
- isConsultReceived: boolean;
135
- isConsultInitiatedOrAccepted: boolean;
136
- isHeld: boolean;
137
- consultCallHeld: boolean;
138
- };
45
+ export {};
@@ -1,5 +1,5 @@
1
- import { ITask } from '@webex/cc-store';
2
- import { ControlVisibility } from '@webex/cc-components';
1
+ import { ITask, TaskUIControls } from '@webex/cc-store';
2
+ import { Interaction } from '@webex/contact-center';
3
3
  /**
4
4
  * Timer data structure containing label and timestamp
5
5
  */
@@ -7,23 +7,50 @@ export interface TimerData {
7
7
  label: string | null;
8
8
  timestamp: number;
9
9
  }
10
+ type MediaEntry = {
11
+ mType?: string;
12
+ isHold?: boolean;
13
+ holdTimestamp?: number | null;
14
+ lastUpdated?: number;
15
+ joinTimestamp?: number;
16
+ eventTime?: number;
17
+ createdAt?: number;
18
+ mediaResourceId?: string;
19
+ participants?: string[];
20
+ };
21
+ type InteractionParticipant = {
22
+ consultTimestamp?: number;
23
+ lastUpdated?: number;
24
+ consultState?: string;
25
+ isConsulted?: boolean;
26
+ isWrapUp?: boolean;
27
+ wrapUpTimestamp?: number | null;
28
+ currentState?: string | null;
29
+ currentStateTimestamp?: number | null;
30
+ };
31
+ type InteractionWithMedia = Interaction & {
32
+ media?: Record<string, MediaEntry>;
33
+ participants?: Record<string, InteractionParticipant>;
34
+ };
35
+ /**
36
+ * Find the latest (most recently added) consult media from the interaction.
37
+ *
38
+ * After transfer → re-consult the backend may leave the OLD consult media
39
+ * in the interaction alongside the NEW one. Prefer held consult entries when
40
+ * present (switch-to-main), otherwise pick the most recent consult leg.
41
+ */
42
+ export declare function findLatestConsultMedia(interaction: InteractionWithMedia | undefined): MediaEntry | null;
10
43
  /**
11
44
  * Calculate state timer label and timestamp based on task state.
12
45
  * Priority: Wrap Up > Post Call
13
- *
14
- * @param currentTask - The current task object
15
- * @param controlVisibility - Control visibility flags
16
- * @param agentId - The current agent ID
17
- * @returns TimerData object with label and timestamp
18
46
  */
19
- export declare function calculateStateTimerData(currentTask: ITask | null, controlVisibility: ControlVisibility | null, agentId: string): TimerData;
47
+ export declare function calculateStateTimerData(currentTask: ITask | null, controls: TaskUIControls | null, agentId: string): TimerData;
20
48
  /**
21
49
  * Calculate consult timer label and timestamp based on consult state.
22
50
  * Handles consult on hold vs active consulting states.
23
51
  *
24
- * @param currentTask - The current task object
25
- * @param controlVisibility - Control visibility flags
26
- * @param agentId - The current agent ID
27
- * @returns TimerData object with label and timestamp
52
+ * Derives consult on hold from consult media isHold (not uiControls alone).
53
+ * EP/DN and agent-name: isHold may be true before holdTimestamp arrives — still show Consult on Hold.
28
54
  */
29
- export declare function calculateConsultTimerData(currentTask: ITask | null, controlVisibility: ControlVisibility | null, agentId: string): TimerData;
55
+ export declare function calculateConsultTimerData(currentTask: ITask | null, controls: TaskUIControls | null, agentId: string): TimerData;
56
+ export {};
@@ -1,9 +1,4 @@
1
- import { ITask } from '@webex/cc-store';
2
1
  /**
3
- * Custom hook to manage hold timer using a Web Worker
4
- * Prioritizes consult hold over main call hold
5
- *
6
- * @param currentTask - The current task object
7
- * @returns holdTime - The elapsed time in seconds since the call was put on hold
2
+ * Hold timer only main CAD on-hold boolean is computed in useCallControl (helper.ts).
8
3
  */
9
- export declare const useHoldTimer: (currentTask: ITask | null) => number;
4
+ export declare const useHoldTimer: (mainCallOnHold: boolean, holdTimestampMs: number | null, holdDataVersion?: number, interactionId?: string) => number;
@@ -1,13 +1,12 @@
1
- import { AddressBookEntriesResponse, AddressBookEntrySearchParams, ITask } from '@webex/contact-center';
1
+ import { AddressBookEntriesResponse, AddressBookEntrySearchParams, ITask, TaskUIControls } from '@webex/contact-center';
2
2
  import { useCallControlProps, UseTaskListProps, UseTaskProps, UseRealTimeTranscriptInternalProps, RealTimeTranscriptEntry, useOutdialCallProps, TargetType } from './task.types';
3
- import { BuddyDetails, DestinationType, PaginatedListParams, Participant } from '@webex/cc-store';
3
+ import { DestinationType, PaginatedListParams } from '@webex/cc-store';
4
4
  import { OutdialAniEntriesResponse } from '@webex/contact-center/dist/types/services/config/types';
5
5
  export declare const useTaskList: (props: UseTaskListProps) => {
6
6
  taskList: Record<string, ITask>;
7
7
  acceptTask: (task: ITask) => void;
8
8
  declineTask: (task: ITask) => void;
9
9
  onTaskSelect: (task: ITask) => void;
10
- isBrowser: boolean;
11
10
  };
12
11
  export declare const useRealTimeTranscript: (props: UseRealTimeTranscriptInternalProps) => {
13
12
  liveTranscriptEntries: RealTimeTranscriptEntry[];
@@ -17,11 +16,12 @@ export declare const useIncomingTask: (props: UseTaskProps) => {
17
16
  incomingTask: ITask;
18
17
  accept: () => void;
19
18
  reject: () => void;
20
- isBrowser: boolean;
21
- isDeclineButtonEnabled: boolean;
19
+ acceptControl: any;
20
+ declineControl: any;
22
21
  };
23
22
  export declare const useCallControl: (props: useCallControlProps) => {
24
23
  currentTask: ITask;
24
+ isHeld: boolean;
25
25
  endCall: () => void;
26
26
  toggleHold: (hold: boolean) => void;
27
27
  toggleRecording: () => void;
@@ -51,55 +51,14 @@ export declare const useCallControl: (props: useCallControlProps) => {
51
51
  consultTimerTimestamp: number;
52
52
  lastTargetType: TargetType;
53
53
  setLastTargetType: import("react").Dispatch<import("react").SetStateAction<TargetType>>;
54
- controlVisibility: {
55
- accept: import("@webex/cc-components").Visibility;
56
- decline: import("@webex/cc-components").Visibility;
57
- end: import("@webex/cc-components").Visibility;
58
- muteUnmute: import("@webex/cc-components").Visibility;
59
- holdResume: import("@webex/cc-components").Visibility;
60
- pauseResumeRecording: import("@webex/cc-components").Visibility;
61
- recordingIndicator: import("@webex/cc-components").Visibility;
62
- transfer: import("@webex/cc-components").Visibility;
63
- conference: import("@webex/cc-components").Visibility;
64
- exitConference: import("@webex/cc-components").Visibility;
65
- mergeConference: import("@webex/cc-components").Visibility;
66
- consult: import("@webex/cc-components").Visibility;
67
- endConsult: import("@webex/cc-components").Visibility;
68
- consultTransfer: import("@webex/cc-components").Visibility;
69
- consultTransferConsult: import("@webex/cc-components").Visibility;
70
- mergeConferenceConsult: import("@webex/cc-components").Visibility;
71
- muteUnmuteConsult: import("@webex/cc-components").Visibility;
72
- switchToMainCall: import("@webex/cc-components").Visibility;
73
- switchToConsult: import("@webex/cc-components").Visibility;
74
- wrapup: import("@webex/cc-components").Visibility;
75
- isConferenceInProgress: boolean;
76
- isConsultInitiated: boolean;
77
- isConsultInitiatedAndAccepted: boolean;
78
- isConsultReceived: boolean;
79
- isConsultInitiatedOrAccepted: boolean;
80
- isHeld: boolean;
81
- consultCallHeld: boolean;
82
- };
54
+ controls: TaskUIControls;
55
+ conferenceEnabled: boolean;
83
56
  secondsUntilAutoWrapup: number;
84
57
  cancelAutoWrapup: () => void;
85
58
  conferenceParticipants: Participant[];
86
- getAddressBookEntries: ({ page, pageSize, search }: PaginatedListParams) => Promise<AddressBookEntriesResponse>;
87
- getEntryPoints: ({ page, pageSize, search }: PaginatedListParams) => Promise<import("@webex/contact-center").EntryPointListResponse>;
88
- getQueuesFetcher: ({ page, pageSize, search }: PaginatedListParams) => Promise<{
89
- data: import("@webex/contact-center").ContactServiceQueue[];
90
- meta: {
91
- page: number;
92
- pageSize: number;
93
- total: number;
94
- totalPages: number;
95
- };
96
- } | {
97
- data: any[];
98
- meta: {
99
- page: number;
100
- totalPages: number;
101
- };
102
- }>;
59
+ getAddressBookEntries: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
60
+ getEntryPoints: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
61
+ getQueuesFetcher: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
103
62
  isCampaignCall: boolean;
104
63
  };
105
64
  export declare const useOutdialCall: (props: useOutdialCallProps) => {
@@ -1,7 +1,7 @@
1
1
  import { TaskProps, ControlProps, OutdialCallProps, RealTimeTranscriptComponentProps, RealTimeTranscriptEntry } from '@webex/cc-components';
2
2
  import { RealTimeTranscriptionData } from '@webex/cc-store';
3
- export type UseTaskProps = Pick<TaskProps, 'incomingTask' | 'deviceType' | 'logger'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
4
- export type UseTaskListProps = Pick<TaskProps, 'cc' | 'taskList' | 'deviceType' | 'logger'> & Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>>;
3
+ export type UseTaskProps = Pick<TaskProps, 'incomingTask' | 'logger'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
4
+ export type UseTaskListProps = Pick<TaskProps, 'cc' | 'taskList' | 'logger'> & Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>>;
5
5
  export type IncomingTaskProps = Pick<TaskProps, 'incomingTask'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
6
6
  export type TaskListProps = Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>> & {
7
7
  /**
@@ -17,7 +17,7 @@ export type UseRealTimeTranscriptInternalProps = RealTimeTranscriptProps & {
17
17
  realtimeTranscriptionData?: Partial<RealTimeTranscriptionData>[];
18
18
  };
19
19
  export type CallControlProps = Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'callControlClassName' | 'callControlConsultClassName' | 'onToggleMute' | 'conferenceEnabled' | 'consultTransferOptions'>>;
20
- export type useCallControlProps = Pick<ControlProps, 'currentTask' | 'logger' | 'deviceType' | 'featureFlags' | 'isMuted' | 'conferenceEnabled' | 'agentId'> & Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'onToggleMute'>>;
20
+ export type useCallControlProps = Pick<ControlProps, 'currentTask' | 'logger' | 'isMuted' | 'conferenceEnabled' | 'agentId'> & Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'onToggleMute'>>;
21
21
  export type useOutdialCallProps = Pick<OutdialCallProps, 'cc' | 'logger'>;
22
22
  export { CAMPAIGN_PREVIEW_OUTBOUND_TYPES, CAMPAIGN_PREVIEW_CAMPAIGN_TYPES } from '@webex/cc-store';
23
23
  export type { RealTimeTranscriptEntry };
@@ -28,14 +28,6 @@ export interface OutdialProps {
28
28
  */
29
29
  isAddressBookEnabled?: boolean;
30
30
  }
31
- /**
32
- * Helper interface for device type checks
33
- */
34
- export interface DeviceTypeFlags {
35
- isBrowser: boolean;
36
- isAgentDN: boolean;
37
- isExtension: boolean;
38
- }
39
31
  /**
40
32
  * Target types for consult/transfer operations
41
33
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@webex/cc-task",
3
3
  "description": "Webex Contact Center Widgets: Task",
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.37",
5
+ "version": "1.28.0-next.38",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "publishConfig": {
@@ -23,8 +23,8 @@
23
23
  "deploy:npm": "yarn npm publish"
24
24
  },
25
25
  "dependencies": {
26
- "@webex/cc-components": "1.28.0-next.34",
27
- "@webex/cc-store": "1.28.0-next.19",
26
+ "@webex/cc-components": "1.28.0-next.35",
27
+ "@webex/cc-store": "1.28.0-next.20",
28
28
  "mobx-react-lite": "^4.1.0",
29
29
  "react-error-boundary": "^6.0.0"
30
30
  },