@webex/cc-components 1.28.0-next.5 → 1.28.0-next.7

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,15 @@
1
1
  import { ILogger, ITask, IContactCenter, IWrapupCode, BuddyDetails, DestinationType, ContactServiceQueue, AddressBookEntry, EntryPointRecord, FetchPaginatedList, Participant, AddressBookEntrySearchParams, AddressBookEntriesResponse } from '@webex/cc-store';
2
2
  type Enum<T extends Record<string, unknown>> = T[keyof T];
3
+ /**
4
+ * Target types for consult/transfer operations
5
+ */
6
+ export declare const TARGET_TYPE: {
7
+ readonly AGENT: "agent";
8
+ readonly QUEUE: "queue";
9
+ readonly ENTRY_POINT: "entryPoint";
10
+ readonly DIAL_NUMBER: "dialNumber";
11
+ };
12
+ export type TargetType = (typeof TARGET_TYPE)[keyof typeof TARGET_TYPE];
3
13
  /**
4
14
  * Interface representing the TaskProps of a user.
5
15
  */
@@ -344,11 +354,11 @@ export interface ControlProps {
344
354
  /**
345
355
  * Function to set the last target type
346
356
  */
347
- lastTargetType: 'queue' | 'agent';
357
+ lastTargetType: TargetType;
348
358
  /**
349
359
  * Function to set the last target type
350
360
  */
351
- setLastTargetType: (targetType: 'queue' | 'agent') => void;
361
+ setLastTargetType: (targetType: TargetType) => void;
352
362
  controlVisibility: ControlVisibility;
353
363
  secondsUntilAutoWrapup?: number;
354
364
  /**
@@ -415,8 +425,9 @@ export interface OutdialCallProps {
415
425
  getAddressBookEntries: (params: AddressBookEntrySearchParams) => Promise<AddressBookEntriesResponse>;
416
426
  /**
417
427
  * Flag to determine if the address book is enabled.
428
+ * Defaults to true if not provided.
418
429
  */
419
- isAddressBookEnabled: boolean;
430
+ isAddressBookEnabled?: boolean;
420
431
  /**
421
432
  * Boolean indicating if there's an active telephony task.
422
433
  * Used to disable the outdial button when a telephony task is in progress.