MOBILE-3640 typings: Change wrong module type names
parent
832dcf8bf2
commit
9b0e4f0f0e
|
@ -467,7 +467,7 @@ export class AddonModAssignProvider {
|
|||
): Promise<{ canviewsubmissions: boolean; submissions?: AddonModAssignSubmission[] }> {
|
||||
const site = await CoreSites.getSite(options.siteId);
|
||||
|
||||
const params: ModAssignGetSubmissionsWSParams = {
|
||||
const params: AddonModAssignGetSubmissionsWSParams = {
|
||||
assignmentids: [assignId],
|
||||
};
|
||||
const preSets: CoreSiteWSPreSets = {
|
||||
|
@ -1681,7 +1681,7 @@ export type AddonModAssignGetAssignmentsWSResponse = {
|
|||
/**
|
||||
* Params of mod_assign_get_submissions WS.
|
||||
*/
|
||||
type ModAssignGetSubmissionsWSParams = {
|
||||
type AddonModAssignGetSubmissionsWSParams = {
|
||||
assignmentids: number[]; // 1 or more assignment ids.
|
||||
status?: string; // Status.
|
||||
since?: number; // Submitted since.
|
||||
|
|
|
@ -2165,7 +2165,7 @@ export class AddonModLessonProvider {
|
|||
const site = await CoreSites.getSite(options.siteId);
|
||||
|
||||
const userId = options.userId || site.getUserId();
|
||||
const params: ModLessonGetUserTimersWSParams = {
|
||||
const params: AddonModLessonGetUserTimersWSParams = {
|
||||
lessonid: lessonId,
|
||||
userid: userId,
|
||||
};
|
||||
|
@ -2176,7 +2176,7 @@ export class AddonModLessonProvider {
|
|||
...CoreSites.getReadingStrategyPreSets(options.readingStrategy), // Include reading strategy preSets.
|
||||
};
|
||||
|
||||
const response = await site.read<ModLessonGetUserTimersWSResponse>('mod_lesson_get_user_timers', params, preSets);
|
||||
const response = await site.read<AddonModLessonGetUserTimersWSResponse>('mod_lesson_get_user_timers', params, preSets);
|
||||
|
||||
return response.timers;
|
||||
}
|
||||
|
@ -4027,7 +4027,7 @@ export type AddonModLessonAttemptsOverviewsAttemptWSData = {
|
|||
/**
|
||||
* Params of mod_lesson_get_user_timers WS.
|
||||
*/
|
||||
export type ModLessonGetUserTimersWSParams = {
|
||||
export type AddonModLessonGetUserTimersWSParams = {
|
||||
lessonid: number; // Lesson instance id.
|
||||
userid?: number; // The user id (empty for current user).
|
||||
};
|
||||
|
@ -4035,7 +4035,7 @@ export type ModLessonGetUserTimersWSParams = {
|
|||
/**
|
||||
* Data returned by mod_lesson_get_user_timers WS.
|
||||
*/
|
||||
export type ModLessonGetUserTimersWSResponse = {
|
||||
export type AddonModLessonGetUserTimersWSResponse = {
|
||||
timers: AddonModLessonUserTimerWSData[];
|
||||
warnings?: CoreWSExternalWarning[];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue