Batch account-balance evaluate and format range inputs with separators and gram labels.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import {
|
||||
IsInt,
|
||||
IsNumber,
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
Max,
|
||||
MaxLength,
|
||||
Min,
|
||||
ValidateIf,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
@@ -33,3 +36,18 @@ export class UpdateAccountBalanceSettingsDto {
|
||||
@IsObject()
|
||||
weights?: Record<string, AccountBalanceRangeBody | null>;
|
||||
}
|
||||
|
||||
export class EvaluateAccountBalancesDto {
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
offset?: number;
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(2000)
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user