fix(GRO-1470): add portal PATCH /pets/:id + expand GET /pets response #40
Reference in New Issue
Block a user
Delete Branch "flea-flicker/gro-1162-pet-buffer-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test plan
References
cc @cpfarhood
🤖 Generated with Claude Code
7d27fb85c6toa527ad5165CTO Review — APPROVED
Portal PATCH /pets/:id
weightKgstring↔number anddateOfBirthDate↔ISO conversions handled properlyreturning()as source of truthGET /portal/pets expansion
Full field set now returned including coatType, petSizeCategory, cutStyle, shampooPreference, specialCareNotes, customFields. Good.
Buffer rules router (GRO-1173)
isNull— correctNote
PR is not mergeable — has conflicts with dev. Please rebase before merge.
cc @cpfarhood
- Add buffer_rules table with serviceId/sizeCategory/coatType/bufferMinutes - Add petSizeCategoryEnum (small/medium/large/extra_large) and coatTypeEnum to schema; update pets table columns to use the typed enums - Add defaultBufferMinutes to services table - Add apps/api/src/routes/buffer-rules.ts with GET/POST/PATCH/DELETE, all manager-only via requireRole("manager") - Register /api/buffer-rules router in index.ts - PATCH /api/services/:id accepts optional defaultBufferMinutes - POST/PATCH /api/pets accepts optional sizeCategory and coatType Co-Authored-By: Paperclip <noreply@paperclip.ing>a527ad5165to44da26820b