@dynamatix/gb-schemas 2.3.330 → 2.3.331
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.d.ts +6 -0
- package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -1
- package/dist/applicants/applicant-welcome-call.model.js +14 -9
- package/dist/applications/application-document.model.d.ts +158 -0
- package/dist/applications/application-document.model.d.ts.map +1 -0
- 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
|
@@ -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"}
|
|
@@ -38,6 +38,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
38
38
|
firstCallAttemptDate: string;
|
|
39
39
|
callCompletedDate: string;
|
|
40
40
|
failedCallReason: string;
|
|
41
|
+
idvStatus: string;
|
|
41
42
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
42
43
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
43
44
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -91,6 +92,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
91
92
|
firstCallAttemptDate: string;
|
|
92
93
|
callCompletedDate: string;
|
|
93
94
|
failedCallReason: string;
|
|
95
|
+
idvStatus: string;
|
|
94
96
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
95
97
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
96
98
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -144,6 +146,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
144
146
|
firstCallAttemptDate: string;
|
|
145
147
|
callCompletedDate: string;
|
|
146
148
|
failedCallReason: string;
|
|
149
|
+
idvStatus: string;
|
|
147
150
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
148
151
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
149
152
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -209,6 +212,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
209
212
|
firstCallAttemptDate: string;
|
|
210
213
|
callCompletedDate: string;
|
|
211
214
|
failedCallReason: string;
|
|
215
|
+
idvStatus: string;
|
|
212
216
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
213
217
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
214
218
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -262,6 +266,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
262
266
|
firstCallAttemptDate: string;
|
|
263
267
|
callCompletedDate: string;
|
|
264
268
|
failedCallReason: string;
|
|
269
|
+
idvStatus: string;
|
|
265
270
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
266
271
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
267
272
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -315,6 +320,7 @@ declare const WelcomeCallModel: mongoose.Model<{
|
|
|
315
320
|
firstCallAttemptDate: string;
|
|
316
321
|
callCompletedDate: string;
|
|
317
322
|
failedCallReason: string;
|
|
323
|
+
idvStatus: string;
|
|
318
324
|
customerDOBStatusLid: mongoose.Types.ObjectId;
|
|
319
325
|
residentialAddressStatusLid: mongoose.Types.ObjectId;
|
|
320
326
|
contactNumberStatusLid: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwuBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
|
|
@@ -30,6 +30,11 @@ const welcomeCallSchema = new mongoose.Schema({
|
|
|
30
30
|
description: "Failed Call Reason",
|
|
31
31
|
default: null,
|
|
32
32
|
},
|
|
33
|
+
idvStatus: {
|
|
34
|
+
type: String,
|
|
35
|
+
description: "IDV Status",
|
|
36
|
+
default: null
|
|
37
|
+
},
|
|
33
38
|
customerFullNameStatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
34
39
|
customerDOBStatusLid: {
|
|
35
40
|
type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null
|
|
@@ -388,10 +393,10 @@ welcomeCallSchema.virtual('otherApplicantsNameAndDOB').get(function () {
|
|
|
388
393
|
const isLast = index === otherApplicants.length - 1;
|
|
389
394
|
const comma = isLast ? '' : ',';
|
|
390
395
|
// Format as an HTML line (with bold labels and inline values)
|
|
391
|
-
return `
|
|
392
|
-
<div class="applicant-line">
|
|
393
|
-
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
394
|
-
</div>
|
|
396
|
+
return `
|
|
397
|
+
<div class="applicant-line">
|
|
398
|
+
<span class="readonly-data">${fullFirstName}, ${lastName}, ${formattedDOB}${comma}</span>
|
|
399
|
+
</div>
|
|
395
400
|
`;
|
|
396
401
|
}).filter((line) => line && line.trim() !== '');
|
|
397
402
|
// Join all applicants as HTML (no \n needed)
|
|
@@ -671,14 +676,14 @@ welcomeCallSchema.virtual('financeSummaryHtml').get(async function () {
|
|
|
671
676
|
application.lendingTypeLid.name === 'BTL';
|
|
672
677
|
const monthlyRepaymentClass = isBTL ? 'mb-2' : '';
|
|
673
678
|
// Create HTML content
|
|
674
|
-
let summaryContent = `
|
|
675
|
-
<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>
|
|
676
|
-
<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>
|
|
679
|
+
let summaryContent = `
|
|
680
|
+
<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>
|
|
681
|
+
<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>
|
|
677
682
|
<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>`;
|
|
678
683
|
// Only show rental income and occupancy for BTL applications
|
|
679
684
|
if (isBTL) {
|
|
680
|
-
summaryContent += `
|
|
681
|
-
<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>
|
|
685
|
+
summaryContent += `
|
|
686
|
+
<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>
|
|
682
687
|
<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>`;
|
|
683
688
|
}
|
|
684
689
|
return summaryContent;
|
|
@@ -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"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const DocumentModel: 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?: mongoose.Types.ObjectId | 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?: mongoose.Types.ObjectId | 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?: mongoose.Types.ObjectId | 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?: mongoose.Types.ObjectId | 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?: mongoose.Types.ObjectId | 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?: mongoose.Types.ObjectId | 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 DocumentModel;
|
|
158
|
+
//# sourceMappingURL=document.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.model.d.ts","sourceRoot":"","sources":["../../applications/document.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAoChC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|