@twilio/flex-ui
Version:
Twilio Flex UI
39 lines (38 loc) • 1.21 kB
TypeScript
export interface UIInteractionEvent {
name: string;
status: "start" | "complete" | "degraded" | "error" | "cancelled";
category?: string;
details?: Record<string, string | undefined>;
duration?: number;
client_timestamp?: string;
}
export declare enum JOURNEYS {
AGENT_LOGIN = "agent-login-journey",
TASK_TRANSFER = "task-transfer-journey",
OUTBOUND_CALL = "outbound-call-journey",
TASK_COMPLETION = "task-completion-journey"
}
export interface UIInteractionTraceEvent extends UIInteractionEvent {
flowName: JOURNEYS;
status: UIInteractionEventStatus;
}
export interface CorrelationEvent {
flow_name: string;
flow_sid: string;
trace_sid: string;
correlation_sid: string;
}
export interface FormattedUIInteractionEvent {
interaction_name: string;
interaction_status: "start" | "complete" | "degraded" | "error" | "cancelled";
interaction_category?: string;
interaction_duration_ms?: number;
interaction_details_map?: Record<string, string | undefined>;
}
export declare enum UIInteractionEventStatus {
START = "start",
COMPLETE = "complete",
ERROR = "error",
DEGRADED = "degraded",
CANCELLED = "cancelled"
}