forked from Yara724/api
YARA-739, YARA-740, YARA-741
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user