import { shareLinkRequestSchema } from '@trek/shared'; import { createZodDto } from 'nestjs-zod'; /** * Server-side createZodDto wrapper over the @trek/shared share-link 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 ShareLinkDto extends createZodDto(shareLinkRequestSchema) {}