mirror of
https://github.com/vernu/textbee.git
synced 2026-02-20 07:34:00 -05:00
40 lines
857 B
TypeScript
40 lines
857 B
TypeScript
import { ApiProperty } from '@nestjs/swagger'
|
|
|
|
export class RegisterInputDTO {
|
|
@ApiProperty({ type: String, required: true })
|
|
name: string
|
|
|
|
@ApiProperty({ type: String, required: true })
|
|
email: string
|
|
|
|
@ApiProperty({ type: String })
|
|
primaryPhone?: string
|
|
|
|
@ApiProperty({ type: String, required: true })
|
|
password: string
|
|
}
|
|
|
|
export class LoginInputDTO {
|
|
@ApiProperty({ type: String, required: true })
|
|
email: string
|
|
|
|
@ApiProperty({ type: String, required: true })
|
|
password: string
|
|
}
|
|
|
|
export class RequestResetPasswordInputDTO {
|
|
@ApiProperty({ type: String, required: true })
|
|
email: string
|
|
}
|
|
|
|
export class ResetPasswordInputDTO {
|
|
@ApiProperty({ type: String, required: true })
|
|
email: string
|
|
|
|
@ApiProperty({ type: String, required: true })
|
|
otp: string
|
|
|
|
@ApiProperty({ type: String, required: true })
|
|
newPassword: string
|
|
}
|