@dynamatix/gb-schemas 1.2.9 → 1.2.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAoJ/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyD,CAAC;AAC7E,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"application-mortgage.model.d.ts","sourceRoot":"","sources":["../../applications/application-mortgage.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAmS/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
@@ -6,130 +6,260 @@ const mortgageSchema = new mongoose.Schema({
6
6
  ref: "Application",
7
7
  description: "Reference to the application this mortgage belongs to",
8
8
  },
9
- repaymentTypeLid: {
10
- type: mongoose.Schema.Types.ObjectId,
9
+ pageValidFlag: {
10
+ type: Boolean,
11
+ get: (value) => (value ? "Yes" : "No"),
12
+ description: "True if all mandatory fields have been completed, otherwise false",
13
+ },
14
+ existingMortgageLender: {
15
+ type: String,
16
+ maxlength: 35,
17
+ description: "Name of the existing mortgage lender",
18
+ },
19
+ purposeOfMortgage: {
20
+ type: String,
21
+ required: true,
22
+ maxlength: 50,
23
+ description: "Purpose of the mortgage (e.g., purchase, refinance)",
24
+ },
25
+ depositComeFromLid: {
26
+ type: [mongoose.Schema.Types.ObjectId],
11
27
  ref: "Lookup",
12
- default: null,
13
- description: "Lookup ID representing the type of repayment (e.g., interest-only, repayment)",
28
+ required: true,
29
+ description: "Where the deposit for the mortgage will come from",
14
30
  },
15
- landerName: {
31
+ ifOtherDetails: {
16
32
  type: String,
17
- default: "",
33
+ maxlength: 50,
18
34
  required: true,
19
- maxlength: 70,
20
- description: "Name of the lender providing the mortgage",
35
+ description: "Details if the deposit comes from 'Other'",
36
+ },
37
+ topSlicing: {
38
+ type: Boolean,
39
+ get: (value) => (value ? "Yes" : "No"),
40
+ description: "Indicates whether top slicing is required",
21
41
  },
22
- propertyValue: {
42
+ sourceOfWealthLid: {
43
+ type: [mongoose.Schema.Types.ObjectId],
44
+ ref: "Lookup",
45
+ description: "Source of wealth used to pay the mortgage",
46
+ },
47
+ sowBusiness: {
48
+ type: String,
49
+ required: true,
50
+ description: "Details if the source of wealth is from business",
51
+ },
52
+ sowInheritance: {
53
+ type: String,
54
+ required: true,
55
+ description: "Details if the source of wealth is inheritance",
56
+ },
57
+ sowOther: {
58
+ type: String,
59
+ required: true,
60
+ description: "Details if the source of wealth is from other sources",
61
+ },
62
+ sowProperty: {
63
+ type: String,
64
+ required: true,
65
+ description: "Details if the source of wealth is from property",
66
+ },
67
+ sowSalary: {
68
+ type: String,
69
+ required: true,
70
+ description: "Details if the source of wealth is from salary",
71
+ },
72
+ purchasePrice: {
23
73
  type: Pound,
24
74
  required: true,
25
- description: "Current value of the mortgaged property",
75
+ description: "Purchase price of the property",
26
76
  },
27
- mortgageTypeLid: {
77
+ repaymentTypeLid: {
28
78
  type: mongoose.Schema.Types.ObjectId,
29
79
  ref: "Lookup",
30
- default: null,
31
- description: "Lookup ID representing the type of mortgage (e.g., residential, BTL)",
80
+ required: true,
81
+ description: "Lookup ID representing the type of repayment (e.g., interest-only, repayment)",
32
82
  },
33
- fixedTerm: {
34
- type: String,
35
- default: 0,
36
- maxlength: 50,
83
+ exitStrategyLid: {
84
+ type: mongoose.Schema.Types.ObjectId,
85
+ ref: "Lookup",
37
86
  required: true,
38
- description: "Length of the fixed term period",
87
+ description: "Lookup ID representing the Exit strategy for the mortgage)",
39
88
  },
40
- originalLoanAmount: {
41
- type: Pound,
42
- default: 0,
89
+ isCapitalRaise: {
90
+ type: Boolean,
91
+ get: (value) => (value ? "Yes" : "No"),
92
+ description: "Indicates if capital raising is part of this finance",
93
+ },
94
+ purchaseDate: {
95
+ type: Date,
43
96
  required: true,
44
- description: "Original amount of the mortgage loan",
97
+ description: "Purchase date of the property",
45
98
  },
46
- outstandingBalance: {
99
+ estimatedValue: {
47
100
  type: Pound,
48
- default: 0,
49
101
  required: true,
50
- description: "Current outstanding balance on the mortgage",
102
+ description: "Estimated value of the property",
51
103
  },
52
- startDate: {
53
- type: Date,
54
- default: null,
104
+ loanRequired: {
105
+ type: Pound,
55
106
  required: true,
56
- description: "Start date of the mortgage",
107
+ description: "Amount of finance required",
57
108
  },
58
- monthlyPayment: {
109
+ monthlyRentalIncome: {
59
110
  type: Pound,
60
- default: 0,
61
111
  required: true,
62
- description: "Monthly payment amount for the mortgage",
112
+ description: "Monthly rental income from the property",
63
113
  },
64
- furtherAdvances: {
65
- type: Boolean,
114
+ fundRaisedFor: {
115
+ type: String,
116
+ maxlength: 250,
66
117
  required: true,
67
- get: (value) => (value ? "Yes" : "No"),
68
- description: "Indicates if further advances have been taken",
118
+ description: "What the funds raised will be used for",
69
119
  },
70
- furtherAdvanceDetails: {
120
+ sourceOfFundsLid: {
121
+ type: mongoose.Schema.Types.ObjectId,
122
+ ref: "Lookup",
123
+ required: true,
124
+ description: "Lookup ID representing the Main source of income for monthly finance payments",
125
+ },
126
+ sourceOfFundDetails: {
71
127
  type: String,
72
- default: "",
73
- maxlength: 100,
128
+ maxlength: 50,
74
129
  required: true,
75
- description: "Details of any further advances taken",
130
+ description: "Additional details if the source of funds is 'Other'",
76
131
  },
77
- accountUpToDate: {
78
- type: Boolean,
132
+ propertyValuationDetails: {
133
+ type: String,
134
+ maxlength: 35,
79
135
  required: true,
80
- get: (value) => (value ? "Yes" : "No"),
81
- description: "Flag indicating if the account is up to date",
136
+ description: "Details on who to contact for property valuation",
82
137
  },
83
- accountUpToDateFailDetails: {
138
+ telephoneNumber: {
84
139
  type: String,
85
- default: "",
86
- maxlength: 100,
140
+ maxlength: 15,
87
141
  required: true,
88
- description: "Details if the account is not up to date",
142
+ description: "Contact number for property valuation",
89
143
  },
90
- accountInArrears: {
144
+ isDistressedSale: {
91
145
  type: Boolean,
146
+ get: (value) => (value ? "Yes" : "No"),
92
147
  required: true,
148
+ description: "Indicates if this is a distressed sale",
149
+ },
150
+ isPurchasedBelowMarketValue: {
151
+ type: Boolean,
93
152
  get: (value) => (value ? "Yes" : "No"),
94
- description: "Indicates if the account is currently in arrears",
153
+ required: true,
154
+ description: "Indicates if the property is purchased below market value",
95
155
  },
96
- accountInArrearsDetails: {
97
- type: String,
98
- default: "",
99
- maxlength: 100,
156
+ isPurchasedAsSale: {
157
+ type: Boolean,
158
+ get: (value) => (value ? "Yes" : "No"),
100
159
  required: true,
101
- description: "Details of account arrears, if any",
160
+ description: "Indicates if the property is purchased as a sale and rent back",
161
+ },
162
+ isReadyToSell: {
163
+ type: Boolean,
164
+ get: (value) => (value ? "Yes" : "No"),
165
+ description: "Indicates if the property is ready to sell or let out",
102
166
  },
103
- doHaveSharedResponsibility: {
167
+ isGovernmentInitiative: {
104
168
  type: Boolean,
105
- default: false,
106
169
  get: (value) => (value ? "Yes" : "No"),
107
- description: "Flag indicating if the mortgage responsibility is shared",
170
+ description: "Indicates if this purchase is part of a government initiative",
108
171
  },
109
- sharedMortgage: {
172
+ vendorsName: {
110
173
  type: String,
111
- default: "",
174
+ maxlength: 35,
175
+ description: "Vendor's name in case of property sale",
176
+ },
177
+ saleMadeLid: {
178
+ type: mongoose.Schema.Types.ObjectId,
179
+ ref: "Lookup",
180
+ description: "Method of sale made",
181
+ },
182
+ isTheIntentionToLet: {
183
+ type: Boolean,
184
+ get: (value) => (value ? "Yes" : "No"),
185
+ description: "Indicates if the intention is to let out the property",
186
+ },
187
+ proposedTenantsLid: {
188
+ type: [mongoose.Schema.Types.ObjectId],
189
+ ref: "Lookup",
190
+ description: "Proposed tenants for the property",
191
+ },
192
+ leaseTypeLid: {
193
+ type: mongoose.Schema.Types.ObjectId,
194
+ ref: "Lookup",
112
195
  required: true,
113
- description: "Details about shared mortgage responsibility",
196
+ description: "Lease type for the property",
114
197
  },
115
198
  }, {
116
199
  timestamps: true,
117
200
  toJSON: { virtuals: true },
118
201
  toObject: { virtuals: true },
119
202
  });
203
+ const virtualDepositComeFrom = mortgageSchema.virtual("depositComeFrom", {
204
+ ref: "Lookup",
205
+ localField: "depositComeFromLid",
206
+ foreignField: "_id",
207
+ justOne: false,
208
+ });
209
+ virtualDepositComeFrom.description =
210
+ "Populated lookup values for where the deposit for the mortgage will come from";
211
+ const virtualSourceOfWealth = mortgageSchema.virtual("sourceOfWealth", {
212
+ ref: "Lookup",
213
+ localField: "sourceOfWealthLid",
214
+ foreignField: "_id",
215
+ justOne: false,
216
+ });
217
+ virtualSourceOfWealth.description =
218
+ "Populated lookup values for source of wealth used to pay the mortgage";
120
219
  const virtualRepaymentType = mortgageSchema.virtual("repaymentType", {
121
220
  ref: "Lookup",
122
221
  localField: "repaymentTypeLid",
123
222
  foreignField: "_id",
124
223
  justOne: true,
125
224
  });
126
- virtualRepaymentType.description = "Populated lookup value for repayment type";
127
- const virtualMortgageType = mortgageSchema.virtual("mortgageType", {
225
+ virtualRepaymentType.description =
226
+ "Populated lookup value representing the type of repayment";
227
+ const virtualExitStrategy = mortgageSchema.virtual("exitStrategy", {
228
+ ref: "Lookup",
229
+ localField: "exitStrategyLid",
230
+ foreignField: "_id",
231
+ justOne: true,
232
+ });
233
+ virtualExitStrategy.description = "Populated lookup value for exit strategy";
234
+ const virtualSourceOfFunds = mortgageSchema.virtual("sourceOfFunds", {
235
+ ref: "Lookup",
236
+ localField: "sourceOfFundsLid",
237
+ foreignField: "_id",
238
+ justOne: true,
239
+ });
240
+ virtualSourceOfFunds.description =
241
+ "Populated lookup value for the main source of income for monthly finance payments";
242
+ const virtualSaleMade = mortgageSchema.virtual("saleMade", {
243
+ ref: "Lookup",
244
+ localField: "saleMadeLid",
245
+ foreignField: "_id",
246
+ justOne: true,
247
+ });
248
+ virtualSaleMade.description = "Populated lookup value for method of sale made";
249
+ const virtualProposedTenants = mortgageSchema.virtual("proposedTenants", {
250
+ ref: "Lookup",
251
+ localField: "proposedTenantsLid",
252
+ foreignField: "_id",
253
+ justOne: false,
254
+ });
255
+ virtualProposedTenants.description =
256
+ "Populated lookup values for proposed tenants of the property";
257
+ const virtualLeaseType = mortgageSchema.virtual("leaseType", {
128
258
  ref: "Lookup",
129
- localField: "mortgageTypeLid",
259
+ localField: "leaseTypeLid",
130
260
  foreignField: "_id",
131
261
  justOne: true,
132
262
  });
133
- virtualMortgageType.description = "Populated lookup value for mortgage type";
134
- const MortgageModel = mongoose.model("Application_Mortgage", mortgageSchema);
263
+ virtualLeaseType.description = "Populated lookup value for lease type";
264
+ const MortgageModel = mongoose.model("Mortgage", mortgageSchema);
135
265
  export default MortgageModel;
@@ -5,6 +5,12 @@ declare const ApplicationModel: mongoose.Model<{
5
5
  } & {
6
6
  applicationId: string;
7
7
  applicants: mongoose.Types.ObjectId[];
8
+ sourceOfWealthLid: mongoose.Types.ObjectId;
9
+ sowBusiness: string;
10
+ sowInheritance: string;
11
+ sowOther: string;
12
+ sowProperty: string;
13
+ sowSalary: string;
8
14
  repaymentTypeLid: mongoose.Types.ObjectId;
9
15
  statusLid: mongoose.Types.ObjectId;
10
16
  queueId: mongoose.Types.ObjectId[];
@@ -28,12 +34,6 @@ declare const ApplicationModel: mongoose.Model<{
28
34
  newReason: string;
29
35
  purchaseTypeLid: mongoose.Types.ObjectId;
30
36
  rejectedReason: string;
31
- sourceOfWealthLid: mongoose.Types.ObjectId;
32
- sowBusiness: string;
33
- sowInheritance: string;
34
- sowOther: string;
35
- sowProperty: string;
36
- sowSalary: string;
37
37
  submitReason: string;
38
38
  underwriter: string;
39
39
  isValuationFeePaid: string;
@@ -49,7 +49,6 @@ declare const ApplicationModel: mongoose.Model<{
49
49
  riskRating?: string | null | undefined;
50
50
  productFeatures?: {
51
51
  name: string;
52
- fixedTerm: string;
53
52
  repaymentType: string;
54
53
  ltv: string;
55
54
  reimbursementPerPound: string;
@@ -62,6 +61,7 @@ declare const ApplicationModel: mongoose.Model<{
62
61
  reversionRateWithoutBaseRate: string;
63
62
  totalReversionRate: string;
64
63
  initialRate: string;
64
+ fixedTerm: string;
65
65
  fixedTermEndDate: string;
66
66
  baseRate: string;
67
67
  productRate: string;
@@ -193,6 +193,12 @@ declare const ApplicationModel: mongoose.Model<{
193
193
  } & {
194
194
  applicationId: string;
195
195
  applicants: mongoose.Types.ObjectId[];
196
+ sourceOfWealthLid: mongoose.Types.ObjectId;
197
+ sowBusiness: string;
198
+ sowInheritance: string;
199
+ sowOther: string;
200
+ sowProperty: string;
201
+ sowSalary: string;
196
202
  repaymentTypeLid: mongoose.Types.ObjectId;
197
203
  statusLid: mongoose.Types.ObjectId;
198
204
  queueId: mongoose.Types.ObjectId[];
@@ -216,12 +222,6 @@ declare const ApplicationModel: mongoose.Model<{
216
222
  newReason: string;
217
223
  purchaseTypeLid: mongoose.Types.ObjectId;
218
224
  rejectedReason: string;
219
- sourceOfWealthLid: mongoose.Types.ObjectId;
220
- sowBusiness: string;
221
- sowInheritance: string;
222
- sowOther: string;
223
- sowProperty: string;
224
- sowSalary: string;
225
225
  submitReason: string;
226
226
  underwriter: string;
227
227
  isValuationFeePaid: string;
@@ -237,7 +237,6 @@ declare const ApplicationModel: mongoose.Model<{
237
237
  riskRating?: string | null | undefined;
238
238
  productFeatures?: {
239
239
  name: string;
240
- fixedTerm: string;
241
240
  repaymentType: string;
242
241
  ltv: string;
243
242
  reimbursementPerPound: string;
@@ -250,6 +249,7 @@ declare const ApplicationModel: mongoose.Model<{
250
249
  reversionRateWithoutBaseRate: string;
251
250
  totalReversionRate: string;
252
251
  initialRate: string;
252
+ fixedTerm: string;
253
253
  fixedTermEndDate: string;
254
254
  baseRate: string;
255
255
  productRate: string;
@@ -381,6 +381,12 @@ declare const ApplicationModel: mongoose.Model<{
381
381
  } & {
382
382
  applicationId: string;
383
383
  applicants: mongoose.Types.ObjectId[];
384
+ sourceOfWealthLid: mongoose.Types.ObjectId;
385
+ sowBusiness: string;
386
+ sowInheritance: string;
387
+ sowOther: string;
388
+ sowProperty: string;
389
+ sowSalary: string;
384
390
  repaymentTypeLid: mongoose.Types.ObjectId;
385
391
  statusLid: mongoose.Types.ObjectId;
386
392
  queueId: mongoose.Types.ObjectId[];
@@ -404,12 +410,6 @@ declare const ApplicationModel: mongoose.Model<{
404
410
  newReason: string;
405
411
  purchaseTypeLid: mongoose.Types.ObjectId;
406
412
  rejectedReason: string;
407
- sourceOfWealthLid: mongoose.Types.ObjectId;
408
- sowBusiness: string;
409
- sowInheritance: string;
410
- sowOther: string;
411
- sowProperty: string;
412
- sowSalary: string;
413
413
  submitReason: string;
414
414
  underwriter: string;
415
415
  isValuationFeePaid: string;
@@ -425,7 +425,6 @@ declare const ApplicationModel: mongoose.Model<{
425
425
  riskRating?: string | null | undefined;
426
426
  productFeatures?: {
427
427
  name: string;
428
- fixedTerm: string;
429
428
  repaymentType: string;
430
429
  ltv: string;
431
430
  reimbursementPerPound: string;
@@ -438,6 +437,7 @@ declare const ApplicationModel: mongoose.Model<{
438
437
  reversionRateWithoutBaseRate: string;
439
438
  totalReversionRate: string;
440
439
  initialRate: string;
440
+ fixedTerm: string;
441
441
  fixedTermEndDate: string;
442
442
  baseRate: string;
443
443
  productRate: string;
@@ -581,6 +581,12 @@ declare const ApplicationModel: mongoose.Model<{
581
581
  } & {
582
582
  applicationId: string;
583
583
  applicants: mongoose.Types.ObjectId[];
584
+ sourceOfWealthLid: mongoose.Types.ObjectId;
585
+ sowBusiness: string;
586
+ sowInheritance: string;
587
+ sowOther: string;
588
+ sowProperty: string;
589
+ sowSalary: string;
584
590
  repaymentTypeLid: mongoose.Types.ObjectId;
585
591
  statusLid: mongoose.Types.ObjectId;
586
592
  queueId: mongoose.Types.ObjectId[];
@@ -604,12 +610,6 @@ declare const ApplicationModel: mongoose.Model<{
604
610
  newReason: string;
605
611
  purchaseTypeLid: mongoose.Types.ObjectId;
606
612
  rejectedReason: string;
607
- sourceOfWealthLid: mongoose.Types.ObjectId;
608
- sowBusiness: string;
609
- sowInheritance: string;
610
- sowOther: string;
611
- sowProperty: string;
612
- sowSalary: string;
613
613
  submitReason: string;
614
614
  underwriter: string;
615
615
  isValuationFeePaid: string;
@@ -625,7 +625,6 @@ declare const ApplicationModel: mongoose.Model<{
625
625
  riskRating?: string | null | undefined;
626
626
  productFeatures?: {
627
627
  name: string;
628
- fixedTerm: string;
629
628
  repaymentType: string;
630
629
  ltv: string;
631
630
  reimbursementPerPound: string;
@@ -638,6 +637,7 @@ declare const ApplicationModel: mongoose.Model<{
638
637
  reversionRateWithoutBaseRate: string;
639
638
  totalReversionRate: string;
640
639
  initialRate: string;
640
+ fixedTerm: string;
641
641
  fixedTermEndDate: string;
642
642
  baseRate: string;
643
643
  productRate: string;
@@ -769,6 +769,12 @@ declare const ApplicationModel: mongoose.Model<{
769
769
  } & {
770
770
  applicationId: string;
771
771
  applicants: mongoose.Types.ObjectId[];
772
+ sourceOfWealthLid: mongoose.Types.ObjectId;
773
+ sowBusiness: string;
774
+ sowInheritance: string;
775
+ sowOther: string;
776
+ sowProperty: string;
777
+ sowSalary: string;
772
778
  repaymentTypeLid: mongoose.Types.ObjectId;
773
779
  statusLid: mongoose.Types.ObjectId;
774
780
  queueId: mongoose.Types.ObjectId[];
@@ -792,12 +798,6 @@ declare const ApplicationModel: mongoose.Model<{
792
798
  newReason: string;
793
799
  purchaseTypeLid: mongoose.Types.ObjectId;
794
800
  rejectedReason: string;
795
- sourceOfWealthLid: mongoose.Types.ObjectId;
796
- sowBusiness: string;
797
- sowInheritance: string;
798
- sowOther: string;
799
- sowProperty: string;
800
- sowSalary: string;
801
801
  submitReason: string;
802
802
  underwriter: string;
803
803
  isValuationFeePaid: string;
@@ -813,7 +813,6 @@ declare const ApplicationModel: mongoose.Model<{
813
813
  riskRating?: string | null | undefined;
814
814
  productFeatures?: {
815
815
  name: string;
816
- fixedTerm: string;
817
816
  repaymentType: string;
818
817
  ltv: string;
819
818
  reimbursementPerPound: string;
@@ -826,6 +825,7 @@ declare const ApplicationModel: mongoose.Model<{
826
825
  reversionRateWithoutBaseRate: string;
827
826
  totalReversionRate: string;
828
827
  initialRate: string;
828
+ fixedTerm: string;
829
829
  fixedTermEndDate: string;
830
830
  baseRate: string;
831
831
  productRate: string;
@@ -957,6 +957,12 @@ declare const ApplicationModel: mongoose.Model<{
957
957
  } & {
958
958
  applicationId: string;
959
959
  applicants: mongoose.Types.ObjectId[];
960
+ sourceOfWealthLid: mongoose.Types.ObjectId;
961
+ sowBusiness: string;
962
+ sowInheritance: string;
963
+ sowOther: string;
964
+ sowProperty: string;
965
+ sowSalary: string;
960
966
  repaymentTypeLid: mongoose.Types.ObjectId;
961
967
  statusLid: mongoose.Types.ObjectId;
962
968
  queueId: mongoose.Types.ObjectId[];
@@ -980,12 +986,6 @@ declare const ApplicationModel: mongoose.Model<{
980
986
  newReason: string;
981
987
  purchaseTypeLid: mongoose.Types.ObjectId;
982
988
  rejectedReason: string;
983
- sourceOfWealthLid: mongoose.Types.ObjectId;
984
- sowBusiness: string;
985
- sowInheritance: string;
986
- sowOther: string;
987
- sowProperty: string;
988
- sowSalary: string;
989
989
  submitReason: string;
990
990
  underwriter: string;
991
991
  isValuationFeePaid: string;
@@ -1001,7 +1001,6 @@ declare const ApplicationModel: mongoose.Model<{
1001
1001
  riskRating?: string | null | undefined;
1002
1002
  productFeatures?: {
1003
1003
  name: string;
1004
- fixedTerm: string;
1005
1004
  repaymentType: string;
1006
1005
  ltv: string;
1007
1006
  reimbursementPerPound: string;
@@ -1014,6 +1013,7 @@ declare const ApplicationModel: mongoose.Model<{
1014
1013
  reversionRateWithoutBaseRate: string;
1015
1014
  totalReversionRate: string;
1016
1015
  initialRate: string;
1016
+ fixedTerm: string;
1017
1017
  fixedTermEndDate: string;
1018
1018
  baseRate: string;
1019
1019
  productRate: string;
@@ -1,7 +1,6 @@
1
1
  import mongoose from "mongoose";
2
2
  declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
3
3
  name: string;
4
- fixedTerm: string;
5
4
  repaymentType: string;
6
5
  ltv: string;
7
6
  reimbursementPerPound: string;
@@ -14,6 +13,7 @@ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, an
14
13
  reversionRateWithoutBaseRate: string;
15
14
  totalReversionRate: string;
16
15
  initialRate: string;
16
+ fixedTerm: string;
17
17
  fixedTermEndDate: string;
18
18
  baseRate: string;
19
19
  productRate: string;
@@ -121,7 +121,6 @@ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, an
121
121
  } | null | undefined;
122
122
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
123
123
  name: string;
124
- fixedTerm: string;
125
124
  repaymentType: string;
126
125
  ltv: string;
127
126
  reimbursementPerPound: string;
@@ -134,6 +133,7 @@ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, an
134
133
  reversionRateWithoutBaseRate: string;
135
134
  totalReversionRate: string;
136
135
  initialRate: string;
136
+ fixedTerm: string;
137
137
  fixedTermEndDate: string;
138
138
  baseRate: string;
139
139
  productRate: string;
@@ -241,7 +241,6 @@ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, an
241
241
  } | null | undefined;
242
242
  }>> & mongoose.FlatRecord<{
243
243
  name: string;
244
- fixedTerm: string;
245
244
  repaymentType: string;
246
245
  ltv: string;
247
246
  reimbursementPerPound: string;
@@ -254,6 +253,7 @@ declare const productFeaturesSchema: mongoose.Schema<any, mongoose.Model<any, an
254
253
  reversionRateWithoutBaseRate: string;
255
254
  totalReversionRate: string;
256
255
  initialRate: string;
256
+ fixedTerm: string;
257
257
  fixedTermEndDate: string;
258
258
  baseRate: string;
259
259
  productRate: string;