UNPKG

scheduling-sdk

Version:

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

33 lines 850 B
export interface TimeSlot { start: Date; end: Date; } export interface BusyTime { start: Date; end: Date; } export interface SchedulingOptions { /** * Duration of each slot in minutes */ slotDuration: number; /** * Padding in minutes to add before and after busy times * @default 0 */ padding?: number; /** * Split interval for slots in minutes * For example, if slotDuration is 30 and slotSplit is 15, * it will generate slots like 14:00-14:30, 14:15-14:45 * @default slotDuration (no splitting) */ slotSplit?: number; /** * Offset in minutes from standard time boundaries * For example, offset of 5 would start slots at :05, :35 instead of :00, :30 * @default 0 */ offset?: number; } //# sourceMappingURL=scheduling.types.d.ts.map