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.

884 B
Raw Blame
/**
 * Server-side createZodDto wrappers over the @trek/shared Dawarich contracts,
 * so the global ZodValidationPipe (APP_PIPE) validates bodies by metatype —
 * the shared Zod schemas stay the single source of truth.
 */
import {
  dawarichAcceptSchema,
  dawarichAtlasAcceptSchema,
  dawarichBucketConfirmSchema,
  dawarichSettingsSchema,
  dawarichSuggestionStateSchemaBody,
} from '@trek/shared';

import { createZodDto } from 'nestjs-zod';

export class DawarichSettingsDto extends createZodDto(dawarichSettingsSchema) {}
export class DawarichAcceptDto extends createZodDto(dawarichAcceptSchema) {}
export class DawarichSuggestionStateDto extends createZodDto(dawarichSuggestionStateSchemaBody) {}
export class DawarichBucketConfirmDto extends createZodDto(dawarichBucketConfirmSchema) {}
export class DawarichAtlasAcceptDto extends createZodDto(dawarichAtlasAcceptSchema) {}