@dynamatix/gb-schemas 2.3.404 → 2.3.405

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.
Files changed (26) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-large-exposure.model.d.ts +508 -0
  3. package/dist/applicants/applicant-large-exposure.model.d.ts.map +1 -0
  4. package/dist/applicants/applicant-large-exposure.model.js +22 -0
  5. package/dist/applicants/applicant-large-exposure.type.d.ts +36 -0
  6. package/dist/applicants/applicant-large-exposure.type.d.ts.map +1 -0
  7. package/dist/applicants/applicant-large-exposure.type.js +1 -0
  8. package/dist/applicants/applicant-welcome-call.model.js +9 -9
  9. package/dist/applicants/index.d.ts +2 -0
  10. package/dist/applicants/index.d.ts.map +1 -1
  11. package/dist/applicants/index.js +1 -0
  12. package/package.json +87 -87
  13. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  14. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  15. package/dist/applicants/applicant-income.model.d.ts +0 -160
  16. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  17. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  18. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  19. package/dist/applications/application-document.model.d.ts +0 -158
  20. package/dist/applications/application-document.model.d.ts.map +0 -1
  21. package/dist/applications/document.model.d.ts +0 -158
  22. package/dist/applications/document.model.d.ts.map +0 -1
  23. package/dist/applications/productfeatures.model.d.ts +0 -368
  24. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  25. package/dist/shared/document-type-model.d.ts +0 -48
  26. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -0,0 +1,508 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/account-number.d.ts" />
3
+ /// <reference path="../value-objects/sort-code.d.ts" />
4
+ /// <reference types="mongoose/types/aggregate" />
5
+ /// <reference types="mongoose/types/callback" />
6
+ /// <reference types="mongoose/types/collection" />
7
+ /// <reference types="mongoose/types/connection" />
8
+ /// <reference types="mongoose/types/cursor" />
9
+ /// <reference types="mongoose/types/document" />
10
+ /// <reference types="mongoose/types/error" />
11
+ /// <reference types="mongoose/types/expressions" />
12
+ /// <reference types="mongoose/types/helpers" />
13
+ /// <reference types="mongoose/types/middlewares" />
14
+ /// <reference types="mongoose/types/indexes" />
15
+ /// <reference types="mongoose/types/models" />
16
+ /// <reference types="mongoose/types/mongooseoptions" />
17
+ /// <reference types="mongoose/types/pipelinestage" />
18
+ /// <reference types="mongoose/types/populate" />
19
+ /// <reference types="mongoose/types/query" />
20
+ /// <reference types="mongoose/types/schemaoptions" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/schematypes" />
27
+ /// <reference types="mongoose/types/inferschematype" />
28
+ /// <reference types="mongoose/types/inferrawdoctype" />
29
+ import mongoose from "mongoose";
30
+ import { Pound } from "../value-objects/pound";
31
+ declare const ApplicantLargeExposureModel: mongoose.Model<{
32
+ createdAt: NativeDate;
33
+ updatedAt: NativeDate;
34
+ } & {
35
+ createdAt?: {
36
+ toJSON?: {} | null | undefined;
37
+ valueOf: {} | null;
38
+ toString: {} | null;
39
+ toLocaleString: {} | null;
40
+ [Symbol.toPrimitive]?: {} | null | undefined;
41
+ toDateString?: {} | null | undefined;
42
+ toTimeString?: {} | null | undefined;
43
+ toLocaleDateString?: {} | null | undefined;
44
+ toLocaleTimeString?: {} | null | undefined;
45
+ getTime?: {} | null | undefined;
46
+ getFullYear?: {} | null | undefined;
47
+ getUTCFullYear?: {} | null | undefined;
48
+ getMonth?: {} | null | undefined;
49
+ getUTCMonth?: {} | null | undefined;
50
+ getDate?: {} | null | undefined;
51
+ getUTCDate?: {} | null | undefined;
52
+ getDay?: {} | null | undefined;
53
+ getUTCDay?: {} | null | undefined;
54
+ getHours?: {} | null | undefined;
55
+ getUTCHours?: {} | null | undefined;
56
+ getMinutes?: {} | null | undefined;
57
+ getUTCMinutes?: {} | null | undefined;
58
+ getSeconds?: {} | null | undefined;
59
+ getUTCSeconds?: {} | null | undefined;
60
+ getMilliseconds?: {} | null | undefined;
61
+ getUTCMilliseconds?: {} | null | undefined;
62
+ getTimezoneOffset?: {} | null | undefined;
63
+ setTime?: {} | null | undefined;
64
+ setMilliseconds?: {} | null | undefined;
65
+ setUTCMilliseconds?: {} | null | undefined;
66
+ setSeconds?: {} | null | undefined;
67
+ setUTCSeconds?: {} | null | undefined;
68
+ setMinutes?: {} | null | undefined;
69
+ setUTCMinutes?: {} | null | undefined;
70
+ setHours?: {} | null | undefined;
71
+ setUTCHours?: {} | null | undefined;
72
+ setDate?: {} | null | undefined;
73
+ setUTCDate?: {} | null | undefined;
74
+ setMonth?: {} | null | undefined;
75
+ setUTCMonth?: {} | null | undefined;
76
+ setFullYear?: {} | null | undefined;
77
+ setUTCFullYear?: {} | null | undefined;
78
+ toUTCString?: {} | null | undefined;
79
+ toISOString?: {} | null | undefined;
80
+ getVarDate?: {} | null | undefined;
81
+ } | null | undefined;
82
+ updatedAt?: {
83
+ toJSON?: {} | null | undefined;
84
+ valueOf: {} | null;
85
+ toString: {} | null;
86
+ toLocaleString: {} | null;
87
+ [Symbol.toPrimitive]?: {} | null | undefined;
88
+ toDateString?: {} | null | undefined;
89
+ toTimeString?: {} | null | undefined;
90
+ toLocaleDateString?: {} | null | undefined;
91
+ toLocaleTimeString?: {} | null | undefined;
92
+ getTime?: {} | null | undefined;
93
+ getFullYear?: {} | null | undefined;
94
+ getUTCFullYear?: {} | null | undefined;
95
+ getMonth?: {} | null | undefined;
96
+ getUTCMonth?: {} | null | undefined;
97
+ getDate?: {} | null | undefined;
98
+ getUTCDate?: {} | null | undefined;
99
+ getDay?: {} | null | undefined;
100
+ getUTCDay?: {} | null | undefined;
101
+ getHours?: {} | null | undefined;
102
+ getUTCHours?: {} | null | undefined;
103
+ getMinutes?: {} | null | undefined;
104
+ getUTCMinutes?: {} | null | undefined;
105
+ getSeconds?: {} | null | undefined;
106
+ getUTCSeconds?: {} | null | undefined;
107
+ getMilliseconds?: {} | null | undefined;
108
+ getUTCMilliseconds?: {} | null | undefined;
109
+ getTimezoneOffset?: {} | null | undefined;
110
+ setTime?: {} | null | undefined;
111
+ setMilliseconds?: {} | null | undefined;
112
+ setUTCMilliseconds?: {} | null | undefined;
113
+ setSeconds?: {} | null | undefined;
114
+ setUTCSeconds?: {} | null | undefined;
115
+ setMinutes?: {} | null | undefined;
116
+ setUTCMinutes?: {} | null | undefined;
117
+ setHours?: {} | null | undefined;
118
+ setUTCHours?: {} | null | undefined;
119
+ setDate?: {} | null | undefined;
120
+ setUTCDate?: {} | null | undefined;
121
+ setMonth?: {} | null | undefined;
122
+ setUTCMonth?: {} | null | undefined;
123
+ setFullYear?: {} | null | undefined;
124
+ setUTCFullYear?: {} | null | undefined;
125
+ toUTCString?: {} | null | undefined;
126
+ toISOString?: {} | null | undefined;
127
+ getVarDate?: {} | null | undefined;
128
+ } | null | undefined;
129
+ documentId?: unknown;
130
+ exposureAmount?: {
131
+ validators: mongoose.Types.DocumentArray<{
132
+ type?: unknown;
133
+ message?: unknown;
134
+ validator?: unknown;
135
+ reason?: unknown;
136
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
137
+ type?: unknown;
138
+ message?: unknown;
139
+ validator?: unknown;
140
+ reason?: unknown;
141
+ }> & {
142
+ type?: unknown;
143
+ message?: unknown;
144
+ validator?: unknown;
145
+ reason?: unknown;
146
+ }>;
147
+ get?: {} | null | undefined;
148
+ schema?: {
149
+ [x: string]: unknown;
150
+ } | null | undefined;
151
+ set?: {} | null | undefined;
152
+ validate?: {} | null | undefined;
153
+ index?: {} | null | undefined;
154
+ default?: {} | null | undefined;
155
+ text?: {} | null | undefined;
156
+ unique?: {} | null | undefined;
157
+ sparse?: {} | null | undefined;
158
+ cast?: {} | null | undefined;
159
+ required?: {} | null | undefined;
160
+ ref?: {} | null | undefined;
161
+ select?: {} | null | undefined;
162
+ immutable?: {} | null | undefined;
163
+ transform?: {} | null | undefined;
164
+ options?: {
165
+ [x: string]: unknown;
166
+ } | null | undefined;
167
+ OptionsConstructor?: {
168
+ [x: string]: unknown;
169
+ } | null | undefined;
170
+ getEmbeddedSchemaType?: {} | null | undefined;
171
+ instance?: unknown;
172
+ isRequired?: unknown;
173
+ path?: unknown;
174
+ toJSONSchema?: {} | null | undefined;
175
+ validateAll?: {} | null | undefined;
176
+ defaultOptions?: unknown;
177
+ } | null | undefined;
178
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
179
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
180
+ createdAt: NativeDate;
181
+ updatedAt: NativeDate;
182
+ } & {
183
+ createdAt?: {
184
+ toJSON?: {} | null | undefined;
185
+ valueOf: {} | null;
186
+ toString: {} | null;
187
+ toLocaleString: {} | null;
188
+ [Symbol.toPrimitive]?: {} | null | undefined;
189
+ toDateString?: {} | null | undefined;
190
+ toTimeString?: {} | null | undefined;
191
+ toLocaleDateString?: {} | null | undefined;
192
+ toLocaleTimeString?: {} | null | undefined;
193
+ getTime?: {} | null | undefined;
194
+ getFullYear?: {} | null | undefined;
195
+ getUTCFullYear?: {} | null | undefined;
196
+ getMonth?: {} | null | undefined;
197
+ getUTCMonth?: {} | null | undefined;
198
+ getDate?: {} | null | undefined;
199
+ getUTCDate?: {} | null | undefined;
200
+ getDay?: {} | null | undefined;
201
+ getUTCDay?: {} | null | undefined;
202
+ getHours?: {} | null | undefined;
203
+ getUTCHours?: {} | null | undefined;
204
+ getMinutes?: {} | null | undefined;
205
+ getUTCMinutes?: {} | null | undefined;
206
+ getSeconds?: {} | null | undefined;
207
+ getUTCSeconds?: {} | null | undefined;
208
+ getMilliseconds?: {} | null | undefined;
209
+ getUTCMilliseconds?: {} | null | undefined;
210
+ getTimezoneOffset?: {} | null | undefined;
211
+ setTime?: {} | null | undefined;
212
+ setMilliseconds?: {} | null | undefined;
213
+ setUTCMilliseconds?: {} | null | undefined;
214
+ setSeconds?: {} | null | undefined;
215
+ setUTCSeconds?: {} | null | undefined;
216
+ setMinutes?: {} | null | undefined;
217
+ setUTCMinutes?: {} | null | undefined;
218
+ setHours?: {} | null | undefined;
219
+ setUTCHours?: {} | null | undefined;
220
+ setDate?: {} | null | undefined;
221
+ setUTCDate?: {} | null | undefined;
222
+ setMonth?: {} | null | undefined;
223
+ setUTCMonth?: {} | null | undefined;
224
+ setFullYear?: {} | null | undefined;
225
+ setUTCFullYear?: {} | null | undefined;
226
+ toUTCString?: {} | null | undefined;
227
+ toISOString?: {} | null | undefined;
228
+ getVarDate?: {} | null | undefined;
229
+ } | null | undefined;
230
+ updatedAt?: {
231
+ toJSON?: {} | null | undefined;
232
+ valueOf: {} | null;
233
+ toString: {} | null;
234
+ toLocaleString: {} | null;
235
+ [Symbol.toPrimitive]?: {} | null | undefined;
236
+ toDateString?: {} | null | undefined;
237
+ toTimeString?: {} | null | undefined;
238
+ toLocaleDateString?: {} | null | undefined;
239
+ toLocaleTimeString?: {} | null | undefined;
240
+ getTime?: {} | null | undefined;
241
+ getFullYear?: {} | null | undefined;
242
+ getUTCFullYear?: {} | null | undefined;
243
+ getMonth?: {} | null | undefined;
244
+ getUTCMonth?: {} | null | undefined;
245
+ getDate?: {} | null | undefined;
246
+ getUTCDate?: {} | null | undefined;
247
+ getDay?: {} | null | undefined;
248
+ getUTCDay?: {} | null | undefined;
249
+ getHours?: {} | null | undefined;
250
+ getUTCHours?: {} | null | undefined;
251
+ getMinutes?: {} | null | undefined;
252
+ getUTCMinutes?: {} | null | undefined;
253
+ getSeconds?: {} | null | undefined;
254
+ getUTCSeconds?: {} | null | undefined;
255
+ getMilliseconds?: {} | null | undefined;
256
+ getUTCMilliseconds?: {} | null | undefined;
257
+ getTimezoneOffset?: {} | null | undefined;
258
+ setTime?: {} | null | undefined;
259
+ setMilliseconds?: {} | null | undefined;
260
+ setUTCMilliseconds?: {} | null | undefined;
261
+ setSeconds?: {} | null | undefined;
262
+ setUTCSeconds?: {} | null | undefined;
263
+ setMinutes?: {} | null | undefined;
264
+ setUTCMinutes?: {} | null | undefined;
265
+ setHours?: {} | null | undefined;
266
+ setUTCHours?: {} | null | undefined;
267
+ setDate?: {} | null | undefined;
268
+ setUTCDate?: {} | null | undefined;
269
+ setMonth?: {} | null | undefined;
270
+ setUTCMonth?: {} | null | undefined;
271
+ setFullYear?: {} | null | undefined;
272
+ setUTCFullYear?: {} | null | undefined;
273
+ toUTCString?: {} | null | undefined;
274
+ toISOString?: {} | null | undefined;
275
+ getVarDate?: {} | null | undefined;
276
+ } | null | undefined;
277
+ documentId?: unknown;
278
+ exposureAmount?: {
279
+ validators: mongoose.Types.DocumentArray<{
280
+ type?: unknown;
281
+ message?: unknown;
282
+ validator?: unknown;
283
+ reason?: unknown;
284
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
285
+ type?: unknown;
286
+ message?: unknown;
287
+ validator?: unknown;
288
+ reason?: unknown;
289
+ }> & {
290
+ type?: unknown;
291
+ message?: unknown;
292
+ validator?: unknown;
293
+ reason?: unknown;
294
+ }>;
295
+ get?: {} | null | undefined;
296
+ schema?: {
297
+ [x: string]: unknown;
298
+ } | null | undefined;
299
+ set?: {} | null | undefined;
300
+ validate?: {} | null | undefined;
301
+ index?: {} | null | undefined;
302
+ default?: {} | null | undefined;
303
+ text?: {} | null | undefined;
304
+ unique?: {} | null | undefined;
305
+ sparse?: {} | null | undefined;
306
+ cast?: {} | null | undefined;
307
+ required?: {} | null | undefined;
308
+ ref?: {} | null | undefined;
309
+ select?: {} | null | undefined;
310
+ immutable?: {} | null | undefined;
311
+ transform?: {} | null | undefined;
312
+ options?: {
313
+ [x: string]: unknown;
314
+ } | null | undefined;
315
+ OptionsConstructor?: {
316
+ [x: string]: unknown;
317
+ } | null | undefined;
318
+ getEmbeddedSchemaType?: {} | null | undefined;
319
+ instance?: unknown;
320
+ isRequired?: unknown;
321
+ path?: unknown;
322
+ toJSONSchema?: {} | null | undefined;
323
+ validateAll?: {} | null | undefined;
324
+ defaultOptions?: unknown;
325
+ } | null | undefined;
326
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
327
+ }, {}> & {
328
+ createdAt: NativeDate;
329
+ updatedAt: NativeDate;
330
+ } & {
331
+ createdAt?: {
332
+ toJSON?: {} | null | undefined;
333
+ valueOf: {} | null;
334
+ toString: {} | null;
335
+ toLocaleString: {} | null;
336
+ [Symbol.toPrimitive]?: {} | null | undefined;
337
+ toDateString?: {} | null | undefined;
338
+ toTimeString?: {} | null | undefined;
339
+ toLocaleDateString?: {} | null | undefined;
340
+ toLocaleTimeString?: {} | null | undefined;
341
+ getTime?: {} | null | undefined;
342
+ getFullYear?: {} | null | undefined;
343
+ getUTCFullYear?: {} | null | undefined;
344
+ getMonth?: {} | null | undefined;
345
+ getUTCMonth?: {} | null | undefined;
346
+ getDate?: {} | null | undefined;
347
+ getUTCDate?: {} | null | undefined;
348
+ getDay?: {} | null | undefined;
349
+ getUTCDay?: {} | null | undefined;
350
+ getHours?: {} | null | undefined;
351
+ getUTCHours?: {} | null | undefined;
352
+ getMinutes?: {} | null | undefined;
353
+ getUTCMinutes?: {} | null | undefined;
354
+ getSeconds?: {} | null | undefined;
355
+ getUTCSeconds?: {} | null | undefined;
356
+ getMilliseconds?: {} | null | undefined;
357
+ getUTCMilliseconds?: {} | null | undefined;
358
+ getTimezoneOffset?: {} | null | undefined;
359
+ setTime?: {} | null | undefined;
360
+ setMilliseconds?: {} | null | undefined;
361
+ setUTCMilliseconds?: {} | null | undefined;
362
+ setSeconds?: {} | null | undefined;
363
+ setUTCSeconds?: {} | null | undefined;
364
+ setMinutes?: {} | null | undefined;
365
+ setUTCMinutes?: {} | null | undefined;
366
+ setHours?: {} | null | undefined;
367
+ setUTCHours?: {} | null | undefined;
368
+ setDate?: {} | null | undefined;
369
+ setUTCDate?: {} | null | undefined;
370
+ setMonth?: {} | null | undefined;
371
+ setUTCMonth?: {} | null | undefined;
372
+ setFullYear?: {} | null | undefined;
373
+ setUTCFullYear?: {} | null | undefined;
374
+ toUTCString?: {} | null | undefined;
375
+ toISOString?: {} | null | undefined;
376
+ getVarDate?: {} | null | undefined;
377
+ } | null | undefined;
378
+ updatedAt?: {
379
+ toJSON?: {} | null | undefined;
380
+ valueOf: {} | null;
381
+ toString: {} | null;
382
+ toLocaleString: {} | null;
383
+ [Symbol.toPrimitive]?: {} | null | undefined;
384
+ toDateString?: {} | null | undefined;
385
+ toTimeString?: {} | null | undefined;
386
+ toLocaleDateString?: {} | null | undefined;
387
+ toLocaleTimeString?: {} | null | undefined;
388
+ getTime?: {} | null | undefined;
389
+ getFullYear?: {} | null | undefined;
390
+ getUTCFullYear?: {} | null | undefined;
391
+ getMonth?: {} | null | undefined;
392
+ getUTCMonth?: {} | null | undefined;
393
+ getDate?: {} | null | undefined;
394
+ getUTCDate?: {} | null | undefined;
395
+ getDay?: {} | null | undefined;
396
+ getUTCDay?: {} | null | undefined;
397
+ getHours?: {} | null | undefined;
398
+ getUTCHours?: {} | null | undefined;
399
+ getMinutes?: {} | null | undefined;
400
+ getUTCMinutes?: {} | null | undefined;
401
+ getSeconds?: {} | null | undefined;
402
+ getUTCSeconds?: {} | null | undefined;
403
+ getMilliseconds?: {} | null | undefined;
404
+ getUTCMilliseconds?: {} | null | undefined;
405
+ getTimezoneOffset?: {} | null | undefined;
406
+ setTime?: {} | null | undefined;
407
+ setMilliseconds?: {} | null | undefined;
408
+ setUTCMilliseconds?: {} | null | undefined;
409
+ setSeconds?: {} | null | undefined;
410
+ setUTCSeconds?: {} | null | undefined;
411
+ setMinutes?: {} | null | undefined;
412
+ setUTCMinutes?: {} | null | undefined;
413
+ setHours?: {} | null | undefined;
414
+ setUTCHours?: {} | null | undefined;
415
+ setDate?: {} | null | undefined;
416
+ setUTCDate?: {} | null | undefined;
417
+ setMonth?: {} | null | undefined;
418
+ setUTCMonth?: {} | null | undefined;
419
+ setFullYear?: {} | null | undefined;
420
+ setUTCFullYear?: {} | null | undefined;
421
+ toUTCString?: {} | null | undefined;
422
+ toISOString?: {} | null | undefined;
423
+ getVarDate?: {} | null | undefined;
424
+ } | null | undefined;
425
+ documentId?: unknown;
426
+ exposureAmount?: {
427
+ validators: mongoose.Types.DocumentArray<{
428
+ type?: unknown;
429
+ message?: unknown;
430
+ validator?: unknown;
431
+ reason?: unknown;
432
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
433
+ type?: unknown;
434
+ message?: unknown;
435
+ validator?: unknown;
436
+ reason?: unknown;
437
+ }> & {
438
+ type?: unknown;
439
+ message?: unknown;
440
+ validator?: unknown;
441
+ reason?: unknown;
442
+ }>;
443
+ get?: {} | null | undefined;
444
+ schema?: {
445
+ [x: string]: unknown;
446
+ } | null | undefined;
447
+ set?: {} | null | undefined;
448
+ validate?: {} | null | undefined;
449
+ index?: {} | null | undefined;
450
+ default?: {} | null | undefined;
451
+ text?: {} | null | undefined;
452
+ unique?: {} | null | undefined;
453
+ sparse?: {} | null | undefined;
454
+ cast?: {} | null | undefined;
455
+ required?: {} | null | undefined;
456
+ ref?: {} | null | undefined;
457
+ select?: {} | null | undefined;
458
+ immutable?: {} | null | undefined;
459
+ transform?: {} | null | undefined;
460
+ options?: {
461
+ [x: string]: unknown;
462
+ } | null | undefined;
463
+ OptionsConstructor?: {
464
+ [x: string]: unknown;
465
+ } | null | undefined;
466
+ getEmbeddedSchemaType?: {} | null | undefined;
467
+ instance?: unknown;
468
+ isRequired?: unknown;
469
+ path?: unknown;
470
+ toJSONSchema?: {} | null | undefined;
471
+ validateAll?: {} | null | undefined;
472
+ defaultOptions?: unknown;
473
+ } | null | undefined;
474
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
475
+ } & {
476
+ _id: mongoose.Types.ObjectId;
477
+ } & {
478
+ __v: number;
479
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
480
+ timestamps: true;
481
+ }, {
482
+ createdAt: NativeDate;
483
+ updatedAt: NativeDate;
484
+ } & {
485
+ exposureAmount: Pound;
486
+ creditConductLid: mongoose.Types.ObjectId;
487
+ documentId?: mongoose.Types.ObjectId | null | undefined;
488
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
489
+ createdAt: NativeDate;
490
+ updatedAt: NativeDate;
491
+ } & {
492
+ exposureAmount: Pound;
493
+ creditConductLid: mongoose.Types.ObjectId;
494
+ documentId?: mongoose.Types.ObjectId | null | undefined;
495
+ }>, {}> & mongoose.FlatRecord<{
496
+ createdAt: NativeDate;
497
+ updatedAt: NativeDate;
498
+ } & {
499
+ exposureAmount: Pound;
500
+ creditConductLid: mongoose.Types.ObjectId;
501
+ documentId?: mongoose.Types.ObjectId | null | undefined;
502
+ }> & {
503
+ _id: mongoose.Types.ObjectId;
504
+ } & {
505
+ __v: number;
506
+ }>>;
507
+ export default ApplicantLargeExposureModel;
508
+ //# sourceMappingURL=applicant-large-exposure.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-large-exposure.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-large-exposure.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AAsB5D,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGhC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import mongoose from "mongoose";
2
+ import { applyWorkflowPlugin } from "../shared/workflow.plugin";
3
+ import { Pound, formatPound } from "../value-objects/pound";
4
+ const applicantLargeExposureSchema = new mongoose.Schema({
5
+ documentId: {
6
+ type: mongoose.Schema.Types.ObjectId,
7
+ ref: "Document",
8
+ required: false,
9
+ },
10
+ exposureAmount: { type: Pound, default: 0.00, get: formatPound },
11
+ creditConductLid: {
12
+ type: mongoose.Schema.Types.ObjectId,
13
+ ref: "Lookup",
14
+ default: null,
15
+ description: "Lookup ID for Credit Conduct lookup group",
16
+ },
17
+ }, { timestamps: true });
18
+ applyWorkflowPlugin(applicantLargeExposureSchema, "applicant_large_exposure");
19
+ applicantLargeExposureSchema.index({ documentId: 1 });
20
+ applicantLargeExposureSchema.index({ creditConductLid: 1 });
21
+ const ApplicantLargeExposureModel = mongoose.model("ApplicantLargeExposure", applicantLargeExposureSchema);
22
+ export default ApplicantLargeExposureModel;
@@ -0,0 +1,36 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/account-number.d.ts" />
3
+ /// <reference path="../value-objects/sort-code.d.ts" />
4
+ /// <reference types="mongoose/types/aggregate" />
5
+ /// <reference types="mongoose/types/callback" />
6
+ /// <reference types="mongoose/types/collection" />
7
+ /// <reference types="mongoose/types/connection" />
8
+ /// <reference types="mongoose/types/cursor" />
9
+ /// <reference types="mongoose/types/document" />
10
+ /// <reference types="mongoose/types/error" />
11
+ /// <reference types="mongoose/types/expressions" />
12
+ /// <reference types="mongoose/types/helpers" />
13
+ /// <reference types="mongoose/types/middlewares" />
14
+ /// <reference types="mongoose/types/indexes" />
15
+ /// <reference types="mongoose/types/models" />
16
+ /// <reference types="mongoose/types/mongooseoptions" />
17
+ /// <reference types="mongoose/types/pipelinestage" />
18
+ /// <reference types="mongoose/types/populate" />
19
+ /// <reference types="mongoose/types/query" />
20
+ /// <reference types="mongoose/types/schemaoptions" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/schematypes" />
27
+ /// <reference types="mongoose/types/inferschematype" />
28
+ /// <reference types="mongoose/types/inferrawdoctype" />
29
+ import { Types } from "mongoose";
30
+ import { IBaseType } from "../types/base.types";
31
+ export default interface IApplicantLargeExposure extends IBaseType {
32
+ documentId?: Types.ObjectId;
33
+ exposureAmount?: number;
34
+ creditConductLid?: Types.ObjectId | null;
35
+ }
36
+ //# sourceMappingURL=applicant-large-exposure.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicant-large-exposure.type.d.ts","sourceRoot":"","sources":["../../applicants/applicant-large-exposure.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,SAAS;IAChE,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;CAC1C"}
@@ -0,0 +1 @@
1
+ export {};
@@ -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;
@@ -18,6 +18,8 @@ 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';
21
23
  export { default as ApplicantAdditionalIncomeType } from './applicant-additional-income.type';
22
24
  export { default as ApplicantEmploymentIncomeType } from './applicant-employment-income.type';
23
25
  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,2BA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AC;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"}
@@ -18,4 +18,5 @@ 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';
21
22
  export { default as ApplicantWelcomeCallModel } from './applicant-welcome-call.model';