@dynamatix/gb-schemas 2.17.8 → 2.17.10

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.
@@ -75,6 +75,7 @@ declare const ApplicationModel: mongoose.Model<{
75
75
  securityId: mongoose.Types.ObjectId;
76
76
  solicitorId: mongoose.Types.ObjectId;
77
77
  riskNarrativeId: mongoose.Types.ObjectId;
78
+ isRiskNarrativeSynced: boolean;
78
79
  directDebitId: mongoose.Types.ObjectId;
79
80
  mortgageId: mongoose.Types.ObjectId;
80
81
  companyId: mongoose.Types.ObjectId;
@@ -173,6 +174,7 @@ declare const ApplicationModel: mongoose.Model<{
173
174
  securityId: mongoose.Types.ObjectId;
174
175
  solicitorId: mongoose.Types.ObjectId;
175
176
  riskNarrativeId: mongoose.Types.ObjectId;
177
+ isRiskNarrativeSynced: boolean;
176
178
  directDebitId: mongoose.Types.ObjectId;
177
179
  mortgageId: mongoose.Types.ObjectId;
178
180
  companyId: mongoose.Types.ObjectId;
@@ -271,6 +273,7 @@ declare const ApplicationModel: mongoose.Model<{
271
273
  securityId: mongoose.Types.ObjectId;
272
274
  solicitorId: mongoose.Types.ObjectId;
273
275
  riskNarrativeId: mongoose.Types.ObjectId;
276
+ isRiskNarrativeSynced: boolean;
274
277
  directDebitId: mongoose.Types.ObjectId;
275
278
  mortgageId: mongoose.Types.ObjectId;
276
279
  companyId: mongoose.Types.ObjectId;
@@ -381,6 +384,7 @@ declare const ApplicationModel: mongoose.Model<{
381
384
  securityId: mongoose.Types.ObjectId;
382
385
  solicitorId: mongoose.Types.ObjectId;
383
386
  riskNarrativeId: mongoose.Types.ObjectId;
387
+ isRiskNarrativeSynced: boolean;
384
388
  directDebitId: mongoose.Types.ObjectId;
385
389
  mortgageId: mongoose.Types.ObjectId;
386
390
  companyId: mongoose.Types.ObjectId;
@@ -479,6 +483,7 @@ declare const ApplicationModel: mongoose.Model<{
479
483
  securityId: mongoose.Types.ObjectId;
480
484
  solicitorId: mongoose.Types.ObjectId;
481
485
  riskNarrativeId: mongoose.Types.ObjectId;
486
+ isRiskNarrativeSynced: boolean;
482
487
  directDebitId: mongoose.Types.ObjectId;
483
488
  mortgageId: mongoose.Types.ObjectId;
484
489
  companyId: mongoose.Types.ObjectId;
@@ -577,6 +582,7 @@ declare const ApplicationModel: mongoose.Model<{
577
582
  securityId: mongoose.Types.ObjectId;
578
583
  solicitorId: mongoose.Types.ObjectId;
579
584
  riskNarrativeId: mongoose.Types.ObjectId;
585
+ isRiskNarrativeSynced: boolean;
580
586
  directDebitId: mongoose.Types.ObjectId;
581
587
  mortgageId: mongoose.Types.ObjectId;
582
588
  companyId: mongoose.Types.ObjectId;
@@ -1 +1 @@
1
- {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAiRhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAwRhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
@@ -60,6 +60,13 @@ const applicationSchema = new mongoose.Schema({
60
60
  statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
61
61
  call2StatusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
62
62
  },
63
+ // Flag for a requested RiskNarrative Call 2. Owned by Catura and never mapped from Apprivo.
64
+ // Deliberately top-level, not inside `riskNarrative`: the background sync replaces that whole
65
+ // sub-document, which would wipe anything stored within it.
66
+ // null = never requested, false = awaiting a final Call2Status, true = final status received.
67
+ // The default MUST stay null: the fetch-risk-narrative job queries for an explicit false, and
68
+ // defaulting to false would mark every existing application as awaiting and sync them all.
69
+ isRiskNarrativeSynced: { type: Boolean, default: null },
63
70
  applicants: [
64
71
  { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
65
72
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.17.8",
3
+ "version": "2.17.10",
4
4
  "description": "All the schemas for gatehouse bank back-end .",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",