@webex/cc-components 1.28.0-next.26 → 1.28.0-next.28
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,4 +1,11 @@
|
|
|
1
|
-
import type { MEDIA_CHANNEL as MediaChannelType, TaskComponentData } from '../task.types';
|
|
1
|
+
import type { MEDIA_CHANNEL as MediaChannelType, TaskComponentData, CADVariable, CallAssociatedDataMap } from '../task.types';
|
|
2
|
+
/** System CAD variable keys that are already displayed elsewhere in the UI. */
|
|
3
|
+
export declare const SYSTEM_CAD_KEYS: Set<string>;
|
|
4
|
+
/**
|
|
5
|
+
* Returns agent-viewable global variables from a callAssociatedData map,
|
|
6
|
+
* excluding system variables that are already rendered elsewhere.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getAgentViewableGlobalVariables: (callAssociatedData: CallAssociatedDataMap | undefined) => CADVariable[];
|
|
2
9
|
/**
|
|
3
10
|
* Capitalizes the first word of a string
|
|
4
11
|
* @param str - The string to capitalize
|
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
* Represents a single Call Associated Data (CAD) variable on an interaction.
|
|
5
|
+
* Global variables have `global: true` and are set by flow control.
|
|
6
|
+
*/
|
|
7
|
+
export interface CADVariable {
|
|
8
|
+
name: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
value: string;
|
|
11
|
+
type: string;
|
|
12
|
+
agentEditable: boolean;
|
|
13
|
+
agentViewable: boolean;
|
|
14
|
+
global: boolean;
|
|
15
|
+
isSecure: boolean;
|
|
16
|
+
secureKeyId: string;
|
|
17
|
+
secureKeyVersion: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Record of CAD variables keyed by variable name.
|
|
21
|
+
* This is the shape of `callAssociatedData` on the interaction at runtime.
|
|
22
|
+
*/
|
|
23
|
+
export type CallAssociatedDataMap = Record<string, CADVariable>;
|
|
3
24
|
/**
|
|
4
25
|
* Target types for consult/transfer operations
|
|
5
26
|
*/
|