@dynamatix/gb-schemas 1.3.296 → 1.3.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applicants/applicant-credit-report.model.d.ts +11 -23
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.js +1 -3
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +7 -0
- package/package.json +1 -1
|
@@ -28,10 +28,8 @@
|
|
|
28
28
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
29
|
import mongoose from 'mongoose';
|
|
30
30
|
declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
31
|
-
|
|
32
|
-
applicantId: string;
|
|
31
|
+
applicantId: mongoose.Types.ObjectId;
|
|
33
32
|
applicantName: string;
|
|
34
|
-
applicationApplicantId: string;
|
|
35
33
|
applicantDob: string;
|
|
36
34
|
noticeofCorrection: string;
|
|
37
35
|
creditDefaults: string;
|
|
@@ -197,10 +195,8 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
197
195
|
seniority: string;
|
|
198
196
|
} | null | undefined;
|
|
199
197
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
200
|
-
|
|
201
|
-
applicantId: string;
|
|
198
|
+
applicantId: mongoose.Types.ObjectId;
|
|
202
199
|
applicantName: string;
|
|
203
|
-
applicationApplicantId: string;
|
|
204
200
|
applicantDob: string;
|
|
205
201
|
noticeofCorrection: string;
|
|
206
202
|
creditDefaults: string;
|
|
@@ -366,10 +362,8 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
366
362
|
seniority: string;
|
|
367
363
|
} | null | undefined;
|
|
368
364
|
}, {}> & {
|
|
369
|
-
|
|
370
|
-
applicantId: string;
|
|
365
|
+
applicantId: mongoose.Types.ObjectId;
|
|
371
366
|
applicantName: string;
|
|
372
|
-
applicationApplicantId: string;
|
|
373
367
|
applicantDob: string;
|
|
374
368
|
noticeofCorrection: string;
|
|
375
369
|
creditDefaults: string;
|
|
@@ -534,15 +528,13 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
534
528
|
nameMatchStatus: string;
|
|
535
529
|
seniority: string;
|
|
536
530
|
} | null | undefined;
|
|
537
|
-
} &
|
|
538
|
-
_id:
|
|
539
|
-
}
|
|
531
|
+
} & {
|
|
532
|
+
_id: mongoose.Types.ObjectId;
|
|
533
|
+
} & {
|
|
540
534
|
__v: number;
|
|
541
535
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
542
|
-
|
|
543
|
-
applicantId: string;
|
|
536
|
+
applicantId: mongoose.Types.ObjectId;
|
|
544
537
|
applicantName: string;
|
|
545
|
-
applicationApplicantId: string;
|
|
546
538
|
applicantDob: string;
|
|
547
539
|
noticeofCorrection: string;
|
|
548
540
|
creditDefaults: string;
|
|
@@ -708,10 +700,8 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
708
700
|
seniority: string;
|
|
709
701
|
} | null | undefined;
|
|
710
702
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
711
|
-
|
|
712
|
-
applicantId: string;
|
|
703
|
+
applicantId: mongoose.Types.ObjectId;
|
|
713
704
|
applicantName: string;
|
|
714
|
-
applicationApplicantId: string;
|
|
715
705
|
applicantDob: string;
|
|
716
706
|
noticeofCorrection: string;
|
|
717
707
|
creditDefaults: string;
|
|
@@ -877,10 +867,8 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
877
867
|
seniority: string;
|
|
878
868
|
} | null | undefined;
|
|
879
869
|
}>, {}> & mongoose.FlatRecord<{
|
|
880
|
-
|
|
881
|
-
applicantId: string;
|
|
870
|
+
applicantId: mongoose.Types.ObjectId;
|
|
882
871
|
applicantName: string;
|
|
883
|
-
applicationApplicantId: string;
|
|
884
872
|
applicantDob: string;
|
|
885
873
|
noticeofCorrection: string;
|
|
886
874
|
creditDefaults: string;
|
|
@@ -1045,9 +1033,9 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
|
|
|
1045
1033
|
nameMatchStatus: string;
|
|
1046
1034
|
seniority: string;
|
|
1047
1035
|
} | null | undefined;
|
|
1048
|
-
}> & Required<{
|
|
1049
|
-
_id: string;
|
|
1050
1036
|
}> & {
|
|
1037
|
+
_id: mongoose.Types.ObjectId;
|
|
1038
|
+
} & {
|
|
1051
1039
|
__v: number;
|
|
1052
1040
|
}>>;
|
|
1053
1041
|
export default ApplicantCreditReportModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA+EhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuE,CAAC;AACxG,eAAe,0BAA0B,CAAC"}
|
|
@@ -50,9 +50,7 @@ const linkedAddressSchema = new Schema({
|
|
|
50
50
|
},
|
|
51
51
|
}, { _id: false });
|
|
52
52
|
const applicantCreditReportSchema = new Schema({
|
|
53
|
-
|
|
54
|
-
applicantId: { type: String, default: "" },
|
|
55
|
-
applicationApplicantId: { type: String, required: true }, // agencySearchId
|
|
53
|
+
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
56
54
|
applicantDob: { type: String, default: "" },
|
|
57
55
|
applicantName: { type: String, required: true }, // concat of forename + ' ' + surname
|
|
58
56
|
noticeofCorrection: { type: String, default: "" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAe,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAe,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAgC5D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0D,CAAC;AAC1F,eAAe,yBAAyB,CAAC"}
|
|
@@ -22,5 +22,12 @@ const valuationSchema = new mongoose.Schema({
|
|
|
22
22
|
valuationNotes: { type: String, default: "" },
|
|
23
23
|
valuationAccepted: { type: String, default: null }
|
|
24
24
|
});
|
|
25
|
+
// virtual property 'lendingType'
|
|
26
|
+
valuationSchema.virtual("lendingType").get(function () {
|
|
27
|
+
return this.applicationId?.lendingTypeLid instanceof
|
|
28
|
+
mongoose.Types.ObjectId
|
|
29
|
+
? null
|
|
30
|
+
: this.applicationId?.lendingTypeLid?.text || null;
|
|
31
|
+
});
|
|
25
32
|
const ApplicationValuationModel = mongoose.model("ApplicationValuation", valuationSchema);
|
|
26
33
|
export default ApplicationValuationModel;
|