mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +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.
27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
import {
|
|
collabNoteCreateRequestSchema,
|
|
collabNoteUpdateRequestSchema,
|
|
collabPollCreateRequestSchema,
|
|
collabPollVoteRequestSchema,
|
|
collabLinkCreateRequestSchema,
|
|
collabLinkUpdateRequestSchema,
|
|
collabMessageCreateRequestSchema,
|
|
collabReactionRequestSchema,
|
|
} from '@trek/shared';
|
|
|
|
import { createZodDto } from 'nestjs-zod';
|
|
|
|
/**
|
|
* Body DTOs for the collab controller. The global ZodValidationPipe (APP_PIPE
|
|
* in app.module.ts) validates any @Body() typed with these by metatype; the
|
|
* shared Zod schemas remain the single source of truth for the wire contract.
|
|
*/
|
|
export class CollabNoteCreateDto extends createZodDto(collabNoteCreateRequestSchema) {}
|
|
export class CollabNoteUpdateDto extends createZodDto(collabNoteUpdateRequestSchema) {}
|
|
export class CollabPollCreateDto extends createZodDto(collabPollCreateRequestSchema) {}
|
|
export class CollabPollVoteDto extends createZodDto(collabPollVoteRequestSchema) {}
|
|
export class CollabLinkCreateDto extends createZodDto(collabLinkCreateRequestSchema) {}
|
|
export class CollabLinkUpdateDto extends createZodDto(collabLinkUpdateRequestSchema) {}
|
|
export class CollabMessageCreateDto extends createZodDto(collabMessageCreateRequestSchema) {}
|
|
export class CollabReactionDto extends createZodDto(collabReactionRequestSchema) {}
|