Skip to content

Commit f54838e

Browse files
committed
🔖 Version 3.0
1 parent def6902 commit f54838e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+727
-795
lines changed

.babelrc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"presets": [
3-
["@babel/env", { "targets": { "node": "12" } }],
4-
["@babel/typescript"]
5-
],
6-
"plugins": [
7-
"@babel/plugin-transform-runtime",
8-
"@babel/proposal-class-properties",
9-
"@babel/proposal-object-rest-spread"
10-
]
11-
}
2+
"presets": [
3+
["@babel/env", { "targets": { "node": "12" } }],
4+
["@babel/typescript"]
5+
],
6+
"plugins": [
7+
"@babel/plugin-transform-runtime",
8+
"@babel/proposal-object-rest-spread",
9+
["@babel/plugin-proposal-decorators", { "legacy": true }],
10+
["@babel/proposal-class-properties", { "loose": true }],
11+
"babel-plugin-transform-typescript-metadata"
12+
]
13+
}

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ This project is loosely based on [Vulcan API](https://github.com/kapi2289/vulcan
1414

1515
[Gitbook docs](https://capure.gitbook.io/vulcan-api-js/)
1616

17-
## Work in progress
18-
19-
Please note: Due to the recent deprecation of the API, this library was using, it is currently undergoing major changes and thus might be unusable!
20-
2117
## License
2218

2319
[MIT](https://github.com/Capure/vulcan-api-js/blob/master/LICENSE)

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vulcan-api-js",
3-
"version": "2.1.0",
3+
"version": "3.0.0",
44
"description": "Unofficial API for UONET+ e-register from Vulcan.",
55
"main": "lib/index.js",
66
"scripts": {
@@ -21,12 +21,14 @@
2121
"node-forge": ">=0.10.0",
2222
"node-webcrypto-ossl": "^1.0.42",
2323
"querystring": "^0.2.0",
24+
"reflect-metadata": "^0.1.13",
2425
"uuid": "^8.3.0"
2526
},
2627
"devDependencies": {
2728
"@babel/cli": "^7.12.8",
2829
"@babel/core": "^7.12.9",
2930
"@babel/plugin-proposal-class-properties": "^7.12.1",
31+
"@babel/plugin-proposal-decorators": "^7.16.5",
3032
"@babel/plugin-transform-runtime": "^7.12.17",
3133
"@babel/preset-env": "^7.12.7",
3234
"@babel/preset-typescript": "^7.12.7",
@@ -39,6 +41,7 @@
3941
"@types/node-fetch": "^2.5.7",
4042
"@types/node-forge": "^0.9.5",
4143
"@types/uuid": "^8.3.0",
44+
"babel-plugin-transform-typescript-metadata": "^0.3.2",
4245
"dotenv": "^8.2.0",
4346
"rollup": "^2.39.1",
4447
"typescript": "^4.1.2"

src/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import {
1111
nowIso,
1212
uuid,
1313
} from "./utils";
14-
import { Student } from "./interfaces/student";
15-
import { Account } from "./interfaces/account";
14+
import { Student, Account } from "./models";
1615

1716
export class Api {
1817
private keystore: Keystore;

src/apiHelper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
DATA_BY_PUPIL,
77
DATA_ROOT,
88
} from "./endpoints";
9-
import { Account } from "./interfaces/account";
10-
import { Period } from "./interfaces/period";
11-
import { Student } from "./interfaces/student";
9+
import { Account } from "./models";
10+
import { Period } from "./models";
11+
import { Student } from "./models";
1212

1313
export enum FilterType {
1414
BY_PUPIL = 0,

src/hebe_interfaces/account.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/hebe_interfaces/attachment.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/hebe_interfaces/changedLesson.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/hebe_interfaces/dateTime.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/hebe_interfaces/grade.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)