26 lines
598 B
TypeScript
26 lines
598 B
TypeScript
/**
|
|
* 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
|
|
} |