Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/@webex/contact-center/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ export type {
AgentLogin,
/** Agent device update information */
AgentProfileUpdate,
/** Contextual information for log entries */
LogContext,
/** Station login response */
StationLoginResponse,
/** Station logout response */
StationLogoutResponse,
/** Team information returned for agent login */
Team,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Export the Profile team shape instead

When widgets import Team to type values from the public Profile returned by register(), this new export resolves to src/types.ts's {id, name} shape, but Profile.teams is declared with the config Team shape (teamId, teamName) and the public examples use profile.teams[0].teamId. That means a selected profile team cannot be assigned to the exported Team type, so the missing public type is still exposed incorrectly; re-export the config Team here or alias one of the two names.

Useful? React with 👍 / 👎.

/** Buddy agents response */
BuddyAgentsResponse,
/** Buddy agents information */
Expand All @@ -120,6 +124,8 @@ export type {
GenericError,
/** Set state response */
SetStateResponse,
/** Parameters for requesting an AI suggested response */
SuggestedResponseParams,
} from './types';

/** Task related types */
Expand All @@ -138,6 +144,10 @@ export type {
ConsultTransferPayLoad,
/** Dialer payload */
DialerPayload,
/** Destination type for task routing */
DestinationType,
/** Payload for campaign preview contact operations */
PreviewContactPayload,
TransferPayLoad,
ResumeRecordingPayload,
WrapupPayLoad,
Expand Down Expand Up @@ -211,6 +221,10 @@ export type {
AuxCode,
/** Team information */
TeamList,
/** Response containing outdial ANI entries */
OutdialAniEntriesResponse,
/** Parameters for fetching outdial ANI entries */
OutdialAniParams,
/** Wrap-up reason information */
WrapUpReason,
/** WebSocket event data */
Expand Down
Loading