@dynamatix/gb-schemas 2.3.375 → 2.3.376
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/applications/application-company-model.d.ts +0 -6
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +0 -1
- 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/properties/security.model.d.ts +6 -0
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/properties/security.model.js +2 -1
- 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,368 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
|
+
name: string;
|
|
4
|
+
repaymentType: string;
|
|
5
|
+
ltv: string;
|
|
6
|
+
reimbursementPerPound: string;
|
|
7
|
+
stressedPayment: string;
|
|
8
|
+
stressedPaymentRate: string;
|
|
9
|
+
rentalCoverage: string;
|
|
10
|
+
clientAdvance: string;
|
|
11
|
+
repayment: string;
|
|
12
|
+
variableRepayment: string;
|
|
13
|
+
reversionRateWithoutBaseRate: string;
|
|
14
|
+
totalReversionRate: string;
|
|
15
|
+
initialRate: string;
|
|
16
|
+
fixedTerm: string;
|
|
17
|
+
fixedTermEndDate: string;
|
|
18
|
+
baseRate: string;
|
|
19
|
+
productRate: string;
|
|
20
|
+
apr: string;
|
|
21
|
+
applicationCategory: string;
|
|
22
|
+
securityType: string;
|
|
23
|
+
erc: string;
|
|
24
|
+
loanType: string;
|
|
25
|
+
maxLtvLimit: string;
|
|
26
|
+
reimbursement: string;
|
|
27
|
+
stressedApr: string;
|
|
28
|
+
stressedRate: string;
|
|
29
|
+
stressedRepayment: string;
|
|
30
|
+
liborFloorRate: string;
|
|
31
|
+
totalTermInMonths: string;
|
|
32
|
+
chargeType: string;
|
|
33
|
+
productCategory: string;
|
|
34
|
+
ercCode: string;
|
|
35
|
+
variableTerm: string;
|
|
36
|
+
totalFeePayable: string;
|
|
37
|
+
dipIssueDate: string;
|
|
38
|
+
estimatedCompletionDate: string;
|
|
39
|
+
dipExpiryDate: string;
|
|
40
|
+
fixedRepaymentUntillDate: string;
|
|
41
|
+
rentalReviewDate: string;
|
|
42
|
+
totalReimbursementWithFee: string;
|
|
43
|
+
finalRentPayment: string;
|
|
44
|
+
clientDeposit: string;
|
|
45
|
+
firstRentPayment: string;
|
|
46
|
+
fees: mongoose.Types.DocumentArray<{
|
|
47
|
+
description: string;
|
|
48
|
+
additionalData: any;
|
|
49
|
+
feeType: string;
|
|
50
|
+
feeAmount: string;
|
|
51
|
+
rate: string;
|
|
52
|
+
addedToLoan: string;
|
|
53
|
+
allowOverride: string;
|
|
54
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
55
|
+
description: string;
|
|
56
|
+
additionalData: any;
|
|
57
|
+
feeType: string;
|
|
58
|
+
feeAmount: string;
|
|
59
|
+
rate: string;
|
|
60
|
+
addedToLoan: string;
|
|
61
|
+
allowOverride: string;
|
|
62
|
+
}> & {
|
|
63
|
+
description: string;
|
|
64
|
+
additionalData: any;
|
|
65
|
+
feeType: string;
|
|
66
|
+
feeAmount: string;
|
|
67
|
+
rate: string;
|
|
68
|
+
addedToLoan: string;
|
|
69
|
+
allowOverride: string;
|
|
70
|
+
}>;
|
|
71
|
+
ercFeatures: any;
|
|
72
|
+
icr: string;
|
|
73
|
+
ufssProductCode: string;
|
|
74
|
+
ufssInterestRateCode: string;
|
|
75
|
+
calculations?: {
|
|
76
|
+
ltv: string;
|
|
77
|
+
rentalCoverageRatioRate: string;
|
|
78
|
+
bankContributionRate: string;
|
|
79
|
+
bankInitialShareRate: string;
|
|
80
|
+
totalAmountPayable: string;
|
|
81
|
+
fixedMonthlyPayment: string;
|
|
82
|
+
fixedMonthlyCapital: string;
|
|
83
|
+
fixedMonthlyInterest: string;
|
|
84
|
+
variableMonthlyPayment: string;
|
|
85
|
+
summaryTotal: string;
|
|
86
|
+
reimbursementPerPound: string;
|
|
87
|
+
stressedPayment: string;
|
|
88
|
+
stressedPaymentRate: string;
|
|
89
|
+
rentalCoverage: string;
|
|
90
|
+
rentalCoverageWithoutTopUp: string;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
cashflowPeriods?: {
|
|
93
|
+
totalNoOfPayments: string;
|
|
94
|
+
fixed?: {
|
|
95
|
+
from: string;
|
|
96
|
+
to: string;
|
|
97
|
+
instalmentAmount: string;
|
|
98
|
+
instalmentInterest: string;
|
|
99
|
+
instalmentCapitalRepaid: string;
|
|
100
|
+
otherCosts: string;
|
|
101
|
+
outstandingCapital: string;
|
|
102
|
+
} | null | undefined;
|
|
103
|
+
variable?: {
|
|
104
|
+
from: string;
|
|
105
|
+
to: string;
|
|
106
|
+
instalmentAmount: string;
|
|
107
|
+
instalmentInterest: string;
|
|
108
|
+
instalmentCapitalRepaid: string;
|
|
109
|
+
otherCosts: string;
|
|
110
|
+
outstandingCapital: string;
|
|
111
|
+
} | null | undefined;
|
|
112
|
+
total?: {
|
|
113
|
+
from: string;
|
|
114
|
+
to: string;
|
|
115
|
+
instalmentAmount: string;
|
|
116
|
+
instalmentInterest: string;
|
|
117
|
+
instalmentCapitalRepaid: string;
|
|
118
|
+
otherCosts: string;
|
|
119
|
+
outstandingCapital: string;
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
123
|
+
name: string;
|
|
124
|
+
repaymentType: string;
|
|
125
|
+
ltv: string;
|
|
126
|
+
reimbursementPerPound: string;
|
|
127
|
+
stressedPayment: string;
|
|
128
|
+
stressedPaymentRate: string;
|
|
129
|
+
rentalCoverage: string;
|
|
130
|
+
clientAdvance: string;
|
|
131
|
+
repayment: string;
|
|
132
|
+
variableRepayment: string;
|
|
133
|
+
reversionRateWithoutBaseRate: string;
|
|
134
|
+
totalReversionRate: string;
|
|
135
|
+
initialRate: string;
|
|
136
|
+
fixedTerm: string;
|
|
137
|
+
fixedTermEndDate: string;
|
|
138
|
+
baseRate: string;
|
|
139
|
+
productRate: string;
|
|
140
|
+
apr: string;
|
|
141
|
+
applicationCategory: string;
|
|
142
|
+
securityType: string;
|
|
143
|
+
erc: string;
|
|
144
|
+
loanType: string;
|
|
145
|
+
maxLtvLimit: string;
|
|
146
|
+
reimbursement: string;
|
|
147
|
+
stressedApr: string;
|
|
148
|
+
stressedRate: string;
|
|
149
|
+
stressedRepayment: string;
|
|
150
|
+
liborFloorRate: string;
|
|
151
|
+
totalTermInMonths: string;
|
|
152
|
+
chargeType: string;
|
|
153
|
+
productCategory: string;
|
|
154
|
+
ercCode: string;
|
|
155
|
+
variableTerm: string;
|
|
156
|
+
totalFeePayable: string;
|
|
157
|
+
dipIssueDate: string;
|
|
158
|
+
estimatedCompletionDate: string;
|
|
159
|
+
dipExpiryDate: string;
|
|
160
|
+
fixedRepaymentUntillDate: string;
|
|
161
|
+
rentalReviewDate: string;
|
|
162
|
+
totalReimbursementWithFee: string;
|
|
163
|
+
finalRentPayment: string;
|
|
164
|
+
clientDeposit: string;
|
|
165
|
+
firstRentPayment: string;
|
|
166
|
+
fees: mongoose.Types.DocumentArray<{
|
|
167
|
+
description: string;
|
|
168
|
+
additionalData: any;
|
|
169
|
+
feeType: string;
|
|
170
|
+
feeAmount: string;
|
|
171
|
+
rate: string;
|
|
172
|
+
addedToLoan: string;
|
|
173
|
+
allowOverride: string;
|
|
174
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
175
|
+
description: string;
|
|
176
|
+
additionalData: any;
|
|
177
|
+
feeType: string;
|
|
178
|
+
feeAmount: string;
|
|
179
|
+
rate: string;
|
|
180
|
+
addedToLoan: string;
|
|
181
|
+
allowOverride: string;
|
|
182
|
+
}> & {
|
|
183
|
+
description: string;
|
|
184
|
+
additionalData: any;
|
|
185
|
+
feeType: string;
|
|
186
|
+
feeAmount: string;
|
|
187
|
+
rate: string;
|
|
188
|
+
addedToLoan: string;
|
|
189
|
+
allowOverride: string;
|
|
190
|
+
}>;
|
|
191
|
+
ercFeatures: any;
|
|
192
|
+
icr: string;
|
|
193
|
+
ufssProductCode: string;
|
|
194
|
+
ufssInterestRateCode: string;
|
|
195
|
+
calculations?: {
|
|
196
|
+
ltv: string;
|
|
197
|
+
rentalCoverageRatioRate: string;
|
|
198
|
+
bankContributionRate: string;
|
|
199
|
+
bankInitialShareRate: string;
|
|
200
|
+
totalAmountPayable: string;
|
|
201
|
+
fixedMonthlyPayment: string;
|
|
202
|
+
fixedMonthlyCapital: string;
|
|
203
|
+
fixedMonthlyInterest: string;
|
|
204
|
+
variableMonthlyPayment: string;
|
|
205
|
+
summaryTotal: string;
|
|
206
|
+
reimbursementPerPound: string;
|
|
207
|
+
stressedPayment: string;
|
|
208
|
+
stressedPaymentRate: string;
|
|
209
|
+
rentalCoverage: string;
|
|
210
|
+
rentalCoverageWithoutTopUp: string;
|
|
211
|
+
} | null | undefined;
|
|
212
|
+
cashflowPeriods?: {
|
|
213
|
+
totalNoOfPayments: string;
|
|
214
|
+
fixed?: {
|
|
215
|
+
from: string;
|
|
216
|
+
to: string;
|
|
217
|
+
instalmentAmount: string;
|
|
218
|
+
instalmentInterest: string;
|
|
219
|
+
instalmentCapitalRepaid: string;
|
|
220
|
+
otherCosts: string;
|
|
221
|
+
outstandingCapital: string;
|
|
222
|
+
} | null | undefined;
|
|
223
|
+
variable?: {
|
|
224
|
+
from: string;
|
|
225
|
+
to: string;
|
|
226
|
+
instalmentAmount: string;
|
|
227
|
+
instalmentInterest: string;
|
|
228
|
+
instalmentCapitalRepaid: string;
|
|
229
|
+
otherCosts: string;
|
|
230
|
+
outstandingCapital: string;
|
|
231
|
+
} | null | undefined;
|
|
232
|
+
total?: {
|
|
233
|
+
from: string;
|
|
234
|
+
to: string;
|
|
235
|
+
instalmentAmount: string;
|
|
236
|
+
instalmentInterest: string;
|
|
237
|
+
instalmentCapitalRepaid: string;
|
|
238
|
+
otherCosts: string;
|
|
239
|
+
outstandingCapital: string;
|
|
240
|
+
} | null | undefined;
|
|
241
|
+
} | null | undefined;
|
|
242
|
+
}>> & mongoose.FlatRecord<{
|
|
243
|
+
name: string;
|
|
244
|
+
repaymentType: string;
|
|
245
|
+
ltv: string;
|
|
246
|
+
reimbursementPerPound: string;
|
|
247
|
+
stressedPayment: string;
|
|
248
|
+
stressedPaymentRate: string;
|
|
249
|
+
rentalCoverage: string;
|
|
250
|
+
clientAdvance: string;
|
|
251
|
+
repayment: string;
|
|
252
|
+
variableRepayment: string;
|
|
253
|
+
reversionRateWithoutBaseRate: string;
|
|
254
|
+
totalReversionRate: string;
|
|
255
|
+
initialRate: string;
|
|
256
|
+
fixedTerm: string;
|
|
257
|
+
fixedTermEndDate: string;
|
|
258
|
+
baseRate: string;
|
|
259
|
+
productRate: string;
|
|
260
|
+
apr: string;
|
|
261
|
+
applicationCategory: string;
|
|
262
|
+
securityType: string;
|
|
263
|
+
erc: string;
|
|
264
|
+
loanType: string;
|
|
265
|
+
maxLtvLimit: string;
|
|
266
|
+
reimbursement: string;
|
|
267
|
+
stressedApr: string;
|
|
268
|
+
stressedRate: string;
|
|
269
|
+
stressedRepayment: string;
|
|
270
|
+
liborFloorRate: string;
|
|
271
|
+
totalTermInMonths: string;
|
|
272
|
+
chargeType: string;
|
|
273
|
+
productCategory: string;
|
|
274
|
+
ercCode: string;
|
|
275
|
+
variableTerm: string;
|
|
276
|
+
totalFeePayable: string;
|
|
277
|
+
dipIssueDate: string;
|
|
278
|
+
estimatedCompletionDate: string;
|
|
279
|
+
dipExpiryDate: string;
|
|
280
|
+
fixedRepaymentUntillDate: string;
|
|
281
|
+
rentalReviewDate: string;
|
|
282
|
+
totalReimbursementWithFee: string;
|
|
283
|
+
finalRentPayment: string;
|
|
284
|
+
clientDeposit: string;
|
|
285
|
+
firstRentPayment: string;
|
|
286
|
+
fees: mongoose.Types.DocumentArray<{
|
|
287
|
+
description: string;
|
|
288
|
+
additionalData: any;
|
|
289
|
+
feeType: string;
|
|
290
|
+
feeAmount: string;
|
|
291
|
+
rate: string;
|
|
292
|
+
addedToLoan: string;
|
|
293
|
+
allowOverride: string;
|
|
294
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
295
|
+
description: string;
|
|
296
|
+
additionalData: any;
|
|
297
|
+
feeType: string;
|
|
298
|
+
feeAmount: string;
|
|
299
|
+
rate: string;
|
|
300
|
+
addedToLoan: string;
|
|
301
|
+
allowOverride: string;
|
|
302
|
+
}> & {
|
|
303
|
+
description: string;
|
|
304
|
+
additionalData: any;
|
|
305
|
+
feeType: string;
|
|
306
|
+
feeAmount: string;
|
|
307
|
+
rate: string;
|
|
308
|
+
addedToLoan: string;
|
|
309
|
+
allowOverride: string;
|
|
310
|
+
}>;
|
|
311
|
+
ercFeatures: any;
|
|
312
|
+
icr: string;
|
|
313
|
+
ufssProductCode: string;
|
|
314
|
+
ufssInterestRateCode: string;
|
|
315
|
+
calculations?: {
|
|
316
|
+
ltv: string;
|
|
317
|
+
rentalCoverageRatioRate: string;
|
|
318
|
+
bankContributionRate: string;
|
|
319
|
+
bankInitialShareRate: string;
|
|
320
|
+
totalAmountPayable: string;
|
|
321
|
+
fixedMonthlyPayment: string;
|
|
322
|
+
fixedMonthlyCapital: string;
|
|
323
|
+
fixedMonthlyInterest: string;
|
|
324
|
+
variableMonthlyPayment: string;
|
|
325
|
+
summaryTotal: string;
|
|
326
|
+
reimbursementPerPound: string;
|
|
327
|
+
stressedPayment: string;
|
|
328
|
+
stressedPaymentRate: string;
|
|
329
|
+
rentalCoverage: string;
|
|
330
|
+
rentalCoverageWithoutTopUp: string;
|
|
331
|
+
} | null | undefined;
|
|
332
|
+
cashflowPeriods?: {
|
|
333
|
+
totalNoOfPayments: string;
|
|
334
|
+
fixed?: {
|
|
335
|
+
from: string;
|
|
336
|
+
to: string;
|
|
337
|
+
instalmentAmount: string;
|
|
338
|
+
instalmentInterest: string;
|
|
339
|
+
instalmentCapitalRepaid: string;
|
|
340
|
+
otherCosts: string;
|
|
341
|
+
outstandingCapital: string;
|
|
342
|
+
} | null | undefined;
|
|
343
|
+
variable?: {
|
|
344
|
+
from: string;
|
|
345
|
+
to: string;
|
|
346
|
+
instalmentAmount: string;
|
|
347
|
+
instalmentInterest: string;
|
|
348
|
+
instalmentCapitalRepaid: string;
|
|
349
|
+
otherCosts: string;
|
|
350
|
+
outstandingCapital: string;
|
|
351
|
+
} | null | undefined;
|
|
352
|
+
total?: {
|
|
353
|
+
from: string;
|
|
354
|
+
to: string;
|
|
355
|
+
instalmentAmount: string;
|
|
356
|
+
instalmentInterest: string;
|
|
357
|
+
instalmentCapitalRepaid: string;
|
|
358
|
+
otherCosts: string;
|
|
359
|
+
outstandingCapital: string;
|
|
360
|
+
} | null | undefined;
|
|
361
|
+
} | null | undefined;
|
|
362
|
+
}> & {
|
|
363
|
+
_id: mongoose.Types.ObjectId;
|
|
364
|
+
} & {
|
|
365
|
+
__v: number;
|
|
366
|
+
}>;
|
|
367
|
+
export default productFeaturesSchema;
|
|
368
|
+
//# sourceMappingURL=productfeatures.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/productfeatures.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAyChC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDzB,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
|
|
@@ -73,6 +73,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
73
73
|
energyEfficiencyRatingValue: any;
|
|
74
74
|
dataStreetSchema: any;
|
|
75
75
|
lastCheckedAt: any;
|
|
76
|
+
epcSearchByPostCodeLink: any;
|
|
76
77
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
77
78
|
applicationId: any;
|
|
78
79
|
pageValidFlag: any;
|
|
@@ -119,6 +120,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
119
120
|
energyEfficiencyRatingValue: any;
|
|
120
121
|
dataStreetSchema: any;
|
|
121
122
|
lastCheckedAt: any;
|
|
123
|
+
epcSearchByPostCodeLink: any;
|
|
122
124
|
}, {}> & {
|
|
123
125
|
applicationId: any;
|
|
124
126
|
pageValidFlag: any;
|
|
@@ -165,6 +167,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
165
167
|
energyEfficiencyRatingValue: any;
|
|
166
168
|
dataStreetSchema: any;
|
|
167
169
|
lastCheckedAt: any;
|
|
170
|
+
epcSearchByPostCodeLink: any;
|
|
168
171
|
} & {
|
|
169
172
|
_id: mongoose.Types.ObjectId;
|
|
170
173
|
} & {
|
|
@@ -224,6 +227,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
224
227
|
energyEfficiencyRatingValue: any;
|
|
225
228
|
dataStreetSchema: any;
|
|
226
229
|
lastCheckedAt: any;
|
|
230
|
+
epcSearchByPostCodeLink: any;
|
|
227
231
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
228
232
|
applicationId: any;
|
|
229
233
|
pageValidFlag: any;
|
|
@@ -270,6 +274,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
270
274
|
energyEfficiencyRatingValue: any;
|
|
271
275
|
dataStreetSchema: any;
|
|
272
276
|
lastCheckedAt: any;
|
|
277
|
+
epcSearchByPostCodeLink: any;
|
|
273
278
|
}>, {}> & mongoose.FlatRecord<{
|
|
274
279
|
applicationId: any;
|
|
275
280
|
pageValidFlag: any;
|
|
@@ -316,6 +321,7 @@ declare const SecurityModel: mongoose.Model<{
|
|
|
316
321
|
energyEfficiencyRatingValue: any;
|
|
317
322
|
dataStreetSchema: any;
|
|
318
323
|
lastCheckedAt: any;
|
|
324
|
+
epcSearchByPostCodeLink: any;
|
|
319
325
|
}> & {
|
|
320
326
|
_id: mongoose.Types.ObjectId;
|
|
321
327
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.model.d.ts","sourceRoot":"","sources":["../../properties/security.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"security.model.d.ts","sourceRoot":"","sources":["../../properties/security.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwKhC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
|
|
@@ -109,7 +109,8 @@ const securitySchema = new mongoose.Schema({
|
|
|
109
109
|
energyEfficiencyRating: { type: String }, // not-form data-street
|
|
110
110
|
energyEfficiencyRatingValue: { type: String }, // not-form data-street
|
|
111
111
|
dataStreetSchema: dataStreetSchema, // not-form data-street
|
|
112
|
-
lastCheckedAt: { type: String }
|
|
112
|
+
lastCheckedAt: { type: String },
|
|
113
|
+
epcSearchByPostCodeLink: { type: String, default: '' }
|
|
113
114
|
}, {
|
|
114
115
|
toJSON: { getters: true, virtuals: true },
|
|
115
116
|
toObject: { getters: true, virtuals: true }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const DocumentTypeModel: mongoose.Model<{
|
|
3
|
+
name: string;
|
|
4
|
+
source: string;
|
|
5
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
6
|
+
label?: string | null | undefined;
|
|
7
|
+
matchRules?: any;
|
|
8
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
9
|
+
name: string;
|
|
10
|
+
source: string;
|
|
11
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
12
|
+
label?: string | null | undefined;
|
|
13
|
+
matchRules?: any;
|
|
14
|
+
}> & {
|
|
15
|
+
name: string;
|
|
16
|
+
source: string;
|
|
17
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
18
|
+
label?: string | null | undefined;
|
|
19
|
+
matchRules?: any;
|
|
20
|
+
} & {
|
|
21
|
+
_id: mongoose.Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
25
|
+
name: string;
|
|
26
|
+
source: string;
|
|
27
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
28
|
+
label?: string | null | undefined;
|
|
29
|
+
matchRules?: any;
|
|
30
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
31
|
+
name: string;
|
|
32
|
+
source: string;
|
|
33
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
34
|
+
label?: string | null | undefined;
|
|
35
|
+
matchRules?: any;
|
|
36
|
+
}>> & mongoose.FlatRecord<{
|
|
37
|
+
name: string;
|
|
38
|
+
source: string;
|
|
39
|
+
parentDocumentTypeId: mongoose.Types.ObjectId;
|
|
40
|
+
label?: string | null | undefined;
|
|
41
|
+
matchRules?: any;
|
|
42
|
+
}> & {
|
|
43
|
+
_id: mongoose.Types.ObjectId;
|
|
44
|
+
} & {
|
|
45
|
+
__v: number;
|
|
46
|
+
}>>;
|
|
47
|
+
export default DocumentTypeModel;
|
|
48
|
+
//# sourceMappingURL=document-type-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-type-model.d.ts","sourceRoot":"","sources":["../../shared/document-type-model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAUhC,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqD,CAAC;AAE7E,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "All the schemas for gatehouse bank back-end",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc",
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
-
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
-
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
-
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
-
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
-
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
-
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
-
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
-
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
-
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
-
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
-
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
-
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
-
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
-
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
-
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
-
},
|
|
32
|
-
"author": "Dynamatix",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@dynamatix/cat-shared": "^0.0.151",
|
|
40
|
-
"dotenv": "^16.4.5",
|
|
41
|
-
"mongodb": "^6.14.2",
|
|
42
|
-
"mongoose": "^8.9.5"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"dist"
|
|
46
|
-
],
|
|
47
|
-
"exports": {
|
|
48
|
-
".": {
|
|
49
|
-
"import": "./dist/index.js",
|
|
50
|
-
"types": "./dist/index.d.ts"
|
|
51
|
-
},
|
|
52
|
-
"./applications": {
|
|
53
|
-
"import": "./dist/applications/index.js",
|
|
54
|
-
"types": "./dist/applications/index.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./applicants": {
|
|
57
|
-
"import": "./dist/applicants/index.js",
|
|
58
|
-
"types": "./dist/applicants/index.d.ts"
|
|
59
|
-
},
|
|
60
|
-
"./shared": {
|
|
61
|
-
"import": "./dist/shared/index.js",
|
|
62
|
-
"types": "./dist/shared/index.d.ts"
|
|
63
|
-
},
|
|
64
|
-
"./properties": {
|
|
65
|
-
"import": "./dist/properties/index.js",
|
|
66
|
-
"types": "./dist/properties/index.d.ts"
|
|
67
|
-
},
|
|
68
|
-
"./users": {
|
|
69
|
-
"import": "./dist/users/index.js",
|
|
70
|
-
"types": "./dist/users/index.d.ts"
|
|
71
|
-
},
|
|
72
|
-
"./product-catalogues": {
|
|
73
|
-
"import": "./dist/product-catalogues/index.js",
|
|
74
|
-
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
-
},
|
|
76
|
-
"./underwriter": {
|
|
77
|
-
"import": "./dist/underwriter/index.js",
|
|
78
|
-
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"devDependencies": {
|
|
82
|
-
"@types/mongoose": "^5.11.96",
|
|
83
|
-
"@types/node": "^22.14.0",
|
|
84
|
-
"ts-node": "^10.9.2",
|
|
85
|
-
"typescript": "^5.3.3"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamatix/gb-schemas",
|
|
3
|
+
"version": "2.3.376",
|
|
4
|
+
"description": "All the schemas for gatehouse bank back-end",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
+
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
+
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
+
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
+
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
+
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
+
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
+
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
+
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
+
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
+
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
+
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
+
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
+
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
+
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
+
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
+
},
|
|
32
|
+
"author": "Dynamatix",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@dynamatix/cat-shared": "^0.0.151",
|
|
40
|
+
"dotenv": "^16.4.5",
|
|
41
|
+
"mongodb": "^6.14.2",
|
|
42
|
+
"mongoose": "^8.9.5"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": "./dist/index.js",
|
|
50
|
+
"types": "./dist/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./applications": {
|
|
53
|
+
"import": "./dist/applications/index.js",
|
|
54
|
+
"types": "./dist/applications/index.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./applicants": {
|
|
57
|
+
"import": "./dist/applicants/index.js",
|
|
58
|
+
"types": "./dist/applicants/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./shared": {
|
|
61
|
+
"import": "./dist/shared/index.js",
|
|
62
|
+
"types": "./dist/shared/index.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./properties": {
|
|
65
|
+
"import": "./dist/properties/index.js",
|
|
66
|
+
"types": "./dist/properties/index.d.ts"
|
|
67
|
+
},
|
|
68
|
+
"./users": {
|
|
69
|
+
"import": "./dist/users/index.js",
|
|
70
|
+
"types": "./dist/users/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./product-catalogues": {
|
|
73
|
+
"import": "./dist/product-catalogues/index.js",
|
|
74
|
+
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./underwriter": {
|
|
77
|
+
"import": "./dist/underwriter/index.js",
|
|
78
|
+
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@types/mongoose": "^5.11.96",
|
|
83
|
+
"@types/node": "^22.14.0",
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"typescript": "^5.3.3"
|
|
86
|
+
}
|
|
87
|
+
}
|