@dynamatix/gb-schemas 2.3.422 → 2.4.0
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 +243 -0
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +17 -0
- package/dist/applicants/applicant-expenditure.model.d.ts +6 -6
- package/dist/applicants/applicant-income-summary.model.d.ts +6 -0
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-summary.model.js +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- 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
|
@@ -151,6 +151,70 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
151
151
|
financeHomeTypeLid?: unknown;
|
|
152
152
|
remainingTermMonth?: unknown;
|
|
153
153
|
chargeTypeLid?: unknown;
|
|
154
|
+
PropertyNotes?: unknown;
|
|
155
|
+
ActualPropertyValue?: {
|
|
156
|
+
validators: mongoose.Types.DocumentArray<{
|
|
157
|
+
type?: unknown;
|
|
158
|
+
message?: unknown;
|
|
159
|
+
validator?: unknown;
|
|
160
|
+
reason?: unknown;
|
|
161
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
162
|
+
type?: unknown;
|
|
163
|
+
message?: unknown;
|
|
164
|
+
validator?: unknown;
|
|
165
|
+
reason?: unknown;
|
|
166
|
+
}> & {
|
|
167
|
+
type?: unknown;
|
|
168
|
+
message?: unknown;
|
|
169
|
+
validator?: unknown;
|
|
170
|
+
reason?: unknown;
|
|
171
|
+
}>;
|
|
172
|
+
get?: {} | null | undefined;
|
|
173
|
+
schema?: {
|
|
174
|
+
[x: string]: unknown;
|
|
175
|
+
} | null | undefined;
|
|
176
|
+
set?: {} | null | undefined;
|
|
177
|
+
validate?: {} | null | undefined;
|
|
178
|
+
index?: {} | null | undefined;
|
|
179
|
+
default?: {} | null | undefined;
|
|
180
|
+
text?: {} | null | undefined;
|
|
181
|
+
unique?: {} | null | undefined;
|
|
182
|
+
sparse?: {} | null | undefined;
|
|
183
|
+
cast?: {} | null | undefined;
|
|
184
|
+
required?: {} | null | undefined;
|
|
185
|
+
ref?: {} | null | undefined;
|
|
186
|
+
select?: {} | null | undefined;
|
|
187
|
+
immutable?: {} | null | undefined;
|
|
188
|
+
transform?: {} | null | undefined;
|
|
189
|
+
options?: {
|
|
190
|
+
[x: string]: unknown;
|
|
191
|
+
} | null | undefined;
|
|
192
|
+
OptionsConstructor?: {
|
|
193
|
+
[x: string]: unknown;
|
|
194
|
+
} | null | undefined;
|
|
195
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
196
|
+
instance?: unknown;
|
|
197
|
+
isRequired?: unknown;
|
|
198
|
+
path?: unknown;
|
|
199
|
+
toJSONSchema?: {} | null | undefined;
|
|
200
|
+
validateAll?: {} | null | undefined;
|
|
201
|
+
defaultOptions?: unknown;
|
|
202
|
+
} | null | undefined;
|
|
203
|
+
PropertyBuiltType?: unknown;
|
|
204
|
+
hasLift?: unknown;
|
|
205
|
+
AgeofProperty?: unknown;
|
|
206
|
+
Dateofpropertybuilt?: unknown;
|
|
207
|
+
PropertyType?: unknown;
|
|
208
|
+
RegistrationDateandTime?: unknown;
|
|
209
|
+
Age?: unknown;
|
|
210
|
+
CountryMultiselect?: unknown;
|
|
211
|
+
PercentageofEPC?: unknown;
|
|
212
|
+
propertyTypeLid?: unknown;
|
|
213
|
+
rationale?: unknown;
|
|
214
|
+
ApplicantSortcode?: unknown;
|
|
215
|
+
accountnumber?: unknown;
|
|
216
|
+
Postcode?: unknown;
|
|
217
|
+
AddressLine1?: unknown;
|
|
154
218
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
155
219
|
isSelected?: unknown;
|
|
156
220
|
source?: unknown;
|
|
@@ -274,6 +338,70 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
274
338
|
financeHomeTypeLid?: unknown;
|
|
275
339
|
remainingTermMonth?: unknown;
|
|
276
340
|
chargeTypeLid?: unknown;
|
|
341
|
+
PropertyNotes?: unknown;
|
|
342
|
+
ActualPropertyValue?: {
|
|
343
|
+
validators: mongoose.Types.DocumentArray<{
|
|
344
|
+
type?: unknown;
|
|
345
|
+
message?: unknown;
|
|
346
|
+
validator?: unknown;
|
|
347
|
+
reason?: unknown;
|
|
348
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
349
|
+
type?: unknown;
|
|
350
|
+
message?: unknown;
|
|
351
|
+
validator?: unknown;
|
|
352
|
+
reason?: unknown;
|
|
353
|
+
}> & {
|
|
354
|
+
type?: unknown;
|
|
355
|
+
message?: unknown;
|
|
356
|
+
validator?: unknown;
|
|
357
|
+
reason?: unknown;
|
|
358
|
+
}>;
|
|
359
|
+
get?: {} | null | undefined;
|
|
360
|
+
schema?: {
|
|
361
|
+
[x: string]: unknown;
|
|
362
|
+
} | null | undefined;
|
|
363
|
+
set?: {} | null | undefined;
|
|
364
|
+
validate?: {} | null | undefined;
|
|
365
|
+
index?: {} | null | undefined;
|
|
366
|
+
default?: {} | null | undefined;
|
|
367
|
+
text?: {} | null | undefined;
|
|
368
|
+
unique?: {} | null | undefined;
|
|
369
|
+
sparse?: {} | null | undefined;
|
|
370
|
+
cast?: {} | null | undefined;
|
|
371
|
+
required?: {} | null | undefined;
|
|
372
|
+
ref?: {} | null | undefined;
|
|
373
|
+
select?: {} | null | undefined;
|
|
374
|
+
immutable?: {} | null | undefined;
|
|
375
|
+
transform?: {} | null | undefined;
|
|
376
|
+
options?: {
|
|
377
|
+
[x: string]: unknown;
|
|
378
|
+
} | null | undefined;
|
|
379
|
+
OptionsConstructor?: {
|
|
380
|
+
[x: string]: unknown;
|
|
381
|
+
} | null | undefined;
|
|
382
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
383
|
+
instance?: unknown;
|
|
384
|
+
isRequired?: unknown;
|
|
385
|
+
path?: unknown;
|
|
386
|
+
toJSONSchema?: {} | null | undefined;
|
|
387
|
+
validateAll?: {} | null | undefined;
|
|
388
|
+
defaultOptions?: unknown;
|
|
389
|
+
} | null | undefined;
|
|
390
|
+
PropertyBuiltType?: unknown;
|
|
391
|
+
hasLift?: unknown;
|
|
392
|
+
AgeofProperty?: unknown;
|
|
393
|
+
Dateofpropertybuilt?: unknown;
|
|
394
|
+
PropertyType?: unknown;
|
|
395
|
+
RegistrationDateandTime?: unknown;
|
|
396
|
+
Age?: unknown;
|
|
397
|
+
CountryMultiselect?: unknown;
|
|
398
|
+
PercentageofEPC?: unknown;
|
|
399
|
+
propertyTypeLid?: unknown;
|
|
400
|
+
rationale?: unknown;
|
|
401
|
+
ApplicantSortcode?: unknown;
|
|
402
|
+
accountnumber?: unknown;
|
|
403
|
+
Postcode?: unknown;
|
|
404
|
+
AddressLine1?: unknown;
|
|
277
405
|
}, {}> & {
|
|
278
406
|
isSelected?: unknown;
|
|
279
407
|
source?: unknown;
|
|
@@ -397,6 +525,70 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
397
525
|
financeHomeTypeLid?: unknown;
|
|
398
526
|
remainingTermMonth?: unknown;
|
|
399
527
|
chargeTypeLid?: unknown;
|
|
528
|
+
PropertyNotes?: unknown;
|
|
529
|
+
ActualPropertyValue?: {
|
|
530
|
+
validators: mongoose.Types.DocumentArray<{
|
|
531
|
+
type?: unknown;
|
|
532
|
+
message?: unknown;
|
|
533
|
+
validator?: unknown;
|
|
534
|
+
reason?: unknown;
|
|
535
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
536
|
+
type?: unknown;
|
|
537
|
+
message?: unknown;
|
|
538
|
+
validator?: unknown;
|
|
539
|
+
reason?: unknown;
|
|
540
|
+
}> & {
|
|
541
|
+
type?: unknown;
|
|
542
|
+
message?: unknown;
|
|
543
|
+
validator?: unknown;
|
|
544
|
+
reason?: unknown;
|
|
545
|
+
}>;
|
|
546
|
+
get?: {} | null | undefined;
|
|
547
|
+
schema?: {
|
|
548
|
+
[x: string]: unknown;
|
|
549
|
+
} | null | undefined;
|
|
550
|
+
set?: {} | null | undefined;
|
|
551
|
+
validate?: {} | null | undefined;
|
|
552
|
+
index?: {} | null | undefined;
|
|
553
|
+
default?: {} | null | undefined;
|
|
554
|
+
text?: {} | null | undefined;
|
|
555
|
+
unique?: {} | null | undefined;
|
|
556
|
+
sparse?: {} | null | undefined;
|
|
557
|
+
cast?: {} | null | undefined;
|
|
558
|
+
required?: {} | null | undefined;
|
|
559
|
+
ref?: {} | null | undefined;
|
|
560
|
+
select?: {} | null | undefined;
|
|
561
|
+
immutable?: {} | null | undefined;
|
|
562
|
+
transform?: {} | null | undefined;
|
|
563
|
+
options?: {
|
|
564
|
+
[x: string]: unknown;
|
|
565
|
+
} | null | undefined;
|
|
566
|
+
OptionsConstructor?: {
|
|
567
|
+
[x: string]: unknown;
|
|
568
|
+
} | null | undefined;
|
|
569
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
570
|
+
instance?: unknown;
|
|
571
|
+
isRequired?: unknown;
|
|
572
|
+
path?: unknown;
|
|
573
|
+
toJSONSchema?: {} | null | undefined;
|
|
574
|
+
validateAll?: {} | null | undefined;
|
|
575
|
+
defaultOptions?: unknown;
|
|
576
|
+
} | null | undefined;
|
|
577
|
+
PropertyBuiltType?: unknown;
|
|
578
|
+
hasLift?: unknown;
|
|
579
|
+
AgeofProperty?: unknown;
|
|
580
|
+
Dateofpropertybuilt?: unknown;
|
|
581
|
+
PropertyType?: unknown;
|
|
582
|
+
RegistrationDateandTime?: unknown;
|
|
583
|
+
Age?: unknown;
|
|
584
|
+
CountryMultiselect?: unknown;
|
|
585
|
+
PercentageofEPC?: unknown;
|
|
586
|
+
propertyTypeLid?: unknown;
|
|
587
|
+
rationale?: unknown;
|
|
588
|
+
ApplicantSortcode?: unknown;
|
|
589
|
+
accountnumber?: unknown;
|
|
590
|
+
Postcode?: unknown;
|
|
591
|
+
AddressLine1?: unknown;
|
|
400
592
|
} & {
|
|
401
593
|
_id: mongoose.Types.ObjectId;
|
|
402
594
|
} & {
|
|
@@ -431,6 +623,20 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
431
623
|
accountInArrears: boolean;
|
|
432
624
|
accountInArrearsDetails: string;
|
|
433
625
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
626
|
+
PropertyNotes: string;
|
|
627
|
+
ActualPropertyValue: Pound;
|
|
628
|
+
PropertyBuiltType: string;
|
|
629
|
+
hasLift: string;
|
|
630
|
+
Dateofpropertybuilt: string;
|
|
631
|
+
RegistrationDateandTime: string;
|
|
632
|
+
Age: string;
|
|
633
|
+
CountryMultiselect: string;
|
|
634
|
+
PercentageofEPC: string;
|
|
635
|
+
rationale: string;
|
|
636
|
+
ApplicantSortcode: string;
|
|
637
|
+
accountnumber: string;
|
|
638
|
+
Postcode: string;
|
|
639
|
+
AddressLine1: string;
|
|
434
640
|
monthlyPayment?: Pound | null | undefined;
|
|
435
641
|
outstandingBalance?: Pound | null | undefined;
|
|
436
642
|
lenderName?: string | null | undefined;
|
|
@@ -439,6 +645,9 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
439
645
|
financeHomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
440
646
|
remainingTermMonth?: number | null | undefined;
|
|
441
647
|
chargeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
648
|
+
AgeofProperty?: number | null | undefined;
|
|
649
|
+
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
650
|
+
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
442
651
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
443
652
|
isSelected: boolean;
|
|
444
653
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
@@ -460,6 +669,20 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
460
669
|
accountInArrears: boolean;
|
|
461
670
|
accountInArrearsDetails: string;
|
|
462
671
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
672
|
+
PropertyNotes: string;
|
|
673
|
+
ActualPropertyValue: Pound;
|
|
674
|
+
PropertyBuiltType: string;
|
|
675
|
+
hasLift: string;
|
|
676
|
+
Dateofpropertybuilt: string;
|
|
677
|
+
RegistrationDateandTime: string;
|
|
678
|
+
Age: string;
|
|
679
|
+
CountryMultiselect: string;
|
|
680
|
+
PercentageofEPC: string;
|
|
681
|
+
rationale: string;
|
|
682
|
+
ApplicantSortcode: string;
|
|
683
|
+
accountnumber: string;
|
|
684
|
+
Postcode: string;
|
|
685
|
+
AddressLine1: string;
|
|
463
686
|
monthlyPayment?: Pound | null | undefined;
|
|
464
687
|
outstandingBalance?: Pound | null | undefined;
|
|
465
688
|
lenderName?: string | null | undefined;
|
|
@@ -468,6 +691,9 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
468
691
|
financeHomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
469
692
|
remainingTermMonth?: number | null | undefined;
|
|
470
693
|
chargeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
694
|
+
AgeofProperty?: number | null | undefined;
|
|
695
|
+
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
696
|
+
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
471
697
|
}>, {}> & mongoose.FlatRecord<{
|
|
472
698
|
isSelected: boolean;
|
|
473
699
|
source: "Broker" | "Credit Report" | "Underwriter";
|
|
@@ -489,6 +715,20 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
489
715
|
accountInArrears: boolean;
|
|
490
716
|
accountInArrearsDetails: string;
|
|
491
717
|
financeTypeHppLid: mongoose.Types.ObjectId;
|
|
718
|
+
PropertyNotes: string;
|
|
719
|
+
ActualPropertyValue: Pound;
|
|
720
|
+
PropertyBuiltType: string;
|
|
721
|
+
hasLift: string;
|
|
722
|
+
Dateofpropertybuilt: string;
|
|
723
|
+
RegistrationDateandTime: string;
|
|
724
|
+
Age: string;
|
|
725
|
+
CountryMultiselect: string;
|
|
726
|
+
PercentageofEPC: string;
|
|
727
|
+
rationale: string;
|
|
728
|
+
ApplicantSortcode: string;
|
|
729
|
+
accountnumber: string;
|
|
730
|
+
Postcode: string;
|
|
731
|
+
AddressLine1: string;
|
|
492
732
|
monthlyPayment?: Pound | null | undefined;
|
|
493
733
|
outstandingBalance?: Pound | null | undefined;
|
|
494
734
|
lenderName?: string | null | undefined;
|
|
@@ -497,6 +737,9 @@ declare const MortgageCommitmentModel: mongoose.Model<{
|
|
|
497
737
|
financeHomeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
498
738
|
remainingTermMonth?: number | null | undefined;
|
|
499
739
|
chargeTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
740
|
+
AgeofProperty?: number | null | undefined;
|
|
741
|
+
PropertyType?: mongoose.Types.ObjectId | null | undefined;
|
|
742
|
+
propertyTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
500
743
|
}> & {
|
|
501
744
|
_id: mongoose.Types.ObjectId;
|
|
502
745
|
} & {
|
|
@@ -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;AA6F5D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiE,CAAC;AAC/F,eAAe,uBAAuB,CAAC"}
|
|
@@ -35,6 +35,23 @@ 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: "" },
|
|
38
55
|
}, {
|
|
39
56
|
toJSON: { getters: true, virtuals: true },
|
|
40
57
|
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;
|
|
39
40
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
40
41
|
declared?: Pound | null | undefined;
|
|
41
42
|
expected?: string | null | undefined;
|
|
42
43
|
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;
|
|
52
53
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
53
54
|
declared?: Pound | null | undefined;
|
|
54
55
|
expected?: string | null | undefined;
|
|
55
56
|
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;
|
|
65
66
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
66
67
|
declared?: Pound | null | undefined;
|
|
67
68
|
expected?: string | null | undefined;
|
|
68
69
|
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;
|
|
90
91
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
91
92
|
declared?: Pound | null | undefined;
|
|
92
93
|
expected?: string | null | undefined;
|
|
93
94
|
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;
|
|
103
104
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
104
105
|
declared?: Pound | null | undefined;
|
|
105
106
|
expected?: string | null | undefined;
|
|
106
107
|
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;
|
|
116
117
|
sectionName?: "essentialExpenditure" | "basicCostOfLivingExpenditure" | null | undefined;
|
|
117
118
|
declared?: Pound | null | undefined;
|
|
118
119
|
expected?: string | null | undefined;
|
|
119
120
|
actual?: Pound | null | undefined;
|
|
120
|
-
rationale?: string | null | undefined;
|
|
121
121
|
}> & {
|
|
122
122
|
_id: mongoose.Types.ObjectId;
|
|
123
123
|
} & {
|
|
@@ -716,6 +716,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
716
716
|
validateAll?: {} | null | undefined;
|
|
717
717
|
defaultOptions?: unknown;
|
|
718
718
|
} | null | undefined;
|
|
719
|
+
NewTest?: unknown;
|
|
719
720
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
720
721
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
721
722
|
totalEmploymentGrossIncome?: {
|
|
@@ -1404,6 +1405,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
1404
1405
|
validateAll?: {} | null | undefined;
|
|
1405
1406
|
defaultOptions?: unknown;
|
|
1406
1407
|
} | null | undefined;
|
|
1408
|
+
NewTest?: unknown;
|
|
1407
1409
|
}, {}> & {
|
|
1408
1410
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
1409
1411
|
totalEmploymentGrossIncome?: {
|
|
@@ -2092,6 +2094,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2092
2094
|
validateAll?: {} | null | undefined;
|
|
2093
2095
|
defaultOptions?: unknown;
|
|
2094
2096
|
} | null | undefined;
|
|
2097
|
+
NewTest?: unknown;
|
|
2095
2098
|
} & {
|
|
2096
2099
|
_id: mongoose.Types.ObjectId;
|
|
2097
2100
|
} & {
|
|
@@ -2133,6 +2136,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2133
2136
|
soleTraderNetIncome: Pound;
|
|
2134
2137
|
totalAnnualGrossIncome: Pound;
|
|
2135
2138
|
totalAnnualNetIncome: Pound;
|
|
2139
|
+
NewTest: string;
|
|
2136
2140
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
2137
2141
|
applicantId: mongoose.Types.ObjectId;
|
|
2138
2142
|
totalEmploymentGrossIncome: Pound;
|
|
@@ -2163,6 +2167,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2163
2167
|
soleTraderNetIncome: Pound;
|
|
2164
2168
|
totalAnnualGrossIncome: Pound;
|
|
2165
2169
|
totalAnnualNetIncome: Pound;
|
|
2170
|
+
NewTest: string;
|
|
2166
2171
|
}>, {}> & mongoose.FlatRecord<{
|
|
2167
2172
|
applicantId: mongoose.Types.ObjectId;
|
|
2168
2173
|
totalEmploymentGrossIncome: Pound;
|
|
@@ -2193,6 +2198,7 @@ declare const ApplicantIncomeSummaryModel: mongoose.Model<{
|
|
|
2193
2198
|
soleTraderNetIncome: Pound;
|
|
2194
2199
|
totalAnnualGrossIncome: Pound;
|
|
2195
2200
|
totalAnnualNetIncome: Pound;
|
|
2201
|
+
NewTest: string;
|
|
2196
2202
|
}> & {
|
|
2197
2203
|
_id: mongoose.Types.ObjectId;
|
|
2198
2204
|
} & {
|
|
@@ -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;AAmD5D,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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SummarySchema = 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: "" },
|
|
35
36
|
}, {
|
|
36
37
|
toJSON: { getters: true },
|
|
37
38
|
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;
|