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

@@ -1,5 +1,17 @@
import { ApiProperty } from '@nestjs/swagger';
export interface LeagueSettings {
maxDrivers: number;
sessionDuration?: number;
visibility?: string;
}
export interface SocialLinks {
discordUrl?: string;
youtubeUrl?: string;
websiteUrl?: string;
}
export class LeagueWithCapacityDTO {
@ApiProperty()
id!: string;
@@ -14,21 +26,13 @@ export class LeagueWithCapacityDTO {
ownerId!: string;
@ApiProperty()
settings!: {
maxDrivers: number;
sessionDuration?: number;
visibility?: string;
};
settings!: LeagueSettings;
@ApiProperty()
createdAt!: string;
@ApiProperty({ nullable: true })
socialLinks?: {
discordUrl?: string;
youtubeUrl?: string;
websiteUrl?: string;
};
socialLinks?: SocialLinks;
@ApiProperty()
usedSlots!: number;