@webex/cc-task 1.28.0-next.46 → 1.28.0-next.48

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,6 +1,6 @@
1
1
  import { AddressBookEntriesResponse, AddressBookEntrySearchParams, ITask, TaskUIControls } from '@webex/contact-center';
2
- import { useCallControlProps, UseTaskListProps, UseTaskProps, UseRealTimeTranscriptInternalProps, RealTimeTranscriptEntry, useOutdialCallProps, TargetType } from './task.types';
3
- import { DestinationType, PaginatedListParams } from '@webex/cc-store';
2
+ import { useCallControlProps, UseTaskListProps, UseTaskProps, UseRealTimeTranscriptInternalProps, RealTimeTranscriptEntry, useOutdialCallProps, TargetType, ParticipantDropAnnouncement } from './task.types';
3
+ import { DestinationType, PaginatedListParams, ConferenceParticipantDropTarget } 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>;
@@ -32,7 +32,7 @@ export declare const useCallControl: (props: useCallControlProps) => {
32
32
  setIsRecording: import("react").Dispatch<import("react").SetStateAction<boolean>>;
33
33
  buddyAgents: BuddyDetails[];
34
34
  loadingBuddyAgents: boolean;
35
- loadBuddyAgents: () => Promise<void>;
35
+ loadBuddyAgents: (action?: "Consult" | "Transfer") => Promise<void>;
36
36
  transferCall: (to: string, type: DestinationType) => Promise<void>;
37
37
  consultCall: (consultDestination: string, destinationType: DestinationType, allowParticipantsToInteract: boolean) => Promise<void>;
38
38
  endConsultCall: () => Promise<void>;
@@ -55,7 +55,15 @@ export declare const useCallControl: (props: useCallControlProps) => {
55
55
  conferenceEnabled: boolean;
56
56
  secondsUntilAutoWrapup: number;
57
57
  cancelAutoWrapup: () => void;
58
- conferenceParticipants: Participant[];
58
+ conferenceParticipants: any;
59
+ conferenceParticipantDropRoster: any;
60
+ pendingParticipantDropId: string;
61
+ participantDropAnnouncement: ParticipantDropAnnouncement;
62
+ participantDropConfirmationTarget: any;
63
+ participantDropConfirmationDisabled: boolean;
64
+ requestParticipantDrop: (target: ConferenceParticipantDropTarget) => Promise<void>;
65
+ confirmParticipantDrop: () => Promise<void>;
66
+ cancelParticipantDropConfirmation: () => void;
59
67
  getAddressBookEntries: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
60
68
  getEntryPoints: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
61
69
  getQueuesFetcher: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
@@ -1,4 +1,4 @@
1
- import { TaskProps, ControlProps, OutdialCallProps, RealTimeTranscriptComponentProps, RealTimeTranscriptEntry } from '@webex/cc-components';
1
+ import { TaskProps, ControlProps, OutdialCallProps, RealTimeTranscriptComponentProps, RealTimeTranscriptEntry, ParticipantDropAnnouncement } from '@webex/cc-components';
2
2
  import { RealTimeTranscriptionData } from '@webex/cc-store';
3
3
  export type UseTaskProps = Pick<TaskProps, 'incomingTask' | 'logger'> & Partial<Pick<TaskProps, 'onAccepted' | 'onRejected'>>;
4
4
  export type UseTaskListProps = Pick<TaskProps, 'cc' | 'taskList' | 'logger'> & Partial<Pick<TaskProps, 'onTaskAccepted' | 'onTaskDeclined' | 'onTaskSelected'>>;
@@ -16,11 +16,17 @@ export type UseRealTimeTranscriptInternalProps = RealTimeTranscriptProps & {
16
16
  currentTaskId?: string;
17
17
  realtimeTranscriptionData?: Partial<RealTimeTranscriptionData>[];
18
18
  };
19
+ export type PendingParticipantDropRequest = {
20
+ token: symbol;
21
+ taskId: string;
22
+ agentId: string;
23
+ dropTargetId: string;
24
+ };
19
25
  export type CallControlProps = Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'callControlClassName' | 'callControlConsultClassName' | 'onToggleMute' | 'conferenceEnabled' | 'consultTransferOptions'>>;
20
26
  export type useCallControlProps = Pick<ControlProps, 'currentTask' | 'logger' | 'isMuted' | 'conferenceEnabled' | 'agentId'> & Partial<Pick<ControlProps, 'onHoldResume' | 'onEnd' | 'onWrapUp' | 'onRecordingToggle' | 'onToggleMute'>>;
21
27
  export type useOutdialCallProps = Pick<OutdialCallProps, 'cc' | 'logger'>;
22
28
  export { CAMPAIGN_PREVIEW_OUTBOUND_TYPES, CAMPAIGN_PREVIEW_CAMPAIGN_TYPES } from '@webex/cc-store';
23
- export type { RealTimeTranscriptEntry };
29
+ export type { RealTimeTranscriptEntry, ParticipantDropAnnouncement };
24
30
  export interface OutdialProps {
25
31
  /**
26
32
  * Flag to determine if the address book is enabled.
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.46",
5
+ "version": "1.28.0-next.48",
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.43",
27
- "@webex/cc-store": "1.28.0-next.27",
26
+ "@webex/cc-components": "1.28.0-next.45",
27
+ "@webex/cc-store": "1.28.0-next.29",
28
28
  "mobx-react-lite": "^4.1.0",
29
29
  "react-error-boundary": "^6.0.0"
30
30
  },