@dynamatix/gb-schemas 2.14.1 → 2.14.4

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.
@@ -100,7 +100,6 @@ 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;
104
103
  creditProfile?: {
105
104
  companyBankruptcyYes: string;
106
105
  companyBankruptcyNo: string;
@@ -122,6 +121,7 @@ declare const ApplicationModel: mongoose.Model<{
122
121
  riskRating: string;
123
122
  statusLid: mongoose.Types.ObjectId;
124
123
  } | 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,7 +197,6 @@ 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;
201
200
  creditProfile?: {
202
201
  companyBankruptcyYes: string;
203
202
  companyBankruptcyNo: string;
@@ -219,6 +218,7 @@ declare const ApplicationModel: mongoose.Model<{
219
218
  riskRating: string;
220
219
  statusLid: mongoose.Types.ObjectId;
221
220
  } | 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,7 +294,6 @@ 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;
298
297
  creditProfile?: {
299
298
  companyBankruptcyYes: string;
300
299
  companyBankruptcyNo: string;
@@ -316,6 +315,7 @@ declare const ApplicationModel: mongoose.Model<{
316
315
  riskRating: string;
317
316
  statusLid: mongoose.Types.ObjectId;
318
317
  } | 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,7 +403,6 @@ 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;
407
406
  creditProfile?: {
408
407
  companyBankruptcyYes: string;
409
408
  companyBankruptcyNo: string;
@@ -425,6 +424,7 @@ declare const ApplicationModel: mongoose.Model<{
425
424
  riskRating: string;
426
425
  statusLid: mongoose.Types.ObjectId;
427
426
  } | 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,7 +500,6 @@ 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;
504
503
  creditProfile?: {
505
504
  companyBankruptcyYes: string;
506
505
  companyBankruptcyNo: string;
@@ -522,6 +521,7 @@ declare const ApplicationModel: mongoose.Model<{
522
521
  riskRating: string;
523
522
  statusLid: mongoose.Types.ObjectId;
524
523
  } | 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,7 +597,6 @@ 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;
601
600
  creditProfile?: {
602
601
  companyBankruptcyYes: string;
603
602
  companyBankruptcyNo: string;
@@ -619,6 +618,7 @@ declare const ApplicationModel: mongoose.Model<{
619
618
  riskRating: string;
620
619
  statusLid: mongoose.Types.ObjectId;
621
620
  } | 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
- riskRating: { type: String },
66
+ previousRiskRating: { 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.1",
3
+ "version": "2.14.4",
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.165",
39
+ "@dynamatix/cat-shared": "^0.0.169",
40
40
  "dotenv": "^16.4.5",
41
41
  "mongodb": "^6.14.2",
42
42
  "mongoose": "^8.9.5"