@wix/table-reservations-lib
v1.293.0
Published
---
Downloads
6,411
Maintainers
Keywords
Readme
Wix Table Reservations Library
Schedule (@wix/table-reservations-lib/schedule)
normalizeSchedule - convert Schedule to Calendar, example.
getScheduleFromCalendarForDate - get open/close time for provided date from Calendar.
Utils
setHMToDate - generate a new date with provided hours and minutes.
getHMFromShortTimeString - parse hours and minutes from TimeString, return number[] where numbers are [hours, minutes].
Table Management (@wix/table-reservations-lib/tableManagement)
getNextTableName - generate the next table name according to provided tables list.
Timezone (@wix/table-reservations-lib/timeZone)
zonedTimeToUtc - https://www.npmjs.com/package/date-fns-tz#zonedtimetoutc
utcToZonedTime - https://www.npmjs.com/package/date-fns-tz#utctozonedtime
setUtcGmtString - replace a timezone(for example, GMT+0400) in a date string to GMT+0000 string.
