@dynamatix/gb-schemas 1.3.309 → 1.3.311
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.
|
@@ -42,6 +42,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
42
42
|
lenderTaskCount: number;
|
|
43
43
|
pendingTaskCountForUser: number;
|
|
44
44
|
applicationFormSignedDate: NativeDate;
|
|
45
|
+
isUkResident: boolean;
|
|
45
46
|
isProductSyncRequired: boolean;
|
|
46
47
|
selectedProduct?: string | null | undefined;
|
|
47
48
|
riskRating?: string | null | undefined;
|
|
@@ -108,6 +109,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
108
109
|
lenderTaskCount: number;
|
|
109
110
|
pendingTaskCountForUser: number;
|
|
110
111
|
applicationFormSignedDate: NativeDate;
|
|
112
|
+
isUkResident: boolean;
|
|
111
113
|
isProductSyncRequired: boolean;
|
|
112
114
|
selectedProduct?: string | null | undefined;
|
|
113
115
|
riskRating?: string | null | undefined;
|
|
@@ -174,6 +176,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
174
176
|
lenderTaskCount: number;
|
|
175
177
|
pendingTaskCountForUser: number;
|
|
176
178
|
applicationFormSignedDate: NativeDate;
|
|
179
|
+
isUkResident: boolean;
|
|
177
180
|
isProductSyncRequired: boolean;
|
|
178
181
|
selectedProduct?: string | null | undefined;
|
|
179
182
|
riskRating?: string | null | undefined;
|
|
@@ -252,6 +255,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
252
255
|
lenderTaskCount: number;
|
|
253
256
|
pendingTaskCountForUser: number;
|
|
254
257
|
applicationFormSignedDate: NativeDate;
|
|
258
|
+
isUkResident: boolean;
|
|
255
259
|
isProductSyncRequired: boolean;
|
|
256
260
|
selectedProduct?: string | null | undefined;
|
|
257
261
|
riskRating?: string | null | undefined;
|
|
@@ -318,6 +322,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
318
322
|
lenderTaskCount: number;
|
|
319
323
|
pendingTaskCountForUser: number;
|
|
320
324
|
applicationFormSignedDate: NativeDate;
|
|
325
|
+
isUkResident: boolean;
|
|
321
326
|
isProductSyncRequired: boolean;
|
|
322
327
|
selectedProduct?: string | null | undefined;
|
|
323
328
|
riskRating?: string | null | undefined;
|
|
@@ -384,6 +389,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
384
389
|
lenderTaskCount: number;
|
|
385
390
|
pendingTaskCountForUser: number;
|
|
386
391
|
applicationFormSignedDate: NativeDate;
|
|
392
|
+
isUkResident: boolean;
|
|
387
393
|
isProductSyncRequired: boolean;
|
|
388
394
|
selectedProduct?: string | null | undefined;
|
|
389
395
|
riskRating?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application.model.d.ts","sourceRoot":"","sources":["../../applications/application.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6OhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
|
|
@@ -71,6 +71,10 @@ const applicationSchema = new mongoose.Schema({
|
|
|
71
71
|
type: Date, // Stores as ISODate in MongoDB (e.g., "2023-11-15T12:30:45.123Z")
|
|
72
72
|
default: null
|
|
73
73
|
},
|
|
74
|
+
isUkResident: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: false
|
|
77
|
+
},
|
|
74
78
|
isProductSyncRequired: {
|
|
75
79
|
type: Boolean,
|
|
76
80
|
default: false
|
|
@@ -110,8 +114,8 @@ applicationSchema.virtual('status').get(function () {
|
|
|
110
114
|
applicationSchema.pre('find', function () {
|
|
111
115
|
this.populate('applicationTypeLid').populate('lendingTypeLid').populate('statusLid');
|
|
112
116
|
});
|
|
113
|
-
// Virtual property '
|
|
114
|
-
applicationSchema.virtual('
|
|
117
|
+
// Virtual property 'isUkResidentCalculated'
|
|
118
|
+
applicationSchema.virtual('isUkResidentCalculated').get(function () {
|
|
115
119
|
if (!this.applicants || !Array.isArray(this.applicants))
|
|
116
120
|
return false;
|
|
117
121
|
if (this.applicants.length === 0)
|