Files
TREK/server/src/nest/plugins/plugins.dto.ts
T
Maurice 724c88c201 style: format server and shared with prettier
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.
2026-10-10 21:23:37 +02:00

43 lines
1.6 KiB
TypeScript

import {
pluginActivateRequestSchema,
pluginEgressHostsRequestSchema,
pluginInstallRequestSchema,
pluginInstanceConfigUpdateSchema,
pluginLinkRequestSchema,
pluginRetrustRequestSchema,
pluginRouteRequestSchema,
pluginUninstallRequestSchema,
pluginUpdateRequestSchema,
pluginUserSettingsUpdateRequestSchema,
} from '@trek/shared';
import { createZodDto } from 'nestjs-zod';
/**
* Nest DTO classes for the plugin surfaces — thin wrappers over the shared
* contracts in @trek/shared (plugins.schema.ts), which carry the schemas, the
* inferred types both sides import, and the journey-contract doctrine notes
* (#1842) explaining why each body stays loose. Nothing here may add or remove
* validation: the schema of record lives in shared.
*/
export class PluginInstallDto extends createZodDto(pluginInstallRequestSchema) {}
export class PluginLinkDto extends createZodDto(pluginLinkRequestSchema) {}
export class PluginActivateDto extends createZodDto(pluginActivateRequestSchema) {}
export class PluginUninstallDto extends createZodDto(pluginUninstallRequestSchema) {}
export class PluginRetrustDto extends createZodDto(pluginRetrustRequestSchema) {}
export class PluginUpdateDto extends createZodDto(pluginUpdateRequestSchema) {}
export class PluginEgressHostsDto extends createZodDto(pluginEgressHostsRequestSchema) {}
export class PluginConfigDto extends createZodDto(pluginInstanceConfigUpdateSchema) {}
export class PluginUserSettingsUpdateDto extends createZodDto(pluginUserSettingsUpdateRequestSchema) {}
export class PluginRouteDto extends createZodDto(pluginRouteRequestSchema) {}