1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 03:56:59 +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", "name": "classcharts-api",
"version": "0.0.7", "version": "0.0.8",
"description": "", "description": "",
"repository": { "repository": {
"url": "https://github.com/jamesatjaminit/classcharts-api" "url": "https://github.com/jamesatjaminit/classcharts-api"
@ -14,16 +14,16 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"undici": "^4.9.2" "undici": "^4.10.3"
}, },
"files": [ "files": [
"dist/**", "dist/**",
"types.d.ts" "types.d.ts"
], ],
"devDependencies": { "devDependencies": {
"@types/node": "^16.11.6", "@types/node": "^16.11.10",
"typedoc": "^0.22.7", "typedoc": "^0.22.9",
"typescript": "^4.4.4" "typescript": "^4.5.2"
}, },
"types": "./dist/index.d.ts" "types": "./dist/index.d.ts"
} }

View file

@ -32,7 +32,7 @@ export class ClasschartsClient {
this.studentCode = String(studentCode) this.studentCode = String(studentCode)
this.dateOfBirth = String(dateOfBirth) this.dateOfBirth = String(dateOfBirth)
} }
private async makeAuthedRequest( public async makeAuthedRequest(
path: string, path: string,
options: Omit<RequestOptions, 'origin' | 'path'> 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 BehaviourResponse = Array<BehaviourPoint>
export type DisplayDate = 'due_date' | 'issue_date' export type DisplayDate = 'due_date' | 'issue_date'
export interface GetHomeworkOptions { export interface GetHomeworkOptions {
displayDate: DisplayDate displayDate?: DisplayDate
fromDate: string fromDate?: string
toDate: string toDate?: string
} }
export interface Homework { export interface Homework {
lesson: string lesson: string