module cleanup
This commit is contained in:
5
apps/api/src/domain/league/dtos/JoinLeagueOutputDTO.ts
Normal file
5
apps/api/src/domain/league/dtos/JoinLeagueOutputDTO.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface JoinLeagueOutputDTO {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
membershipId?: string;
|
||||
}
|
||||
@@ -23,9 +23,9 @@ export class LeagueConfigFormModelDTO {
|
||||
@Type(() => LeagueConfigFormModelStructureDTO)
|
||||
structure: LeagueConfigFormModelStructureDTO;
|
||||
|
||||
@ApiProperty({ type: [Object] })
|
||||
@ApiProperty({ type: [Object] })
|
||||
@IsArray()
|
||||
championships: any[];
|
||||
championships: Object[];
|
||||
|
||||
@ApiProperty({ type: LeagueConfigFormModelScoringDTO })
|
||||
@ValidateNested()
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
export interface LeagueJoinRequestWithDriverDTO {
|
||||
id: string;
|
||||
leagueId: string;
|
||||
driverId: string;
|
||||
requestedAt: Date;
|
||||
message?: string;
|
||||
driver: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface TransferLeagueOwnershipOutputDTO {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user