tRPC router
plan
Batch count of plan items per event/festival. Returns a map of itemId → count. Used by city pages to populate attendee counts on event cards without N+1 queries.
Procedures (20)
Input
{
itemType: "festival" | "event" | "goal" | "workshop"
itemId: string
}Tables
Input
{
itemType: "festival" | "event"
itemIds: string[] // items 1..100
}Tables
Input
void
Tables
Input
void
Tables
Input
{
itemType: "festival" | "event" | "goal" | "workshop"
itemId: string
metadata?: Record<string, string>
}Input
{
itemType: "festival" | "event" | "goal" | "workshop"
itemId: string
metadata: Record<string, string>
}Tables
Input
{
itemType: "festival" | "event" | "goal" | "workshop"
itemId: string
}Input
{
festivalSlug?: string // len 1..120
itemType?: "festival" | "event"
itemId?: string // len 1..120
}Input
void
Input
{
username: string // len 1..∞
}Input
void
Input
{
targetKind: "dancer" | "event" | "festival"
targetId: string // len 1..200
decision: "yes" | "skip"
festivalSlug?: string // len 1..200
}Tables
Input
{
targetKind: "dancer" | "event" | "festival"
targetId: string // len 1..200
}Tables
Input
void
Input
void
Tables
Input
{
itemType: "festival" | "event"
itemIds: string[] // items 1..50
}Tables
Input
{
itemType: "festival" | "event"
itemId: string // len 1..120
share: boolean
}Tables
Input
{
itemType: "festival" | "event"
itemId: string // len 1..120
}Tables
Input
void
Input
void
Tables
Source: server/trpc/routers/plan.ts