@dynamatix/gb-schemas 2.3.409 → 2.3.413
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-income-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income.model.d.ts +160 -0
- package/dist/applicants/applicant-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-other-income.model.d.ts +85 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applicants/applicant.model.d.ts +6 -6
- package/dist/applicants/index.d.ts +0 -2
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +0 -1
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.js +0 -15
- package/dist/applications/application-document.model.d.ts +158 -0
- package/dist/applications/application-document.model.d.ts.map +1 -0
- package/dist/applications/application.model.d.ts +6 -6
- package/dist/applications/document.model.d.ts +158 -0
- package/dist/applications/document.model.d.ts.map +1 -0
- package/dist/applications/productfeatures.model.d.ts +368 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -0
- package/dist/shared/document-type-model.d.ts +48 -0
- package/dist/shared/document-type-model.d.ts.map +1 -0
- package/package.json +87 -87
- package/dist/applicants/applicant-large-exposure.model.d.ts +0 -520
- package/dist/applicants/applicant-large-exposure.model.d.ts.map +0 -1
- package/dist/applicants/applicant-large-exposure.model.js +0 -30
- package/dist/applicants/applicant-large-exposure.type.d.ts +0 -38
- package/dist/applicants/applicant-large-exposure.type.d.ts.map +0 -1
- package/dist/applicants/applicant-large-exposure.type.js +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { Pound } from "../value-objects/pound";
|
|
3
|
+
declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
4
|
+
toJSON: {
|
|
5
|
+
getters: true;
|
|
6
|
+
};
|
|
7
|
+
toObject: {
|
|
8
|
+
getters: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
pageValidFlag: string;
|
|
12
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
13
|
+
natureOfBusiness: string;
|
|
14
|
+
yearEnd1: number;
|
|
15
|
+
yearEnd2: number;
|
|
16
|
+
yearEnd3: number;
|
|
17
|
+
accountantsAddressLine1: string;
|
|
18
|
+
accountantsAddressLine2: string;
|
|
19
|
+
accountantsAddressLine3: string;
|
|
20
|
+
accountantsCity: string;
|
|
21
|
+
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
22
|
+
accountantsEmail: string;
|
|
23
|
+
accountantsPostCode: string;
|
|
24
|
+
accountantsPractice: string;
|
|
25
|
+
accountantsTelephoneNumber: string;
|
|
26
|
+
businessAddressLine1: string;
|
|
27
|
+
businessAddressLine2: string;
|
|
28
|
+
businessAddressLine3: string;
|
|
29
|
+
businessCity: string;
|
|
30
|
+
businessCountryLid: mongoose.Types.ObjectId;
|
|
31
|
+
businessPostCode: string;
|
|
32
|
+
businessTelephoneNumber: string;
|
|
33
|
+
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
34
|
+
contactName: string;
|
|
35
|
+
currentYearEnd: string;
|
|
36
|
+
dateEstablished: string;
|
|
37
|
+
doYouHaveAccountant: boolean;
|
|
38
|
+
isBusinessAddressDifferent: boolean;
|
|
39
|
+
nameOfBusiness: string;
|
|
40
|
+
netAssets1: Pound;
|
|
41
|
+
netAssets2: Pound;
|
|
42
|
+
netAssets3: Pound;
|
|
43
|
+
percentageOfShareholding: number;
|
|
44
|
+
registeredAddressLine1: string;
|
|
45
|
+
registeredAddressLine2: string;
|
|
46
|
+
registeredAddressLine3: string;
|
|
47
|
+
registeredCity: string;
|
|
48
|
+
registeredCountryLid: mongoose.Types.ObjectId;
|
|
49
|
+
registeredPostCode: string;
|
|
50
|
+
registeredTelephone: string;
|
|
51
|
+
selfEmployedDate: string;
|
|
52
|
+
turnover1: Pound;
|
|
53
|
+
turnover2: Pound;
|
|
54
|
+
turnover3: Pound;
|
|
55
|
+
year1: Pound;
|
|
56
|
+
year2: Pound;
|
|
57
|
+
year3: Pound;
|
|
58
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
59
|
+
pageValidFlag: string;
|
|
60
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
61
|
+
natureOfBusiness: string;
|
|
62
|
+
yearEnd1: number;
|
|
63
|
+
yearEnd2: number;
|
|
64
|
+
yearEnd3: number;
|
|
65
|
+
accountantsAddressLine1: string;
|
|
66
|
+
accountantsAddressLine2: string;
|
|
67
|
+
accountantsAddressLine3: string;
|
|
68
|
+
accountantsCity: string;
|
|
69
|
+
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
70
|
+
accountantsEmail: string;
|
|
71
|
+
accountantsPostCode: string;
|
|
72
|
+
accountantsPractice: string;
|
|
73
|
+
accountantsTelephoneNumber: string;
|
|
74
|
+
businessAddressLine1: string;
|
|
75
|
+
businessAddressLine2: string;
|
|
76
|
+
businessAddressLine3: string;
|
|
77
|
+
businessCity: string;
|
|
78
|
+
businessCountryLid: mongoose.Types.ObjectId;
|
|
79
|
+
businessPostCode: string;
|
|
80
|
+
businessTelephoneNumber: string;
|
|
81
|
+
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
82
|
+
contactName: string;
|
|
83
|
+
currentYearEnd: string;
|
|
84
|
+
dateEstablished: string;
|
|
85
|
+
doYouHaveAccountant: boolean;
|
|
86
|
+
isBusinessAddressDifferent: boolean;
|
|
87
|
+
nameOfBusiness: string;
|
|
88
|
+
netAssets1: Pound;
|
|
89
|
+
netAssets2: Pound;
|
|
90
|
+
netAssets3: Pound;
|
|
91
|
+
percentageOfShareholding: number;
|
|
92
|
+
registeredAddressLine1: string;
|
|
93
|
+
registeredAddressLine2: string;
|
|
94
|
+
registeredAddressLine3: string;
|
|
95
|
+
registeredCity: string;
|
|
96
|
+
registeredCountryLid: mongoose.Types.ObjectId;
|
|
97
|
+
registeredPostCode: string;
|
|
98
|
+
registeredTelephone: string;
|
|
99
|
+
selfEmployedDate: string;
|
|
100
|
+
turnover1: Pound;
|
|
101
|
+
turnover2: Pound;
|
|
102
|
+
turnover3: Pound;
|
|
103
|
+
year1: Pound;
|
|
104
|
+
year2: Pound;
|
|
105
|
+
year3: Pound;
|
|
106
|
+
}>> & mongoose.FlatRecord<{
|
|
107
|
+
pageValidFlag: string;
|
|
108
|
+
businessTypeLid: mongoose.Types.ObjectId;
|
|
109
|
+
natureOfBusiness: string;
|
|
110
|
+
yearEnd1: number;
|
|
111
|
+
yearEnd2: number;
|
|
112
|
+
yearEnd3: number;
|
|
113
|
+
accountantsAddressLine1: string;
|
|
114
|
+
accountantsAddressLine2: string;
|
|
115
|
+
accountantsAddressLine3: string;
|
|
116
|
+
accountantsCity: string;
|
|
117
|
+
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
118
|
+
accountantsEmail: string;
|
|
119
|
+
accountantsPostCode: string;
|
|
120
|
+
accountantsPractice: string;
|
|
121
|
+
accountantsTelephoneNumber: string;
|
|
122
|
+
businessAddressLine1: string;
|
|
123
|
+
businessAddressLine2: string;
|
|
124
|
+
businessAddressLine3: string;
|
|
125
|
+
businessCity: string;
|
|
126
|
+
businessCountryLid: mongoose.Types.ObjectId;
|
|
127
|
+
businessPostCode: string;
|
|
128
|
+
businessTelephoneNumber: string;
|
|
129
|
+
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
130
|
+
contactName: string;
|
|
131
|
+
currentYearEnd: string;
|
|
132
|
+
dateEstablished: string;
|
|
133
|
+
doYouHaveAccountant: boolean;
|
|
134
|
+
isBusinessAddressDifferent: boolean;
|
|
135
|
+
nameOfBusiness: string;
|
|
136
|
+
netAssets1: Pound;
|
|
137
|
+
netAssets2: Pound;
|
|
138
|
+
netAssets3: Pound;
|
|
139
|
+
percentageOfShareholding: number;
|
|
140
|
+
registeredAddressLine1: string;
|
|
141
|
+
registeredAddressLine2: string;
|
|
142
|
+
registeredAddressLine3: string;
|
|
143
|
+
registeredCity: string;
|
|
144
|
+
registeredCountryLid: mongoose.Types.ObjectId;
|
|
145
|
+
registeredPostCode: string;
|
|
146
|
+
registeredTelephone: string;
|
|
147
|
+
selfEmployedDate: string;
|
|
148
|
+
turnover1: Pound;
|
|
149
|
+
turnover2: Pound;
|
|
150
|
+
turnover3: Pound;
|
|
151
|
+
year1: Pound;
|
|
152
|
+
year2: Pound;
|
|
153
|
+
year3: Pound;
|
|
154
|
+
}> & {
|
|
155
|
+
_id: mongoose.Types.ObjectId;
|
|
156
|
+
} & {
|
|
157
|
+
__v: number;
|
|
158
|
+
}>;
|
|
159
|
+
export default incomeSchema;
|
|
160
|
+
//# sourceMappingURL=applicant-income.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { Pound } from "../value-objects/pound";
|
|
3
|
+
declare const applicantOtherIncomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
4
|
+
toJSON: {
|
|
5
|
+
getters: true;
|
|
6
|
+
};
|
|
7
|
+
toObject: {
|
|
8
|
+
getters: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
maintenance: Pound;
|
|
12
|
+
sourceDetails1: string;
|
|
13
|
+
amount1: Pound;
|
|
14
|
+
payFrequency1Lid: mongoose.Types.ObjectId;
|
|
15
|
+
guaranteed1: boolean;
|
|
16
|
+
sourceDetails2: string;
|
|
17
|
+
amount2: Pound;
|
|
18
|
+
payFrequency2Lid: mongoose.Types.ObjectId;
|
|
19
|
+
guaranteed2: boolean;
|
|
20
|
+
sourceDetails3: string;
|
|
21
|
+
amount3: Pound;
|
|
22
|
+
payFrequency3Lid: mongoose.Types.ObjectId;
|
|
23
|
+
guaranteed3: boolean;
|
|
24
|
+
sourceDetails4: string;
|
|
25
|
+
amount4: Pound;
|
|
26
|
+
payFrequency4Lid: mongoose.Types.ObjectId;
|
|
27
|
+
guaranteed4: boolean;
|
|
28
|
+
taxCredits: Pound;
|
|
29
|
+
otherBenefits: Pound;
|
|
30
|
+
grossPensionIncome: Pound;
|
|
31
|
+
privatePensionIncome: Pound;
|
|
32
|
+
statePensionIncome: Pound;
|
|
33
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
34
|
+
maintenance: Pound;
|
|
35
|
+
sourceDetails1: string;
|
|
36
|
+
amount1: Pound;
|
|
37
|
+
payFrequency1Lid: mongoose.Types.ObjectId;
|
|
38
|
+
guaranteed1: boolean;
|
|
39
|
+
sourceDetails2: string;
|
|
40
|
+
amount2: Pound;
|
|
41
|
+
payFrequency2Lid: mongoose.Types.ObjectId;
|
|
42
|
+
guaranteed2: boolean;
|
|
43
|
+
sourceDetails3: string;
|
|
44
|
+
amount3: Pound;
|
|
45
|
+
payFrequency3Lid: mongoose.Types.ObjectId;
|
|
46
|
+
guaranteed3: boolean;
|
|
47
|
+
sourceDetails4: string;
|
|
48
|
+
amount4: Pound;
|
|
49
|
+
payFrequency4Lid: mongoose.Types.ObjectId;
|
|
50
|
+
guaranteed4: boolean;
|
|
51
|
+
taxCredits: Pound;
|
|
52
|
+
otherBenefits: Pound;
|
|
53
|
+
grossPensionIncome: Pound;
|
|
54
|
+
privatePensionIncome: Pound;
|
|
55
|
+
statePensionIncome: Pound;
|
|
56
|
+
}>> & mongoose.FlatRecord<{
|
|
57
|
+
maintenance: Pound;
|
|
58
|
+
sourceDetails1: string;
|
|
59
|
+
amount1: Pound;
|
|
60
|
+
payFrequency1Lid: mongoose.Types.ObjectId;
|
|
61
|
+
guaranteed1: boolean;
|
|
62
|
+
sourceDetails2: string;
|
|
63
|
+
amount2: Pound;
|
|
64
|
+
payFrequency2Lid: mongoose.Types.ObjectId;
|
|
65
|
+
guaranteed2: boolean;
|
|
66
|
+
sourceDetails3: string;
|
|
67
|
+
amount3: Pound;
|
|
68
|
+
payFrequency3Lid: mongoose.Types.ObjectId;
|
|
69
|
+
guaranteed3: boolean;
|
|
70
|
+
sourceDetails4: string;
|
|
71
|
+
amount4: Pound;
|
|
72
|
+
payFrequency4Lid: mongoose.Types.ObjectId;
|
|
73
|
+
guaranteed4: boolean;
|
|
74
|
+
taxCredits: Pound;
|
|
75
|
+
otherBenefits: Pound;
|
|
76
|
+
grossPensionIncome: Pound;
|
|
77
|
+
privatePensionIncome: Pound;
|
|
78
|
+
statePensionIncome: Pound;
|
|
79
|
+
}> & {
|
|
80
|
+
_id: mongoose.Types.ObjectId;
|
|
81
|
+
} & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}>;
|
|
84
|
+
export default applicantOtherIncomeSchema;
|
|
85
|
+
//# sourceMappingURL=applicant-other-income.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicant-other-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-other-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C9B,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
|
|
@@ -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;
|
|
@@ -139,10 +139,10 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
139
139
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
140
140
|
firstName?: unknown;
|
|
141
141
|
lastName?: unknown;
|
|
142
|
-
isUkResident?: unknown;
|
|
143
142
|
email?: unknown;
|
|
144
143
|
creditProfile?: unknown;
|
|
145
144
|
riskNarrative?: unknown;
|
|
145
|
+
isUkResident?: unknown;
|
|
146
146
|
incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
|
|
147
147
|
isExpenseOwner?: unknown;
|
|
148
148
|
creditData?: unknown;
|
|
@@ -490,10 +490,10 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
490
490
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
491
491
|
firstName?: unknown;
|
|
492
492
|
lastName?: unknown;
|
|
493
|
-
isUkResident?: unknown;
|
|
494
493
|
email?: unknown;
|
|
495
494
|
creditProfile?: unknown;
|
|
496
495
|
riskNarrative?: unknown;
|
|
496
|
+
isUkResident?: unknown;
|
|
497
497
|
incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
|
|
498
498
|
isExpenseOwner?: unknown;
|
|
499
499
|
creditData?: unknown;
|
|
@@ -841,10 +841,10 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
841
841
|
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
842
842
|
firstName?: unknown;
|
|
843
843
|
lastName?: unknown;
|
|
844
|
-
isUkResident?: unknown;
|
|
845
844
|
email?: unknown;
|
|
846
845
|
creditProfile?: unknown;
|
|
847
846
|
riskNarrative?: unknown;
|
|
847
|
+
isUkResident?: unknown;
|
|
848
848
|
incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
|
|
849
849
|
isExpenseOwner?: unknown;
|
|
850
850
|
creditData?: unknown;
|
|
@@ -1111,8 +1111,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1111
1111
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
1112
1112
|
firstName: string;
|
|
1113
1113
|
lastName: string;
|
|
1114
|
-
isUkResident: boolean;
|
|
1115
1114
|
email: string;
|
|
1115
|
+
isUkResident: boolean;
|
|
1116
1116
|
incomeSourceId: mongoose.Types.ObjectId;
|
|
1117
1117
|
addressMovedDate: string;
|
|
1118
1118
|
correspondenceAddressCity: string;
|
|
@@ -1266,8 +1266,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1266
1266
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
1267
1267
|
firstName: string;
|
|
1268
1268
|
lastName: string;
|
|
1269
|
-
isUkResident: boolean;
|
|
1270
1269
|
email: string;
|
|
1270
|
+
isUkResident: boolean;
|
|
1271
1271
|
incomeSourceId: mongoose.Types.ObjectId;
|
|
1272
1272
|
addressMovedDate: string;
|
|
1273
1273
|
correspondenceAddressCity: string;
|
|
@@ -1421,8 +1421,8 @@ declare const ApplicantModel: mongoose.Model<{
|
|
|
1421
1421
|
addressCountryLid: mongoose.Types.ObjectId;
|
|
1422
1422
|
firstName: string;
|
|
1423
1423
|
lastName: string;
|
|
1424
|
-
isUkResident: boolean;
|
|
1425
1424
|
email: string;
|
|
1425
|
+
isUkResident: boolean;
|
|
1426
1426
|
incomeSourceId: mongoose.Types.ObjectId;
|
|
1427
1427
|
addressMovedDate: string;
|
|
1428
1428
|
correspondenceAddressCity: string;
|
|
@@ -18,8 +18,6 @@ export { default as ApplicantSelfEmploymentModel } from './applicant-self-employ
|
|
|
18
18
|
export { default as ApplicantIncomeSettingsModel } from './applicant-income-settings.model';
|
|
19
19
|
export { default as ApplicantIncomeSummaryModel } from './applicant-income-summary.model';
|
|
20
20
|
export { default as ApplicantCreditReportModel } from './applicant-credit-report.model';
|
|
21
|
-
export { default as ApplicantLargeExposureModel } from './applicant-large-exposure.model';
|
|
22
|
-
export { default as ApplicantLargeExposureType } from './applicant-large-exposure.type';
|
|
23
21
|
export { default as ApplicantAdditionalIncomeType } from './applicant-additional-income.type';
|
|
24
22
|
export { default as ApplicantEmploymentIncomeType } from './applicant-employment-income.type';
|
|
25
23
|
export { default as ApplicantPensionIncomeType } from './applicant-pension-income.type';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAErG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../applicants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAErG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/applicants/index.js
CHANGED
|
@@ -18,5 +18,4 @@ export { default as ApplicantSelfEmploymentModel } from './applicant-self-employ
|
|
|
18
18
|
export { default as ApplicantIncomeSettingsModel } from './applicant-income-settings.model';
|
|
19
19
|
export { default as ApplicantIncomeSummaryModel } from './applicant-income-summary.model';
|
|
20
20
|
export { default as ApplicantCreditReportModel } from './applicant-credit-report.model';
|
|
21
|
-
export { default as ApplicantLargeExposureModel } from './applicant-large-exposure.model';
|
|
22
21
|
export { default as ApplicantWelcomeCallModel } from './applicant-welcome-call.model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAkKhE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
|
|
@@ -146,21 +146,6 @@ const virtualApplicants = applicationDirectDebitSchema.virtual('applicants', {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
virtualApplicants.description = 'Full Name of the applicant';
|
|
149
|
-
// Virtual property: true only when all applicants on this application have isUkResident === false
|
|
150
|
-
const virtualAllApplicantsNonUkResident = applicationDirectDebitSchema.virtual('allApplicantsNonUkResident').get(async function () {
|
|
151
|
-
const applicationId = this.applicationId;
|
|
152
|
-
if (!applicationId) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
const Applicant = mongoose.model('Applicant');
|
|
156
|
-
const applicants = await Applicant.find({ applicationId }).select('isUkResident').lean();
|
|
157
|
-
if (!applicants || applicants.length === 0) {
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
// Return true only if every applicant has isUkResident === false
|
|
161
|
-
return applicants.every((applicant) => applicant.isUkResident === false);
|
|
162
|
-
});
|
|
163
|
-
virtualAllApplicantsNonUkResident.description = 'True when all applicants on this application have isUkResident === false';
|
|
164
149
|
// Index for applicationId queries
|
|
165
150
|
applicationDirectDebitSchema.index({ applicationId: 1 });
|
|
166
151
|
applyAuditMiddleware(applicationDirectDebitSchema, "application_directdebit");
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const ApplicationDocumentModel: mongoose.Model<{
|
|
3
|
+
createdAt: NativeDate;
|
|
4
|
+
updatedAt: NativeDate;
|
|
5
|
+
} & {
|
|
6
|
+
documentId: string;
|
|
7
|
+
signers: any[];
|
|
8
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
9
|
+
data?: string | null | undefined;
|
|
10
|
+
owningEntityId?: string | null | undefined;
|
|
11
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
12
|
+
documentTypeId?: string | null | undefined;
|
|
13
|
+
fileName?: string | null | undefined;
|
|
14
|
+
contentType?: string | null | undefined;
|
|
15
|
+
created?: string | null | undefined;
|
|
16
|
+
createdBy?: string | null | undefined;
|
|
17
|
+
isGenerated?: string | null | undefined;
|
|
18
|
+
envelopeId?: string | null | undefined;
|
|
19
|
+
documentType?: {
|
|
20
|
+
data?: any;
|
|
21
|
+
value?: string | null | undefined;
|
|
22
|
+
documentTypeId?: string | null | undefined;
|
|
23
|
+
displayName?: string | null | undefined;
|
|
24
|
+
} | null | undefined;
|
|
25
|
+
documentUrl?: string | null | undefined;
|
|
26
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
27
|
+
createdAt: NativeDate;
|
|
28
|
+
updatedAt: NativeDate;
|
|
29
|
+
} & {
|
|
30
|
+
documentId: string;
|
|
31
|
+
signers: any[];
|
|
32
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
33
|
+
data?: string | null | undefined;
|
|
34
|
+
owningEntityId?: string | null | undefined;
|
|
35
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
36
|
+
documentTypeId?: string | null | undefined;
|
|
37
|
+
fileName?: string | null | undefined;
|
|
38
|
+
contentType?: string | null | undefined;
|
|
39
|
+
created?: string | null | undefined;
|
|
40
|
+
createdBy?: string | null | undefined;
|
|
41
|
+
isGenerated?: string | null | undefined;
|
|
42
|
+
envelopeId?: string | null | undefined;
|
|
43
|
+
documentType?: {
|
|
44
|
+
data?: any;
|
|
45
|
+
value?: string | null | undefined;
|
|
46
|
+
documentTypeId?: string | null | undefined;
|
|
47
|
+
displayName?: string | null | undefined;
|
|
48
|
+
} | null | undefined;
|
|
49
|
+
documentUrl?: string | null | undefined;
|
|
50
|
+
}> & {
|
|
51
|
+
createdAt: NativeDate;
|
|
52
|
+
updatedAt: NativeDate;
|
|
53
|
+
} & {
|
|
54
|
+
documentId: string;
|
|
55
|
+
signers: any[];
|
|
56
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
57
|
+
data?: string | null | undefined;
|
|
58
|
+
owningEntityId?: string | null | undefined;
|
|
59
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
60
|
+
documentTypeId?: string | null | undefined;
|
|
61
|
+
fileName?: string | null | undefined;
|
|
62
|
+
contentType?: string | null | undefined;
|
|
63
|
+
created?: string | null | undefined;
|
|
64
|
+
createdBy?: string | null | undefined;
|
|
65
|
+
isGenerated?: string | null | undefined;
|
|
66
|
+
envelopeId?: string | null | undefined;
|
|
67
|
+
documentType?: {
|
|
68
|
+
data?: any;
|
|
69
|
+
value?: string | null | undefined;
|
|
70
|
+
documentTypeId?: string | null | undefined;
|
|
71
|
+
displayName?: string | null | undefined;
|
|
72
|
+
} | null | undefined;
|
|
73
|
+
documentUrl?: string | null | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
_id: mongoose.Types.ObjectId;
|
|
76
|
+
} & {
|
|
77
|
+
__v: number;
|
|
78
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
79
|
+
timestamps: true;
|
|
80
|
+
}, {
|
|
81
|
+
createdAt: NativeDate;
|
|
82
|
+
updatedAt: NativeDate;
|
|
83
|
+
} & {
|
|
84
|
+
documentId: string;
|
|
85
|
+
signers: any[];
|
|
86
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
87
|
+
data?: string | null | undefined;
|
|
88
|
+
owningEntityId?: string | null | undefined;
|
|
89
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
90
|
+
documentTypeId?: string | null | undefined;
|
|
91
|
+
fileName?: string | null | undefined;
|
|
92
|
+
contentType?: string | null | undefined;
|
|
93
|
+
created?: string | null | undefined;
|
|
94
|
+
createdBy?: string | null | undefined;
|
|
95
|
+
isGenerated?: string | null | undefined;
|
|
96
|
+
envelopeId?: string | null | undefined;
|
|
97
|
+
documentType?: {
|
|
98
|
+
data?: any;
|
|
99
|
+
value?: string | null | undefined;
|
|
100
|
+
documentTypeId?: string | null | undefined;
|
|
101
|
+
displayName?: string | null | undefined;
|
|
102
|
+
} | null | undefined;
|
|
103
|
+
documentUrl?: string | null | undefined;
|
|
104
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
105
|
+
createdAt: NativeDate;
|
|
106
|
+
updatedAt: NativeDate;
|
|
107
|
+
} & {
|
|
108
|
+
documentId: string;
|
|
109
|
+
signers: any[];
|
|
110
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
111
|
+
data?: string | null | undefined;
|
|
112
|
+
owningEntityId?: string | null | undefined;
|
|
113
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
114
|
+
documentTypeId?: string | null | undefined;
|
|
115
|
+
fileName?: string | null | undefined;
|
|
116
|
+
contentType?: string | null | undefined;
|
|
117
|
+
created?: string | null | undefined;
|
|
118
|
+
createdBy?: string | null | undefined;
|
|
119
|
+
isGenerated?: string | null | undefined;
|
|
120
|
+
envelopeId?: string | null | undefined;
|
|
121
|
+
documentType?: {
|
|
122
|
+
data?: any;
|
|
123
|
+
value?: string | null | undefined;
|
|
124
|
+
documentTypeId?: string | null | undefined;
|
|
125
|
+
displayName?: string | null | undefined;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
documentUrl?: string | null | undefined;
|
|
128
|
+
}>> & mongoose.FlatRecord<{
|
|
129
|
+
createdAt: NativeDate;
|
|
130
|
+
updatedAt: NativeDate;
|
|
131
|
+
} & {
|
|
132
|
+
documentId: string;
|
|
133
|
+
signers: any[];
|
|
134
|
+
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
135
|
+
data?: string | null | undefined;
|
|
136
|
+
owningEntityId?: string | null | undefined;
|
|
137
|
+
documentTypeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
138
|
+
documentTypeId?: string | null | undefined;
|
|
139
|
+
fileName?: string | null | undefined;
|
|
140
|
+
contentType?: string | null | undefined;
|
|
141
|
+
created?: string | null | undefined;
|
|
142
|
+
createdBy?: string | null | undefined;
|
|
143
|
+
isGenerated?: string | null | undefined;
|
|
144
|
+
envelopeId?: string | null | undefined;
|
|
145
|
+
documentType?: {
|
|
146
|
+
data?: any;
|
|
147
|
+
value?: string | null | undefined;
|
|
148
|
+
documentTypeId?: string | null | undefined;
|
|
149
|
+
displayName?: string | null | undefined;
|
|
150
|
+
} | null | undefined;
|
|
151
|
+
documentUrl?: string | null | undefined;
|
|
152
|
+
}> & {
|
|
153
|
+
_id: mongoose.Types.ObjectId;
|
|
154
|
+
} & {
|
|
155
|
+
__v: number;
|
|
156
|
+
}>>;
|
|
157
|
+
export default ApplicationDocumentModel;
|
|
158
|
+
//# sourceMappingURL=application-document.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-document.model.d.ts","sourceRoot":"","sources":["../../applications/application-document.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoChC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwD,CAAC;AACvF,eAAe,wBAAwB,CAAC"}
|
|
@@ -35,7 +35,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
35
35
|
applicationId: string;
|
|
36
36
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
37
37
|
applicants: mongoose.Types.ObjectId[];
|
|
38
|
-
isUkResident: boolean;
|
|
39
38
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
40
39
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
41
40
|
introducer: string;
|
|
@@ -96,6 +95,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
96
95
|
lenderTaskCount: number;
|
|
97
96
|
pendingTaskCountForUser: number;
|
|
98
97
|
applicationFormSignedDate: NativeDate;
|
|
98
|
+
isUkResident: boolean;
|
|
99
99
|
creditReportId: string;
|
|
100
100
|
isAlgbraEligible: boolean;
|
|
101
101
|
selectedProduct?: string | null | undefined;
|
|
@@ -132,7 +132,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
132
132
|
applicationId: string;
|
|
133
133
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
134
134
|
applicants: mongoose.Types.ObjectId[];
|
|
135
|
-
isUkResident: boolean;
|
|
136
135
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
137
136
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
138
137
|
introducer: string;
|
|
@@ -193,6 +192,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
193
192
|
lenderTaskCount: number;
|
|
194
193
|
pendingTaskCountForUser: number;
|
|
195
194
|
applicationFormSignedDate: NativeDate;
|
|
195
|
+
isUkResident: boolean;
|
|
196
196
|
creditReportId: string;
|
|
197
197
|
isAlgbraEligible: boolean;
|
|
198
198
|
selectedProduct?: string | null | undefined;
|
|
@@ -229,7 +229,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
229
229
|
applicationId: string;
|
|
230
230
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
231
231
|
applicants: mongoose.Types.ObjectId[];
|
|
232
|
-
isUkResident: boolean;
|
|
233
232
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
234
233
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
235
234
|
introducer: string;
|
|
@@ -290,6 +289,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
290
289
|
lenderTaskCount: number;
|
|
291
290
|
pendingTaskCountForUser: number;
|
|
292
291
|
applicationFormSignedDate: NativeDate;
|
|
292
|
+
isUkResident: boolean;
|
|
293
293
|
creditReportId: string;
|
|
294
294
|
isAlgbraEligible: boolean;
|
|
295
295
|
selectedProduct?: string | null | undefined;
|
|
@@ -338,7 +338,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
338
338
|
applicationId: string;
|
|
339
339
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
340
340
|
applicants: mongoose.Types.ObjectId[];
|
|
341
|
-
isUkResident: boolean;
|
|
342
341
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
343
342
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
344
343
|
introducer: string;
|
|
@@ -399,6 +398,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
399
398
|
lenderTaskCount: number;
|
|
400
399
|
pendingTaskCountForUser: number;
|
|
401
400
|
applicationFormSignedDate: NativeDate;
|
|
401
|
+
isUkResident: boolean;
|
|
402
402
|
creditReportId: string;
|
|
403
403
|
isAlgbraEligible: boolean;
|
|
404
404
|
selectedProduct?: string | null | undefined;
|
|
@@ -435,7 +435,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
435
435
|
applicationId: string;
|
|
436
436
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
437
437
|
applicants: mongoose.Types.ObjectId[];
|
|
438
|
-
isUkResident: boolean;
|
|
439
438
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
440
439
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
441
440
|
introducer: string;
|
|
@@ -496,6 +495,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
496
495
|
lenderTaskCount: number;
|
|
497
496
|
pendingTaskCountForUser: number;
|
|
498
497
|
applicationFormSignedDate: NativeDate;
|
|
498
|
+
isUkResident: boolean;
|
|
499
499
|
creditReportId: string;
|
|
500
500
|
isAlgbraEligible: boolean;
|
|
501
501
|
selectedProduct?: string | null | undefined;
|
|
@@ -532,7 +532,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
532
532
|
applicationId: string;
|
|
533
533
|
applicationTypeLid: mongoose.Types.ObjectId;
|
|
534
534
|
applicants: mongoose.Types.ObjectId[];
|
|
535
|
-
isUkResident: boolean;
|
|
536
535
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
537
536
|
lendingTypeLid: mongoose.Types.ObjectId;
|
|
538
537
|
introducer: string;
|
|
@@ -593,6 +592,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
593
592
|
lenderTaskCount: number;
|
|
594
593
|
pendingTaskCountForUser: number;
|
|
595
594
|
applicationFormSignedDate: NativeDate;
|
|
595
|
+
isUkResident: boolean;
|
|
596
596
|
creditReportId: string;
|
|
597
597
|
isAlgbraEligible: boolean;
|
|
598
598
|
selectedProduct?: string | null | undefined;
|