mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 00:24:54 +00:00
14 lines
631 B
TypeScript
14 lines
631 B
TypeScript
import { ApiProperty, PickType } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
import { i18nValidationMessage as i18n } from 'nestjs-i18n';
|
|
import { ChangePasswordRequestDto } from './change-password.request.dto';
|
|
export class setJuniorPasswordRequestDto extends PickType(ChangePasswordRequestDto, [
|
|
'newPassword',
|
|
'confirmNewPassword',
|
|
]) {
|
|
@ApiProperty()
|
|
@IsString({ message: i18n('validation.IsNumberString', { path: 'general', property: 'auth.qrToken' }) })
|
|
@IsNotEmpty({ message: i18n('validation.IsNotEmpty', { path: 'general', property: 'auth.qrToken' }) })
|
|
qrToken!: string;
|
|
}
|