MOBILE-4483 types: Add some types available since 4.4
parent
7142177e47
commit
cbbf61088a
|
@ -2105,6 +2105,7 @@ export type AddonModQuizGetAttemptSummaryWSParams = {
|
|||
*/
|
||||
export type AddonModQuizGetAttemptSummaryWSResponse = {
|
||||
questions: CoreQuestionQuestionWSData[];
|
||||
totalunanswered?: number; // @since 4.4. Total unanswered questions.
|
||||
warnings?: CoreWSExternalWarning[];
|
||||
};
|
||||
|
||||
|
|
|
@ -1659,6 +1659,8 @@ export type CoreCourseCompletionActivityStatus = {
|
|||
description: string; // Completion description.
|
||||
};
|
||||
}[];
|
||||
isoverallcomplete?: boolean; // @since 4.4.
|
||||
// Whether the overall completion state of this course module should be marked as complete or not.
|
||||
offline?: boolean; // Whether the completions is offline and not yet synced.
|
||||
};
|
||||
|
||||
|
@ -1840,6 +1842,8 @@ export type CoreCourseModuleWSCompletionData = {
|
|||
istrackeduser?: boolean; // @since 3.11. Whether completion is being tracked for this user.
|
||||
uservisible?: boolean; // @since 3.11. Whether this activity is visible to the user.
|
||||
details?: CoreCourseModuleWSRuleDetails[]; // @since 3.11. An array of completion details.
|
||||
isoverallcomplete?: boolean; // @since 4.4.
|
||||
// Whether the overall completion state of this course module should be marked as complete or not.
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -627,8 +627,9 @@ export type CoreQuestionQuestionWSData = {
|
|||
hasautosavedstep?: boolean; // Whether this question attempt has autosaved data.
|
||||
flagged: boolean; // Whether the question is flagged or not.
|
||||
questionnumber?: string; // @since 4.2. Question ordering number in the quiz.
|
||||
state?: string; // The state where the question is in. It won't be returned if the user cannot see it.
|
||||
status?: string; // Current formatted state of the question.
|
||||
state?: string; // The state where the question is in terms of correctness.
|
||||
// It will not be returned if the user cannot see it due to the quiz display correctness settings.
|
||||
status?: string; // Human readable state of the question.
|
||||
stateclass?: // @since 4.4. A machine-readable class name for the state that this question attempt is in.
|
||||
typeof QUESTION_TODO_STATE_CLASSES[number] |
|
||||
typeof QUESTION_INVALID_STATE_CLASSES[number] |
|
||||
|
|
|
@ -1162,6 +1162,7 @@ type CoreEnrolSearchUsersWSParams = {
|
|||
searchanywhere: boolean; // Find a match anywhere, or only at the beginning.
|
||||
page: number; // Page number.
|
||||
perpage: number; // Number per page.
|
||||
contextid?: number; // @since 4.4. Context ID.
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue