fanavaran rate bugs fixed + sms of claimId and claimNo added

This commit is contained in:
2026-08-02 11:33:24 +03:30
parent 86f8b829fd
commit 8f66502c49
10 changed files with 1205 additions and 438 deletions

View File

@@ -81,6 +81,36 @@ export class FanavaranSyncStage {
@Prop({ type: Number })
expertiseId?: number;
/** Cached Fanavaran PolicyId from inquiry-my-policies (guilty party). */
@Prop({ type: Number })
policyId?: number;
/** Cached Fanavaran DriverId (parties inquiry-by-unique-identifier). */
@Prop({ type: Number })
driverId?: number;
/** Cached Fanavaran VehicleKindId. */
@Prop({ type: Number })
vehicleKindId?: number;
/** Cached Fanavaran InsuranceCorpId. */
@Prop({ type: Number })
insuranceCorpId?: number;
/**
* Last successfully built payload for this stage (preview/submit).
* Lets later preview/submit reuse Fanavaran-sourced fields without re-calling.
*/
@Prop({ type: MongooseSchema.Types.Mixed })
lastPayload?: Record<string, unknown>;
@Prop({ type: Date })
lastPayloadBuiltAt?: Date;
/** When we SMS'd the claim owner about Fanavaran claimId/ClaimNo (base claim). */
@Prop({ type: Date })
smsNotifiedAt?: Date;
@Prop({ type: [MongooseSchema.Types.Mixed], default: [] })
files?: unknown[];