// 面试状态
export type InterviewStatus = 'pending' | 'ongoing' | 'completed'

// 面试阶段
export enum InterviewStage {
  InfoCollection = 10,
  SalesSkill = 20,
  SalesMindset = 30,
  Quality = 40,
  Motivation = 50,
  Completed = 60,
}

// 面试阶段名称
export const InterviewStageLabel: Record<number, string> = {
  [InterviewStage.InfoCollection]: '信息收集',
  [InterviewStage.SalesSkill]: '销售技能',
  [InterviewStage.SalesMindset]: '销售观',
  [InterviewStage.Quality]: '素质项',
  [InterviewStage.Motivation]: '求职动机',
  [InterviewStage.Completed]: '面试完成',
}

// 评分维度
export interface Scores {
  salesSkill: number
  salesMindset: number
  quality: number
  motivation: number
  total: number
}

// 评分维度名称
export const ScoreLabels: Record<keyof Omit<Scores, 'total'>, string> = {
  salesSkill: '销售技能',
  salesMindset: '销售观',
  quality: '素质项',
  motivation: '求职动机',
}

// 用户端面试流程状态
export type InterviewFlowStep = 'welcome' | 'info' | 'incoming' | 'incall' | 'complete'

// RTC 连接状态
export type RTCConnectionState = 'disconnected' | 'connecting' | 'connected' | 'failed'
