tRPC router
booking
Booking requests — connector model (WeDance holds no money). An organizer requests a date for a bookable space; the venue responds off-platform for now. Public so organizers can request without an account (email required); the caller's dancerId is captured when signed in. Terms must be accepted.
Procedures (6)
Input
{
profileId: string // uuid
}Tables
Input
{
citySlug: string // len 1..∞
}Tables
Input
{
id: string // uuid
}Input
{
spaceId: string // uuid
ticketUrl?: string | ""
email: string // email
name?: string // len 0..160
title?: string // len 0..160
eventType?: string // len 0..40
styles?: string[]
artists?: string[]
organizerHandle?: string // len 0..160
eventDate?: string
startTime?: string // /^\d{2}:\d{2}$/
endTime?: string // /^\d{2}:\d{2}$/
headcount?: number /* int */ // -∞..100000, > 0
message?: string // len 0..2000
termsAccepted: boolean
}Input
{
profileId: string // uuid
}Input
{
spaceId: string // uuid
slots: {
dayOfWeek: number /* int */ // 1..7
startTime: string // /^\d{2}:\d{2}$/
endTime: string // /^\d{2}:\d{2}$/
}[]
}Source: server/trpc/routers/booking.ts