feat(api): add POST /exam-challenge-completed (#52395)

This commit is contained in:
Tom
2023-12-27 09:10:30 -06:00
committed by GitHub
parent 741ca9338e
commit 1efb22cd34
15 changed files with 842 additions and 64 deletions
+18
View File
@@ -26,6 +26,7 @@ type CompletedChallenge {
id String
isManuallyApproved Boolean? // Undefined
solution String? // Null | Undefined
examResults ExamResults? // Undefined
}
type PartiallyCompletedChallenge {
@@ -79,6 +80,7 @@ model user {
acceptedPrivacyTerms Boolean
// badges Json? // Undefined | { coreTeam [][] } removed, as new API never uses it.
completedChallenges CompletedChallenge[]
completedExams CompletedExam[] // Undefined
currentChallengeId String?
donationEmails String[] // Undefined | String[] (only possible for built in Types like String)
email String
@@ -213,6 +215,22 @@ model Exam {
questions Question[]
}
type CompletedExam {
id String
challengeType Int
completedDate Float // TODO(Post-MVP): Change to DateTime?
examResults ExamResults
}
type ExamResults {
numberOfCorrectAnswers Int
numberOfQuestionsInExam Int
percentCorrect Float
passingPercent Int
passed Boolean
examTimeInSeconds Int
}
type Question {
id String
question String