This commit is contained in:
2025-12-29 22:27:33 +01:00
parent 3f610c1cb6
commit 7a853d4e43
96 changed files with 14790 additions and 111 deletions

View File

@@ -0,0 +1,18 @@
/**
* DTO: CreateRatingEventDto
*
* Input for creating a rating event from external sources
*/
export interface CreateRatingEventDto {
userId: string;
dimension: string;
delta: number;
weight?: number;
sourceType: 'race' | 'penalty' | 'vote' | 'adminAction' | 'manualAdjustment';
sourceId: string;
reasonCode: string;
reasonSummary: string;
reasonDetails?: Record<string, unknown>;
occurredAt?: string; // ISO date string
}