mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
21 lines
884 B
TypeScript
21 lines
884 B
TypeScript
/**
|
|
* 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) {}
|