@dynamatix/gb-schemas 1.3.299 → 1.3.300

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.
@@ -63,7 +63,632 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
63
63
  forename: string;
64
64
  surname: string;
65
65
  }>;
66
- accounts: mongoose.Types.DocumentArray<{
66
+ linkedAddressData: mongoose.Types.DocumentArray<{
67
+ type: string;
68
+ name: string;
69
+ dob: string;
70
+ startDate: string;
71
+ lastUpdate: string;
72
+ fixedPaymentTerms: number;
73
+ endDate: string;
74
+ nameMatchStatus: string;
75
+ paymentFrequency: string;
76
+ paymentHistory: mongoose.Types.DocumentArray<{
77
+ ageInMonths: string;
78
+ paymentStatus: string;
79
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
80
+ ageInMonths: string;
81
+ paymentStatus: string;
82
+ }> & {
83
+ ageInMonths: string;
84
+ paymentStatus: string;
85
+ }>;
86
+ startBalance?: {
87
+ amount: string;
88
+ currency: string;
89
+ } | null | undefined;
90
+ currentBalance?: {
91
+ amount: string;
92
+ currency: string;
93
+ } | null | undefined;
94
+ delinquentBalance?: {
95
+ amount: string;
96
+ currency: string;
97
+ } | null | undefined;
98
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
99
+ type: string;
100
+ name: string;
101
+ dob: string;
102
+ startDate: string;
103
+ lastUpdate: string;
104
+ fixedPaymentTerms: number;
105
+ endDate: string;
106
+ nameMatchStatus: string;
107
+ paymentFrequency: string;
108
+ paymentHistory: mongoose.Types.DocumentArray<{
109
+ ageInMonths: string;
110
+ paymentStatus: string;
111
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
112
+ ageInMonths: string;
113
+ paymentStatus: string;
114
+ }> & {
115
+ ageInMonths: string;
116
+ paymentStatus: string;
117
+ }>;
118
+ startBalance?: {
119
+ amount: string;
120
+ currency: string;
121
+ } | null | undefined;
122
+ currentBalance?: {
123
+ amount: string;
124
+ currency: string;
125
+ } | null | undefined;
126
+ delinquentBalance?: {
127
+ amount: string;
128
+ currency: string;
129
+ } | null | undefined;
130
+ }> & {
131
+ type: string;
132
+ name: string;
133
+ dob: string;
134
+ startDate: string;
135
+ lastUpdate: string;
136
+ fixedPaymentTerms: number;
137
+ endDate: string;
138
+ nameMatchStatus: string;
139
+ paymentFrequency: string;
140
+ paymentHistory: mongoose.Types.DocumentArray<{
141
+ ageInMonths: string;
142
+ paymentStatus: string;
143
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
144
+ ageInMonths: string;
145
+ paymentStatus: string;
146
+ }> & {
147
+ ageInMonths: string;
148
+ paymentStatus: string;
149
+ }>;
150
+ startBalance?: {
151
+ amount: string;
152
+ currency: string;
153
+ } | null | undefined;
154
+ currentBalance?: {
155
+ amount: string;
156
+ currency: string;
157
+ } | null | undefined;
158
+ delinquentBalance?: {
159
+ amount: string;
160
+ currency: string;
161
+ } | null | undefined;
162
+ }>;
163
+ suppliedAddressData: mongoose.Types.DocumentArray<{
164
+ type: string;
165
+ name: string;
166
+ dob: string;
167
+ startDate: string;
168
+ lastUpdate: string;
169
+ fixedPaymentTerms: number;
170
+ endDate: string;
171
+ nameMatchStatus: string;
172
+ paymentFrequency: string;
173
+ paymentHistory: mongoose.Types.DocumentArray<{
174
+ ageInMonths: string;
175
+ paymentStatus: string;
176
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
177
+ ageInMonths: string;
178
+ paymentStatus: string;
179
+ }> & {
180
+ ageInMonths: string;
181
+ paymentStatus: string;
182
+ }>;
183
+ startBalance?: {
184
+ amount: string;
185
+ currency: string;
186
+ } | null | undefined;
187
+ currentBalance?: {
188
+ amount: string;
189
+ currency: string;
190
+ } | null | undefined;
191
+ delinquentBalance?: {
192
+ amount: string;
193
+ currency: string;
194
+ } | null | undefined;
195
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
196
+ type: string;
197
+ name: string;
198
+ dob: string;
199
+ startDate: string;
200
+ lastUpdate: string;
201
+ fixedPaymentTerms: number;
202
+ endDate: string;
203
+ nameMatchStatus: string;
204
+ paymentFrequency: string;
205
+ paymentHistory: mongoose.Types.DocumentArray<{
206
+ ageInMonths: string;
207
+ paymentStatus: string;
208
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
209
+ ageInMonths: string;
210
+ paymentStatus: string;
211
+ }> & {
212
+ ageInMonths: string;
213
+ paymentStatus: string;
214
+ }>;
215
+ startBalance?: {
216
+ amount: string;
217
+ currency: string;
218
+ } | null | undefined;
219
+ currentBalance?: {
220
+ amount: string;
221
+ currency: string;
222
+ } | null | undefined;
223
+ delinquentBalance?: {
224
+ amount: string;
225
+ currency: string;
226
+ } | null | undefined;
227
+ }> & {
228
+ type: string;
229
+ name: string;
230
+ dob: string;
231
+ startDate: string;
232
+ lastUpdate: string;
233
+ fixedPaymentTerms: number;
234
+ endDate: string;
235
+ nameMatchStatus: string;
236
+ paymentFrequency: string;
237
+ paymentHistory: mongoose.Types.DocumentArray<{
238
+ ageInMonths: string;
239
+ paymentStatus: string;
240
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
241
+ ageInMonths: string;
242
+ paymentStatus: string;
243
+ }> & {
244
+ ageInMonths: string;
245
+ paymentStatus: string;
246
+ }>;
247
+ startBalance?: {
248
+ amount: string;
249
+ currency: string;
250
+ } | null | undefined;
251
+ currentBalance?: {
252
+ amount: string;
253
+ currency: string;
254
+ } | null | undefined;
255
+ delinquentBalance?: {
256
+ amount: string;
257
+ currency: string;
258
+ } | null | undefined;
259
+ }>;
260
+ linkedAddresses: mongoose.Types.DocumentArray<{
261
+ type: "current" | "previous";
262
+ address?: {
263
+ number: string;
264
+ street: string;
265
+ postTown: string;
266
+ postcode: string;
267
+ county: string;
268
+ } | null | undefined;
269
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
270
+ type: "current" | "previous";
271
+ address?: {
272
+ number: string;
273
+ street: string;
274
+ postTown: string;
275
+ postcode: string;
276
+ county: string;
277
+ } | null | undefined;
278
+ }> & {
279
+ type: "current" | "previous";
280
+ address?: {
281
+ number: string;
282
+ street: string;
283
+ postTown: string;
284
+ postcode: string;
285
+ county: string;
286
+ } | null | undefined;
287
+ }>;
288
+ electoralInformation?: {
289
+ startDate: string;
290
+ endDate: string;
291
+ nameMatchStatus: string;
292
+ seniority: string;
293
+ } | null | undefined;
294
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
295
+ applicantId: mongoose.Types.ObjectId;
296
+ applicantName: string;
297
+ applicantDob: string;
298
+ noticeofCorrection: string;
299
+ creditDefaults: string;
300
+ countyCourtJudgment: string;
301
+ securedArrears: string;
302
+ unsecuredArrears: string;
303
+ bankruptcyOrIva: string;
304
+ aliasNames: mongoose.Types.DocumentArray<{
305
+ dob: string;
306
+ forename: string;
307
+ surname: string;
308
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
309
+ dob: string;
310
+ forename: string;
311
+ surname: string;
312
+ }> & {
313
+ dob: string;
314
+ forename: string;
315
+ surname: string;
316
+ }>;
317
+ associates: mongoose.Types.DocumentArray<{
318
+ dob: string;
319
+ forename: string;
320
+ surname: string;
321
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
322
+ dob: string;
323
+ forename: string;
324
+ surname: string;
325
+ }> & {
326
+ dob: string;
327
+ forename: string;
328
+ surname: string;
329
+ }>;
330
+ linkedAddressData: mongoose.Types.DocumentArray<{
331
+ type: string;
332
+ name: string;
333
+ dob: string;
334
+ startDate: string;
335
+ lastUpdate: string;
336
+ fixedPaymentTerms: number;
337
+ endDate: string;
338
+ nameMatchStatus: string;
339
+ paymentFrequency: string;
340
+ paymentHistory: mongoose.Types.DocumentArray<{
341
+ ageInMonths: string;
342
+ paymentStatus: string;
343
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
344
+ ageInMonths: string;
345
+ paymentStatus: string;
346
+ }> & {
347
+ ageInMonths: string;
348
+ paymentStatus: string;
349
+ }>;
350
+ startBalance?: {
351
+ amount: string;
352
+ currency: string;
353
+ } | null | undefined;
354
+ currentBalance?: {
355
+ amount: string;
356
+ currency: string;
357
+ } | null | undefined;
358
+ delinquentBalance?: {
359
+ amount: string;
360
+ currency: string;
361
+ } | null | undefined;
362
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
363
+ type: string;
364
+ name: string;
365
+ dob: string;
366
+ startDate: string;
367
+ lastUpdate: string;
368
+ fixedPaymentTerms: number;
369
+ endDate: string;
370
+ nameMatchStatus: string;
371
+ paymentFrequency: string;
372
+ paymentHistory: mongoose.Types.DocumentArray<{
373
+ ageInMonths: string;
374
+ paymentStatus: string;
375
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
376
+ ageInMonths: string;
377
+ paymentStatus: string;
378
+ }> & {
379
+ ageInMonths: string;
380
+ paymentStatus: string;
381
+ }>;
382
+ startBalance?: {
383
+ amount: string;
384
+ currency: string;
385
+ } | null | undefined;
386
+ currentBalance?: {
387
+ amount: string;
388
+ currency: string;
389
+ } | null | undefined;
390
+ delinquentBalance?: {
391
+ amount: string;
392
+ currency: string;
393
+ } | null | undefined;
394
+ }> & {
395
+ type: string;
396
+ name: string;
397
+ dob: string;
398
+ startDate: string;
399
+ lastUpdate: string;
400
+ fixedPaymentTerms: number;
401
+ endDate: string;
402
+ nameMatchStatus: string;
403
+ paymentFrequency: string;
404
+ paymentHistory: mongoose.Types.DocumentArray<{
405
+ ageInMonths: string;
406
+ paymentStatus: string;
407
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
408
+ ageInMonths: string;
409
+ paymentStatus: string;
410
+ }> & {
411
+ ageInMonths: string;
412
+ paymentStatus: string;
413
+ }>;
414
+ startBalance?: {
415
+ amount: string;
416
+ currency: string;
417
+ } | null | undefined;
418
+ currentBalance?: {
419
+ amount: string;
420
+ currency: string;
421
+ } | null | undefined;
422
+ delinquentBalance?: {
423
+ amount: string;
424
+ currency: string;
425
+ } | null | undefined;
426
+ }>;
427
+ suppliedAddressData: mongoose.Types.DocumentArray<{
428
+ type: string;
429
+ name: string;
430
+ dob: string;
431
+ startDate: string;
432
+ lastUpdate: string;
433
+ fixedPaymentTerms: number;
434
+ endDate: string;
435
+ nameMatchStatus: string;
436
+ paymentFrequency: string;
437
+ paymentHistory: mongoose.Types.DocumentArray<{
438
+ ageInMonths: string;
439
+ paymentStatus: string;
440
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
441
+ ageInMonths: string;
442
+ paymentStatus: string;
443
+ }> & {
444
+ ageInMonths: string;
445
+ paymentStatus: string;
446
+ }>;
447
+ startBalance?: {
448
+ amount: string;
449
+ currency: string;
450
+ } | null | undefined;
451
+ currentBalance?: {
452
+ amount: string;
453
+ currency: string;
454
+ } | null | undefined;
455
+ delinquentBalance?: {
456
+ amount: string;
457
+ currency: string;
458
+ } | null | undefined;
459
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
460
+ type: string;
461
+ name: string;
462
+ dob: string;
463
+ startDate: string;
464
+ lastUpdate: string;
465
+ fixedPaymentTerms: number;
466
+ endDate: string;
467
+ nameMatchStatus: string;
468
+ paymentFrequency: string;
469
+ paymentHistory: mongoose.Types.DocumentArray<{
470
+ ageInMonths: string;
471
+ paymentStatus: string;
472
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
473
+ ageInMonths: string;
474
+ paymentStatus: string;
475
+ }> & {
476
+ ageInMonths: string;
477
+ paymentStatus: string;
478
+ }>;
479
+ startBalance?: {
480
+ amount: string;
481
+ currency: string;
482
+ } | null | undefined;
483
+ currentBalance?: {
484
+ amount: string;
485
+ currency: string;
486
+ } | null | undefined;
487
+ delinquentBalance?: {
488
+ amount: string;
489
+ currency: string;
490
+ } | null | undefined;
491
+ }> & {
492
+ type: string;
493
+ name: string;
494
+ dob: string;
495
+ startDate: string;
496
+ lastUpdate: string;
497
+ fixedPaymentTerms: number;
498
+ endDate: string;
499
+ nameMatchStatus: string;
500
+ paymentFrequency: string;
501
+ paymentHistory: mongoose.Types.DocumentArray<{
502
+ ageInMonths: string;
503
+ paymentStatus: string;
504
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
505
+ ageInMonths: string;
506
+ paymentStatus: string;
507
+ }> & {
508
+ ageInMonths: string;
509
+ paymentStatus: string;
510
+ }>;
511
+ startBalance?: {
512
+ amount: string;
513
+ currency: string;
514
+ } | null | undefined;
515
+ currentBalance?: {
516
+ amount: string;
517
+ currency: string;
518
+ } | null | undefined;
519
+ delinquentBalance?: {
520
+ amount: string;
521
+ currency: string;
522
+ } | null | undefined;
523
+ }>;
524
+ linkedAddresses: mongoose.Types.DocumentArray<{
525
+ type: "current" | "previous";
526
+ address?: {
527
+ number: string;
528
+ street: string;
529
+ postTown: string;
530
+ postcode: string;
531
+ county: string;
532
+ } | null | undefined;
533
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
534
+ type: "current" | "previous";
535
+ address?: {
536
+ number: string;
537
+ street: string;
538
+ postTown: string;
539
+ postcode: string;
540
+ county: string;
541
+ } | null | undefined;
542
+ }> & {
543
+ type: "current" | "previous";
544
+ address?: {
545
+ number: string;
546
+ street: string;
547
+ postTown: string;
548
+ postcode: string;
549
+ county: string;
550
+ } | null | undefined;
551
+ }>;
552
+ electoralInformation?: {
553
+ startDate: string;
554
+ endDate: string;
555
+ nameMatchStatus: string;
556
+ seniority: string;
557
+ } | null | undefined;
558
+ }, {}> & {
559
+ applicantId: mongoose.Types.ObjectId;
560
+ applicantName: string;
561
+ applicantDob: string;
562
+ noticeofCorrection: string;
563
+ creditDefaults: string;
564
+ countyCourtJudgment: string;
565
+ securedArrears: string;
566
+ unsecuredArrears: string;
567
+ bankruptcyOrIva: string;
568
+ aliasNames: mongoose.Types.DocumentArray<{
569
+ dob: string;
570
+ forename: string;
571
+ surname: string;
572
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
573
+ dob: string;
574
+ forename: string;
575
+ surname: string;
576
+ }> & {
577
+ dob: string;
578
+ forename: string;
579
+ surname: string;
580
+ }>;
581
+ associates: mongoose.Types.DocumentArray<{
582
+ dob: string;
583
+ forename: string;
584
+ surname: string;
585
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
586
+ dob: string;
587
+ forename: string;
588
+ surname: string;
589
+ }> & {
590
+ dob: string;
591
+ forename: string;
592
+ surname: string;
593
+ }>;
594
+ linkedAddressData: mongoose.Types.DocumentArray<{
595
+ type: string;
596
+ name: string;
597
+ dob: string;
598
+ startDate: string;
599
+ lastUpdate: string;
600
+ fixedPaymentTerms: number;
601
+ endDate: string;
602
+ nameMatchStatus: string;
603
+ paymentFrequency: string;
604
+ paymentHistory: mongoose.Types.DocumentArray<{
605
+ ageInMonths: string;
606
+ paymentStatus: string;
607
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
608
+ ageInMonths: string;
609
+ paymentStatus: string;
610
+ }> & {
611
+ ageInMonths: string;
612
+ paymentStatus: string;
613
+ }>;
614
+ startBalance?: {
615
+ amount: string;
616
+ currency: string;
617
+ } | null | undefined;
618
+ currentBalance?: {
619
+ amount: string;
620
+ currency: string;
621
+ } | null | undefined;
622
+ delinquentBalance?: {
623
+ amount: string;
624
+ currency: string;
625
+ } | null | undefined;
626
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
627
+ type: string;
628
+ name: string;
629
+ dob: string;
630
+ startDate: string;
631
+ lastUpdate: string;
632
+ fixedPaymentTerms: number;
633
+ endDate: string;
634
+ nameMatchStatus: string;
635
+ paymentFrequency: string;
636
+ paymentHistory: mongoose.Types.DocumentArray<{
637
+ ageInMonths: string;
638
+ paymentStatus: string;
639
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
640
+ ageInMonths: string;
641
+ paymentStatus: string;
642
+ }> & {
643
+ ageInMonths: string;
644
+ paymentStatus: string;
645
+ }>;
646
+ startBalance?: {
647
+ amount: string;
648
+ currency: string;
649
+ } | null | undefined;
650
+ currentBalance?: {
651
+ amount: string;
652
+ currency: string;
653
+ } | null | undefined;
654
+ delinquentBalance?: {
655
+ amount: string;
656
+ currency: string;
657
+ } | null | undefined;
658
+ }> & {
659
+ type: string;
660
+ name: string;
661
+ dob: string;
662
+ startDate: string;
663
+ lastUpdate: string;
664
+ fixedPaymentTerms: number;
665
+ endDate: string;
666
+ nameMatchStatus: string;
667
+ paymentFrequency: string;
668
+ paymentHistory: mongoose.Types.DocumentArray<{
669
+ ageInMonths: string;
670
+ paymentStatus: string;
671
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
672
+ ageInMonths: string;
673
+ paymentStatus: string;
674
+ }> & {
675
+ ageInMonths: string;
676
+ paymentStatus: string;
677
+ }>;
678
+ startBalance?: {
679
+ amount: string;
680
+ currency: string;
681
+ } | null | undefined;
682
+ currentBalance?: {
683
+ amount: string;
684
+ currency: string;
685
+ } | null | undefined;
686
+ delinquentBalance?: {
687
+ amount: string;
688
+ currency: string;
689
+ } | null | undefined;
690
+ }>;
691
+ suppliedAddressData: mongoose.Types.DocumentArray<{
67
692
  type: string;
68
693
  name: string;
69
694
  dob: string;
@@ -194,7 +819,11 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
194
819
  nameMatchStatus: string;
195
820
  seniority: string;
196
821
  } | null | undefined;
197
- }, {}, {}, {}, mongoose.Document<unknown, {}, {
822
+ } & {
823
+ _id: mongoose.Types.ObjectId;
824
+ } & {
825
+ __v: number;
826
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
198
827
  applicantId: mongoose.Types.ObjectId;
199
828
  applicantName: string;
200
829
  applicantDob: string;
@@ -230,7 +859,7 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
230
859
  forename: string;
231
860
  surname: string;
232
861
  }>;
233
- accounts: mongoose.Types.DocumentArray<{
862
+ linkedAddressData: mongoose.Types.DocumentArray<{
234
863
  type: string;
235
864
  name: string;
236
865
  dob: string;
@@ -327,77 +956,7 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
327
956
  currency: string;
328
957
  } | null | undefined;
329
958
  }>;
330
- linkedAddresses: mongoose.Types.DocumentArray<{
331
- type: "current" | "previous";
332
- address?: {
333
- number: string;
334
- street: string;
335
- postTown: string;
336
- postcode: string;
337
- county: string;
338
- } | null | undefined;
339
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
340
- type: "current" | "previous";
341
- address?: {
342
- number: string;
343
- street: string;
344
- postTown: string;
345
- postcode: string;
346
- county: string;
347
- } | null | undefined;
348
- }> & {
349
- type: "current" | "previous";
350
- address?: {
351
- number: string;
352
- street: string;
353
- postTown: string;
354
- postcode: string;
355
- county: string;
356
- } | null | undefined;
357
- }>;
358
- electoralInformation?: {
359
- startDate: string;
360
- endDate: string;
361
- nameMatchStatus: string;
362
- seniority: string;
363
- } | null | undefined;
364
- }, {}> & {
365
- applicantId: mongoose.Types.ObjectId;
366
- applicantName: string;
367
- applicantDob: string;
368
- noticeofCorrection: string;
369
- creditDefaults: string;
370
- countyCourtJudgment: string;
371
- securedArrears: string;
372
- unsecuredArrears: string;
373
- bankruptcyOrIva: string;
374
- aliasNames: mongoose.Types.DocumentArray<{
375
- dob: string;
376
- forename: string;
377
- surname: string;
378
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
379
- dob: string;
380
- forename: string;
381
- surname: string;
382
- }> & {
383
- dob: string;
384
- forename: string;
385
- surname: string;
386
- }>;
387
- associates: mongoose.Types.DocumentArray<{
388
- dob: string;
389
- forename: string;
390
- surname: string;
391
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
392
- dob: string;
393
- forename: string;
394
- surname: string;
395
- }> & {
396
- dob: string;
397
- forename: string;
398
- surname: string;
399
- }>;
400
- accounts: mongoose.Types.DocumentArray<{
959
+ suppliedAddressData: mongoose.Types.DocumentArray<{
401
960
  type: string;
402
961
  name: string;
403
962
  dob: string;
@@ -528,11 +1087,7 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
528
1087
  nameMatchStatus: string;
529
1088
  seniority: string;
530
1089
  } | null | undefined;
531
- } & {
532
- _id: mongoose.Types.ObjectId;
533
- } & {
534
- __v: number;
535
- }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1090
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
536
1091
  applicantId: mongoose.Types.ObjectId;
537
1092
  applicantName: string;
538
1093
  applicantDob: string;
@@ -568,7 +1123,7 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
568
1123
  forename: string;
569
1124
  surname: string;
570
1125
  }>;
571
- accounts: mongoose.Types.DocumentArray<{
1126
+ linkedAddressData: mongoose.Types.DocumentArray<{
572
1127
  type: string;
573
1128
  name: string;
574
1129
  dob: string;
@@ -665,77 +1220,7 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
665
1220
  currency: string;
666
1221
  } | null | undefined;
667
1222
  }>;
668
- linkedAddresses: mongoose.Types.DocumentArray<{
669
- type: "current" | "previous";
670
- address?: {
671
- number: string;
672
- street: string;
673
- postTown: string;
674
- postcode: string;
675
- county: string;
676
- } | null | undefined;
677
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
678
- type: "current" | "previous";
679
- address?: {
680
- number: string;
681
- street: string;
682
- postTown: string;
683
- postcode: string;
684
- county: string;
685
- } | null | undefined;
686
- }> & {
687
- type: "current" | "previous";
688
- address?: {
689
- number: string;
690
- street: string;
691
- postTown: string;
692
- postcode: string;
693
- county: string;
694
- } | null | undefined;
695
- }>;
696
- electoralInformation?: {
697
- startDate: string;
698
- endDate: string;
699
- nameMatchStatus: string;
700
- seniority: string;
701
- } | null | undefined;
702
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
703
- applicantId: mongoose.Types.ObjectId;
704
- applicantName: string;
705
- applicantDob: string;
706
- noticeofCorrection: string;
707
- creditDefaults: string;
708
- countyCourtJudgment: string;
709
- securedArrears: string;
710
- unsecuredArrears: string;
711
- bankruptcyOrIva: string;
712
- aliasNames: mongoose.Types.DocumentArray<{
713
- dob: string;
714
- forename: string;
715
- surname: string;
716
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
717
- dob: string;
718
- forename: string;
719
- surname: string;
720
- }> & {
721
- dob: string;
722
- forename: string;
723
- surname: string;
724
- }>;
725
- associates: mongoose.Types.DocumentArray<{
726
- dob: string;
727
- forename: string;
728
- surname: string;
729
- }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
730
- dob: string;
731
- forename: string;
732
- surname: string;
733
- }> & {
734
- dob: string;
735
- forename: string;
736
- surname: string;
737
- }>;
738
- accounts: mongoose.Types.DocumentArray<{
1223
+ suppliedAddressData: mongoose.Types.DocumentArray<{
739
1224
  type: string;
740
1225
  name: string;
741
1226
  dob: string;
@@ -902,7 +1387,104 @@ declare const ApplicantCreditReportModel: mongoose.Model<{
902
1387
  forename: string;
903
1388
  surname: string;
904
1389
  }>;
905
- accounts: mongoose.Types.DocumentArray<{
1390
+ linkedAddressData: mongoose.Types.DocumentArray<{
1391
+ type: string;
1392
+ name: string;
1393
+ dob: string;
1394
+ startDate: string;
1395
+ lastUpdate: string;
1396
+ fixedPaymentTerms: number;
1397
+ endDate: string;
1398
+ nameMatchStatus: string;
1399
+ paymentFrequency: string;
1400
+ paymentHistory: mongoose.Types.DocumentArray<{
1401
+ ageInMonths: string;
1402
+ paymentStatus: string;
1403
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1404
+ ageInMonths: string;
1405
+ paymentStatus: string;
1406
+ }> & {
1407
+ ageInMonths: string;
1408
+ paymentStatus: string;
1409
+ }>;
1410
+ startBalance?: {
1411
+ amount: string;
1412
+ currency: string;
1413
+ } | null | undefined;
1414
+ currentBalance?: {
1415
+ amount: string;
1416
+ currency: string;
1417
+ } | null | undefined;
1418
+ delinquentBalance?: {
1419
+ amount: string;
1420
+ currency: string;
1421
+ } | null | undefined;
1422
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1423
+ type: string;
1424
+ name: string;
1425
+ dob: string;
1426
+ startDate: string;
1427
+ lastUpdate: string;
1428
+ fixedPaymentTerms: number;
1429
+ endDate: string;
1430
+ nameMatchStatus: string;
1431
+ paymentFrequency: string;
1432
+ paymentHistory: mongoose.Types.DocumentArray<{
1433
+ ageInMonths: string;
1434
+ paymentStatus: string;
1435
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1436
+ ageInMonths: string;
1437
+ paymentStatus: string;
1438
+ }> & {
1439
+ ageInMonths: string;
1440
+ paymentStatus: string;
1441
+ }>;
1442
+ startBalance?: {
1443
+ amount: string;
1444
+ currency: string;
1445
+ } | null | undefined;
1446
+ currentBalance?: {
1447
+ amount: string;
1448
+ currency: string;
1449
+ } | null | undefined;
1450
+ delinquentBalance?: {
1451
+ amount: string;
1452
+ currency: string;
1453
+ } | null | undefined;
1454
+ }> & {
1455
+ type: string;
1456
+ name: string;
1457
+ dob: string;
1458
+ startDate: string;
1459
+ lastUpdate: string;
1460
+ fixedPaymentTerms: number;
1461
+ endDate: string;
1462
+ nameMatchStatus: string;
1463
+ paymentFrequency: string;
1464
+ paymentHistory: mongoose.Types.DocumentArray<{
1465
+ ageInMonths: string;
1466
+ paymentStatus: string;
1467
+ }, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
1468
+ ageInMonths: string;
1469
+ paymentStatus: string;
1470
+ }> & {
1471
+ ageInMonths: string;
1472
+ paymentStatus: string;
1473
+ }>;
1474
+ startBalance?: {
1475
+ amount: string;
1476
+ currency: string;
1477
+ } | null | undefined;
1478
+ currentBalance?: {
1479
+ amount: string;
1480
+ currency: string;
1481
+ } | null | undefined;
1482
+ delinquentBalance?: {
1483
+ amount: string;
1484
+ currency: string;
1485
+ } | null | undefined;
1486
+ }>;
1487
+ suppliedAddressData: mongoose.Types.DocumentArray<{
906
1488
  type: string;
907
1489
  name: string;
908
1490
  dob: string;
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-credit-report.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-credit-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA+EhC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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8
  amount: { type: String, default: "" },
9
9
  currency: { type: String, default: "" },
10
10
  }, { _id: false });
11
- const accountSchema = new Schema({
11
+ const addressSpecificData = new Schema({
12
12
  type: { type: String, default: "" }, // e.g. 'commsSupplyAccount'
13
13
  name: { type: String, default: "" }, // usually from account.name
14
14
  dob: { type: String, default: "" },
@@ -61,7 +61,8 @@ const applicantCreditReportSchema = new Schema({
61
61
  bankruptcyOrIva: { type: String, default: "" },
62
62
  aliasNames: [aliasNameSchema],
63
63
  associates: [associateSchema],
64
- accounts: [accountSchema],
64
+ linkedAddressData: [addressSpecificData],
65
+ suppliedAddressData: [addressSpecificData],
65
66
  electoralInformation: electoralInformationSchema,
66
67
  linkedAddresses: [linkedAddressSchema],
67
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.3.299",
3
+ "version": "1.3.300",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",