forked from Yara724/api
user owner guidence added + status and steps fixed
This commit is contained in:
@@ -95,6 +95,24 @@ export class ClaimOwnerInsurerApproval {
|
||||
export const ClaimOwnerInsurerApprovalSchema =
|
||||
SchemaFactory.createForClass(ClaimOwnerInsurerApproval);
|
||||
|
||||
/** Owner signed acceptance of priced lines only — required before uploading factors when reply is mixed priced + factorNeeded. */
|
||||
@Schema({ _id: false })
|
||||
export class ClaimOwnerPricedPartsApproval {
|
||||
@Prop({ type: Boolean, required: true })
|
||||
agree: boolean;
|
||||
|
||||
@Prop({ type: Types.ObjectId })
|
||||
branchId?: Types.ObjectId;
|
||||
|
||||
@Prop({ type: Types.ObjectId })
|
||||
signDetailId?: Types.ObjectId;
|
||||
|
||||
@Prop({ type: Date, default: () => new Date() })
|
||||
signedAt?: Date;
|
||||
}
|
||||
export const ClaimOwnerPricedPartsApprovalSchema =
|
||||
SchemaFactory.createForClass(ClaimOwnerPricedPartsApproval);
|
||||
|
||||
@Schema({ _id: false })
|
||||
export class ClaimExpertReply {
|
||||
@Prop({ type: String })
|
||||
@@ -276,6 +294,9 @@ export class ClaimEvaluation {
|
||||
@Prop({ type: ClaimOwnerInsurerApprovalSchema })
|
||||
ownerInsurerApproval?: ClaimOwnerInsurerApproval;
|
||||
|
||||
@Prop({ type: ClaimOwnerPricedPartsApprovalSchema })
|
||||
ownerPricedPartsApproval?: ClaimOwnerPricedPartsApproval;
|
||||
|
||||
@Prop({ type: String })
|
||||
visitLocation?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user