Releases: OneLiL05/nurekit
Releases · OneLiL05/nurekit
v0.5.3
v0.5.0
0.4.3
0.4.2
0.2.3
0.2.2
0.2.1
Features:
- Added functionality for getting schedule for teacher and auditorium;
// Get teacher's schedule
const teacherSchedule = await nurekit.teachers.getSchedule({
auditoriumName: "Боцюра О. А.",
startTime: "2023-09-11",
endTime: "2023-09-15",
});
// Get auditorium's schedule
const schedule = await nurekit.auditoriums.getSchedule({
auditoriumName: "287",
startTime: "2023-09-11",
endTime: "2023-09-15",
});
0.2.0
New features
Simplified work with dates in getSchedule
method
From now, instead of providing timestamp to startTime
and endTime
parameters, you can use string. For example:
/// Before
const schedule = await nurekit.groups.getSchedule({
groupName: "пзпі-23-5",
startTime: 1693170000,
endTime: 1694811599,
});
// After
const schedule = await nurekit.groups.getSchedule({
groupName: "пзпі-23-5",
startTime: "2023-09-11",
endTime: "2023-09-15",
});
Added JSDoc
From now, you don't more need to always check documentation to know how one or another method works, thanks to JSDoc you will get tips and short doc about every method right from your code editor
Fixes
Simplified findOne
method
Thanks to the @bluin4308's suggestion, you don't more need to provide object with name
or shortName
fields to findOne
method parameters, just use string. For example:
// Before
const auditorium = await nurekit.auditoriums.findOne({ name: "285" })
// After
const auditorium = await nurekit.auditoriums.findOne("285")