@dynamatix/gb-schemas 2.20.8 → 2.20.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.
@@ -101,6 +101,10 @@ 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;
104
108
  isAlgbraEligible: boolean;
105
109
  selectedProduct?: string | null | undefined;
106
110
  product?: string | null | undefined;
@@ -201,6 +205,10 @@ declare const ApplicationModel: mongoose.Model<{
201
205
  pendingTaskCountForUser: number;
202
206
  applicationFormSignedDate: NativeDate;
203
207
  creditReportId: string;
208
+ isCompanyApplication: boolean;
209
+ requestedApplicantCount: number;
210
+ isIntendToResideInProperty: boolean;
211
+ isIntendToLetProperty: boolean;
204
212
  isAlgbraEligible: boolean;
205
213
  selectedProduct?: string | null | undefined;
206
214
  product?: string | null | undefined;
@@ -301,6 +309,10 @@ declare const ApplicationModel: mongoose.Model<{
301
309
  pendingTaskCountForUser: number;
302
310
  applicationFormSignedDate: NativeDate;
303
311
  creditReportId: string;
312
+ isCompanyApplication: boolean;
313
+ requestedApplicantCount: number;
314
+ isIntendToResideInProperty: boolean;
315
+ isIntendToLetProperty: boolean;
304
316
  isAlgbraEligible: boolean;
305
317
  selectedProduct?: string | null | undefined;
306
318
  product?: string | null | undefined;
@@ -413,6 +425,10 @@ declare const ApplicationModel: mongoose.Model<{
413
425
  pendingTaskCountForUser: number;
414
426
  applicationFormSignedDate: NativeDate;
415
427
  creditReportId: string;
428
+ isCompanyApplication: boolean;
429
+ requestedApplicantCount: number;
430
+ isIntendToResideInProperty: boolean;
431
+ isIntendToLetProperty: boolean;
416
432
  isAlgbraEligible: boolean;
417
433
  selectedProduct?: string | null | undefined;
418
434
  product?: string | null | undefined;
@@ -513,6 +529,10 @@ declare const ApplicationModel: mongoose.Model<{
513
529
  pendingTaskCountForUser: number;
514
530
  applicationFormSignedDate: NativeDate;
515
531
  creditReportId: string;
532
+ isCompanyApplication: boolean;
533
+ requestedApplicantCount: number;
534
+ isIntendToResideInProperty: boolean;
535
+ isIntendToLetProperty: boolean;
516
536
  isAlgbraEligible: boolean;
517
537
  selectedProduct?: string | null | undefined;
518
538
  product?: string | null | undefined;
@@ -613,6 +633,10 @@ declare const ApplicationModel: mongoose.Model<{
613
633
  pendingTaskCountForUser: number;
614
634
  applicationFormSignedDate: NativeDate;
615
635
  creditReportId: string;
636
+ isCompanyApplication: boolean;
637
+ requestedApplicantCount: number;
638
+ isIntendToResideInProperty: boolean;
639
+ isIntendToLetProperty: boolean;
616
640
  isAlgbraEligible: boolean;
617
641
  selectedProduct?: string | null | undefined;
618
642
  product?: 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;AAyRhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,eAAe,gBAAgB,CAAC"}
@@ -116,6 +116,29 @@ const applicationSchema = new mongoose.Schema({
116
116
  default: false
117
117
  },
118
118
  creditReportId: { type: String, default: null },
119
+ // ── Broker journey · Step 1 (Application Setup) ────────────────────────────
120
+ // Captured by the broker-facing Application Setup form. All optional: applications
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: {
128
+ type: Number,
129
+ default: null,
130
+ description: "How many applicants will be listed on the application (1-4). Captured before any Applicant records exist, so applicants.length cannot answer it."
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."
136
+ },
137
+ isIntendToLetProperty: {
138
+ type: Boolean,
139
+ default: null,
140
+ description: "Do you intend to let the property? Asked only for private individual applications where isIntendToResideInProperty is true. true is a hard stop: HPP properties may not be let."
141
+ },
119
142
  isAlgbraEligible: { type: Boolean, default: false },
120
143
  }, {
121
144
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.20.8",
3
+ "version": "2.20.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",