@dynamatix/gb-schemas 2.7.1 → 2.7.3
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/README.md +308 -308
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -243
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +0 -17
- package/dist/applicants/applicant-expenditure.model.d.ts +6 -6
- package/dist/applicants/applicant-income-summary.model.d.ts +0 -12
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-summary.model.js +0 -2
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applications/application-mortgage.model.d.ts +108 -780
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +0 -18
- package/dist/applications/application-valuation.model.d.ts +285 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +25 -1
- package/dist/applications/solicitor.model.d.ts +0 -66
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/applications/solicitor.model.js +0 -11
- package/package.json +87 -87
- package/dist/applicants/applicant-income-source.model.d.ts +0 -26
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.d.ts +0 -160
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.d.ts +0 -85
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.d.ts +0 -158
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/document.model.d.ts +0 -158
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/shared/document-type-model.d.ts +0 -48
- package/dist/shared/document-type-model.d.ts.map +0 -1
|
@@ -35,70 +35,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
35
35
|
monthlyPayment?: unknown;
|
|
36
36
|
repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
37
37
|
outstandingBalance?: unknown;
|
|
38
|
-
PropertyNotes?: unknown;
|
|
39
|
-
ActualPropertyValue?: {
|
|
40
|
-
validators: mongoose.Types.DocumentArray<{
|
|
41
|
-
type?: unknown;
|
|
42
|
-
message?: unknown;
|
|
43
|
-
validator?: unknown;
|
|
44
|
-
reason?: unknown;
|
|
45
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
46
|
-
type?: unknown;
|
|
47
|
-
message?: unknown;
|
|
48
|
-
validator?: unknown;
|
|
49
|
-
reason?: unknown;
|
|
50
|
-
}> & {
|
|
51
|
-
type?: unknown;
|
|
52
|
-
message?: unknown;
|
|
53
|
-
validator?: unknown;
|
|
54
|
-
reason?: unknown;
|
|
55
|
-
}>;
|
|
56
|
-
get?: {} | null | undefined;
|
|
57
|
-
schema?: {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
} | null | undefined;
|
|
60
|
-
set?: {} | null | undefined;
|
|
61
|
-
validate?: {} | null | undefined;
|
|
62
|
-
index?: {} | null | undefined;
|
|
63
|
-
default?: {} | null | undefined;
|
|
64
|
-
text?: {} | null | undefined;
|
|
65
|
-
unique?: {} | null | undefined;
|
|
66
|
-
sparse?: {} | null | undefined;
|
|
67
|
-
cast?: {} | null | undefined;
|
|
68
|
-
required?: {} | null | undefined;
|
|
69
|
-
ref?: {} | null | undefined;
|
|
70
|
-
select?: {} | null | undefined;
|
|
71
|
-
immutable?: {} | null | undefined;
|
|
72
|
-
transform?: {} | null | undefined;
|
|
73
|
-
options?: {
|
|
74
|
-
[x: string]: unknown;
|
|
75
|
-
} | null | undefined;
|
|
76
|
-
OptionsConstructor?: {
|
|
77
|
-
[x: string]: unknown;
|
|
78
|
-
} | null | undefined;
|
|
79
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
80
|
-
instance?: unknown;
|
|
81
|
-
isRequired?: unknown;
|
|
82
|
-
path?: unknown;
|
|
83
|
-
toJSONSchema?: {} | null | undefined;
|
|
84
|
-
validateAll?: {} | null | undefined;
|
|
85
|
-
defaultOptions?: unknown;
|
|
86
|
-
} | null | undefined;
|
|
87
|
-
PropertyBuiltType?: unknown;
|
|
88
|
-
hasLift?: unknown;
|
|
89
|
-
AgeofProperty?: unknown;
|
|
90
|
-
Dateofpropertybuilt?: unknown;
|
|
91
|
-
PropertyType?: unknown;
|
|
92
|
-
RegistrationDateandTime?: unknown;
|
|
93
|
-
Age?: unknown;
|
|
94
|
-
CountryMultiselect?: unknown;
|
|
95
|
-
PercentageofEPC?: unknown;
|
|
96
|
-
propertyTypeLid?: unknown;
|
|
97
|
-
rationale?: unknown;
|
|
98
|
-
ApplicantSortcode?: unknown;
|
|
99
|
-
accountnumber?: unknown;
|
|
100
|
-
Postcode?: unknown;
|
|
101
|
-
AddressLine1?: unknown;
|
|
102
38
|
fixedTerm?: unknown;
|
|
103
39
|
startDate?: unknown;
|
|
104
40
|
commitmentId?: unknown;
|
|
@@ -222,70 +158,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
222
158
|
monthlyPayment?: unknown;
|
|
223
159
|
repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
224
160
|
outstandingBalance?: unknown;
|
|
225
|
-
PropertyNotes?: unknown;
|
|
226
|
-
ActualPropertyValue?: {
|
|
227
|
-
validators: mongoose.Types.DocumentArray<{
|
|
228
|
-
type?: unknown;
|
|
229
|
-
message?: unknown;
|
|
230
|
-
validator?: unknown;
|
|
231
|
-
reason?: unknown;
|
|
232
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
233
|
-
type?: unknown;
|
|
234
|
-
message?: unknown;
|
|
235
|
-
validator?: unknown;
|
|
236
|
-
reason?: unknown;
|
|
237
|
-
}> & {
|
|
238
|
-
type?: unknown;
|
|
239
|
-
message?: unknown;
|
|
240
|
-
validator?: unknown;
|
|
241
|
-
reason?: unknown;
|
|
242
|
-
}>;
|
|
243
|
-
get?: {} | null | undefined;
|
|
244
|
-
schema?: {
|
|
245
|
-
[x: string]: unknown;
|
|
246
|
-
} | null | undefined;
|
|
247
|
-
set?: {} | null | undefined;
|
|
248
|
-
validate?: {} | null | undefined;
|
|
249
|
-
index?: {} | null | undefined;
|
|
250
|
-
default?: {} | null | undefined;
|
|
251
|
-
text?: {} | null | undefined;
|
|
252
|
-
unique?: {} | null | undefined;
|
|
253
|
-
sparse?: {} | null | undefined;
|
|
254
|
-
cast?: {} | null | undefined;
|
|
255
|
-
required?: {} | null | undefined;
|
|
256
|
-
ref?: {} | null | undefined;
|
|
257
|
-
select?: {} | null | undefined;
|
|
258
|
-
immutable?: {} | null | undefined;
|
|
259
|
-
transform?: {} | null | undefined;
|
|
260
|
-
options?: {
|
|
261
|
-
[x: string]: unknown;
|
|
262
|
-
} | null | undefined;
|
|
263
|
-
OptionsConstructor?: {
|
|
264
|
-
[x: string]: unknown;
|
|
265
|
-
} | null | undefined;
|
|
266
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
267
|
-
instance?: unknown;
|
|
268
|
-
isRequired?: unknown;
|
|
269
|
-
path?: unknown;
|
|
270
|
-
toJSONSchema?: {} | null | undefined;
|
|
271
|
-
validateAll?: {} | null | undefined;
|
|
272
|
-
defaultOptions?: unknown;
|
|
273
|
-
} | null | undefined;
|
|
274
|
-
PropertyBuiltType?: unknown;
|
|
275
|
-
hasLift?: unknown;
|
|
276
|
-
AgeofProperty?: unknown;
|
|
277
|
-
Dateofpropertybuilt?: unknown;
|
|
278
|
-
PropertyType?: unknown;
|
|
279
|
-
RegistrationDateandTime?: unknown;
|
|
280
|
-
Age?: unknown;
|
|
281
|
-
CountryMultiselect?: unknown;
|
|
282
|
-
PercentageofEPC?: unknown;
|
|
283
|
-
propertyTypeLid?: unknown;
|
|
284
|
-
rationale?: unknown;
|
|
285
|
-
ApplicantSortcode?: unknown;
|
|
286
|
-
accountnumber?: unknown;
|
|
287
|
-
Postcode?: unknown;
|
|
288
|
-
AddressLine1?: unknown;
|
|
289
161
|
fixedTerm?: unknown;
|
|
290
162
|
startDate?: unknown;
|
|
291
163
|
commitmentId?: unknown;
|
|
@@ -409,70 +281,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
409
281
|
monthlyPayment?: unknown;
|
|
410
282
|
repaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
411
283
|
outstandingBalance?: unknown;
|
|
412
|
-
PropertyNotes?: unknown;
|
|
413
|
-
ActualPropertyValue?: {
|
|
414
|
-
validators: mongoose.Types.DocumentArray<{
|
|
415
|
-
type?: unknown;
|
|
416
|
-
message?: unknown;
|
|
417
|
-
validator?: unknown;
|
|
418
|
-
reason?: unknown;
|
|
419
|
-
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
420
|
-
type?: unknown;
|
|
421
|
-
message?: unknown;
|
|
422
|
-
validator?: unknown;
|
|
423
|
-
reason?: unknown;
|
|
424
|
-
}> & {
|
|
425
|
-
type?: unknown;
|
|
426
|
-
message?: unknown;
|
|
427
|
-
validator?: unknown;
|
|
428
|
-
reason?: unknown;
|
|
429
|
-
}>;
|
|
430
|
-
get?: {} | null | undefined;
|
|
431
|
-
schema?: {
|
|
432
|
-
[x: string]: unknown;
|
|
433
|
-
} | null | undefined;
|
|
434
|
-
set?: {} | null | undefined;
|
|
435
|
-
validate?: {} | null | undefined;
|
|
436
|
-
index?: {} | null | undefined;
|
|
437
|
-
default?: {} | null | undefined;
|
|
438
|
-
text?: {} | null | undefined;
|
|
439
|
-
unique?: {} | null | undefined;
|
|
440
|
-
sparse?: {} | null | undefined;
|
|
441
|
-
cast?: {} | null | undefined;
|
|
442
|
-
required?: {} | null | undefined;
|
|
443
|
-
ref?: {} | null | undefined;
|
|
444
|
-
select?: {} | null | undefined;
|
|
445
|
-
immutable?: {} | null | undefined;
|
|
446
|
-
transform?: {} | null | undefined;
|
|
447
|
-
options?: {
|
|
448
|
-
[x: string]: unknown;
|
|
449
|
-
} | null | undefined;
|
|
450
|
-
OptionsConstructor?: {
|
|
451
|
-
[x: string]: unknown;
|
|
452
|
-
} | null | undefined;
|
|
453
|
-
getEmbeddedSchemaType?: {} | null | undefined;
|
|
454
|
-
instance?: unknown;
|
|
455
|
-
isRequired?: unknown;
|
|
456
|
-
path?: unknown;
|
|
457
|
-
toJSONSchema?: {} | null | undefined;
|
|
458
|
-
validateAll?: {} | null | undefined;
|
|
459
|
-
defaultOptions?: unknown;
|
|
460
|
-
} | null | undefined;
|
|
461
|
-
PropertyBuiltType?: unknown;
|
|
462
|
-
hasLift?: unknown;
|
|
463
|
-
AgeofProperty?: unknown;
|
|
464
|
-
Dateofpropertybuilt?: unknown;
|
|
465
|
-
PropertyType?: unknown;
|
|
466
|
-
RegistrationDateandTime?: unknown;
|
|
467
|
-
Age?: unknown;
|
|
468
|
-
CountryMultiselect?: unknown;
|
|
469
|
-
PercentageofEPC?: unknown;
|
|
470
|
-
propertyTypeLid?: unknown;
|
|
471
|
-
rationale?: unknown;
|
|
472
|
-
ApplicantSortcode?: unknown;
|
|
473
|
-
accountnumber?: unknown;
|
|
474
|
-
Postcode?: unknown;
|
|
475
|
-
AddressLine1?: unknown;
|
|
476
284
|
fixedTerm?: unknown;
|
|
477
285
|
startDate?: unknown;
|
|
478
286
|
commitmentId?: unknown;
|
|
@@ -607,20 +415,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
607
415
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
608
416
|
applicantId: mongoose.Types.ObjectId;
|
|
609
417
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
610
|
-
PropertyNotes: string;
|
|
611
|
-
ActualPropertyValue: Pound;
|
|
612
|
-
PropertyBuiltType: string;
|
|
613
|
-
hasLift: string;
|
|
614
|
-
Dateofpropertybuilt: string;
|
|
615
|
-
RegistrationDateandTime: string;
|
|
616
|
-
Age: string;
|
|
617
|
-
CountryMultiselect: string;
|
|
618
|
-
PercentageofEPC: string;
|
|
619
|
-
rationale: string;
|
|
620
|
-
ApplicantSortcode: string;
|
|
621
|
-
accountnumber: string;
|
|
622
|
-
Postcode: string;
|
|
623
|
-
AddressLine1: string;
|
|
624
418
|
fixedTerm: string;
|
|
625
419
|
startDate: string;
|
|
626
420
|
commitmentId: string;
|
|
@@ -639,9 +433,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
639
433
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
640
434
|
monthlyPayment?: Pound | null | undefined;
|
|
641
435
|
outstandingBalance?: Pound | null | undefined;
|
|
642
|
-
AgeofProperty?: number | null | undefined;
|
|
643
|
-
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
644
|
-
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
645
436
|
lenderName?: string | null | undefined;
|
|
646
437
|
hppRepaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
647
438
|
mortgageRate?: number | null | undefined;
|
|
@@ -653,20 +444,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
653
444
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
654
445
|
applicantId: mongoose.Types.ObjectId;
|
|
655
446
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
656
|
-
PropertyNotes: string;
|
|
657
|
-
ActualPropertyValue: Pound;
|
|
658
|
-
PropertyBuiltType: string;
|
|
659
|
-
hasLift: string;
|
|
660
|
-
Dateofpropertybuilt: string;
|
|
661
|
-
RegistrationDateandTime: string;
|
|
662
|
-
Age: string;
|
|
663
|
-
CountryMultiselect: string;
|
|
664
|
-
PercentageofEPC: string;
|
|
665
|
-
rationale: string;
|
|
666
|
-
ApplicantSortcode: string;
|
|
667
|
-
accountnumber: string;
|
|
668
|
-
Postcode: string;
|
|
669
|
-
AddressLine1: string;
|
|
670
447
|
fixedTerm: string;
|
|
671
448
|
startDate: string;
|
|
672
449
|
commitmentId: string;
|
|
@@ -685,9 +462,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
685
462
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
686
463
|
monthlyPayment?: Pound | null | undefined;
|
|
687
464
|
outstandingBalance?: Pound | null | undefined;
|
|
688
|
-
AgeofProperty?: number | null | undefined;
|
|
689
|
-
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
690
|
-
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
691
465
|
lenderName?: string | null | undefined;
|
|
692
466
|
hppRepaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
693
467
|
mortgageRate?: number | null | undefined;
|
|
@@ -699,20 +473,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
699
473
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
700
474
|
applicantId: mongoose.Types.ObjectId;
|
|
701
475
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
702
|
-
PropertyNotes: string;
|
|
703
|
-
ActualPropertyValue: Pound;
|
|
704
|
-
PropertyBuiltType: string;
|
|
705
|
-
hasLift: string;
|
|
706
|
-
Dateofpropertybuilt: string;
|
|
707
|
-
RegistrationDateandTime: string;
|
|
708
|
-
Age: string;
|
|
709
|
-
CountryMultiselect: string;
|
|
710
|
-
PercentageofEPC: string;
|
|
711
|
-
rationale: string;
|
|
712
|
-
ApplicantSortcode: string;
|
|
713
|
-
accountnumber: string;
|
|
714
|
-
Postcode: string;
|
|
715
|
-
AddressLine1: string;
|
|
716
476
|
fixedTerm: string;
|
|
717
477
|
startDate: string;
|
|
718
478
|
commitmentId: string;
|
|
@@ -731,9 +491,6 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
731
491
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
732
492
|
monthlyPayment?: Pound | null | undefined;
|
|
733
493
|
outstandingBalance?: Pound | null | undefined;
|
|
734
|
-
AgeofProperty?: number | null | undefined;
|
|
735
|
-
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
736
|
-
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
737
494
|
lenderName?: string | null | undefined;
|
|
738
495
|
hppRepaymentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
739
496
|
mortgageRate?: number | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-commitment-mortgage.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-mortgage.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-commitment-mortgage.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-commitment-mortgage.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AA4E5D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiE,CAAC;AAC/F,eAAe,uBAAuB,CAAC"}
|
|
@@ -35,23 +35,6 @@ const mortgageCommitmentSchema = new mongoose.Schema({
|
|
|
35
35
|
financeHomeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
36
36
|
remainingTermMonth: { type: Number },
|
|
37
37
|
chargeTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
38
|
-
PropertyNotes: { type: String, default: "" },
|
|
39
|
-
ActualPropertyValue: { type: Pound, default: 0.00, get: formatPound },
|
|
40
|
-
PropertyBuiltType: { type: String, default: "" },
|
|
41
|
-
hasLift: { type: String, default: "" },
|
|
42
|
-
AgeofProperty: { type: Number },
|
|
43
|
-
Dateofpropertybuilt: { type: String, default: null },
|
|
44
|
-
PropertyType: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
45
|
-
RegistrationDateandTime: { type: String, default: null },
|
|
46
|
-
Age: { type: String, default: "" },
|
|
47
|
-
CountryMultiselect: { type: String, default: "" },
|
|
48
|
-
PercentageofEPC: { type: String, default: "" },
|
|
49
|
-
propertyTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
50
|
-
rationale: { type: String, default: "" },
|
|
51
|
-
ApplicantSortcode: { type: String, default: "" },
|
|
52
|
-
accountnumber: { type: String, default: "" },
|
|
53
|
-
Postcode: { type: String, default: "" },
|
|
54
|
-
AddressLine1: { type: String, default: "" },
|
|
55
38
|
}, {
|
|
56
39
|
toJSON: { getters: true, virtuals: true },
|
|
57
40
|
toObject: { getters: true, virtuals: true }
|
|
@@ -36,11 +36,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
36
36
|
isFixed: boolean;
|
|
37
37
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
38
38
|
isActualUpdated: boolean;
|
|
39
|
-
rationale?: string | null | undefined;
|
|
40
39
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
41
40
|
declared?: Pound | null | undefined;
|
|
42
41
|
expected?: string | null | undefined;
|
|
43
42
|
actual?: Pound | null | undefined;
|
|
43
|
+
rationale?: string | null | undefined;
|
|
44
44
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
45
45
|
createdAt: NativeDate;
|
|
46
46
|
updatedAt: NativeDate;
|
|
@@ -49,11 +49,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
49
49
|
isFixed: boolean;
|
|
50
50
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
51
51
|
isActualUpdated: boolean;
|
|
52
|
-
rationale?: string | null | undefined;
|
|
53
52
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
54
53
|
declared?: Pound | null | undefined;
|
|
55
54
|
expected?: string | null | undefined;
|
|
56
55
|
actual?: Pound | null | undefined;
|
|
56
|
+
rationale?: string | null | undefined;
|
|
57
57
|
}, {}> & {
|
|
58
58
|
createdAt: NativeDate;
|
|
59
59
|
updatedAt: NativeDate;
|
|
@@ -62,11 +62,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
62
62
|
isFixed: boolean;
|
|
63
63
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
64
64
|
isActualUpdated: boolean;
|
|
65
|
-
rationale?: string | null | undefined;
|
|
66
65
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
67
66
|
declared?: Pound | null | undefined;
|
|
68
67
|
expected?: string | null | undefined;
|
|
69
68
|
actual?: Pound | null | undefined;
|
|
69
|
+
rationale?: string | null | undefined;
|
|
70
70
|
} & {
|
|
71
71
|
_id: mongoose.Types.ObjectId;
|
|
72
72
|
} & {
|
|
@@ -87,11 +87,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
87
87
|
isFixed: boolean;
|
|
88
88
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
89
89
|
isActualUpdated: boolean;
|
|
90
|
-
rationale?: string | null | undefined;
|
|
91
90
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
92
91
|
declared?: Pound | null | undefined;
|
|
93
92
|
expected?: string | null | undefined;
|
|
94
93
|
actual?: Pound | null | undefined;
|
|
94
|
+
rationale?: string | null | undefined;
|
|
95
95
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
96
96
|
createdAt: NativeDate;
|
|
97
97
|
updatedAt: NativeDate;
|
|
@@ -100,11 +100,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
100
100
|
isFixed: boolean;
|
|
101
101
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
102
102
|
isActualUpdated: boolean;
|
|
103
|
-
rationale?: string | null | undefined;
|
|
104
103
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
105
104
|
declared?: Pound | null | undefined;
|
|
106
105
|
expected?: string | null | undefined;
|
|
107
106
|
actual?: Pound | null | undefined;
|
|
107
|
+
rationale?: string | null | undefined;
|
|
108
108
|
}>, {}> & mongoose.FlatRecord<{
|
|
109
109
|
createdAt: NativeDate;
|
|
110
110
|
updatedAt: NativeDate;
|
|
@@ -113,11 +113,11 @@ declare const ApplicantExpenditureModel: mongoose.Model<{
|
|
|
113
113
|
isFixed: boolean;
|
|
114
114
|
expenditureTypeLid: mongoose.Types.ObjectId;
|
|
115
115
|
isActualUpdated: boolean;
|
|
116
|
-
rationale?: string | null | undefined;
|
|
117
116
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
118
117
|
declared?: Pound | null | undefined;
|
|
119
118
|
expected?: string | null | undefined;
|
|
120
119
|
actual?: Pound | null | undefined;
|
|
120
|
+
rationale?: string | null | undefined;
|
|
121
121
|
}> & {
|
|
122
122
|
_id: mongoose.Types.ObjectId;
|
|
123
123
|
} & {
|
|
@@ -716,8 +716,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
716
716
|
validateAll?: {} | null | undefined;
|
|
717
717
|
defaultOptions?: unknown;
|
|
718
718
|
} | null | undefined;
|
|
719
|
-
NewTest?: unknown;
|
|
720
|
-
test83839?: unknown;
|
|
721
719
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
722
720
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
723
721
|
totalEmploymentGrossIncome?: {
|
|
@@ -1406,8 +1404,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
1406
1404
|
validateAll?: {} | null | undefined;
|
|
1407
1405
|
defaultOptions?: unknown;
|
|
1408
1406
|
} | null | undefined;
|
|
1409
|
-
NewTest?: unknown;
|
|
1410
|
-
test83839?: unknown;
|
|
1411
1407
|
}, {}> & {
|
|
1412
1408
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
1413
1409
|
totalEmploymentGrossIncome?: {
|
|
@@ -2096,8 +2092,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2096
2092
|
validateAll?: {} | null | undefined;
|
|
2097
2093
|
defaultOptions?: unknown;
|
|
2098
2094
|
} | null | undefined;
|
|
2099
|
-
NewTest?: unknown;
|
|
2100
|
-
test83839?: unknown;
|
|
2101
2095
|
} & {
|
|
2102
2096
|
_id: mongoose.Types.ObjectId;
|
|
2103
2097
|
} & {
|
|
@@ -2139,8 +2133,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2139
2133
|
soleTraderNetIncome: Pound;
|
|
2140
2134
|
totalAnnualGrossIncome: Pound;
|
|
2141
2135
|
totalAnnualNetIncome: Pound;
|
|
2142
|
-
NewTest: string;
|
|
2143
|
-
test83839: string;
|
|
2144
2136
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
2145
2137
|
applicantId: mongoose.Types.ObjectId;
|
|
2146
2138
|
totalEmploymentGrossIncome: Pound;
|
|
@@ -2171,8 +2163,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2171
2163
|
soleTraderNetIncome: Pound;
|
|
2172
2164
|
totalAnnualGrossIncome: Pound;
|
|
2173
2165
|
totalAnnualNetIncome: Pound;
|
|
2174
|
-
NewTest: string;
|
|
2175
|
-
test83839: string;
|
|
2176
2166
|
}>, {}> & mongoose.FlatRecord<{
|
|
2177
2167
|
applicantId: mongoose.Types.ObjectId;
|
|
2178
2168
|
totalEmploymentGrossIncome: Pound;
|
|
@@ -2203,8 +2193,6 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2203
2193
|
soleTraderNetIncome: Pound;
|
|
2204
2194
|
totalAnnualGrossIncome: Pound;
|
|
2205
2195
|
totalAnnualNetIncome: Pound;
|
|
2206
|
-
NewTest: string;
|
|
2207
|
-
test83839: string;
|
|
2208
2196
|
}> & {
|
|
2209
2197
|
_id: mongoose.Types.ObjectId;
|
|
2210
2198
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income-summary.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-income-summary.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-summary.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAkD5D,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2E,CAAC;AAE7G,eAAe,2BAA2B,CAAC"}
|
|
@@ -32,8 +32,6 @@ const applicantIncomeSummarySchema = new mongoose.Schema({
|
|
|
32
32
|
soleTraderNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
33
33
|
totalAnnualGrossIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
34
34
|
totalAnnualNetIncome: { type: Pound, get: formatPound, default: 0.00 },
|
|
35
|
-
NewTest: { type: String, default: "" },
|
|
36
|
-
test83839: { type: String, default: "" },
|
|
37
35
|
}, {
|
|
38
36
|
toJSON: { getters: true },
|
|
39
37
|
toObject: { getters: true }
|
|
@@ -403,10 +403,10 @@ welcomeCallSchema.virtual('otherApplicantsNameAndDOB').get(function () {
|
|
|
403
403
|
const isLast = index === otherApplicants.length - 1;
|
|
404
404
|
const comma = isLast ? '' : ',';
|
|
405
405
|
// Format as an HTML line (with bold labels and inline values)
|
|
406
|
-
return `
|
|
407
|
-
<div class="applicant-line">
|
|
408
|
-
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
409
|
-
</div>
|
|
406
|
+
return `
|
|
407
|
+
<div class="applicant-line">
|
|
408
|
+
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
409
|
+
</div>
|
|
410
410
|
`;
|
|
411
411
|
}).filter((line) => line && line.trim() !== '');
|
|
412
412
|
// Join all applicants as HTML (no \n needed)
|
|
@@ -686,14 +686,14 @@ welcomeCallSchema.virtual('financeSummaryHtml').get(async function () {
|
|
|
686
686
|
application.lendingTypeLid.name === 'BTL';
|
|
687
687
|
const monthlyRepaymentClass = isBTL ? 'mb-2' : '';
|
|
688
688
|
// Create HTML content
|
|
689
|
-
let summaryContent = `
|
|
690
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Product:</p> <span class="readonly-data ml-2">${product}</span></div>
|
|
691
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Finance Term:</p> <span class="readonly-data ml-2">${financeTerm}</span></div>
|
|
689
|
+
let summaryContent = `
|
|
690
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Product:</p> <span class="readonly-data ml-2">${product}</span></div>
|
|
691
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Finance Term:</p> <span class="readonly-data ml-2">${financeTerm}</span></div>
|
|
692
692
|
<div class="flex align-items-center ${monthlyRepaymentClass}"><p class="text-bold m-0 readonly-data">Monthly Repayment:</p> <span class="readonly-data ml-2">${monthlyRepayment}</span></div>`;
|
|
693
693
|
// Only show rental income and occupancy for BTL applications
|
|
694
694
|
if (isBTL) {
|
|
695
|
-
summaryContent += `
|
|
696
|
-
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Rental Income:</p> <span class="readonly-data ml-2">${rentalIncome}</span></div>
|
|
695
|
+
summaryContent += `
|
|
696
|
+
<div class="flex align-items-center mb-2"><p class="text-bold m-0 readonly-data">Rental Income:</p> <span class="readonly-data ml-2">${rentalIncome}</span></div>
|
|
697
697
|
<div class="flex align-items-center"><p class="text-bold m-0 readonly-data">Occupancy:</p> <span class="readonly-data ml-2">${occupancy}</span></div>`;
|
|
698
698
|
}
|
|
699
699
|
return summaryContent;
|