1
0
forked from Yara724/api

YARA-739, YARA-740, YARA-741

This commit is contained in:
SepehrYahyaee
2026-01-28 15:34:38 +03:30
parent 8db56d38be
commit ae53ef6032
9 changed files with 305 additions and 25 deletions

View File

@@ -176,6 +176,28 @@ export class UserObjection {
typeOfDamage: string;
}
@Schema({ _id: false })
export class UserClaimRating {
// 1. سرعت پیشرفت پرونده (speed of progress)
@Prop({ type: Number, min: 0, max: 5, required: true })
progressSpeed: number;
// 2. سهولت ثبت پرونده (ease of registration)
@Prop({ type: Number, min: 0, max: 5, required: true })
registrationEase: number;
// 3. ارزیابی کلی (overall evaluation)
@Prop({ type: Number, min: 0, max: 5, required: true })
overallEvaluation: number;
// 4. متن رضایت یا عدم آن (optional text feedback)
@Prop({ type: String, required: false })
comment?: string;
@Prop({ type: Date, default: () => new Date() })
createdAt?: Date;
}
@Schema({ _id: false })
export class FileRating {
@Prop({ type: Number, min: 0, max: 5 })
@@ -315,6 +337,10 @@ export class ClaimRequestManagementModel {
@Prop({ type: FileRating, required: false })
rating?: FileRating;
// User-facing satisfaction rating for this claim
@Prop({ type: UserClaimRating, required: false })
userRating?: UserClaimRating;
@Prop({ type: String, required: false })
visitLocation?: string;