rating
This commit is contained in:
26
core/identity/application/dtos/UserRatingDto.ts
Normal file
26
core/identity/application/dtos/UserRatingDto.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* DTO: UserRatingDto
|
||||
*
|
||||
* Output for user rating snapshot
|
||||
*/
|
||||
|
||||
export interface RatingDimensionDto {
|
||||
value: number;
|
||||
confidence: number;
|
||||
sampleSize: number;
|
||||
trend: 'rising' | 'stable' | 'falling';
|
||||
lastUpdated: string; // ISO date string
|
||||
}
|
||||
|
||||
export interface UserRatingDto {
|
||||
userId: string;
|
||||
driver: RatingDimensionDto;
|
||||
admin: RatingDimensionDto;
|
||||
steward: RatingDimensionDto;
|
||||
trust: RatingDimensionDto;
|
||||
fairness: RatingDimensionDto;
|
||||
overallReputation: number;
|
||||
calculatorVersion?: string;
|
||||
createdAt: string; // ISO date string
|
||||
updatedAt: string; // ISO date string
|
||||
}
|
||||
Reference in New Issue
Block a user