Skip to content

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
high5-bot committed Feb 16, 2024
1 parent c9fa544 commit b546e88
Show file tree
Hide file tree
Showing 44 changed files with 311 additions and 263 deletions.
6 changes: 6 additions & 0 deletions dist/webuntis.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,12 @@ declare class Base {
* @returns {Promise.<Array>}
*/
getStatusData(validateSession?: boolean): Promise<StatusData>;
/**
* Get the current school year
* @param [validateSession=true]
* @returns {Promise.<SchoolYear>}
*/
getCurrentSchoolyear(validateSession?: boolean): Promise<SchoolYear>;
/**
* Convert a JS Date Object to a WebUntis date string
* @param {Date} date
Expand Down
16 changes: 16 additions & 0 deletions dist/webuntis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/webuntis.js.map

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions dist/webuntis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,22 @@ const _Base = class _Base {
async getStatusData(validateSession = true) {
return await this._request("getStatusData", {}, validateSession);
}
/**
* Get the current school year
* @param [validateSession=true]
* @returns {Promise.<SchoolYear>}
*/
async getCurrentSchoolyear(validateSession = true) {
const data = await this._request("getCurrentSchoolyear", {}, validateSession);
if (!data)
throw new Error("Failed to retrieve current school year");
return {
name: data.name,
id: data.id,
startDate: _Base.convertUntisDate(data.startDate),
endDate: _Base.convertUntisDate(data.endDate)
};
}
/**
* Convert a JS Date Object to a WebUntis date string
* @param {Date} date
Expand Down
2 changes: 1 addition & 1 deletion dist/webuntis.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

80 changes: 41 additions & 39 deletions docs/classes/InternalWebuntisSecretLogin.html

Large diffs are not rendered by default.

80 changes: 41 additions & 39 deletions docs/classes/WebUntis.html

Large diffs are not rendered by default.

80 changes: 41 additions & 39 deletions docs/classes/WebUntisAnonymousAuth.html

Large diffs are not rendered by default.

80 changes: 41 additions & 39 deletions docs/classes/WebUntisQR.html

Large diffs are not rendered by default.

80 changes: 41 additions & 39 deletions docs/classes/WebUntisSecretAuth.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/WebUntisDay.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/enums/WebUntisElementType.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Absence.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Absences.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/CodesEntity.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ColorEntity.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Department.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Exam.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Excuse.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Holiday.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Homework.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Inbox.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Inboxmessage.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Klasse.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Lesson.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/LsEntity.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/MessagesOfDay.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Messagesender.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/interfaces/NewsWidget.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Room.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/SchoolYear.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/ShortData.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/StatusData.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Student.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Subject.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Teacher.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/TimeUnit.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/Timegrid.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/WebAPITimetable.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/WebElement.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/WebElementData.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/Authenticator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/types/URLClass.html

Large diffs are not rendered by default.

0 comments on commit b546e88

Please sign in to comment.