forked from Yara724/api
fanavaran rate bugs fixed + sms of claimId and claimNo added
This commit is contained in:
@@ -58,6 +58,7 @@ import { MediaPolicyModule } from "src/media-policy/media-policy.module";
|
||||
import { FanavaranAuditModule } from "src/fanavaran/fanavaran-audit.module";
|
||||
import { FanavaranLookupModule } from "src/fanavaran/fanavaran-lookup.module";
|
||||
import { PlateNormalizerModule } from "src/utils/plate-normalizer/plate-normalizer.module";
|
||||
import { SmsOrchestrationModule } from "src/sms-orchestration/sms-orchestration.module";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -76,6 +77,7 @@ import { PlateNormalizerModule } from "src/utils/plate-normalizer/plate-normaliz
|
||||
SandHubModule,
|
||||
ClientModule,
|
||||
MediaPolicyModule,
|
||||
SmsOrchestrationModule,
|
||||
JwtModule.register({}),
|
||||
MongooseModule.forFeature([
|
||||
{ name: ClaimCase.name, schema: ClaimCaseSchema },
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user