mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 03:56:59 +00:00
yes
This commit is contained in:
parent
bff540c396
commit
0e5e762203
3 changed files with 10 additions and 10 deletions
12
package.json
12
package.json
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
6
types.d.ts
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue