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.

515 B
Raw Blame
import { tripInviteLinkCreateRequestSchema } from '@trek/shared';

import { createZodDto } from 'nestjs-zod';

/**
 * Server-side createZodDto wrapper over the @trek/shared trip-invite contract.
 * The global ZodValidationPipe (APP_PIPE in app.module.ts) validates any
 * @Body() parameter typed with this class by metatype — the Zod schema in
 * shared/ remains the single source of truth for the wire contract.
 */
export class TripInviteLinkCreateDto extends createZodDto(tripInviteLinkCreateRequestSchema) {}