feat(bookings): allow transferring bookings to another PIC

Add UI modal and button to reassign bookings to different contacts
Create API endpoint and repository method to handle PIC transfers
This commit is contained in:
2026-05-08 14:36:01 +08:00
parent 13e85cfcd0
commit f77f4390b6
5 changed files with 277 additions and 2 deletions

View File

@@ -150,6 +150,10 @@ export interface CancelBookingConfirmationResponse {
alreadyPending: boolean
}
export interface TransferBookingPicResponse {
booking: PublicBooking
}
export function isBookingStatus(value: string | null | undefined): value is BookingStatus {
return value === 'pending' || value === 'confirmed'
}