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