1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

chore: pnpm

This commit is contained in:
James Cook 2021-10-29 14:59:24 +01:00
parent 18c80a13b9
commit 67fe788090
4 changed files with 33 additions and 87 deletions

View file

@ -82,11 +82,6 @@ export class ClasschartsClient {
this.studentId = user.id
this.studentName = user.name
}
/**
*
* @returns {Promise<Student>}
*/
async getStudentInfo(): Promise<Student> {
if (!this.authCookies) throw new Error('Not authenticated')
const data = await this.makeAuthedRequest(API_BASE + '/ping', {
@ -122,13 +117,6 @@ export class ClasschartsClient {
}
)
}
/**
* Gets all the homework from
* @param displayDate {DisplayDate}
* @param fromDate
* @param toDate
* @returns {Promise<Array<Homework>>}
*/
async listHomeworks(
options: GetHomeworkOptions | null
): Promise<HomeworksResponse> {
@ -154,11 +142,6 @@ export class ClasschartsClient {
}
return data
}
/**
*
* @param date
* @returns {Promise<LessonsResponse>}
*/
async getLessons(options: GetLessonsOptions): Promise<LessonsResponse> {
if (!this.authCookies) throw new Error('Not authenticated')
if (!options?.date) throw new Error('No date specified')