Add account balance claims board with opt-in module and range settings.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import {
|
||||
IsNumber,
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MaxLength,
|
||||
ValidateIf,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
|
||||
export class AccountBalanceRangeBody {
|
||||
@IsNumber()
|
||||
min!: number;
|
||||
|
||||
@IsNumber()
|
||||
max!: number;
|
||||
}
|
||||
|
||||
export class UpdateAccountBalanceSettingsDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(80)
|
||||
firstStageName?: string;
|
||||
|
||||
@IsOptional()
|
||||
@ValidateIf((_, v) => v !== null)
|
||||
@ValidateNested()
|
||||
@Type(() => AccountBalanceRangeBody)
|
||||
rial?: AccountBalanceRangeBody | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsObject()
|
||||
weights?: Record<string, AccountBalanceRangeBody | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user