refactor driver module (wip)

This commit is contained in:
2025-12-22 10:24:40 +01:00
parent e7dbec4a85
commit 9da528d5bd
108 changed files with 842 additions and 947 deletions

View File

@@ -6,11 +6,11 @@ import { LeagueSettingsDTO } from './LeagueSettingsDTO';
export class LeagueWithCapacityDTO {
@ApiProperty()
@IsString()
id: string;
id!: string;
@ApiProperty()
@IsString()
name: string;
name!: string;
// ... other properties of LeagueWithCapacityDTO
@ApiProperty({ nullable: true })
@@ -20,20 +20,20 @@ export class LeagueWithCapacityDTO {
@ApiProperty()
@IsString()
ownerId: string;
ownerId!: string;
@ApiProperty({ type: () => LeagueSettingsDTO })
@ValidateNested()
@Type(() => LeagueSettingsDTO)
settings: LeagueSettingsDTO;
settings!: LeagueSettingsDTO;
@ApiProperty()
@IsString()
createdAt: string;
createdAt!: string;
@ApiProperty()
@IsNumber()
usedSlots: number;
usedSlots!: number;
@ApiProperty({ type: () => Object, nullable: true }) // Using Object for generic social links
@IsOptional()