@dynamatix/gb-schemas 2.20.10 → 2.21.2
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.
|
@@ -101,11 +101,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
101
101
|
pendingTaskCountForUser: number;
|
|
102
102
|
applicationFormSignedDate: NativeDate;
|
|
103
103
|
creditReportId: string;
|
|
104
|
-
isCompanyApplication: boolean;
|
|
105
|
-
requestedApplicantCount: number;
|
|
106
|
-
isIntendToResideInProperty: boolean;
|
|
107
|
-
isIntendToLetProperty: boolean;
|
|
108
104
|
isAlgbraEligible: boolean;
|
|
105
|
+
numberOfAdults: number;
|
|
106
|
+
numberOfChildren: number;
|
|
109
107
|
selectedProduct?: string | null | undefined;
|
|
110
108
|
product?: string | null | undefined;
|
|
111
109
|
riskRating?: string | null | undefined;
|
|
@@ -205,11 +203,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
205
203
|
pendingTaskCountForUser: number;
|
|
206
204
|
applicationFormSignedDate: NativeDate;
|
|
207
205
|
creditReportId: string;
|
|
208
|
-
isCompanyApplication: boolean;
|
|
209
|
-
requestedApplicantCount: number;
|
|
210
|
-
isIntendToResideInProperty: boolean;
|
|
211
|
-
isIntendToLetProperty: boolean;
|
|
212
206
|
isAlgbraEligible: boolean;
|
|
207
|
+
numberOfAdults: number;
|
|
208
|
+
numberOfChildren: number;
|
|
213
209
|
selectedProduct?: string | null | undefined;
|
|
214
210
|
product?: string | null | undefined;
|
|
215
211
|
riskRating?: string | null | undefined;
|
|
@@ -309,11 +305,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
309
305
|
pendingTaskCountForUser: number;
|
|
310
306
|
applicationFormSignedDate: NativeDate;
|
|
311
307
|
creditReportId: string;
|
|
312
|
-
isCompanyApplication: boolean;
|
|
313
|
-
requestedApplicantCount: number;
|
|
314
|
-
isIntendToResideInProperty: boolean;
|
|
315
|
-
isIntendToLetProperty: boolean;
|
|
316
308
|
isAlgbraEligible: boolean;
|
|
309
|
+
numberOfAdults: number;
|
|
310
|
+
numberOfChildren: number;
|
|
317
311
|
selectedProduct?: string | null | undefined;
|
|
318
312
|
product?: string | null | undefined;
|
|
319
313
|
riskRating?: string | null | undefined;
|
|
@@ -425,11 +419,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
425
419
|
pendingTaskCountForUser: number;
|
|
426
420
|
applicationFormSignedDate: NativeDate;
|
|
427
421
|
creditReportId: string;
|
|
428
|
-
isCompanyApplication: boolean;
|
|
429
|
-
requestedApplicantCount: number;
|
|
430
|
-
isIntendToResideInProperty: boolean;
|
|
431
|
-
isIntendToLetProperty: boolean;
|
|
432
422
|
isAlgbraEligible: boolean;
|
|
423
|
+
numberOfAdults: number;
|
|
424
|
+
numberOfChildren: number;
|
|
433
425
|
selectedProduct?: string | null | undefined;
|
|
434
426
|
product?: string | null | undefined;
|
|
435
427
|
riskRating?: string | null | undefined;
|
|
@@ -529,11 +521,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
529
521
|
pendingTaskCountForUser: number;
|
|
530
522
|
applicationFormSignedDate: NativeDate;
|
|
531
523
|
creditReportId: string;
|
|
532
|
-
isCompanyApplication: boolean;
|
|
533
|
-
requestedApplicantCount: number;
|
|
534
|
-
isIntendToResideInProperty: boolean;
|
|
535
|
-
isIntendToLetProperty: boolean;
|
|
536
524
|
isAlgbraEligible: boolean;
|
|
525
|
+
numberOfAdults: number;
|
|
526
|
+
numberOfChildren: number;
|
|
537
527
|
selectedProduct?: string | null | undefined;
|
|
538
528
|
product?: string | null | undefined;
|
|
539
529
|
riskRating?: string | null | undefined;
|
|
@@ -633,11 +623,9 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
633
623
|
pendingTaskCountForUser: number;
|
|
634
624
|
applicationFormSignedDate: NativeDate;
|
|
635
625
|
creditReportId: string;
|
|
636
|
-
isCompanyApplication: boolean;
|
|
637
|
-
requestedApplicantCount: number;
|
|
638
|
-
isIntendToResideInProperty: boolean;
|
|
639
|
-
isIntendToLetProperty: boolean;
|
|
640
626
|
isAlgbraEligible: boolean;
|
|
627
|
+
numberOfAdults: number;
|
|
628
|
+
numberOfChildren: number;
|
|
641
629
|
selectedProduct?: string | null | undefined;
|
|
642
630
|
product?: string | null | undefined;
|
|
643
631
|
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;AAmShC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAC1E,eAAe,gBAAgB,CAAC"}
|
|
@@ -116,30 +116,17 @@ const applicationSchema = new mongoose.Schema({
|
|
|
116
116
|
default: false
|
|
117
117
|
},
|
|
118
118
|
creditReportId: { type: String, default: null },
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
// synced from Apprivo never set them, and must keep validating.
|
|
122
|
-
isCompanyApplication: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: null,
|
|
125
|
-
description: "Is the application on behalf of a company? false = Private Individual. Routes the rest of the journey (company record vs individual applicants); does NOT affect applicationTypeLid."
|
|
126
|
-
},
|
|
127
|
-
requestedApplicantCount: {
|
|
119
|
+
isAlgbraEligible: { type: Boolean, default: false },
|
|
120
|
+
numberOfAdults: {
|
|
128
121
|
type: Number,
|
|
129
122
|
default: null,
|
|
130
|
-
description: "
|
|
131
|
-
},
|
|
132
|
-
isIntendToResideInProperty: {
|
|
133
|
-
type: Boolean,
|
|
134
|
-
default: null,
|
|
135
|
-
description: "Do you or any close relative intend to reside in the property during the finance term? To provide advice on Home Purchase Plan (HPP) products you must hold specific HPP permissions with the FCA. These permissions are not required for Buy to Let business. true => HPP, false => BTL."
|
|
123
|
+
description: "Number of adults in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
136
124
|
},
|
|
137
|
-
|
|
138
|
-
type:
|
|
125
|
+
numberOfChildren: {
|
|
126
|
+
type: Number,
|
|
139
127
|
default: null,
|
|
140
|
-
description: "
|
|
128
|
+
description: "Number of children in the household used for the ONS expected expenditure lookup. Defaulted on first import from applicant and dependant ages; editable by underwriters."
|
|
141
129
|
},
|
|
142
|
-
isAlgbraEligible: { type: Boolean, default: false },
|
|
143
130
|
}, {
|
|
144
131
|
timestamps: true,
|
|
145
132
|
toJSON: { virtuals: true },
|