@dynamatix/gb-schemas 1.2.145 → 1.2.147
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.
- package/dist/applicants/applicant-additional-income.model.d.ts +194 -0
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-additional-income.model.js +14 -0
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +17 -3
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.js +23 -10
- package/dist/applicants/applicant-commitment-loan.model.d.ts +23 -3
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.js +33 -12
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +77 -303
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.js +51 -23
- package/dist/applicants/applicant-commitment-residence.model.d.ts +9 -9
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.js +8 -5
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +30 -6
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.js +24 -10
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +36 -6
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +24 -9
- package/dist/applicants/applicant-employment-income.model.d.ts +175 -0
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-employment-income.model.js +14 -0
- package/dist/applicants/applicant-employment.model.d.ts +1231 -24
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.js +3 -12
- package/dist/applicants/applicant-expenditure.model.d.ts +79 -50
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.js +57 -18
- package/dist/applicants/applicant-income-settings.model.d.ts +54 -0
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-settings.model.js +16 -0
- package/dist/applicants/applicant-income.model.d.ts +2068 -30
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.js +35 -12
- package/dist/applicants/applicant-pension-income.model.d.ts +457 -0
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.js +30 -0
- package/dist/applicants/applicant-property-income.model.d.ts +871 -13
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.js +12 -5
- package/dist/applicants/applicant-self-employed-income.model.d.ts +182 -0
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-self-employed-income.model.js +17 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +182 -0
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-sole-trader-income.model.js +17 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +463 -0
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -0
- package/dist/applicants/applicant-uk-tax-credits.model.js +16 -0
- package/dist/applicants/applicant.model.d.ts +101 -8762
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.model.js +19 -21
- package/dist/applicants/index.d.ts +13 -2
- package/dist/applicants/index.d.ts.map +1 -1
- package/dist/applicants/index.js +13 -2
- package/dist/applications/application-mortgage.model.d.ts +1137 -129
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.js +28 -5
- package/dist/applications/application-productfeatures.model.d.ts +738 -0
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -0
- package/dist/applications/{productfeatures.model.js → application-productfeatures.model.js} +3 -1
- package/dist/applications/application.model.d.ts +0 -762
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +0 -8
- package/dist/applications/index.d.ts +1 -1
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/index.js +1 -1
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/dist/value-objects/sort-code.js +4 -13
- package/package.json +2 -2
- package/dist/applicants/applicant-income-source.model.d.ts +0 -26
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income-source.model.js +0 -9
- package/dist/applicants/applicant-other-income.model.d.ts +0 -85
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.js +0 -46
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
|
@@ -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;
|
|
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;AAkT/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,aAAa,CAAC"}
|
|
@@ -7,6 +7,11 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
7
7
|
required: true,
|
|
8
8
|
description: "Unique identifier for the application",
|
|
9
9
|
},
|
|
10
|
+
giftDetails: {
|
|
11
|
+
type: String,
|
|
12
|
+
maxlength: 50,
|
|
13
|
+
description: "Details of the gift for the mortgage",
|
|
14
|
+
},
|
|
10
15
|
pageValidFlag: {
|
|
11
16
|
type: Boolean,
|
|
12
17
|
default: false,
|
|
@@ -24,22 +29,26 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
24
29
|
},
|
|
25
30
|
purposeOfMortgage: {
|
|
26
31
|
type: String,
|
|
32
|
+
required: true,
|
|
27
33
|
maxlength: 50,
|
|
28
34
|
description: "Purpose of the mortgage (e.g., purchase, refinance)",
|
|
29
35
|
},
|
|
30
36
|
depositComeFromLids: {
|
|
31
37
|
type: [mongoose.Schema.Types.ObjectId],
|
|
32
38
|
ref: "Lookup",
|
|
39
|
+
required: true,
|
|
33
40
|
default: null,
|
|
34
41
|
description: "Where the deposit for the mortgage will come from",
|
|
35
42
|
},
|
|
36
43
|
ifOtherDetails: {
|
|
37
44
|
type: String,
|
|
38
45
|
maxlength: 50,
|
|
46
|
+
required: true,
|
|
39
47
|
description: "Details if the deposit comes from 'Other'",
|
|
40
48
|
},
|
|
41
49
|
purchasePrice: {
|
|
42
50
|
type: Pound,
|
|
51
|
+
required: true,
|
|
43
52
|
description: "Purchase price of the property",
|
|
44
53
|
},
|
|
45
54
|
repaymentTypeLid: {
|
|
@@ -61,28 +70,34 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
61
70
|
},
|
|
62
71
|
purchaseDate: {
|
|
63
72
|
type: String,
|
|
73
|
+
required: true,
|
|
64
74
|
default: null,
|
|
65
75
|
description: "Purchase date of the property",
|
|
66
76
|
},
|
|
67
77
|
estimatedValue: {
|
|
68
78
|
type: Pound,
|
|
79
|
+
required: true,
|
|
69
80
|
description: "Estimated value of the property",
|
|
70
81
|
},
|
|
71
82
|
loanRequired: {
|
|
72
83
|
type: Pound,
|
|
84
|
+
required: true,
|
|
73
85
|
description: "Amount of finance required",
|
|
74
86
|
},
|
|
75
87
|
monthlyRentalIncome: {
|
|
76
88
|
type: Pound,
|
|
89
|
+
required: true,
|
|
77
90
|
description: "Monthly rental income from the property",
|
|
78
91
|
},
|
|
79
92
|
outstandingBalance: {
|
|
80
93
|
type: Pound,
|
|
94
|
+
required: true,
|
|
81
95
|
description: "Outstanding balance on the existing mortgage",
|
|
82
96
|
},
|
|
83
97
|
fundRaisedFor: {
|
|
84
98
|
type: String,
|
|
85
99
|
maxlength: 250,
|
|
100
|
+
required: true,
|
|
86
101
|
description: "What the funds raised will be used for",
|
|
87
102
|
},
|
|
88
103
|
sourceOfFundsLid: {
|
|
@@ -94,31 +109,37 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
94
109
|
sourceOfFundDetails: {
|
|
95
110
|
type: String,
|
|
96
111
|
maxlength: 50,
|
|
112
|
+
required: true,
|
|
97
113
|
description: "Additional details if the source of funds is 'Other'",
|
|
98
114
|
},
|
|
99
115
|
propertyValuationDetails: {
|
|
100
116
|
type: String,
|
|
101
117
|
maxlength: 35,
|
|
118
|
+
required: true,
|
|
102
119
|
description: "Details on who to contact for property valuation",
|
|
103
120
|
},
|
|
104
121
|
telephoneNumber: {
|
|
105
122
|
type: String,
|
|
106
123
|
maxlength: 15,
|
|
124
|
+
required: true,
|
|
107
125
|
description: "Contact number for property valuation",
|
|
108
126
|
},
|
|
109
127
|
isDistressedSale: {
|
|
110
128
|
type: Boolean,
|
|
111
129
|
default: false,
|
|
130
|
+
required: true,
|
|
112
131
|
description: "Indicates if this is a distressed sale",
|
|
113
132
|
},
|
|
114
133
|
isPurchasedBelowMarketValue: {
|
|
115
134
|
type: Boolean,
|
|
116
135
|
default: false,
|
|
136
|
+
required: true,
|
|
117
137
|
description: "Indicates if the property is purchased below market value",
|
|
118
138
|
},
|
|
119
139
|
isPurchasedAsSale: {
|
|
120
140
|
type: Boolean,
|
|
121
141
|
default: false,
|
|
142
|
+
required: true,
|
|
122
143
|
description: "Indicates if the property is purchased as a sale and rent back",
|
|
123
144
|
},
|
|
124
145
|
isReadyToSell: {
|
|
@@ -135,6 +156,7 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
135
156
|
type: String,
|
|
136
157
|
maxlength: 35,
|
|
137
158
|
description: "Vendor's name in case of property sale",
|
|
159
|
+
required: true
|
|
138
160
|
},
|
|
139
161
|
saleMadeLid: {
|
|
140
162
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -157,11 +179,12 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
157
179
|
default: null,
|
|
158
180
|
description: "Lease type for the property",
|
|
159
181
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
182
|
+
sourceOfWealthLids: [{ type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }],
|
|
183
|
+
sowBusiness: { type: String, default: "" },
|
|
184
|
+
sowInheritance: { type: String, default: "" },
|
|
185
|
+
sowOther: { type: String, default: "" },
|
|
186
|
+
sowProperty: { type: String, default: "" },
|
|
187
|
+
sowSalary: { type: String, default: "" },
|
|
165
188
|
}, {
|
|
166
189
|
timestamps: true,
|
|
167
190
|
toJSON: { virtuals: true },
|