UNPKG

scheduling-sdk

Version:

Brought to you by Recal - A TypeScript SDK for scheduling functionality

21 lines 1.68 kB
export type { TimeSlot, BusyTime, SchedulingOptions } from './types/scheduling.types'; export type { WeeklyAvailability, DaySchedule, DayOfWeek } from './types/availability.types'; export { workDays, weekendDays } from './types/availability.types'; export { Scheduler } from './core/scheduler'; export { AvailabilityScheduler } from './availability/scheduler'; export { addMinutes, subtractMinutes, minutesBetween, isSameDay, startOfDay, endOfDay } from './helpers/time/date-math'; export { mergeBusyTimes, isOverlapping } from './helpers/busy-time/merge'; export { hasOverlap, isSlotAvailable } from './helpers/busy-time/overlap'; export { applyPadding } from './helpers/busy-time/padding'; export { generateSlots, calculateFirstSlotStart, type SlotGenerationOptions } from './helpers/slot/generator'; export { filterAvailableSlots } from './helpers/slot/filter'; export { calculateMinutesFromHour, alignToInterval, findNextSlotBoundary, getTimeWithinDay, } from './helpers/time/alignment'; export { validateTimeRange } from './validators/time-range.validator'; export { validateOptions, validateDuration, validateSplit, validateOffset, validatePadding, } from './validators/options.validator'; export { validateWeeklyAvailability } from './validators/availability.validator'; export { weeklyAvailabilityToBusyTimes } from './helpers/availability/converter'; export { MS_PER_MINUTE, MS_PER_HOUR, MS_PER_DAY, MINUTES_PER_HOUR, HOURS_PER_DAY } from './utils/constants'; import type { BusyTime } from './types/scheduling.types'; import { Scheduler } from './core/scheduler'; export declare function createScheduler(busyTimes?: BusyTime[]): Scheduler; //# sourceMappingURL=index.d.ts.map