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.

827 B
Raw Blame
import {
  roadtripViaBatchRequestSchema,
  roadtripViaCreateRequestSchema,
  roadtripViaReanchorRequestSchema,
  roadtripViaUpdateRequestSchema,
} from '@trek/shared';

import { createZodDto } from 'nestjs-zod';

/**
 * createZodDto wrappers over the @trek/shared road-trip contracts. The global
 * ZodValidationPipe validates any @Body() typed with one of these by metatype, so the
 * schemas in shared/ stay the single source of truth for the wire contract.
 */
export class RoadtripViaCreateDto extends createZodDto(roadtripViaCreateRequestSchema) {}
export class RoadtripViaUpdateDto extends createZodDto(roadtripViaUpdateRequestSchema) {}
export class RoadtripViaReanchorDto extends createZodDto(roadtripViaReanchorRequestSchema) {}
export class RoadtripViaBatchDto extends createZodDto(roadtripViaBatchRequestSchema) {}