@dynamatix/gb-schemas 1.3.366 → 1.3.367-broker

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 (89) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-additional-income.model.d.ts +0 -1
  3. package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
  4. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +0 -1
  5. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
  6. package/dist/applicants/applicant-commitment-loan.model.d.ts +0 -1
  7. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
  8. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +0 -1
  9. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
  10. package/dist/applicants/applicant-commitment-residence.model.d.ts +0 -1
  11. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
  12. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +0 -1
  13. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
  14. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +0 -1
  15. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
  16. package/dist/applicants/applicant-credit-report.model.d.ts +1052 -1568
  17. package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -1
  18. package/dist/applicants/applicant-credit-report.model.js +35 -45
  19. package/dist/applicants/applicant-credit-report.type.d.ts +4 -22
  20. package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -1
  21. package/dist/applicants/applicant-employment-income.model.d.ts +0 -1
  22. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
  23. package/dist/applicants/applicant-employment.model.d.ts +0 -1
  24. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  25. package/dist/applicants/applicant-expenditure.model.d.ts +0 -1
  26. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
  27. package/dist/applicants/applicant-expenditure.model.js +2 -2
  28. package/dist/applicants/applicant-income-summary.model.d.ts +0 -1
  29. package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
  30. package/dist/applicants/applicant-pension-income.model.d.ts +0 -1
  31. package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
  32. package/dist/applicants/applicant-property-income.model.d.ts +0 -1
  33. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
  34. package/dist/applicants/applicant-self-employed-income.model.d.ts +0 -1
  35. package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
  36. package/dist/applicants/applicant-sole-trader-income.model.d.ts +0 -1
  37. package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
  38. package/dist/applicants/applicant-uk-tax-credits.model.d.ts +0 -1
  39. package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
  40. package/dist/applicants/applicant.model.d.ts +552 -160
  41. package/dist/applicants/applicant.model.d.ts.map +1 -1
  42. package/dist/applicants/applicant.model.js +26 -28
  43. package/dist/applications/application-company-model.d.ts +108 -1210
  44. package/dist/applications/application-company-model.d.ts.map +1 -1
  45. package/dist/applications/application-company-model.js +21 -21
  46. package/dist/applications/application-direct-debit.model.d.ts +18 -20
  47. package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
  48. package/dist/applications/application-mortgage.model.d.ts +0 -1
  49. package/dist/applications/application-mortgage.model.d.ts.map +1 -1
  50. package/dist/applications/application-mortgage.type.d.ts +0 -1
  51. package/dist/applications/application-mortgage.type.d.ts.map +1 -1
  52. package/dist/applications/application-product.model.js +3 -3
  53. package/dist/applications/application-productfeatures.model.d.ts +180 -180
  54. package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
  55. package/dist/applications/application-productfeatures.model.js +9 -6
  56. package/dist/applications/application-rationale.model.d.ts +24 -24
  57. package/dist/applications/application-rationale.model.js +1 -1
  58. package/dist/applications/application-valuation.model.d.ts +0 -19
  59. package/dist/applications/application-valuation.model.d.ts.map +1 -1
  60. package/dist/applications/application-valuation.model.js +0 -3
  61. package/dist/applications/application.model.d.ts +174 -162
  62. package/dist/applications/application.model.d.ts.map +1 -1
  63. package/dist/applications/application.model.js +38 -27
  64. package/dist/applications/applications-task.model.d.ts +90 -84
  65. package/dist/applications/applications-task.model.d.ts.map +1 -1
  66. package/dist/applications/applications-task.model.js +16 -11
  67. package/dist/applications/solicitor.model.d.ts +0 -2
  68. package/dist/applications/solicitor.model.d.ts.map +1 -1
  69. package/dist/properties/property.model.d.ts +18 -19
  70. package/dist/properties/property.model.d.ts.map +1 -1
  71. package/dist/properties/security.model.js +33 -33
  72. package/dist/shared/workflow.service.d.ts.map +1 -1
  73. package/dist/shared/workflow.service.js +1 -0
  74. package/dist/users/user.model.js +1 -1
  75. package/package.json +87 -87
  76. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  77. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  78. package/dist/applicants/applicant-income.model.d.ts +0 -160
  79. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  80. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  81. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  82. package/dist/applications/application-document.model.d.ts +0 -158
  83. package/dist/applications/application-document.model.d.ts.map +0 -1
  84. package/dist/applications/document.model.d.ts +0 -158
  85. package/dist/applications/document.model.d.ts.map +0 -1
  86. package/dist/applications/productfeatures.model.d.ts +0 -368
  87. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  88. package/dist/shared/document-type-model.d.ts +0 -48
  89. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -98,30 +98,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
98
98
  allowOverride: string;
99
99
  }>;
100
100
  ercFeatures: any;
101
- icr: string;
102
- ufssProductCode: string;
103
- ufssInterestRateCode: string;
104
- name?: string | null | undefined;
105
- calculations?: {
106
- ltv: string;
107
- rentalCoverageRatioRate: string;
108
- bankContributionRate: string;
109
- bankInitialShareRate: string;
110
- totalAmountPayable: string;
111
- fixedMonthlyPayment: string;
112
- fixedMonthlyCapital: string;
113
- fixedMonthlyInterest: string;
114
- variableMonthlyPayment: string;
115
- summaryTotal: string;
116
- reimbursementPerPound: string;
117
- stressedPayment: string;
118
- stressedPaymentRate: string;
119
- rentalCoverage: string;
120
- rentalCoverageWithoutTopUp: string;
121
- } | null | undefined;
122
- cashflowPeriods?: {
123
- totalNoOfPayments: string;
124
- fixed?: {
101
+ cashflowPeriods: {
102
+ fixed: {
125
103
  from: string;
126
104
  to: string;
127
105
  instalmentAmount: string;
@@ -129,8 +107,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
129
107
  instalmentCapitalRepaid: string;
130
108
  otherCosts: string;
131
109
  outstandingCapital: string;
132
- } | null | undefined;
133
- variable?: {
110
+ };
111
+ totalNoOfPayments: string;
112
+ variable: {
134
113
  from: string;
135
114
  to: string;
136
115
  instalmentAmount: string;
@@ -138,8 +117,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
138
117
  instalmentCapitalRepaid: string;
139
118
  otherCosts: string;
140
119
  outstandingCapital: string;
141
- } | null | undefined;
142
- total?: {
120
+ };
121
+ total: {
143
122
  from: string;
144
123
  to: string;
145
124
  instalmentAmount: string;
@@ -147,8 +126,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
147
126
  instalmentCapitalRepaid: string;
148
127
  otherCosts: string;
149
128
  outstandingCapital: string;
150
- } | null | undefined;
151
- } | null | undefined;
129
+ };
130
+ };
131
+ icr: string;
132
+ ufssProductCode: string;
133
+ ufssInterestRateCode: string;
134
+ calculations: {
135
+ ltv: string;
136
+ rentalCoverageRatioRate: string;
137
+ bankContributionRate: string;
138
+ bankInitialShareRate: string;
139
+ totalAmountPayable: string;
140
+ fixedMonthlyPayment: string;
141
+ fixedMonthlyCapital: string;
142
+ fixedMonthlyInterest: string;
143
+ variableMonthlyPayment: string;
144
+ summaryTotal: string;
145
+ reimbursementPerPound: string;
146
+ stressedPayment: string;
147
+ stressedPaymentRate: string;
148
+ rentalCoverage: string;
149
+ rentalCoverageWithoutTopUp: string;
150
+ };
151
+ name?: string | null | undefined;
152
152
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
153
153
  applicationId: mongoose.Types.ObjectId;
154
154
  repaymentType: string;
@@ -220,30 +220,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
220
220
  allowOverride: string;
221
221
  }>;
222
222
  ercFeatures: any;
223
- icr: string;
224
- ufssProductCode: string;
225
- ufssInterestRateCode: string;
226
- name?: string | null | undefined;
227
- calculations?: {
228
- ltv: string;
229
- rentalCoverageRatioRate: string;
230
- bankContributionRate: string;
231
- bankInitialShareRate: string;
232
- totalAmountPayable: string;
233
- fixedMonthlyPayment: string;
234
- fixedMonthlyCapital: string;
235
- fixedMonthlyInterest: string;
236
- variableMonthlyPayment: string;
237
- summaryTotal: string;
238
- reimbursementPerPound: string;
239
- stressedPayment: string;
240
- stressedPaymentRate: string;
241
- rentalCoverage: string;
242
- rentalCoverageWithoutTopUp: string;
243
- } | null | undefined;
244
- cashflowPeriods?: {
245
- totalNoOfPayments: string;
246
- fixed?: {
223
+ cashflowPeriods: {
224
+ fixed: {
247
225
  from: string;
248
226
  to: string;
249
227
  instalmentAmount: string;
@@ -251,8 +229,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
251
229
  instalmentCapitalRepaid: string;
252
230
  otherCosts: string;
253
231
  outstandingCapital: string;
254
- } | null | undefined;
255
- variable?: {
232
+ };
233
+ totalNoOfPayments: string;
234
+ variable: {
256
235
  from: string;
257
236
  to: string;
258
237
  instalmentAmount: string;
@@ -260,8 +239,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
260
239
  instalmentCapitalRepaid: string;
261
240
  otherCosts: string;
262
241
  outstandingCapital: string;
263
- } | null | undefined;
264
- total?: {
242
+ };
243
+ total: {
265
244
  from: string;
266
245
  to: string;
267
246
  instalmentAmount: string;
@@ -269,8 +248,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
269
248
  instalmentCapitalRepaid: string;
270
249
  otherCosts: string;
271
250
  outstandingCapital: string;
272
- } | null | undefined;
273
- } | null | undefined;
251
+ };
252
+ };
253
+ icr: string;
254
+ ufssProductCode: string;
255
+ ufssInterestRateCode: string;
256
+ calculations: {
257
+ ltv: string;
258
+ rentalCoverageRatioRate: string;
259
+ bankContributionRate: string;
260
+ bankInitialShareRate: string;
261
+ totalAmountPayable: string;
262
+ fixedMonthlyPayment: string;
263
+ fixedMonthlyCapital: string;
264
+ fixedMonthlyInterest: string;
265
+ variableMonthlyPayment: string;
266
+ summaryTotal: string;
267
+ reimbursementPerPound: string;
268
+ stressedPayment: string;
269
+ stressedPaymentRate: string;
270
+ rentalCoverage: string;
271
+ rentalCoverageWithoutTopUp: string;
272
+ };
273
+ name?: string | null | undefined;
274
274
  }, {}> & {
275
275
  applicationId: mongoose.Types.ObjectId;
276
276
  repaymentType: string;
@@ -342,30 +342,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
342
342
  allowOverride: string;
343
343
  }>;
344
344
  ercFeatures: any;
345
- icr: string;
346
- ufssProductCode: string;
347
- ufssInterestRateCode: string;
348
- name?: string | null | undefined;
349
- calculations?: {
350
- ltv: string;
351
- rentalCoverageRatioRate: string;
352
- bankContributionRate: string;
353
- bankInitialShareRate: string;
354
- totalAmountPayable: string;
355
- fixedMonthlyPayment: string;
356
- fixedMonthlyCapital: string;
357
- fixedMonthlyInterest: string;
358
- variableMonthlyPayment: string;
359
- summaryTotal: string;
360
- reimbursementPerPound: string;
361
- stressedPayment: string;
362
- stressedPaymentRate: string;
363
- rentalCoverage: string;
364
- rentalCoverageWithoutTopUp: string;
365
- } | null | undefined;
366
- cashflowPeriods?: {
367
- totalNoOfPayments: string;
368
- fixed?: {
345
+ cashflowPeriods: {
346
+ fixed: {
369
347
  from: string;
370
348
  to: string;
371
349
  instalmentAmount: string;
@@ -373,8 +351,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
373
351
  instalmentCapitalRepaid: string;
374
352
  otherCosts: string;
375
353
  outstandingCapital: string;
376
- } | null | undefined;
377
- variable?: {
354
+ };
355
+ totalNoOfPayments: string;
356
+ variable: {
378
357
  from: string;
379
358
  to: string;
380
359
  instalmentAmount: string;
@@ -382,8 +361,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
382
361
  instalmentCapitalRepaid: string;
383
362
  otherCosts: string;
384
363
  outstandingCapital: string;
385
- } | null | undefined;
386
- total?: {
364
+ };
365
+ total: {
387
366
  from: string;
388
367
  to: string;
389
368
  instalmentAmount: string;
@@ -391,8 +370,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
391
370
  instalmentCapitalRepaid: string;
392
371
  otherCosts: string;
393
372
  outstandingCapital: string;
394
- } | null | undefined;
395
- } | null | undefined;
373
+ };
374
+ };
375
+ icr: string;
376
+ ufssProductCode: string;
377
+ ufssInterestRateCode: string;
378
+ calculations: {
379
+ ltv: string;
380
+ rentalCoverageRatioRate: string;
381
+ bankContributionRate: string;
382
+ bankInitialShareRate: string;
383
+ totalAmountPayable: string;
384
+ fixedMonthlyPayment: string;
385
+ fixedMonthlyCapital: string;
386
+ fixedMonthlyInterest: string;
387
+ variableMonthlyPayment: string;
388
+ summaryTotal: string;
389
+ reimbursementPerPound: string;
390
+ stressedPayment: string;
391
+ stressedPaymentRate: string;
392
+ rentalCoverage: string;
393
+ rentalCoverageWithoutTopUp: string;
394
+ };
395
+ name?: string | null | undefined;
396
396
  } & {
397
397
  _id: mongoose.Types.ObjectId;
398
398
  } & {
@@ -468,30 +468,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
468
468
  allowOverride: string;
469
469
  }>;
470
470
  ercFeatures: any;
471
- icr: string;
472
- ufssProductCode: string;
473
- ufssInterestRateCode: string;
474
- name?: string | null | undefined;
475
- calculations?: {
476
- ltv: string;
477
- rentalCoverageRatioRate: string;
478
- bankContributionRate: string;
479
- bankInitialShareRate: string;
480
- totalAmountPayable: string;
481
- fixedMonthlyPayment: string;
482
- fixedMonthlyCapital: string;
483
- fixedMonthlyInterest: string;
484
- variableMonthlyPayment: string;
485
- summaryTotal: string;
486
- reimbursementPerPound: string;
487
- stressedPayment: string;
488
- stressedPaymentRate: string;
489
- rentalCoverage: string;
490
- rentalCoverageWithoutTopUp: string;
491
- } | null | undefined;
492
- cashflowPeriods?: {
493
- totalNoOfPayments: string;
494
- fixed?: {
471
+ cashflowPeriods: {
472
+ fixed: {
495
473
  from: string;
496
474
  to: string;
497
475
  instalmentAmount: string;
@@ -499,8 +477,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
499
477
  instalmentCapitalRepaid: string;
500
478
  otherCosts: string;
501
479
  outstandingCapital: string;
502
- } | null | undefined;
503
- variable?: {
480
+ };
481
+ totalNoOfPayments: string;
482
+ variable: {
504
483
  from: string;
505
484
  to: string;
506
485
  instalmentAmount: string;
@@ -508,8 +487,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
508
487
  instalmentCapitalRepaid: string;
509
488
  otherCosts: string;
510
489
  outstandingCapital: string;
511
- } | null | undefined;
512
- total?: {
490
+ };
491
+ total: {
513
492
  from: string;
514
493
  to: string;
515
494
  instalmentAmount: string;
@@ -517,8 +496,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
517
496
  instalmentCapitalRepaid: string;
518
497
  otherCosts: string;
519
498
  outstandingCapital: string;
520
- } | null | undefined;
521
- } | null | undefined;
499
+ };
500
+ };
501
+ icr: string;
502
+ ufssProductCode: string;
503
+ ufssInterestRateCode: string;
504
+ calculations: {
505
+ ltv: string;
506
+ rentalCoverageRatioRate: string;
507
+ bankContributionRate: string;
508
+ bankInitialShareRate: string;
509
+ totalAmountPayable: string;
510
+ fixedMonthlyPayment: string;
511
+ fixedMonthlyCapital: string;
512
+ fixedMonthlyInterest: string;
513
+ variableMonthlyPayment: string;
514
+ summaryTotal: string;
515
+ reimbursementPerPound: string;
516
+ stressedPayment: string;
517
+ stressedPaymentRate: string;
518
+ rentalCoverage: string;
519
+ rentalCoverageWithoutTopUp: string;
520
+ };
521
+ name?: string | null | undefined;
522
522
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
523
523
  applicationId: mongoose.Types.ObjectId;
524
524
  repaymentType: string;
@@ -590,30 +590,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
590
590
  allowOverride: string;
591
591
  }>;
592
592
  ercFeatures: any;
593
- icr: string;
594
- ufssProductCode: string;
595
- ufssInterestRateCode: string;
596
- name?: string | null | undefined;
597
- calculations?: {
598
- ltv: string;
599
- rentalCoverageRatioRate: string;
600
- bankContributionRate: string;
601
- bankInitialShareRate: string;
602
- totalAmountPayable: string;
603
- fixedMonthlyPayment: string;
604
- fixedMonthlyCapital: string;
605
- fixedMonthlyInterest: string;
606
- variableMonthlyPayment: string;
607
- summaryTotal: string;
608
- reimbursementPerPound: string;
609
- stressedPayment: string;
610
- stressedPaymentRate: string;
611
- rentalCoverage: string;
612
- rentalCoverageWithoutTopUp: string;
613
- } | null | undefined;
614
- cashflowPeriods?: {
615
- totalNoOfPayments: string;
616
- fixed?: {
593
+ cashflowPeriods: {
594
+ fixed: {
617
595
  from: string;
618
596
  to: string;
619
597
  instalmentAmount: string;
@@ -621,8 +599,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
621
599
  instalmentCapitalRepaid: string;
622
600
  otherCosts: string;
623
601
  outstandingCapital: string;
624
- } | null | undefined;
625
- variable?: {
602
+ };
603
+ totalNoOfPayments: string;
604
+ variable: {
626
605
  from: string;
627
606
  to: string;
628
607
  instalmentAmount: string;
@@ -630,8 +609,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
630
609
  instalmentCapitalRepaid: string;
631
610
  otherCosts: string;
632
611
  outstandingCapital: string;
633
- } | null | undefined;
634
- total?: {
612
+ };
613
+ total: {
635
614
  from: string;
636
615
  to: string;
637
616
  instalmentAmount: string;
@@ -639,8 +618,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
639
618
  instalmentCapitalRepaid: string;
640
619
  otherCosts: string;
641
620
  outstandingCapital: string;
642
- } | null | undefined;
643
- } | null | undefined;
621
+ };
622
+ };
623
+ icr: string;
624
+ ufssProductCode: string;
625
+ ufssInterestRateCode: string;
626
+ calculations: {
627
+ ltv: string;
628
+ rentalCoverageRatioRate: string;
629
+ bankContributionRate: string;
630
+ bankInitialShareRate: string;
631
+ totalAmountPayable: string;
632
+ fixedMonthlyPayment: string;
633
+ fixedMonthlyCapital: string;
634
+ fixedMonthlyInterest: string;
635
+ variableMonthlyPayment: string;
636
+ summaryTotal: string;
637
+ reimbursementPerPound: string;
638
+ stressedPayment: string;
639
+ stressedPaymentRate: string;
640
+ rentalCoverage: string;
641
+ rentalCoverageWithoutTopUp: string;
642
+ };
643
+ name?: string | null | undefined;
644
644
  }>, {}> & mongoose.FlatRecord<{
645
645
  applicationId: mongoose.Types.ObjectId;
646
646
  repaymentType: string;
@@ -712,30 +712,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
712
712
  allowOverride: string;
713
713
  }>;
714
714
  ercFeatures: any;
715
- icr: string;
716
- ufssProductCode: string;
717
- ufssInterestRateCode: string;
718
- name?: string | null | undefined;
719
- calculations?: {
720
- ltv: string;
721
- rentalCoverageRatioRate: string;
722
- bankContributionRate: string;
723
- bankInitialShareRate: string;
724
- totalAmountPayable: string;
725
- fixedMonthlyPayment: string;
726
- fixedMonthlyCapital: string;
727
- fixedMonthlyInterest: string;
728
- variableMonthlyPayment: string;
729
- summaryTotal: string;
730
- reimbursementPerPound: string;
731
- stressedPayment: string;
732
- stressedPaymentRate: string;
733
- rentalCoverage: string;
734
- rentalCoverageWithoutTopUp: string;
735
- } | null | undefined;
736
- cashflowPeriods?: {
737
- totalNoOfPayments: string;
738
- fixed?: {
715
+ cashflowPeriods: {
716
+ fixed: {
739
717
  from: string;
740
718
  to: string;
741
719
  instalmentAmount: string;
@@ -743,8 +721,9 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
743
721
  instalmentCapitalRepaid: string;
744
722
  otherCosts: string;
745
723
  outstandingCapital: string;
746
- } | null | undefined;
747
- variable?: {
724
+ };
725
+ totalNoOfPayments: string;
726
+ variable: {
748
727
  from: string;
749
728
  to: string;
750
729
  instalmentAmount: string;
@@ -752,8 +731,8 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
752
731
  instalmentCapitalRepaid: string;
753
732
  otherCosts: string;
754
733
  outstandingCapital: string;
755
- } | null | undefined;
756
- total?: {
734
+ };
735
+ total: {
757
736
  from: string;
758
737
  to: string;
759
738
  instalmentAmount: string;
@@ -761,8 +740,29 @@ declare const ApplicationProductFeaturesModel: mongoose.Model<{
761
740
  instalmentCapitalRepaid: string;
762
741
  otherCosts: string;
763
742
  outstandingCapital: string;
764
- } | null | undefined;
765
- } | null | undefined;
743
+ };
744
+ };
745
+ icr: string;
746
+ ufssProductCode: string;
747
+ ufssInterestRateCode: string;
748
+ calculations: {
749
+ ltv: string;
750
+ rentalCoverageRatioRate: string;
751
+ bankContributionRate: string;
752
+ bankInitialShareRate: string;
753
+ totalAmountPayable: string;
754
+ fixedMonthlyPayment: string;
755
+ fixedMonthlyCapital: string;
756
+ fixedMonthlyInterest: string;
757
+ variableMonthlyPayment: string;
758
+ summaryTotal: string;
759
+ reimbursementPerPound: string;
760
+ stressedPayment: string;
761
+ stressedPaymentRate: string;
762
+ rentalCoverage: string;
763
+ rentalCoverageWithoutTopUp: string;
764
+ };
765
+ name?: string | null | undefined;
766
766
  }> & {
767
767
  _id: mongoose.Types.ObjectId;
768
768
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"application-productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/application-productfeatures.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6GhC,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"application-productfeatures.model.d.ts","sourceRoot":"","sources":["../../applications/application-productfeatures.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgHhC,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
@@ -79,20 +79,23 @@ const productFeaturesSchema = new mongoose.Schema({
79
79
  finalRentPayment: { type: String, default: null },
80
80
  clientDeposit: { type: String, default: null },
81
81
  firstRentPayment: { type: String, default: null },
82
- fees: [feeSchema],
82
+ fees: { type: [feeSchema], default: [] },
83
83
  ercFeatures: { type: mongoose.Schema.Types.Mixed, default: null },
84
84
  cashflowPeriods: {
85
- totalNoOfPayments: { type: String, default: null },
86
- fixed: cashflowPeriodSchema,
87
- variable: cashflowPeriodSchema,
88
- total: cashflowPeriodSchema
85
+ type: {
86
+ totalNoOfPayments: { type: String, default: null },
87
+ fixed: { type: cashflowPeriodSchema, default: null },
88
+ variable: { type: cashflowPeriodSchema, default: null },
89
+ total: { type: cashflowPeriodSchema, default: null }
90
+ },
91
+ default: null
89
92
  },
90
93
  icr: { type: String, default: null },
91
94
  ufssProductCode: { type: String, default: null },
92
95
  ufssInterestRateCode: { type: String, default: null },
93
96
  stressedPayment: { type: String, default: null },
94
97
  stressedPaymentRate: { type: String, default: null },
95
- calculations: calculationsSchema
98
+ calculations: { type: calculationsSchema, default: null }
96
99
  });
97
100
  // Apply workflow plugin to the schema
98
101
  applyWorkflowPlugin(productFeaturesSchema, 'applicationproductfeatures');
@@ -28,75 +28,75 @@
28
28
  /// <reference types="mongoose/types/inferrawdoctype" />
29
29
  import mongoose from "mongoose";
30
30
  declare const ApplicationRationaleModel: mongoose.Model<{
31
- applicationId: mongoose.Types.ObjectId;
32
- rationaleTypeLid: mongoose.Types.ObjectId;
33
- generatedText: string;
34
- isConfirmed: boolean;
35
- comment?: {
31
+ comment: {
36
32
  text: string;
37
33
  timestamp: NativeDate;
38
34
  createdBy: string;
39
35
  updatedBy: string;
40
- } | null | undefined;
41
- }, {}, {}, {}, mongoose.Document<unknown, {}, {
36
+ };
42
37
  applicationId: mongoose.Types.ObjectId;
43
38
  rationaleTypeLid: mongoose.Types.ObjectId;
44
39
  generatedText: string;
45
40
  isConfirmed: boolean;
46
- comment?: {
41
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
42
+ comment: {
47
43
  text: string;
48
44
  timestamp: NativeDate;
49
45
  createdBy: string;
50
46
  updatedBy: string;
51
- } | null | undefined;
52
- }, {}> & {
47
+ };
53
48
  applicationId: mongoose.Types.ObjectId;
54
49
  rationaleTypeLid: mongoose.Types.ObjectId;
55
50
  generatedText: string;
56
51
  isConfirmed: boolean;
57
- comment?: {
52
+ }, {}> & {
53
+ comment: {
58
54
  text: string;
59
55
  timestamp: NativeDate;
60
56
  createdBy: string;
61
57
  updatedBy: string;
62
- } | null | undefined;
58
+ };
59
+ applicationId: mongoose.Types.ObjectId;
60
+ rationaleTypeLid: mongoose.Types.ObjectId;
61
+ generatedText: string;
62
+ isConfirmed: boolean;
63
63
  } & {
64
64
  _id: mongoose.Types.ObjectId;
65
65
  } & {
66
66
  __v: number;
67
67
  }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
68
- applicationId: mongoose.Types.ObjectId;
69
- rationaleTypeLid: mongoose.Types.ObjectId;
70
- generatedText: string;
71
- isConfirmed: boolean;
72
- comment?: {
68
+ comment: {
73
69
  text: string;
74
70
  timestamp: NativeDate;
75
71
  createdBy: string;
76
72
  updatedBy: string;
77
- } | null | undefined;
78
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
73
+ };
79
74
  applicationId: mongoose.Types.ObjectId;
80
75
  rationaleTypeLid: mongoose.Types.ObjectId;
81
76
  generatedText: string;
82
77
  isConfirmed: boolean;
83
- comment?: {
78
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
79
+ comment: {
84
80
  text: string;
85
81
  timestamp: NativeDate;
86
82
  createdBy: string;
87
83
  updatedBy: string;
88
- } | null | undefined;
89
- }>, {}> & mongoose.FlatRecord<{
84
+ };
90
85
  applicationId: mongoose.Types.ObjectId;
91
86
  rationaleTypeLid: mongoose.Types.ObjectId;
92
87
  generatedText: string;
93
88
  isConfirmed: boolean;
94
- comment?: {
89
+ }>, {}> & mongoose.FlatRecord<{
90
+ comment: {
95
91
  text: string;
96
92
  timestamp: NativeDate;
97
93
  createdBy: string;
98
94
  updatedBy: string;
99
- } | null | undefined;
95
+ };
96
+ applicationId: mongoose.Types.ObjectId;
97
+ rationaleTypeLid: mongoose.Types.ObjectId;
98
+ generatedText: string;
99
+ isConfirmed: boolean;
100
100
  }> & {
101
101
  _id: mongoose.Types.ObjectId;
102
102
  } & {
@@ -11,7 +11,7 @@ const rationaleSchema = new mongoose.Schema({
11
11
  applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
12
12
  rationaleTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true },
13
13
  generatedText: { type: String, default: null },
14
- comment: commentSchema,
14
+ comment: { type: commentSchema, default: null },
15
15
  isConfirmed: { type: Boolean, default: null }
16
16
  });
17
17
  applyAuditMiddleware(rationaleSchema, "ApplicationRationale");