Implement session outcomes, step timing, and live timer fixes
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import type { TreeStructure } from './tree'
|
||||
import type { Step, StepContent } from './step'
|
||||
|
||||
export type SessionOutcome = 'resolved' | 'escalated' | 'workaround' | 'unresolved'
|
||||
|
||||
export interface DecisionRecord {
|
||||
node_id: string
|
||||
question: string | null
|
||||
@@ -9,6 +11,9 @@ export interface DecisionRecord {
|
||||
notes: string | null
|
||||
automation_used: boolean
|
||||
timestamp: string
|
||||
entered_at?: string | null
|
||||
exited_at?: string | null
|
||||
duration_seconds?: number | null
|
||||
attachments: string[]
|
||||
}
|
||||
|
||||
@@ -45,6 +50,8 @@ export interface Session {
|
||||
custom_steps: CustomStep[]
|
||||
started_at: string
|
||||
completed_at: string | null
|
||||
outcome: SessionOutcome | null
|
||||
outcome_notes: string | null
|
||||
ticket_number: string | null
|
||||
client_name: string | null
|
||||
exported: boolean
|
||||
@@ -72,6 +79,11 @@ export interface SessionExport {
|
||||
include_tree_info?: boolean
|
||||
}
|
||||
|
||||
export interface SessionComplete {
|
||||
outcome: SessionOutcome
|
||||
outcome_notes?: string
|
||||
}
|
||||
|
||||
// Navigation state for active session
|
||||
export interface SessionNavigationState {
|
||||
activeSession: Session | null
|
||||
|
||||
Reference in New Issue
Block a user