@webex/cc-task 1.28.0-next.57 → 1.28.0-next.59

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,7 @@
1
1
  import { AddressBookEntriesResponse, AddressBookEntrySearchParams, ITask, TaskUIControls } from '@webex/contact-center';
2
2
  import { useCallControlProps, UseTaskListProps, UseTaskProps, UseRealTimeTranscriptInternalProps, RealTimeTranscriptEntry, useOutdialCallProps, TargetType, ParticipantDropAnnouncement } from './task.types';
3
- import { DestinationType, PaginatedListParams, ConferenceParticipantDropTarget } from '@webex/cc-store';
3
+ import { BuddyDetails, DestinationType, PaginatedListParams, ConferenceParticipantDropTarget } from '@webex/cc-store';
4
+ import type { CallControlAISummaryProps } from '@webex/cc-components';
4
5
  import { TelephonyToastAction, WxAppTelephonyErrorDisplay } from './wxapp-error.utils';
5
6
  import { OutdialAniEntriesResponse } from '@webex/contact-center/dist/types/services/config/types';
6
7
  export declare const useTaskList: (props: UseTaskListProps) => {
@@ -8,8 +9,8 @@ export declare const useTaskList: (props: UseTaskListProps) => {
8
9
  acceptTask: (task: ITask) => void;
9
10
  declineTask: (task: ITask) => void;
10
11
  onTaskSelect: (task: ITask) => void;
11
- taskActionErrors: any;
12
- clearTaskActionError: any;
12
+ taskActionErrors: Record<string, import("@webex/cc-store").OfferActionErrorDisplay>;
13
+ clearTaskActionError: (interactionId: string) => void;
13
14
  };
14
15
  export declare const useRealTimeTranscript: (props: UseRealTimeTranscriptInternalProps) => {
15
16
  liveTranscriptEntries: RealTimeTranscriptEntry[];
@@ -19,12 +20,26 @@ export declare const useIncomingTask: (props: UseTaskProps) => {
19
20
  incomingTask: ITask;
20
21
  accept: () => void;
21
22
  reject: () => void;
22
- acceptControl: any;
23
- declineControl: any;
24
- offerActionError: any;
23
+ acceptControl: import("@webex/contact-center").TaskUIControlState;
24
+ declineControl: {
25
+ isEnabled: boolean;
26
+ isVisible: boolean;
27
+ };
28
+ offerActionError: import("@webex/cc-store").OfferActionErrorDisplay;
25
29
  clearOfferActionError: () => void;
26
30
  };
31
+ /**
32
+ * The initiating agent's consult/transfer summary and the wrap-up summary of a task.
33
+ * Undefined when the SDK reports both as disabled for the task.
34
+ */
35
+ export declare const getAISummaryProps: (currentTask?: ITask) => CallControlAISummaryProps | undefined;
27
36
  export declare const useCallControl: (props: useCallControlProps) => {
37
+ telephonyToast: {
38
+ error: WxAppTelephonyErrorDisplay;
39
+ action: TelephonyToastAction;
40
+ };
41
+ dismissTelephonyToast: () => void;
42
+ aiSummary?: CallControlAISummaryProps;
28
43
  currentTask: ITask;
29
44
  isHeld: boolean;
30
45
  endCall: () => void;
@@ -61,24 +76,19 @@ export declare const useCallControl: (props: useCallControlProps) => {
61
76
  conferenceEnabled: boolean;
62
77
  secondsUntilAutoWrapup: number;
63
78
  cancelAutoWrapup: () => void;
64
- conferenceParticipants: any;
65
- conferenceParticipantDropRoster: any;
79
+ conferenceParticipants: import("@webex/cc-store").Participant[];
80
+ conferenceParticipantDropRoster: import("@webex/cc-store").ConferenceParticipantDropRoster;
66
81
  pendingParticipantDropId: string;
67
82
  participantDropAnnouncement: ParticipantDropAnnouncement;
68
- participantDropConfirmationTarget: any;
83
+ participantDropConfirmationTarget: ConferenceParticipantDropTarget;
69
84
  participantDropConfirmationDisabled: boolean;
70
85
  requestParticipantDrop: (target: ConferenceParticipantDropTarget) => Promise<void>;
71
86
  confirmParticipantDrop: () => Promise<void>;
72
87
  cancelParticipantDropConfirmation: () => void;
73
- getAddressBookEntries: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
74
- getEntryPoints: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
75
- getQueuesFetcher: ({ page, pageSize, search }: PaginatedListParams) => Promise<any>;
88
+ getAddressBookEntries: ({ page, pageSize, search }: PaginatedListParams) => Promise<AddressBookEntriesResponse>;
89
+ getEntryPoints: ({ page, pageSize, search }: PaginatedListParams) => Promise<import("@webex/contact-center").EntryPointListResponse>;
90
+ getQueuesFetcher: ({ page, pageSize, search }: PaginatedListParams) => Promise<import("@webex/contact-center").ContactServiceQueuesResponse>;
76
91
  isCampaignCall: boolean;
77
- telephonyToast: {
78
- error: WxAppTelephonyErrorDisplay;
79
- action: TelephonyToastAction;
80
- };
81
- dismissTelephonyToast: () => void;
82
92
  };
83
93
  export declare const useOutdialCall: (props: useOutdialCallProps) => {
84
94
  startOutdial: (destination: string, origin?: string) => void;
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.57",
5
+ "version": "1.28.0-next.59",
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.54",
27
- "@webex/cc-store": "1.28.0-next.36",
26
+ "@webex/cc-components": "1.28.0-next.56",
27
+ "@webex/cc-store": "1.28.0-next.37",
28
28
  "mobx-react-lite": "^4.1.0",
29
29
  "react-error-boundary": "^6.0.0"
30
30
  },