Skip to content

Commit 475731e

Browse files
[auto-generated] Update structure file for main
1 parent f75e4b7 commit 475731e

File tree

1 file changed

+61
-3
lines changed

1 file changed

+61
-3
lines changed

structure/main.ts

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14104,14 +14104,17 @@ export type AddonModQuizGetQuizzesByCoursesWSResponse = {
1410414104
autosaveperiod?: number; // Auto-save delay.
1410514105
hasfeedback?: number; // Whether the quiz has any non-blank feedback text.
1410614106
hasquestions?: number; // Whether the quiz has questions.
14107+
precreateattempts?: number; // Whether attempt pre-creation is enabled.
1410714108
}[];
1410814109
warnings?: CoreWSExternalWarning[];
1410914110
};
1411014111

1411114112
/**
1411214113
* Params of mod_quiz_get_user_attempts WS.
1411314114
*
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
1411514118
*/
1411614119
type AddonModQuizGetUserAttemptsWSParams = {
1411714120
quizid: number; // Quiz instance id.
@@ -14123,7 +14126,9 @@ type AddonModQuizGetUserAttemptsWSParams = {
1412314126
/**
1412414127
* Data returned by mod_quiz_get_user_attempts WS.
1412514128
*
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
1412714132
*/
1412814133
export type AddonModQuizGetUserAttemptsWSResponse = {
1412914134
attempts: {
@@ -14139,7 +14144,7 @@ export type AddonModQuizGetUserAttemptsWSResponse = {
1413914144
currentpage?: number; // Attempt current page.
1414014145
preview?: number; // Whether is a preview attempt or not.
1414114146
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.
1414314148

1414414149
timestart?: number; // Time when the attempt was started.
1414514150
timefinish?: number; // Time when the attempt was submitted.
@@ -14183,6 +14188,59 @@ export type AddonModQuizGetUserBestGradeWSResponse = {
1418314188
warnings?: CoreWSExternalWarning[];
1418414189
};
1418514190

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.
14240+
}[];
14241+
warnings?: CoreWSExternalWarning[];
14242+
};
14243+
1418614244
/**
1418714245
* Params of mod_quiz_process_attempt WS.
1418814246
*

0 commit comments

Comments
 (0)