smrt
Open the smrt source on GitHub Switch to dark color scheme
← All packages
Business & operations v0.62.10 New

@happyvertical/smrt-bookings

Operator-managed reservations of developer time and supervision windows, with provider availability, exact assent, and transactional capacity checks.

Source ↗

What it gives you

Operator-managed reservations of developer time and supervision windows, with provider availability, exact assent, and transactional capacity checks.

  1. 01An offering has a kind and a unit of hour, day, week, or month
  2. 02A proposal freezes the unit price, the quantity, the total, and the agreed wording
  3. 03Confirmation locks the booking and the provider, then checks every window against declared availability
  4. 04Canceling a confirmed booking releases its capacity in the same transaction

Request, propose, assent, confirm

A contact or an operator requests an enabled offering. An operator proposes a provider, windows, and terms. The contact assents to that exact proposal. An operator then confirms it. Requests, proposals, and assent reserve no capacity.

Two kinds of capacity

A developer-hour offering is exclusive: it blocks every overlapping reservation. A supervision-day offering draws on supervision windows with a positive whole-number capacity. Each booking consumes one unit, and the offering needs a project and an approved plan. Two active supervision reservations for one project and one interval are refused.

PostgreSQL, applied by the host

The host applies migrateBookingsV1 and then migrateBookingsV2 once each through its deployment migration ledger. BookingService owns its transaction and uses READ COMMITTED. The package creates no schema on demand.

What the package leaves to the host

The package starts no agents, collects no payment, sends no notification, and writes no Commerce record. The host supplies the trusted actor and tenant, and verifies customer, provider, project, and plan relationships.