@belalyosry/timeslot-manager
v1.0.7
Published
A reusable and flexible TypeScript library for managing booking time slots with Prisma + PostgreSQL
Maintainers
Readme
@myorg/timeslot-manager
A reusable and flexible TypeScript library for managing booking time slots with Prisma + PostgreSQL. Built following SOLID principles and clean architecture patterns.
✨ Features
- 🎯 Three slot types: Weekly recurring, Flexible one-time, and Day-only slots
- 🔒 Type-safe: Fully written in TypeScript with comprehensive type definitions
- 🗄️ Prisma-powered: Uses Prisma ORM for PostgreSQL
- 🏗️ Clean Architecture: Implements repository and service patterns
- 🚀 Easy setup: Install and start using in minutes
- ⚡ CLI tool: Initialize schema with one command
- 🎨 Flexible API: CRUD operations with booking logic built-in
- 🛡️ Error handling: Custom error classes for better debugging
