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:
2026-11-18 13:22:38 +03:30
co-authored by Cursor
parent 5fbdb4495f
commit ae61c321a1
6 changed files with 293 additions and 65 deletions
+18
View File
@@ -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;
}