-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
34 lines (31 loc) · 951 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import UntisClient from "./src/UntisClient.js";
import searchSchools from "./src/helpers/search_schools.js";
export default class UntisLib {
/**
* Create a client for the Untis APIs
*
* @typedef {import("./src/helpers/classes/School")} School
* @typedef {import("./src/UntisClient")} UntisClient
*
* @param {School} school - The school you want to connect to
*
* @return {UntisClient}
*/
static client(school) {
return new UntisClient(school);
}
/**
* Search for schools matching the specified search query
*
* @typedef {import("./src/helpers/classes/School")} School
*
* @param {string} query - What to search for
*
* @return {School[]} All schools matching the specified search query
*
* @example searchSchools("My Hero Academia")
*/
static async searchSchools(query) {
return await searchSchools(query);
}
}