@arsendoman/book-publisher-store
Version:
A Nest.js package for book publishing and storing
42 lines (39 loc) • 871 B
text/typescript
import { ApiProperty } from '@nestjs/swagger';
import { Roles } from 'src/core/entities';
import { IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { Exclude } from 'class-transformer';
import { BookCategoryEnum } from '../../../../core/enums/book.category.enum';
export class RoleUpdateDto {
title: Roles;
_id: string;
}
export class ProfileUpdateDto {
_id: string;
email: string;
username: string;
bio: string;
image: string;
role: RoleUpdateDto;
favoriteCategories: BookCategoryEnum[];
}