Variable adminApiConst

adminApi: {
    addNewStaffUser: (
        token: string,
        email: string,
        firstname: string,
        lastname: string,
        staff: number,
        roleid: number,
    ) => Promise<any>;
    addNewStudentUser: (
        token: string,
        email: string,
        studentnumber: string,
        firstname: string,
        lastname: string,
        studentGroupId: undefined | null | number,
    ) => Promise<any>;
    changeRoleId: (
        email: string,
        roleId: string,
        token: string,
    ) => Promise<any>;
    checkStudentEmailExists: (email: string, token: string) => Promise<any>;
    checkStudentNumberExists: (
        studentnumber: string,
        token: string,
    ) => Promise<any>;
    deleteAttendanceByAttendanceId: (
        token: string,
        attendanceid: number,
    ) => Promise<any>;
    deleteUserFeedback: (feedbackId: number, token: string) => Promise<any>;
    fetchAllLectures: (token: string) => Promise<any>;
    fetchAllRoles: (token: string) => Promise<any>;
    fetchAllRolesSpecial: (token: string) => Promise<any>;
    fetchAttendances: (
        token: string,
        courseid: string,
        lectureid: string,
    ) => Promise<any>;
    fetchErrorLogs: (token: string, lineLimit: number) => Promise<any>;
    fetchLogs: (token: string, lineLimit: number) => Promise<any>;
    fetchServerSettings: (token: string) => Promise<any>;
    fetchUserById: (userid: number, token: string) => Promise<any>;
    fetchUsers: (token: string) => Promise<any>;
    fetchUsersCourse: (token: string) => Promise<any>;
    getCourseCounts: (token: string) => Promise<any>;
    getCourses: (token: string) => Promise<any>;
    getLectureAndAttendanceCount: (token: string) => Promise<any>;
    getRoleCounts: (token: string) => Promise<any>;
    getServerStatus: (token: string) => Promise<any>;
    getUserFeedback: (token: string) => Promise<any>;
    getWorklogCounts: (token: string) => Promise<any>;
    getWorkLogCourses: (token: string) => Promise<any>;
    updateServerSettings: (
        speedofhash: number,
        leewayspeed: number,
        timeouttime: number,
        attendancethreshold: number,
        token: string,
    ) => Promise<any>;
    updateUser: (token: string, user: any) => Promise<any>;
} = ...

Type declaration

  • addNewStaffUser: (
        token: string,
        email: string,
        firstname: string,
        lastname: string,
        staff: number,
        roleid: number,
    ) => Promise<any>
  • addNewStudentUser: (
        token: string,
        email: string,
        studentnumber: string,
        firstname: string,
        lastname: string,
        studentGroupId: undefined | null | number,
    ) => Promise<any>
  • changeRoleId: (email: string, roleId: string, token: string) => Promise<any>
  • checkStudentEmailExists: (email: string, token: string) => Promise<any>
  • checkStudentNumberExists: (studentnumber: string, token: string) => Promise<any>
  • deleteAttendanceByAttendanceId: (token: string, attendanceid: number) => Promise<any>
  • deleteUserFeedback: (feedbackId: number, token: string) => Promise<any>
  • fetchAllLectures: (token: string) => Promise<any>
  • fetchAllRoles: (token: string) => Promise<any>
  • fetchAllRolesSpecial: (token: string) => Promise<any>
  • fetchAttendances: (token: string, courseid: string, lectureid: string) => Promise<any>
  • fetchErrorLogs: (token: string, lineLimit: number) => Promise<any>
  • fetchLogs: (token: string, lineLimit: number) => Promise<any>
  • fetchServerSettings: (token: string) => Promise<any>
  • fetchUserById: (userid: number, token: string) => Promise<any>
  • fetchUsers: (token: string) => Promise<any>
  • fetchUsersCourse: (token: string) => Promise<any>
  • getCourseCounts: (token: string) => Promise<any>
  • getCourses: (token: string) => Promise<any>
  • getLectureAndAttendanceCount: (token: string) => Promise<any>
  • getRoleCounts: (token: string) => Promise<any>
  • getServerStatus: (token: string) => Promise<any>
  • getUserFeedback: (token: string) => Promise<any>
  • getWorklogCounts: (token: string) => Promise<any>
  • getWorkLogCourses: (token: string) => Promise<any>
  • updateServerSettings: (
        speedofhash: number,
        leewayspeed: number,
        timeouttime: number,
        attendancethreshold: number,
        token: string,
    ) => Promise<any>
  • updateUser: (token: string, user: any) => Promise<any>