Added import-action classes

ref #22
This commit is contained in:
2020-12-17 16:21:02 +01:00
parent 30952aa14f
commit a8ec0142b0
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
export class ImportRunner {
/**
* The new runner's first name.
*/
@IsString()
@IsNotEmpty()
firstname: string;
/**
* The new runner's middle name.
* Optional.
*/
@IsString()
@IsOptional()
middlename?: string;
/**
* The new runner's last name.
*/
@IsString()
@IsNotEmpty()
lastname: string;
}