flea-flicker/fix-gro-1370-ts-and-test-errors
CI / Lint & Typecheck (pull_request) Failing after 15s
CI / Test (pull_request) Successful in 20s
CI / Build (pull_request) Has been skipped
CI / Build & Push Docker Images (pull_request) Has been skipped
CI / Update Infra Image Tags (pull_request) Has been skipped
- Fix vi.mock hoisting by importing and, eq, exists, or from db/index.js via async factory (importOriginal) instead of closing over top-level imports - Fix 'row' possibly undefined in makeDeleteChainable returning() with non-null assertion - Fix invalid UUID format in CLIENT_ID/PET_ID constants (must be valid v4 UUIDs to satisfy z.string().uuid() validation in createPetSchema) - Add missing extended fields (coatType, temperamentScore, temperamentFlags, medicalAlerts, preferredCuts) to buildPet factory defaults to match schema - Add §4.15 Public Booking Flow to UAT_PLAYBOOK.md documenting buffer integration (GRO-1172) scheduling engine endpoints Co-Authored-By: Paperclip <noreply@paperclip.ing>
GroomBook API
GroomBook API service — extracted from the groombook/app monorepo.
Overview
This repository contains the GroomBook API service, including:
- REST API endpoints
- Database schema and migrations (via Drizzle ORM)
- Authentication (via Better Auth)
- Background job handlers
Structure
apps/api/ # API service source
packages/db/ # Database schema, migrations, and utilities
packages/types/ # Shared TypeScript types
Setup
pnpm install
cp .env.example .env # Fill in required environment variables
pnpm --filter @groombook/api dev
Docker
docker build -t ghcr.io/groombook/api:latest .
docker run -p 3000:3000 ghcr.io/groombook/api:latest
License
AGPL-3.0-only
Description
Languages
TypeScript
99.3%
JavaScript
0.4%
Dockerfile
0.2%