fix: formatted transaction type

This commit is contained in:
Ahmed Bouhuolia
2025-06-15 15:22:19 +02:00
parent bcae2dae03
commit bbf9ef9bc2
29 changed files with 248 additions and 67 deletions

View File

@@ -1,10 +1,16 @@
import { IsNotEmpty, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class AuthSigninDto {
@ApiProperty({ example: 'password123', description: 'User password' })
@IsNotEmpty()
@IsString()
password: string;
@ApiProperty({
example: 'user@example.com',
description: 'User email address',
})
@IsNotEmpty()
@IsString()
email: string;

View File

@@ -1,19 +1,27 @@
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class AuthSignupDto {
@ApiProperty({ example: 'John', description: 'User first name' })
@IsNotEmpty()
@IsString()
firstName: string;
@ApiProperty({ example: 'Doe', description: 'User last name' })
@IsNotEmpty()
@IsString()
lastName: string;
@ApiProperty({
example: 'john.doe@example.com',
description: 'User email address',
})
@IsNotEmpty()
@IsString()
@IsEmail()
email: string;
@ApiProperty({ example: 'password123', description: 'User password' })
@IsNotEmpty()
@IsString()
password: string;