@ai-workflow-pack/dtos
v1.0.1
Published
Data Transfer Objects (DTOs) for AI Workflow services
Maintainers
Readme
@ai-workflow/dtos
Data Transfer Objects (DTOs) with validation decorators for AI Workflow microservices.
Installation
npm install @ai-workflow/dtosUsage
import { CreateWorkflowDto, UpdateWorkflowDto } from '@ai-workflow/dtos';
import { validate } from 'class-validator';
const dto = new CreateWorkflowDto();
dto.name = 'My Workflow';
dto.description = 'Workflow description';
const errors = await validate(dto);
if (errors.length > 0) {
console.log('Validation failed:', errors);
}Available DTOs
Auth
LoginDtoRegisterDtoRefreshTokenDtoResetPasswordDtoVerify2FADto
Workflow
CreateWorkflowDtoUpdateWorkflowDtoWorkflowStepDtoExecuteWorkflowDtoPublishVersionDto
Execution
ExecutionDtoExecutionLogDtoExecutionFilterDto
Integration
CreateApiIntegrationDtoCreateDatabaseConnectionDtoTestConnectionDto
Notification
SendNotificationDtoCreateChannelDtoCreateTemplateDto
Features
- ✅ Built-in validation using
class-validator - ✅ Type-safe DTOs
- ✅ Automatic transformation with
class-transformer - ✅ Consistent validation rules across services
License
MIT
