@arsendoman/book-publisher-store
Version:
A Nest.js package for book publishing and storing
51 lines (49 loc) • 1.09 kB
text/typescript
import { ApiProperty } from '@nestjs/swagger';
import { IsDate, IsInt, IsNotEmpty, Length, Max, Min } from 'class-validator';
import { BookCategoryEnum } from '../../../../core/enums/book.category.enum';
export class BookCreateDto {
readonly name: string;
readonly authorName: string;
readonly description: string;
readonly photos: string[];
readonly copies: number;
readonly price: number;
readonly category: BookCategoryEnum;
readonly language: string;
readonly datePublished: string;
readonly authorDescription: string;
readonly pagesCount: number;
}