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:
@@ -51,6 +51,20 @@ export function parseBookingRemarkInput(body: {
|
||||
}
|
||||
}
|
||||
|
||||
export function parseBookingPicTransferInput(body: {
|
||||
personInChargeId?: string | null
|
||||
}) {
|
||||
const personInChargeId = typeof body.personInChargeId === 'string'
|
||||
? body.personInChargeId.trim()
|
||||
: ''
|
||||
|
||||
assertBadRequest(personInChargeId, 'Person in charge is required')
|
||||
|
||||
return {
|
||||
personInChargeId
|
||||
}
|
||||
}
|
||||
|
||||
export function buildBookingMessage(booking: PublicBooking, confirmationUrl: string) {
|
||||
return [
|
||||
`I'd like to book tickets for the ${booking.event.title}.`,
|
||||
|
||||
Reference in New Issue
Block a user