UNPKG

@webhare/moodle-webservice

Version:

Moodle Web Service API client with intellisense and typechecking

24 lines (23 loc) 864 B
import IMoodleWSParams from "./IMoodleWSParams"; import IMoodleWSStatusResponse from "./IMoodleWSStatusResponse"; export default interface IMoodleWSEnrol { guest: { /** Return guest enrolment instance information. */ getInstanceInfo: (params: IMoodleWSParams) => Promise<any>; }; manual: { /** Manual enrol users */ enrolUsers: (params: IMoodleWSParams) => Promise<any>; /** Manual unenrol users */ unenrolUsers: (params: IMoodleWSParams) => Promise<any>; }; self: { /** Self enrol the current user in the given course. */ enrolUser: (params: { courseid: number; token?: string; }) => Promise<IMoodleWSStatusResponse>; /** self enrolment instance information. */ getInstanceInfo: (params: IMoodleWSParams) => Promise<any>; }; }