@dynamatix/gb-schemas 2.3.413 → 2.3.415

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.
@@ -0,0 +1,667 @@
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
+ applicantId?: mongoose.Types.ObjectId | null | undefined;
130
+ isConfirmed?: unknown;
131
+ documentId?: mongoose.Types.ObjectId | null | undefined;
132
+ existingExposure?: {
133
+ validators: mongoose.Types.DocumentArray<{
134
+ type?: unknown;
135
+ message?: unknown;
136
+ validator?: unknown;
137
+ reason?: unknown;
138
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
139
+ type?: unknown;
140
+ message?: unknown;
141
+ validator?: unknown;
142
+ reason?: unknown;
143
+ }> & {
144
+ type?: unknown;
145
+ message?: unknown;
146
+ validator?: unknown;
147
+ reason?: unknown;
148
+ }>;
149
+ get?: {} | null | undefined;
150
+ schema?: {
151
+ [x: string]: unknown;
152
+ } | null | undefined;
153
+ set?: {} | null | undefined;
154
+ validate?: {} | null | undefined;
155
+ index?: {} | null | undefined;
156
+ default?: {} | null | undefined;
157
+ text?: {} | null | undefined;
158
+ unique?: {} | null | undefined;
159
+ sparse?: {} | null | undefined;
160
+ cast?: {} | null | undefined;
161
+ required?: {} | null | undefined;
162
+ ref?: {} | null | undefined;
163
+ select?: {} | null | undefined;
164
+ immutable?: {} | null | undefined;
165
+ transform?: {} | null | undefined;
166
+ options?: {
167
+ [x: string]: unknown;
168
+ } | null | undefined;
169
+ OptionsConstructor?: {
170
+ [x: string]: unknown;
171
+ } | null | undefined;
172
+ getEmbeddedSchemaType?: {} | null | undefined;
173
+ instance?: unknown;
174
+ isRequired?: unknown;
175
+ path?: unknown;
176
+ toJSONSchema?: {} | null | undefined;
177
+ validateAll?: {} | null | undefined;
178
+ defaultOptions?: unknown;
179
+ } | null | undefined;
180
+ inFlightExposure?: {
181
+ validators: mongoose.Types.DocumentArray<{
182
+ type?: unknown;
183
+ message?: unknown;
184
+ validator?: unknown;
185
+ reason?: unknown;
186
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
187
+ type?: unknown;
188
+ message?: unknown;
189
+ validator?: unknown;
190
+ reason?: unknown;
191
+ }> & {
192
+ type?: unknown;
193
+ message?: unknown;
194
+ validator?: unknown;
195
+ reason?: unknown;
196
+ }>;
197
+ get?: {} | null | undefined;
198
+ schema?: {
199
+ [x: string]: unknown;
200
+ } | null | undefined;
201
+ set?: {} | null | undefined;
202
+ validate?: {} | null | undefined;
203
+ index?: {} | null | undefined;
204
+ default?: {} | null | undefined;
205
+ text?: {} | null | undefined;
206
+ unique?: {} | null | undefined;
207
+ sparse?: {} | null | undefined;
208
+ cast?: {} | null | undefined;
209
+ required?: {} | null | undefined;
210
+ ref?: {} | null | undefined;
211
+ select?: {} | null | undefined;
212
+ immutable?: {} | null | undefined;
213
+ transform?: {} | null | undefined;
214
+ options?: {
215
+ [x: string]: unknown;
216
+ } | null | undefined;
217
+ OptionsConstructor?: {
218
+ [x: string]: unknown;
219
+ } | null | undefined;
220
+ getEmbeddedSchemaType?: {} | null | undefined;
221
+ instance?: unknown;
222
+ isRequired?: unknown;
223
+ path?: unknown;
224
+ toJSONSchema?: {} | null | undefined;
225
+ validateAll?: {} | null | undefined;
226
+ defaultOptions?: unknown;
227
+ } | null | undefined;
228
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
229
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
230
+ createdAt: NativeDate;
231
+ updatedAt: NativeDate;
232
+ } & {
233
+ createdAt?: {
234
+ toJSON?: {} | null | undefined;
235
+ valueOf: {} | null;
236
+ toString: {} | null;
237
+ toLocaleString: {} | null;
238
+ [Symbol.toPrimitive]?: {} | null | undefined;
239
+ toDateString?: {} | null | undefined;
240
+ toTimeString?: {} | null | undefined;
241
+ toLocaleDateString?: {} | null | undefined;
242
+ toLocaleTimeString?: {} | null | undefined;
243
+ getTime?: {} | null | undefined;
244
+ getFullYear?: {} | null | undefined;
245
+ getUTCFullYear?: {} | null | undefined;
246
+ getMonth?: {} | null | undefined;
247
+ getUTCMonth?: {} | null | undefined;
248
+ getDate?: {} | null | undefined;
249
+ getUTCDate?: {} | null | undefined;
250
+ getDay?: {} | null | undefined;
251
+ getUTCDay?: {} | null | undefined;
252
+ getHours?: {} | null | undefined;
253
+ getUTCHours?: {} | null | undefined;
254
+ getMinutes?: {} | null | undefined;
255
+ getUTCMinutes?: {} | null | undefined;
256
+ getSeconds?: {} | null | undefined;
257
+ getUTCSeconds?: {} | null | undefined;
258
+ getMilliseconds?: {} | null | undefined;
259
+ getUTCMilliseconds?: {} | null | undefined;
260
+ getTimezoneOffset?: {} | null | undefined;
261
+ setTime?: {} | null | undefined;
262
+ setMilliseconds?: {} | null | undefined;
263
+ setUTCMilliseconds?: {} | null | undefined;
264
+ setSeconds?: {} | null | undefined;
265
+ setUTCSeconds?: {} | null | undefined;
266
+ setMinutes?: {} | null | undefined;
267
+ setUTCMinutes?: {} | null | undefined;
268
+ setHours?: {} | null | undefined;
269
+ setUTCHours?: {} | null | undefined;
270
+ setDate?: {} | null | undefined;
271
+ setUTCDate?: {} | null | undefined;
272
+ setMonth?: {} | null | undefined;
273
+ setUTCMonth?: {} | null | undefined;
274
+ setFullYear?: {} | null | undefined;
275
+ setUTCFullYear?: {} | null | undefined;
276
+ toUTCString?: {} | null | undefined;
277
+ toISOString?: {} | null | undefined;
278
+ getVarDate?: {} | null | undefined;
279
+ } | null | undefined;
280
+ updatedAt?: {
281
+ toJSON?: {} | null | undefined;
282
+ valueOf: {} | null;
283
+ toString: {} | null;
284
+ toLocaleString: {} | null;
285
+ [Symbol.toPrimitive]?: {} | null | undefined;
286
+ toDateString?: {} | null | undefined;
287
+ toTimeString?: {} | null | undefined;
288
+ toLocaleDateString?: {} | null | undefined;
289
+ toLocaleTimeString?: {} | null | undefined;
290
+ getTime?: {} | null | undefined;
291
+ getFullYear?: {} | null | undefined;
292
+ getUTCFullYear?: {} | null | undefined;
293
+ getMonth?: {} | null | undefined;
294
+ getUTCMonth?: {} | null | undefined;
295
+ getDate?: {} | null | undefined;
296
+ getUTCDate?: {} | null | undefined;
297
+ getDay?: {} | null | undefined;
298
+ getUTCDay?: {} | null | undefined;
299
+ getHours?: {} | null | undefined;
300
+ getUTCHours?: {} | null | undefined;
301
+ getMinutes?: {} | null | undefined;
302
+ getUTCMinutes?: {} | null | undefined;
303
+ getSeconds?: {} | null | undefined;
304
+ getUTCSeconds?: {} | null | undefined;
305
+ getMilliseconds?: {} | null | undefined;
306
+ getUTCMilliseconds?: {} | null | undefined;
307
+ getTimezoneOffset?: {} | null | undefined;
308
+ setTime?: {} | null | undefined;
309
+ setMilliseconds?: {} | null | undefined;
310
+ setUTCMilliseconds?: {} | null | undefined;
311
+ setSeconds?: {} | null | undefined;
312
+ setUTCSeconds?: {} | null | undefined;
313
+ setMinutes?: {} | null | undefined;
314
+ setUTCMinutes?: {} | null | undefined;
315
+ setHours?: {} | null | undefined;
316
+ setUTCHours?: {} | null | undefined;
317
+ setDate?: {} | null | undefined;
318
+ setUTCDate?: {} | null | undefined;
319
+ setMonth?: {} | null | undefined;
320
+ setUTCMonth?: {} | null | undefined;
321
+ setFullYear?: {} | null | undefined;
322
+ setUTCFullYear?: {} | null | undefined;
323
+ toUTCString?: {} | null | undefined;
324
+ toISOString?: {} | null | undefined;
325
+ getVarDate?: {} | null | undefined;
326
+ } | null | undefined;
327
+ applicantId?: mongoose.Types.ObjectId | null | undefined;
328
+ isConfirmed?: unknown;
329
+ documentId?: mongoose.Types.ObjectId | null | undefined;
330
+ existingExposure?: {
331
+ validators: mongoose.Types.DocumentArray<{
332
+ type?: unknown;
333
+ message?: unknown;
334
+ validator?: unknown;
335
+ reason?: unknown;
336
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
337
+ type?: unknown;
338
+ message?: unknown;
339
+ validator?: unknown;
340
+ reason?: unknown;
341
+ }> & {
342
+ type?: unknown;
343
+ message?: unknown;
344
+ validator?: unknown;
345
+ reason?: unknown;
346
+ }>;
347
+ get?: {} | null | undefined;
348
+ schema?: {
349
+ [x: string]: unknown;
350
+ } | null | undefined;
351
+ set?: {} | null | undefined;
352
+ validate?: {} | null | undefined;
353
+ index?: {} | null | undefined;
354
+ default?: {} | null | undefined;
355
+ text?: {} | null | undefined;
356
+ unique?: {} | null | undefined;
357
+ sparse?: {} | null | undefined;
358
+ cast?: {} | null | undefined;
359
+ required?: {} | null | undefined;
360
+ ref?: {} | null | undefined;
361
+ select?: {} | null | undefined;
362
+ immutable?: {} | null | undefined;
363
+ transform?: {} | null | undefined;
364
+ options?: {
365
+ [x: string]: unknown;
366
+ } | null | undefined;
367
+ OptionsConstructor?: {
368
+ [x: string]: unknown;
369
+ } | null | undefined;
370
+ getEmbeddedSchemaType?: {} | null | undefined;
371
+ instance?: unknown;
372
+ isRequired?: unknown;
373
+ path?: unknown;
374
+ toJSONSchema?: {} | null | undefined;
375
+ validateAll?: {} | null | undefined;
376
+ defaultOptions?: unknown;
377
+ } | null | undefined;
378
+ inFlightExposure?: {
379
+ validators: mongoose.Types.DocumentArray<{
380
+ type?: unknown;
381
+ message?: unknown;
382
+ validator?: unknown;
383
+ reason?: unknown;
384
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
385
+ type?: unknown;
386
+ message?: unknown;
387
+ validator?: unknown;
388
+ reason?: unknown;
389
+ }> & {
390
+ type?: unknown;
391
+ message?: unknown;
392
+ validator?: unknown;
393
+ reason?: unknown;
394
+ }>;
395
+ get?: {} | null | undefined;
396
+ schema?: {
397
+ [x: string]: unknown;
398
+ } | null | undefined;
399
+ set?: {} | null | undefined;
400
+ validate?: {} | null | undefined;
401
+ index?: {} | null | undefined;
402
+ default?: {} | null | undefined;
403
+ text?: {} | null | undefined;
404
+ unique?: {} | null | undefined;
405
+ sparse?: {} | null | undefined;
406
+ cast?: {} | null | undefined;
407
+ required?: {} | null | undefined;
408
+ ref?: {} | null | undefined;
409
+ select?: {} | null | undefined;
410
+ immutable?: {} | null | undefined;
411
+ transform?: {} | null | undefined;
412
+ options?: {
413
+ [x: string]: unknown;
414
+ } | null | undefined;
415
+ OptionsConstructor?: {
416
+ [x: string]: unknown;
417
+ } | null | undefined;
418
+ getEmbeddedSchemaType?: {} | null | undefined;
419
+ instance?: unknown;
420
+ isRequired?: unknown;
421
+ path?: unknown;
422
+ toJSONSchema?: {} | null | undefined;
423
+ validateAll?: {} | null | undefined;
424
+ defaultOptions?: unknown;
425
+ } | null | undefined;
426
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
427
+ }, {}> & {
428
+ createdAt: NativeDate;
429
+ updatedAt: NativeDate;
430
+ } & {
431
+ createdAt?: {
432
+ toJSON?: {} | null | undefined;
433
+ valueOf: {} | null;
434
+ toString: {} | null;
435
+ toLocaleString: {} | null;
436
+ [Symbol.toPrimitive]?: {} | null | undefined;
437
+ toDateString?: {} | null | undefined;
438
+ toTimeString?: {} | null | undefined;
439
+ toLocaleDateString?: {} | null | undefined;
440
+ toLocaleTimeString?: {} | null | undefined;
441
+ getTime?: {} | null | undefined;
442
+ getFullYear?: {} | null | undefined;
443
+ getUTCFullYear?: {} | null | undefined;
444
+ getMonth?: {} | null | undefined;
445
+ getUTCMonth?: {} | null | undefined;
446
+ getDate?: {} | null | undefined;
447
+ getUTCDate?: {} | null | undefined;
448
+ getDay?: {} | null | undefined;
449
+ getUTCDay?: {} | null | undefined;
450
+ getHours?: {} | null | undefined;
451
+ getUTCHours?: {} | null | undefined;
452
+ getMinutes?: {} | null | undefined;
453
+ getUTCMinutes?: {} | null | undefined;
454
+ getSeconds?: {} | null | undefined;
455
+ getUTCSeconds?: {} | null | undefined;
456
+ getMilliseconds?: {} | null | undefined;
457
+ getUTCMilliseconds?: {} | null | undefined;
458
+ getTimezoneOffset?: {} | null | undefined;
459
+ setTime?: {} | null | undefined;
460
+ setMilliseconds?: {} | null | undefined;
461
+ setUTCMilliseconds?: {} | null | undefined;
462
+ setSeconds?: {} | null | undefined;
463
+ setUTCSeconds?: {} | null | undefined;
464
+ setMinutes?: {} | null | undefined;
465
+ setUTCMinutes?: {} | null | undefined;
466
+ setHours?: {} | null | undefined;
467
+ setUTCHours?: {} | null | undefined;
468
+ setDate?: {} | null | undefined;
469
+ setUTCDate?: {} | null | undefined;
470
+ setMonth?: {} | null | undefined;
471
+ setUTCMonth?: {} | null | undefined;
472
+ setFullYear?: {} | null | undefined;
473
+ setUTCFullYear?: {} | null | undefined;
474
+ toUTCString?: {} | null | undefined;
475
+ toISOString?: {} | null | undefined;
476
+ getVarDate?: {} | null | undefined;
477
+ } | null | undefined;
478
+ updatedAt?: {
479
+ toJSON?: {} | null | undefined;
480
+ valueOf: {} | null;
481
+ toString: {} | null;
482
+ toLocaleString: {} | null;
483
+ [Symbol.toPrimitive]?: {} | null | undefined;
484
+ toDateString?: {} | null | undefined;
485
+ toTimeString?: {} | null | undefined;
486
+ toLocaleDateString?: {} | null | undefined;
487
+ toLocaleTimeString?: {} | null | undefined;
488
+ getTime?: {} | null | undefined;
489
+ getFullYear?: {} | null | undefined;
490
+ getUTCFullYear?: {} | null | undefined;
491
+ getMonth?: {} | null | undefined;
492
+ getUTCMonth?: {} | null | undefined;
493
+ getDate?: {} | null | undefined;
494
+ getUTCDate?: {} | null | undefined;
495
+ getDay?: {} | null | undefined;
496
+ getUTCDay?: {} | null | undefined;
497
+ getHours?: {} | null | undefined;
498
+ getUTCHours?: {} | null | undefined;
499
+ getMinutes?: {} | null | undefined;
500
+ getUTCMinutes?: {} | null | undefined;
501
+ getSeconds?: {} | null | undefined;
502
+ getUTCSeconds?: {} | null | undefined;
503
+ getMilliseconds?: {} | null | undefined;
504
+ getUTCMilliseconds?: {} | null | undefined;
505
+ getTimezoneOffset?: {} | null | undefined;
506
+ setTime?: {} | null | undefined;
507
+ setMilliseconds?: {} | null | undefined;
508
+ setUTCMilliseconds?: {} | null | undefined;
509
+ setSeconds?: {} | null | undefined;
510
+ setUTCSeconds?: {} | null | undefined;
511
+ setMinutes?: {} | null | undefined;
512
+ setUTCMinutes?: {} | null | undefined;
513
+ setHours?: {} | null | undefined;
514
+ setUTCHours?: {} | null | undefined;
515
+ setDate?: {} | null | undefined;
516
+ setUTCDate?: {} | null | undefined;
517
+ setMonth?: {} | null | undefined;
518
+ setUTCMonth?: {} | null | undefined;
519
+ setFullYear?: {} | null | undefined;
520
+ setUTCFullYear?: {} | null | undefined;
521
+ toUTCString?: {} | null | undefined;
522
+ toISOString?: {} | null | undefined;
523
+ getVarDate?: {} | null | undefined;
524
+ } | null | undefined;
525
+ applicantId?: mongoose.Types.ObjectId | null | undefined;
526
+ isConfirmed?: unknown;
527
+ documentId?: mongoose.Types.ObjectId | null | undefined;
528
+ existingExposure?: {
529
+ validators: mongoose.Types.DocumentArray<{
530
+ type?: unknown;
531
+ message?: unknown;
532
+ validator?: unknown;
533
+ reason?: unknown;
534
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
535
+ type?: unknown;
536
+ message?: unknown;
537
+ validator?: unknown;
538
+ reason?: unknown;
539
+ }> & {
540
+ type?: unknown;
541
+ message?: unknown;
542
+ validator?: unknown;
543
+ reason?: unknown;
544
+ }>;
545
+ get?: {} | null | undefined;
546
+ schema?: {
547
+ [x: string]: unknown;
548
+ } | null | undefined;
549
+ set?: {} | null | undefined;
550
+ validate?: {} | null | undefined;
551
+ index?: {} | null | undefined;
552
+ default?: {} | null | undefined;
553
+ text?: {} | null | undefined;
554
+ unique?: {} | null | undefined;
555
+ sparse?: {} | null | undefined;
556
+ cast?: {} | null | undefined;
557
+ required?: {} | null | undefined;
558
+ ref?: {} | null | undefined;
559
+ select?: {} | null | undefined;
560
+ immutable?: {} | null | undefined;
561
+ transform?: {} | null | undefined;
562
+ options?: {
563
+ [x: string]: unknown;
564
+ } | null | undefined;
565
+ OptionsConstructor?: {
566
+ [x: string]: unknown;
567
+ } | null | undefined;
568
+ getEmbeddedSchemaType?: {} | null | undefined;
569
+ instance?: unknown;
570
+ isRequired?: unknown;
571
+ path?: unknown;
572
+ toJSONSchema?: {} | null | undefined;
573
+ validateAll?: {} | null | undefined;
574
+ defaultOptions?: unknown;
575
+ } | null | undefined;
576
+ inFlightExposure?: {
577
+ validators: mongoose.Types.DocumentArray<{
578
+ type?: unknown;
579
+ message?: unknown;
580
+ validator?: unknown;
581
+ reason?: unknown;
582
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
583
+ type?: unknown;
584
+ message?: unknown;
585
+ validator?: unknown;
586
+ reason?: unknown;
587
+ }> & {
588
+ type?: unknown;
589
+ message?: unknown;
590
+ validator?: unknown;
591
+ reason?: unknown;
592
+ }>;
593
+ get?: {} | null | undefined;
594
+ schema?: {
595
+ [x: string]: unknown;
596
+ } | null | undefined;
597
+ set?: {} | null | undefined;
598
+ validate?: {} | null | undefined;
599
+ index?: {} | null | undefined;
600
+ default?: {} | null | undefined;
601
+ text?: {} | null | undefined;
602
+ unique?: {} | null | undefined;
603
+ sparse?: {} | null | undefined;
604
+ cast?: {} | null | undefined;
605
+ required?: {} | null | undefined;
606
+ ref?: {} | null | undefined;
607
+ select?: {} | null | undefined;
608
+ immutable?: {} | null | undefined;
609
+ transform?: {} | null | undefined;
610
+ options?: {
611
+ [x: string]: unknown;
612
+ } | null | undefined;
613
+ OptionsConstructor?: {
614
+ [x: string]: unknown;
615
+ } | null | undefined;
616
+ getEmbeddedSchemaType?: {} | null | undefined;
617
+ instance?: unknown;
618
+ isRequired?: unknown;
619
+ path?: unknown;
620
+ toJSONSchema?: {} | null | undefined;
621
+ validateAll?: {} | null | undefined;
622
+ defaultOptions?: unknown;
623
+ } | null | undefined;
624
+ creditConductLid?: mongoose.Types.ObjectId | null | undefined;
625
+ } & {
626
+ _id: mongoose.Types.ObjectId;
627
+ } & {
628
+ __v: number;
629
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
630
+ timestamps: true;
631
+ }, {
632
+ createdAt: NativeDate;
633
+ updatedAt: NativeDate;
634
+ } & {
635
+ applicantId: mongoose.Types.ObjectId;
636
+ isConfirmed: boolean;
637
+ documentId: mongoose.Types.ObjectId;
638
+ existingExposure: Pound;
639
+ inFlightExposure: Pound;
640
+ creditConductLid: mongoose.Types.ObjectId;
641
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
642
+ createdAt: NativeDate;
643
+ updatedAt: NativeDate;
644
+ } & {
645
+ applicantId: mongoose.Types.ObjectId;
646
+ isConfirmed: boolean;
647
+ documentId: mongoose.Types.ObjectId;
648
+ existingExposure: Pound;
649
+ inFlightExposure: Pound;
650
+ creditConductLid: mongoose.Types.ObjectId;
651
+ }>, {}> & mongoose.FlatRecord<{
652
+ createdAt: NativeDate;
653
+ updatedAt: NativeDate;
654
+ } & {
655
+ applicantId: mongoose.Types.ObjectId;
656
+ isConfirmed: boolean;
657
+ documentId: mongoose.Types.ObjectId;
658
+ existingExposure: Pound;
659
+ inFlightExposure: Pound;
660
+ creditConductLid: mongoose.Types.ObjectId;
661
+ }> & {
662
+ _id: mongoose.Types.ObjectId;
663
+ } & {
664
+ __v: number;
665
+ }>>;
666
+ export default ApplicantLargeExposureModel;
667
+ //# 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;AAa5D,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGhC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,14 @@
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
+ applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
6
+ documentId: { type: mongoose.Schema.Types.ObjectId, ref: "Document", required: true },
7
+ existingExposure: { type: Pound, default: 0.00, get: formatPound },
8
+ inFlightExposure: { type: Pound, default: 0.00, get: formatPound },
9
+ creditConductLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
10
+ isConfirmed: { type: Boolean, default: false }
11
+ }, { timestamps: true });
12
+ applyWorkflowPlugin(applicantLargeExposureSchema, "applicant_large_exposure");
13
+ const ApplicantLargeExposureModel = mongoose.model("ApplicantLargeExposure", applicantLargeExposureSchema);
14
+ export default ApplicantLargeExposureModel;
@@ -0,0 +1,39 @@
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
+ applicantId: Types.ObjectId;
33
+ documentId?: Types.ObjectId;
34
+ existingExposure?: number;
35
+ inFlightExposure?: number;
36
+ creditConductLid?: Types.ObjectId | null;
37
+ isConfirmed?: boolean;
38
+ }
39
+ //# 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,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -139,10 +139,10 @@ declare const ApplicantModel: mongoose.Model<{
139
139
  addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
140
140
  firstName?: unknown;
141
141
  lastName?: unknown;
142
+ isUkResident?: unknown;
142
143
  email?: unknown;
143
144
  creditProfile?: unknown;
144
145
  riskNarrative?: unknown;
145
- isUkResident?: unknown;
146
146
  incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
147
147
  isExpenseOwner?: unknown;
148
148
  creditData?: unknown;
@@ -490,10 +490,10 @@ declare const ApplicantModel: mongoose.Model<{
490
490
  addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
491
491
  firstName?: unknown;
492
492
  lastName?: unknown;
493
+ isUkResident?: unknown;
493
494
  email?: unknown;
494
495
  creditProfile?: unknown;
495
496
  riskNarrative?: unknown;
496
- isUkResident?: unknown;
497
497
  incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
498
498
  isExpenseOwner?: unknown;
499
499
  creditData?: unknown;
@@ -841,10 +841,10 @@ declare const ApplicantModel: mongoose.Model<{
841
841
  addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
842
842
  firstName?: unknown;
843
843
  lastName?: unknown;
844
+ isUkResident?: unknown;
844
845
  email?: unknown;
845
846
  creditProfile?: unknown;
846
847
  riskNarrative?: unknown;
847
- isUkResident?: unknown;
848
848
  incomeSourceId?: mongoose.Types.ObjectId | null | undefined;
849
849
  isExpenseOwner?: unknown;
850
850
  creditData?: unknown;
@@ -1111,8 +1111,8 @@ declare const ApplicantModel: mongoose.Model<{
1111
1111
  addressCountryLid: mongoose.Types.ObjectId;
1112
1112
  firstName: string;
1113
1113
  lastName: string;
1114
- email: string;
1115
1114
  isUkResident: boolean;
1115
+ email: string;
1116
1116
  incomeSourceId: mongoose.Types.ObjectId;
1117
1117
  addressMovedDate: string;
1118
1118
  correspondenceAddressCity: string;
@@ -1266,8 +1266,8 @@ declare const ApplicantModel: mongoose.Model<{
1266
1266
  addressCountryLid: mongoose.Types.ObjectId;
1267
1267
  firstName: string;
1268
1268
  lastName: string;
1269
- email: string;
1270
1269
  isUkResident: boolean;
1270
+ email: string;
1271
1271
  incomeSourceId: mongoose.Types.ObjectId;
1272
1272
  addressMovedDate: string;
1273
1273
  correspondenceAddressCity: string;
@@ -1421,8 +1421,8 @@ declare const ApplicantModel: mongoose.Model<{
1421
1421
  addressCountryLid: mongoose.Types.ObjectId;
1422
1422
  firstName: string;
1423
1423
  lastName: string;
1424
- email: string;
1425
1424
  isUkResident: boolean;
1425
+ email: string;
1426
1426
  incomeSourceId: mongoose.Types.ObjectId;
1427
1427
  addressMovedDate: string;
1428
1428
  correspondenceAddressCity: string;
@@ -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,0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iC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -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';
@@ -1 +1 @@
1
- {"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAkKhE,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
@@ -146,6 +146,21 @@ const virtualApplicants = applicationDirectDebitSchema.virtual('applicants', {
146
146
  }
147
147
  });
148
148
  virtualApplicants.description = 'Full Name of the applicant';
149
+ // Virtual property: true only when all applicants on this application have isUkResident === false
150
+ const virtualAllApplicantsNonUkResident = applicationDirectDebitSchema.virtual('allApplicantsNonUkResident').get(async function () {
151
+ const applicationId = this.applicationId;
152
+ if (!applicationId) {
153
+ return false;
154
+ }
155
+ const Applicant = mongoose.model('Applicant');
156
+ const applicants = await Applicant.find({ applicationId }).select('isUkResident').lean();
157
+ if (!applicants || applicants.length === 0) {
158
+ return false;
159
+ }
160
+ // Return true only if every applicant has isUkResident === false
161
+ return applicants.every((applicant) => applicant.isUkResident === false);
162
+ });
163
+ virtualAllApplicantsNonUkResident.description = 'True when all applicants on this application have isUkResident === false';
149
164
  // Index for applicationId queries
150
165
  applicationDirectDebitSchema.index({ applicationId: 1 });
151
166
  applyAuditMiddleware(applicationDirectDebitSchema, "application_directdebit");
@@ -35,6 +35,7 @@ declare const ApplicationModel: mongoose.Model<{
35
35
  applicationId: string;
36
36
  applicationTypeLid: mongoose.Types.ObjectId;
37
37
  applicants: mongoose.Types.ObjectId[];
38
+ isUkResident: boolean;
38
39
  repaymentTypeLid: mongoose.Types.ObjectId;
39
40
  lendingTypeLid: mongoose.Types.ObjectId;
40
41
  introducer: string;
@@ -95,7 +96,6 @@ declare const ApplicationModel: mongoose.Model<{
95
96
  lenderTaskCount: number;
96
97
  pendingTaskCountForUser: number;
97
98
  applicationFormSignedDate: NativeDate;
98
- isUkResident: boolean;
99
99
  creditReportId: string;
100
100
  isAlgbraEligible: boolean;
101
101
  selectedProduct?: string | null | undefined;
@@ -132,6 +132,7 @@ declare const ApplicationModel: mongoose.Model<{
132
132
  applicationId: string;
133
133
  applicationTypeLid: mongoose.Types.ObjectId;
134
134
  applicants: mongoose.Types.ObjectId[];
135
+ isUkResident: boolean;
135
136
  repaymentTypeLid: mongoose.Types.ObjectId;
136
137
  lendingTypeLid: mongoose.Types.ObjectId;
137
138
  introducer: string;
@@ -192,7 +193,6 @@ declare const ApplicationModel: mongoose.Model<{
192
193
  lenderTaskCount: number;
193
194
  pendingTaskCountForUser: number;
194
195
  applicationFormSignedDate: NativeDate;
195
- isUkResident: boolean;
196
196
  creditReportId: string;
197
197
  isAlgbraEligible: boolean;
198
198
  selectedProduct?: string | null | undefined;
@@ -229,6 +229,7 @@ declare const ApplicationModel: mongoose.Model<{
229
229
  applicationId: string;
230
230
  applicationTypeLid: mongoose.Types.ObjectId;
231
231
  applicants: mongoose.Types.ObjectId[];
232
+ isUkResident: boolean;
232
233
  repaymentTypeLid: mongoose.Types.ObjectId;
233
234
  lendingTypeLid: mongoose.Types.ObjectId;
234
235
  introducer: string;
@@ -289,7 +290,6 @@ declare const ApplicationModel: mongoose.Model<{
289
290
  lenderTaskCount: number;
290
291
  pendingTaskCountForUser: number;
291
292
  applicationFormSignedDate: NativeDate;
292
- isUkResident: boolean;
293
293
  creditReportId: string;
294
294
  isAlgbraEligible: boolean;
295
295
  selectedProduct?: string | null | undefined;
@@ -338,6 +338,7 @@ declare const ApplicationModel: mongoose.Model<{
338
338
  applicationId: string;
339
339
  applicationTypeLid: mongoose.Types.ObjectId;
340
340
  applicants: mongoose.Types.ObjectId[];
341
+ isUkResident: boolean;
341
342
  repaymentTypeLid: mongoose.Types.ObjectId;
342
343
  lendingTypeLid: mongoose.Types.ObjectId;
343
344
  introducer: string;
@@ -398,7 +399,6 @@ declare const ApplicationModel: mongoose.Model<{
398
399
  lenderTaskCount: number;
399
400
  pendingTaskCountForUser: number;
400
401
  applicationFormSignedDate: NativeDate;
401
- isUkResident: boolean;
402
402
  creditReportId: string;
403
403
  isAlgbraEligible: boolean;
404
404
  selectedProduct?: string | null | undefined;
@@ -435,6 +435,7 @@ declare const ApplicationModel: mongoose.Model<{
435
435
  applicationId: string;
436
436
  applicationTypeLid: mongoose.Types.ObjectId;
437
437
  applicants: mongoose.Types.ObjectId[];
438
+ isUkResident: boolean;
438
439
  repaymentTypeLid: mongoose.Types.ObjectId;
439
440
  lendingTypeLid: mongoose.Types.ObjectId;
440
441
  introducer: string;
@@ -495,7 +496,6 @@ declare const ApplicationModel: mongoose.Model<{
495
496
  lenderTaskCount: number;
496
497
  pendingTaskCountForUser: number;
497
498
  applicationFormSignedDate: NativeDate;
498
- isUkResident: boolean;
499
499
  creditReportId: string;
500
500
  isAlgbraEligible: boolean;
501
501
  selectedProduct?: string | null | undefined;
@@ -532,6 +532,7 @@ declare const ApplicationModel: mongoose.Model<{
532
532
  applicationId: string;
533
533
  applicationTypeLid: mongoose.Types.ObjectId;
534
534
  applicants: mongoose.Types.ObjectId[];
535
+ isUkResident: boolean;
535
536
  repaymentTypeLid: mongoose.Types.ObjectId;
536
537
  lendingTypeLid: mongoose.Types.ObjectId;
537
538
  introducer: string;
@@ -592,7 +593,6 @@ declare const ApplicationModel: mongoose.Model<{
592
593
  lenderTaskCount: number;
593
594
  pendingTaskCountForUser: number;
594
595
  applicationFormSignedDate: NativeDate;
595
- isUkResident: boolean;
596
596
  creditReportId: string;
597
597
  isAlgbraEligible: boolean;
598
598
  selectedProduct?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.413",
3
+ "version": "2.3.415",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
38
38
  "dependencies": {
39
- "@dynamatix/cat-shared": "^0.0.156",
39
+ "@dynamatix/cat-shared": "^0.0.157",
40
40
  "dotenv": "^16.4.5",
41
41
  "mongodb": "^6.14.2",
42
42
  "mongoose": "^8.9.5"