1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00
This commit is contained in:
James Cook 2021-11-24 20:24:46 +00:00
parent bff540c396
commit 0e5e762203
3 changed files with 10 additions and 10 deletions

View file

@ -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"
}
}

View file

@ -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<RequestOptions, 'origin' | 'path'>
) {

6
types.d.ts vendored
View file

@ -87,9 +87,9 @@ export interface BehaviourPoint {
export type BehaviourResponse = Array<BehaviourPoint>
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