mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 23:46:35 +00:00
8fd46c4c18
Small requests from the discussions, each built end to end: planner and map (cycling mode, date first headings, clear a day, stay times per day, off-route stops, map lock, compact unplanned markers, pending stays, cable car, transit quick picks), places (location filter, category from OSM, open in maps, geo: link, image from an attachment, enrichment on file import, places near a pin, place name language, Amap first in China), lists and costs (packed counter, inherited sharing, Markdown to-dos, payment notes, bookings CSV, my plan PDF), sharing (unplanned places, travel only, without photos), journey (photo zoom, drafts, photo order, trip suggestion, day jump), atlas (region counter, region bucket list, places per country), vacay half company holidays, studio copy and paste plus the book's own layouts, and RESTORE_FROM_BACKUP for a first start restore.
19 lines
831 B
TypeScript
19 lines
831 B
TypeScript
import { createZodDto } from 'nestjs-zod';
|
|
import {
|
|
mapsSearchRequestSchema,
|
|
mapsNearbyRequestSchema,
|
|
mapsAutocompleteRequestSchema,
|
|
mapsResolveUrlRequestSchema,
|
|
} from '@trek/shared';
|
|
|
|
/**
|
|
* Server-side createZodDto wrappers over the @trek/shared maps contracts. The
|
|
* global ZodValidationPipe (APP_PIPE in app.module.ts) validates any @Body()
|
|
* parameter typed with one of these classes by metatype — the Zod schemas in
|
|
* shared/ remain the single source of truth for the wire contract.
|
|
*/
|
|
export class MapsSearchDto extends createZodDto(mapsSearchRequestSchema) {}
|
|
export class MapsNearbyDto extends createZodDto(mapsNearbyRequestSchema) {}
|
|
export class MapsAutocompleteDto extends createZodDto(mapsAutocompleteRequestSchema) {}
|
|
export class MapsResolveUrlDto extends createZodDto(mapsResolveUrlRequestSchema) {}
|