feat(scheduling): pluggable captcha (Turnstile) on public booking

This commit is contained in:
Ronni Baslund
2026-06-07 09:02:35 +02:00
parent e1a77b085f
commit e33b7f18a3
7 changed files with 197 additions and 2 deletions
@@ -20,6 +20,13 @@ export class SlotsQueryDto {
export class CreateHoldDto {
@IsISO8601()
startUtc!: string
// Optional captcha token (e.g. Cloudflare Turnstile). Enforced server-side
// only when a captcha provider is configured; ignored otherwise.
@IsOptional()
@IsString()
@MaxLength(4096)
captchaToken?: string
}
export class CreateBookingDto {
@@ -48,6 +55,13 @@ export class CreateBookingDto {
@IsString()
@MaxLength(64)
holdId?: string
// Optional captcha token (e.g. Cloudflare Turnstile). Enforced server-side
// only when a captcha provider is configured; ignored otherwise.
@IsOptional()
@IsString()
@MaxLength(4096)
captchaToken?: string
}
export class CancelBookingDto {