website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -0,0 +1,54 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNumber, IsEnum, IsOptional, IsDate } from 'class-validator';
import { TransactionType, ReferenceType } from './PaymentsDto';
export class FullTransactionDto {
@ApiProperty()
@IsString()
id!: string;
@ApiProperty()
@IsString()
walletId!: string;
@ApiProperty({ enum: TransactionType })
@IsEnum(TransactionType)
type!: TransactionType;
@ApiProperty()
@IsNumber()
amount!: number;
@ApiProperty()
@IsString()
description!: string;
@ApiProperty({ required: false })
@IsOptional()
@IsString()
referenceId?: string;
@ApiProperty({ required: false, enum: ReferenceType })
@IsOptional()
@IsEnum(ReferenceType)
referenceType?: ReferenceType;
@ApiProperty()
@IsDate()
createdAt!: Date;
@ApiProperty({ required: false })
@IsOptional()
@IsString()
leagueId?: string;
@ApiProperty({ required: false })
@IsOptional()
@IsString()
driverId?: string;
@ApiProperty({ required: false })
@IsOptional()
@IsString()
sponsorId?: string;
}