/** * Assessment Items Types * * Types for QTI assessment item resources. */ import type { AssessmentItemType, FeedbackBlock, FeedbackInline, ItemMetadata, ModalFeedback, OutcomeDeclaration, ResponseDeclaration, ResponseProcessing } from './base'; /** * Assessment item entity. */ export interface AssessmentItem { identifier: string; title: string; type: AssessmentItemType; qtiVersion: string; timeDependent: boolean; adaptive: boolean; responseDeclarations?: ResponseDeclaration[]; outcomeDeclarations?: OutcomeDeclaration[]; responseProcessing?: ResponseProcessing; metadata?: ItemMetadata; /** Raw QTI XML string */ rawXml: string; /** * Parsed XML→JSON content. * Structure varies by item type. */ content: Record; modalFeedback?: ModalFeedback[]; feedbackInline?: FeedbackInline[]; feedbackBlock?: FeedbackBlock[]; createdAt: string; updatedAt: string; __v?: number; } /** * Result of processing a response. * * Feedback is only present when the item has response processing * with feedback identifiers configured. */ export interface ProcessResponseResult { /** Score (0.0–1.0) for the response. */ score: number; /** Feedback for the response (only present when item has feedback configured). */ feedback?: { identifier: string; value: string; }; } //# sourceMappingURL=assessment-items.d.ts.map