@dynamatix/gb-schemas 2.14.4 → 2.14.6

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.
@@ -128,7 +128,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
128
128
  } | null | undefined;
129
129
  applicantId?: mongoose.Types.ObjectId | null | undefined;
130
130
  isConfirmed?: unknown;
131
- documentId?: mongoose.Types.ObjectId | null | undefined;
131
+ documentId?: unknown;
132
132
  existingExposure?: {
133
133
  validators: mongoose.Types.DocumentArray<{
134
134
  type?: unknown;
@@ -326,7 +326,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
326
326
  } | null | undefined;
327
327
  applicantId?: mongoose.Types.ObjectId | null | undefined;
328
328
  isConfirmed?: unknown;
329
- documentId?: mongoose.Types.ObjectId | null | undefined;
329
+ documentId?: unknown;
330
330
  existingExposure?: {
331
331
  validators: mongoose.Types.DocumentArray<{
332
332
  type?: unknown;
@@ -524,7 +524,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
524
524
  } | null | undefined;
525
525
  applicantId?: mongoose.Types.ObjectId | null | undefined;
526
526
  isConfirmed?: unknown;
527
- documentId?: mongoose.Types.ObjectId | null | undefined;
527
+ documentId?: unknown;
528
528
  existingExposure?: {
529
529
  validators: mongoose.Types.DocumentArray<{
530
530
  type?: unknown;
@@ -634,30 +634,30 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
634
634
  } & {
635
635
  applicantId: mongoose.Types.ObjectId;
636
636
  isConfirmed: boolean;
637
- documentId: mongoose.Types.ObjectId;
638
637
  existingExposure: Pound;
639
638
  inFlightExposure: Pound;
640
639
  creditConductLid: mongoose.Types.ObjectId;
640
+ documentId?: mongoose.Types.ObjectId | null | undefined;
641
641
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
642
642
  createdAt: NativeDate;
643
643
  updatedAt: NativeDate;
644
644
  } & {
645
645
  applicantId: mongoose.Types.ObjectId;
646
646
  isConfirmed: boolean;
647
- documentId: mongoose.Types.ObjectId;
648
647
  existingExposure: Pound;
649
648
  inFlightExposure: Pound;
650
649
  creditConductLid: mongoose.Types.ObjectId;
650
+ documentId?: mongoose.Types.ObjectId | null | undefined;
651
651
  }>, {}> & mongoose.FlatRecord<{
652
652
  createdAt: NativeDate;
653
653
  updatedAt: NativeDate;
654
654
  } & {
655
655
  applicantId: mongoose.Types.ObjectId;
656
656
  isConfirmed: boolean;
657
- documentId: mongoose.Types.ObjectId;
658
657
  existingExposure: Pound;
659
658
  inFlightExposure: Pound;
660
659
  creditConductLid: mongoose.Types.ObjectId;
660
+ documentId?: mongoose.Types.ObjectId | null | undefined;
661
661
  }> & {
662
662
  _id: mongoose.Types.ObjectId;
663
663
  } & {
@@ -4,7 +4,7 @@ import { Pound, formatPound } from "../value-objects/pound";
4
4
  import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
5
5
  const applicantLargeExposureSchema = new mongoose.Schema({
6
6
  applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
7
- documentId: { type: mongoose.Schema.Types.ObjectId, ref: "Document", required: true },
7
+ documentId: { type: mongoose.Schema.Types.ObjectId, ref: "Document" },
8
8
  existingExposure: { type: Pound, default: 0.00, get: formatPound },
9
9
  inFlightExposure: { type: Pound, default: 0.00, get: formatPound },
10
10
  creditConductLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
@@ -100,6 +100,7 @@ declare const ApplicationModel: mongoose.Model<{
100
100
  isAlgbraEligible: boolean;
101
101
  selectedProduct?: string | null | undefined;
102
102
  product?: string | null | undefined;
103
+ riskRating?: string | null | undefined;
103
104
  creditProfile?: {
104
105
  companyBankruptcyYes: string;
105
106
  companyBankruptcyNo: string;
@@ -121,7 +122,6 @@ declare const ApplicationModel: mongoose.Model<{
121
122
  riskRating: string;
122
123
  statusLid: mongoose.Types.ObjectId;
123
124
  } | null | undefined;
124
- previousRiskRating?: string | null | undefined;
125
125
  valuationId?: mongoose.Types.ObjectId | null | undefined;
126
126
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
127
127
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
@@ -197,6 +197,7 @@ declare const ApplicationModel: mongoose.Model<{
197
197
  isAlgbraEligible: boolean;
198
198
  selectedProduct?: string | null | undefined;
199
199
  product?: string | null | undefined;
200
+ riskRating?: string | null | undefined;
200
201
  creditProfile?: {
201
202
  companyBankruptcyYes: string;
202
203
  companyBankruptcyNo: string;
@@ -218,7 +219,6 @@ declare const ApplicationModel: mongoose.Model<{
218
219
  riskRating: string;
219
220
  statusLid: mongoose.Types.ObjectId;
220
221
  } | null | undefined;
221
- previousRiskRating?: string | null | undefined;
222
222
  valuationId?: mongoose.Types.ObjectId | null | undefined;
223
223
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
224
224
  }, {}> & {
@@ -294,6 +294,7 @@ declare const ApplicationModel: mongoose.Model<{
294
294
  isAlgbraEligible: boolean;
295
295
  selectedProduct?: string | null | undefined;
296
296
  product?: string | null | undefined;
297
+ riskRating?: string | null | undefined;
297
298
  creditProfile?: {
298
299
  companyBankruptcyYes: string;
299
300
  companyBankruptcyNo: string;
@@ -315,7 +316,6 @@ declare const ApplicationModel: mongoose.Model<{
315
316
  riskRating: string;
316
317
  statusLid: mongoose.Types.ObjectId;
317
318
  } | null | undefined;
318
- previousRiskRating?: string | null | undefined;
319
319
  valuationId?: mongoose.Types.ObjectId | null | undefined;
320
320
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
321
321
  } & {
@@ -403,6 +403,7 @@ declare const ApplicationModel: mongoose.Model<{
403
403
  isAlgbraEligible: boolean;
404
404
  selectedProduct?: string | null | undefined;
405
405
  product?: string | null | undefined;
406
+ riskRating?: string | null | undefined;
406
407
  creditProfile?: {
407
408
  companyBankruptcyYes: string;
408
409
  companyBankruptcyNo: string;
@@ -424,7 +425,6 @@ declare const ApplicationModel: mongoose.Model<{
424
425
  riskRating: string;
425
426
  statusLid: mongoose.Types.ObjectId;
426
427
  } | null | undefined;
427
- previousRiskRating?: string | null | undefined;
428
428
  valuationId?: mongoose.Types.ObjectId | null | undefined;
429
429
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
430
430
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
@@ -500,6 +500,7 @@ declare const ApplicationModel: mongoose.Model<{
500
500
  isAlgbraEligible: boolean;
501
501
  selectedProduct?: string | null | undefined;
502
502
  product?: string | null | undefined;
503
+ riskRating?: string | null | undefined;
503
504
  creditProfile?: {
504
505
  companyBankruptcyYes: string;
505
506
  companyBankruptcyNo: string;
@@ -521,7 +522,6 @@ declare const ApplicationModel: mongoose.Model<{
521
522
  riskRating: string;
522
523
  statusLid: mongoose.Types.ObjectId;
523
524
  } | null | undefined;
524
- previousRiskRating?: string | null | undefined;
525
525
  valuationId?: mongoose.Types.ObjectId | null | undefined;
526
526
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
527
527
  }>, {}> & mongoose.FlatRecord<{
@@ -597,6 +597,7 @@ declare const ApplicationModel: mongoose.Model<{
597
597
  isAlgbraEligible: boolean;
598
598
  selectedProduct?: string | null | undefined;
599
599
  product?: string | null | undefined;
600
+ riskRating?: string | null | undefined;
600
601
  creditProfile?: {
601
602
  companyBankruptcyYes: string;
602
603
  companyBankruptcyNo: string;
@@ -618,7 +619,6 @@ declare const ApplicationModel: mongoose.Model<{
618
619
  riskRating: string;
619
620
  statusLid: mongoose.Types.ObjectId;
620
621
  } | null | undefined;
621
- previousRiskRating?: string | null | undefined;
622
622
  valuationId?: mongoose.Types.ObjectId | null | undefined;
623
623
  valuationReportId?: mongoose.Types.ObjectId | null | undefined;
624
624
  }> & {
@@ -63,7 +63,7 @@ const applicationSchema = new mongoose.Schema({
63
63
  { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
64
64
  ],
65
65
  isActive: { type: String, default: false },
66
- previousRiskRating: { type: String },
66
+ riskRating: { type: String },
67
67
  directDebitId: { type: mongoose.Schema.Types.ObjectId, ref: "Application_DirectDebit", default: null },
68
68
  creditProfile: creditProfileSchema,
69
69
  mortgageId: { type: mongoose.Schema.Types.ObjectId, ref: "Mortgage", default: null },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.14.4",
3
+ "version": "2.14.6",
4
4
  "description": "All the schemas for gatehouse bank back-end .",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",