You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: structure/main.ts
+61-3Lines changed: 61 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14104,14 +14104,17 @@ export type AddonModQuizGetQuizzesByCoursesWSResponse = {
14104
14104
autosaveperiod?: number; // Auto-save delay.
14105
14105
hasfeedback?: number; // Whether the quiz has any non-blank feedback text.
14106
14106
hasquestions?: number; // Whether the quiz has questions.
14107
+
precreateattempts?: number; // Whether attempt pre-creation is enabled.
14107
14108
}[];
14108
14109
warnings?: CoreWSExternalWarning[];
14109
14110
};
14110
14111
14111
14112
/**
14112
14113
* Params of mod_quiz_get_user_attempts WS.
14113
14114
*
14114
-
* WS Description: Return a list of attempts for the given quiz and user.
14115
+
* WS Description: Return a list of attempts for the given quiz and user. (Deprecated in favour of mod_quiz_get_user_quiz_attempts).
14116
+
*
14117
+
* @deprecatedonmoodle since ADDVERSIONHERE. This WS method is deprecated
14115
14118
*/
14116
14119
type AddonModQuizGetUserAttemptsWSParams = {
14117
14120
quizid: number; // Quiz instance id.
@@ -14123,7 +14126,9 @@ type AddonModQuizGetUserAttemptsWSParams = {
14123
14126
/**
14124
14127
* Data returned by mod_quiz_get_user_attempts WS.
14125
14128
*
14126
-
* WS Description: Return a list of attempts for the given quiz and user.
14129
+
* WS Description: Return a list of attempts for the given quiz and user. (Deprecated in favour of mod_quiz_get_user_quiz_attempts).
14130
+
*
14131
+
* @deprecatedonmoodle since ADDVERSIONHERE. This WS method is deprecated
14127
14132
*/
14128
14133
export type AddonModQuizGetUserAttemptsWSResponse = {
14129
14134
attempts: {
@@ -14139,7 +14144,7 @@ export type AddonModQuizGetUserAttemptsWSResponse = {
14139
14144
currentpage?: number; // Attempt current page.
14140
14145
preview?: number; // Whether is a preview attempt or not.
14141
14146
state?: string; // The current state of the attempts. 'inprogress',
14142
-
// 'overdue', 'finished' or 'abandoned'.
14147
+
// 'overdue', 'finished' or 'abandoned'. For backwards compatibility, attempts in 'submitted' state will return 'finished' and attempts in 'notstarted' state will return 'inprogress'. To get attempts with all real states, call get_user_quiz_attempts() instead.
14143
14148
14144
14149
timestart?: number; // Time when the attempt was started.
14145
14150
timefinish?: number; // Time when the attempt was submitted.
@@ -14183,6 +14188,59 @@ export type AddonModQuizGetUserBestGradeWSResponse = {
14183
14188
warnings?: CoreWSExternalWarning[];
14184
14189
};
14185
14190
14191
+
/**
14192
+
* Params of mod_quiz_get_user_quiz_attempts WS.
14193
+
*
14194
+
* WS Description: Return a list of attempts for the given quiz and user.
14195
+
*/
14196
+
type AddonModQuizGetUserQuizAttemptsWSParams = {
14197
+
quizid: number; // Quiz instance id.
14198
+
userid?: number; // User id, empty for current user.
14199
+
status?: string; // Quiz status: all, finished or unfinished.
14200
+
includepreviews?: boolean; // Whether to include previews or not.
14201
+
};
14202
+
14203
+
/**
14204
+
* Data returned by mod_quiz_get_user_quiz_attempts WS.
14205
+
*
14206
+
* WS Description: Return a list of attempts for the given quiz and user.
14207
+
*/
14208
+
export type AddonModQuizGetUserQuizAttemptsWSResponse = {
14209
+
attempts: {
14210
+
id?: number; // Attempt id.
14211
+
quiz?: number; // Foreign key reference to the quiz that was attempted.
14212
+
userid?: number; // Foreign key reference to the user whose attempt this is.
14213
+
attempt?: number; // Sequentially numbers this students attempts at this quiz.
14214
+
uniqueid?: number; // Foreign key reference to the question_usage that holds the
14215
+
// details of the the question_attempts that make up this quiz
14216
+
// attempt.
14217
+
14218
+
layout?: string; // Attempt layout.
14219
+
currentpage?: number; // Attempt current page.
14220
+
preview?: number; // Whether is a preview attempt or not.
14221
+
state?: string; // The current state of the attempts. 'inprogress',
14222
+
// 'overdue', 'finished' or 'abandoned'.
14223
+
14224
+
timestart?: number; // Time when the attempt was started.
14225
+
timefinish?: number; // Time when the attempt was submitted.
14226
+
// 0 if the attempt has not been submitted yet.
14227
+
14228
+
timemodified?: number; // Last modified time.
14229
+
timemodifiedoffline?: number; // Last modified time via webservices.
14230
+
timecheckstate?: number; // Next time quiz cron should check attempt for
14231
+
// state changes. NULL means never check.
14232
+
14233
+
sumgrades?: number; // Total marks for this attempt.
14234
+
gradeitemmarks?: { // If the quiz has additional grades set up, the mark for each grade for this attempt.
14235
+
name: string; // The name of this grade item.
14236
+
grade: number; // The grade this attempt earned for this item.
14237
+
maxgrade: number; // The total this grade is out of.
14238
+
}[];
14239
+
gradednotificationsenttime?: number; // Time when the student was notified that manual grading of their attempt was complete.
0 commit comments