Skip to content

0.2.0

Compare
Choose a tag to compare
@OneLiL05 OneLiL05 released this 05 Sep 12:43
· 62 commits to main since this release
129641d

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")