mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +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.
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import {
|
|
docsyncConnectionInputSchema,
|
|
docsyncConnectionTestSchema,
|
|
docsyncLinkInputSchema,
|
|
docsyncLinkUpdateSchema,
|
|
docsyncResolveConflictSchema,
|
|
docsyncScopeCreateSchema,
|
|
docsyncSyncNowSchema,
|
|
} from '@trek/shared';
|
|
|
|
import { createZodDto } from 'nestjs-zod';
|
|
|
|
/**
|
|
* Zod DTOs for every mutating route in this domain.
|
|
*
|
|
* The boot-time ratchet in common/validate-body-contracts.ts refuses to start
|
|
* if a mutation takes an unwrapped body, so these are not optional decoration.
|
|
*/
|
|
export class DocsyncConnectionDto extends createZodDto(docsyncConnectionInputSchema) {}
|
|
export class DocsyncConnectionTestDto extends createZodDto(docsyncConnectionTestSchema) {}
|
|
export class DocsyncLinkDto extends createZodDto(docsyncLinkInputSchema) {}
|
|
export class DocsyncLinkUpdateDto extends createZodDto(docsyncLinkUpdateSchema) {}
|
|
export class DocsyncScopeCreateDto extends createZodDto(docsyncScopeCreateSchema) {}
|
|
export class DocsyncResolveConflictDto extends createZodDto(docsyncResolveConflictSchema) {}
|
|
export class DocsyncSyncNowDto extends createZodDto(docsyncSyncNowSchema) {}
|