import { DeveloperRole, ExperienceLevel, MilestoneStatus } from './user-types'; export interface IOnboardingSession { id: string; userId: string; projectId: string; role: DeveloperRole; status: OnboardingStatus; currentStep: string; progress: IOnboardingProgress; startedAt: Date; lastActivityAt: Date; estimatedCompletionAt?: Date; completedAt?: Date; sessionData: Record; } export type OnboardingStatus = 'not_started' | 'role_selection' | 'environment_setup' | 'project_exploration' | 'hands_on_learning' | 'team_integration' | 'completed' | 'paused' | 'abandoned'; export interface IOnboardingProgress { totalMilestones: number; completedMilestones: number; currentMilestone?: string; estimatedTimeRemaining: number; actualTimeSpent: number; completionPercentage: number; milestoneProgress: Record; } export interface MilestoneProgress { status: MilestoneStatus; startedAt?: Date; completedAt?: Date; timeSpent: number; attempts: number; hints: string[]; notes: string; validationResults?: IValidationResult[]; } export interface IValidationResult { criterion: string; passed: boolean; message: string; timestamp: Date; evidence?: string; } export interface ILearningPath { id: string; name: string; description: string; role: DeveloperRole; experienceLevel: ExperienceLevel; projectType: string; estimatedTimeMinutes: number; prerequisites: string[]; steps: ILearningStep[]; resources: ILearningResource[]; } export interface ILearningStep { id: string; name: string; description: string; type: LearningStepType; category: string; estimatedTimeMinutes: number; difficulty: 'easy' | 'medium' | 'hard'; isRequired: boolean; prerequisites: string[]; objectives: string[]; instructions: string[]; hints: string[]; validationCriteria: string[]; resources: string[]; handsonTasks: IHandsOnTask[]; } export type LearningStepType = 'introduction' | 'exploration' | 'documentation' | 'hands_on' | 'validation' | 'reflection' | 'collaboration'; export interface IHandsOnTask { id: string; name: string; description: string; type: TaskType; instructions: string[]; expectedOutput: string; validationScript?: string; hints: string[]; resources: string[]; } export type TaskType = 'file_exploration' | 'code_reading' | 'code_modification' | 'environment_setup' | 'command_execution' | 'testing' | 'documentation_creation' | 'problem_solving'; export interface ILearningResource { id: string; name: string; type: ResourceType; url?: string; content?: string; filePath?: string; description: string; tags: string[]; difficulty: 'easy' | 'medium' | 'hard'; estimatedTimeMinutes: number; } export type ResourceType = 'documentation' | 'video' | 'tutorial' | 'example' | 'reference' | 'tool' | 'cheatsheet' | 'best_practices'; export interface IOnboardingFeedback { id: string; userId: string; projectId: string; role: DeveloperRole; sessionId: string; feedbackType: FeedbackType; rating: number; comments: string; suggestions: string[]; timestamp: Date; isAnonymous: boolean; } export type FeedbackType = 'step_completion' | 'milestone_completion' | 'session_completion' | 'overall_experience' | 'resource_quality' | 'difficulty_level' | 'time_estimation'; export interface IOnboardingAnalytics { projectId: string; role: DeveloperRole; totalSessions: number; completedSessions: number; averageCompletionTime: number; averageRating: number; commonStuckPoints: IStuckPoint[]; improvementSuggestions: string[]; popularResources: IResourceUsage[]; dropoffPoints: IDropoffPoint[]; } export interface IStuckPoint { stepId: string; stepName: string; frequency: number; averageTimeSpent: number; commonIssues: string[]; } export interface IResourceUsage { resourceId: string; resourceName: string; accessCount: number; averageTimeSpent: number; userRating: number; } export interface IDropoffPoint { stepId: string; stepName: string; dropoffRate: number; commonReasons: string[]; } export interface IPersonalization { userId: string; adaptiveSettings: IAdaptiveSettings; learningStyle: string; preferredPace: 'slow' | 'normal' | 'fast'; difficultyPreference: 'guided' | 'challenging' | 'expert'; interactionPreferences: IInteractionPreferences; } export interface IAdaptiveSettings { autoAdjustDifficulty: boolean; skipKnownConcepts: boolean; provideExtraHelp: boolean; customizeExamples: boolean; adaptPacing: boolean; } export interface IInteractionPreferences { verbosity: 'minimal' | 'normal' | 'detailed'; encouragementLevel: 'low' | 'medium' | 'high'; hintDelay: number; autoAdvance: boolean; showProgress: boolean; } //# sourceMappingURL=onboarding-types.d.ts.map