Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

571 B
Raw Blame
import { autoBackupSettingsRequestSchema } from '@trek/shared';

import { createZodDto } from 'nestjs-zod';

/**
 * Server-side createZodDto wrapper over the @trek/shared backup contract.
 *
 * The schema is a passthrough that pins only the well-known toggles: the body is
 * normalised server-side by parseAutoBackupBody, which coerces strings and
 * clamps ranges, and the handler maps its throw to the 400. Tightening here
 * would take that answer away from the service.
 */
export class AutoBackupSettingsDto extends createZodDto(autoBackupSettingsRequestSchema) {}