24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
import { IsString, IsOptional, IsNotEmpty, IsNumber } from 'class-validator';
|
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
|
|
export class RecoverByMnemonicDto {
|
|
@ApiProperty({ example: 10001 })
|
|
@IsNumber()
|
|
accountSequence: number;
|
|
|
|
@ApiProperty({ example: 'abandon ability able about above absent absorb abstract absurd abuse access accident' })
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
mnemonic: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
newDeviceId: string;
|
|
|
|
@ApiPropertyOptional()
|
|
@IsOptional()
|
|
@IsString()
|
|
deviceName?: string;
|
|
}
|