website cleanup

This commit is contained in:
2025-12-24 21:44:58 +01:00
parent 9b683a59d3
commit d78854a4c6
277 changed files with 6141 additions and 2693 deletions

View File

@@ -1,55 +1,15 @@
import { ApiProperty } from '@nestjs/swagger';
class TeamDTO {
@ApiProperty()
id!: string;
@ApiProperty()
name!: string;
@ApiProperty()
tag!: string;
@ApiProperty()
description!: string;
@ApiProperty()
ownerId!: string;
@ApiProperty({ type: [String] })
leagues!: string[];
@ApiProperty({ required: false })
createdAt?: string;
@ApiProperty({ required: false })
specialization?: 'endurance' | 'sprint' | 'mixed';
@ApiProperty({ required: false })
region?: string;
@ApiProperty({ type: [String], required: false })
languages?: string[];
}
class MembershipDTO {
@ApiProperty()
role!: 'owner' | 'manager' | 'member';
@ApiProperty()
joinedAt!: string;
@ApiProperty()
isActive!: boolean;
}
import { TeamDTO } from './TeamDTO';
import { TeamMembershipDTO } from './TeamMembershipDTO';
export class GetTeamDetailsOutputDTO {
@ApiProperty({ type: TeamDTO })
team!: TeamDTO;
@ApiProperty({ type: MembershipDTO, nullable: true })
membership!: MembershipDTO | null;
@ApiProperty({ type: TeamMembershipDTO, nullable: true })
membership!: TeamMembershipDTO | null;
@ApiProperty()
canManage!: boolean;
}
}