This commit is contained in:
dahyeon committed 2026-05-02 11:51:01 -07:00
1 parent fedca82c81
commit 3607e3a99c
13 files changed
+1838 -793

No files matched your search

@@ -7,9 +7,14 @@ import {
IsInt,
IsMongoId,
IsOptional,
Max,
Min,
ValidateNested,
} from 'class-validator';
import { AUCTION_TOP_TIER_THRESHOLDS } from '../../global/database/schema';
export type AuctionTopTierThreshold =
(typeof AUCTION_TOP_TIER_THRESHOLDS)[number];
class CaptainAssignmentDto {
@IsInt()
@@ -18,6 +23,12 @@ class CaptainAssignmentDto {
@IsMongoId()
userId!: string;
@IsOptional()
@IsInt()
@Min(100)
@Max(100000)
initialPoints?: number;
}
export class StartAuctionDto {
@@ -30,9 +41,14 @@ export class StartAuctionDto {
@IsOptional()
@IsInt()
@Min(1)
@Min(100)
@Max(100000)
initialPoints?: number;
@IsOptional()
@IsEnum(AUCTION_TOP_TIER_THRESHOLDS)
topTierThreshold?: AuctionTopTierThreshold;
@IsOptional()
@IsInt()
@Min(5)
@@ -58,3 +74,9 @@ export class SoldDto {
@IsEnum(['TOP', 'JGL', 'MID', 'ADC', 'SUP'])
assignedPosition?: 'TOP' | 'JGL' | 'MID' | 'ADC' | 'SUP';
}
export class UndoAuctionDto {
@IsInt()
@Min(1)
sequence!: number;
}