diff --git a/package.json b/package.json index 9872a7c..a9e7ec3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "classcharts-api", - "version": "0.0.7", + "version": "0.0.8", "description": "", "repository": { "url": "https://github.com/jamesatjaminit/classcharts-api" @@ -14,16 +14,16 @@ "author": "", "license": "ISC", "dependencies": { - "undici": "^4.9.2" + "undici": "^4.10.3" }, "files": [ "dist/**", "types.d.ts" ], "devDependencies": { - "@types/node": "^16.11.6", - "typedoc": "^0.22.7", - "typescript": "^4.4.4" + "@types/node": "^16.11.10", + "typedoc": "^0.22.9", + "typescript": "^4.5.2" }, "types": "./dist/index.d.ts" -} \ No newline at end of file +} diff --git a/src/client.ts b/src/client.ts index f23ed21..d9d161c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -32,7 +32,7 @@ export class ClasschartsClient { this.studentCode = String(studentCode) this.dateOfBirth = String(dateOfBirth) } - private async makeAuthedRequest( + public async makeAuthedRequest( path: string, options: Omit ) { diff --git a/types.d.ts b/types.d.ts index 94ce4ee..99b85be 100644 --- a/types.d.ts +++ b/types.d.ts @@ -87,9 +87,9 @@ export interface BehaviourPoint { export type BehaviourResponse = Array export type DisplayDate = 'due_date' | 'issue_date' export interface GetHomeworkOptions { - displayDate: DisplayDate - fromDate: string - toDate: string + displayDate?: DisplayDate + fromDate?: string + toDate?: string } export interface Homework { lesson: string