@dynamatix/gb-schemas 1.2.164 → 1.2.166
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.
|
@@ -7,7 +7,6 @@ import { Pound } from "../value-objects/pound";
|
|
|
7
7
|
const applicantSchema = new mongoose.Schema({
|
|
8
8
|
applicantId: { type: String, required: true },
|
|
9
9
|
applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
|
|
10
|
-
serialName: { type: String },
|
|
11
10
|
addressCity: { type: String, default: null },
|
|
12
11
|
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
13
12
|
addressLine1: { type: String, default: null },
|
|
@@ -1117,9 +1117,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1117
1117
|
applicationId: mongoose.Types.ObjectId;
|
|
1118
1118
|
pageValidFlag: boolean;
|
|
1119
1119
|
topSlicing: boolean;
|
|
1120
|
-
purposeOfMortgage: string;
|
|
1121
1120
|
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1122
|
-
ifOtherDetails: string;
|
|
1123
1121
|
purchasePrice: Pound;
|
|
1124
1122
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
1125
1123
|
exitStrategyLid: mongoose.Types.ObjectId;
|
|
@@ -1129,9 +1127,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1129
1127
|
loanRequired: Pound;
|
|
1130
1128
|
monthlyRentalIncome: Pound;
|
|
1131
1129
|
outstandingBalance: Pound;
|
|
1132
|
-
fundRaisedFor: string;
|
|
1133
1130
|
sourceOfFundsLid: mongoose.Types.ObjectId;
|
|
1134
|
-
sourceOfFundDetails: string;
|
|
1135
1131
|
propertyValuationDetails: string;
|
|
1136
1132
|
telephoneNumber: string;
|
|
1137
1133
|
isDistressedSale: boolean;
|
|
@@ -1151,6 +1147,10 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1151
1147
|
sowSalary: string;
|
|
1152
1148
|
giftDetails?: string | null | undefined;
|
|
1153
1149
|
existingMortgageLender?: string | null | undefined;
|
|
1150
|
+
purposeOfMortgage?: string | null | undefined;
|
|
1151
|
+
ifOtherDetails?: string | null | undefined;
|
|
1152
|
+
fundRaisedFor?: string | null | undefined;
|
|
1153
|
+
sourceOfFundDetails?: string | null | undefined;
|
|
1154
1154
|
saleMadeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
1155
1155
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
1156
1156
|
createdAt: NativeDate;
|
|
@@ -1159,9 +1159,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1159
1159
|
applicationId: mongoose.Types.ObjectId;
|
|
1160
1160
|
pageValidFlag: boolean;
|
|
1161
1161
|
topSlicing: boolean;
|
|
1162
|
-
purposeOfMortgage: string;
|
|
1163
1162
|
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1164
|
-
ifOtherDetails: string;
|
|
1165
1163
|
purchasePrice: Pound;
|
|
1166
1164
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
1167
1165
|
exitStrategyLid: mongoose.Types.ObjectId;
|
|
@@ -1171,9 +1169,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1171
1169
|
loanRequired: Pound;
|
|
1172
1170
|
monthlyRentalIncome: Pound;
|
|
1173
1171
|
outstandingBalance: Pound;
|
|
1174
|
-
fundRaisedFor: string;
|
|
1175
1172
|
sourceOfFundsLid: mongoose.Types.ObjectId;
|
|
1176
|
-
sourceOfFundDetails: string;
|
|
1177
1173
|
propertyValuationDetails: string;
|
|
1178
1174
|
telephoneNumber: string;
|
|
1179
1175
|
isDistressedSale: boolean;
|
|
@@ -1193,6 +1189,10 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1193
1189
|
sowSalary: string;
|
|
1194
1190
|
giftDetails?: string | null | undefined;
|
|
1195
1191
|
existingMortgageLender?: string | null | undefined;
|
|
1192
|
+
purposeOfMortgage?: string | null | undefined;
|
|
1193
|
+
ifOtherDetails?: string | null | undefined;
|
|
1194
|
+
fundRaisedFor?: string | null | undefined;
|
|
1195
|
+
sourceOfFundDetails?: string | null | undefined;
|
|
1196
1196
|
saleMadeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
1197
1197
|
}>> & mongoose.FlatRecord<{
|
|
1198
1198
|
createdAt: NativeDate;
|
|
@@ -1201,9 +1201,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1201
1201
|
applicationId: mongoose.Types.ObjectId;
|
|
1202
1202
|
pageValidFlag: boolean;
|
|
1203
1203
|
topSlicing: boolean;
|
|
1204
|
-
purposeOfMortgage: string;
|
|
1205
1204
|
depositComeFromLids: mongoose.Types.ObjectId[];
|
|
1206
|
-
ifOtherDetails: string;
|
|
1207
1205
|
purchasePrice: Pound;
|
|
1208
1206
|
repaymentTypeLid: mongoose.Types.ObjectId;
|
|
1209
1207
|
exitStrategyLid: mongoose.Types.ObjectId;
|
|
@@ -1213,9 +1211,7 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1213
1211
|
loanRequired: Pound;
|
|
1214
1212
|
monthlyRentalIncome: Pound;
|
|
1215
1213
|
outstandingBalance: Pound;
|
|
1216
|
-
fundRaisedFor: string;
|
|
1217
1214
|
sourceOfFundsLid: mongoose.Types.ObjectId;
|
|
1218
|
-
sourceOfFundDetails: string;
|
|
1219
1215
|
propertyValuationDetails: string;
|
|
1220
1216
|
telephoneNumber: string;
|
|
1221
1217
|
isDistressedSale: boolean;
|
|
@@ -1235,6 +1231,10 @@ declare const MortgageModel: mongoose.Model<{
|
|
|
1235
1231
|
sowSalary: string;
|
|
1236
1232
|
giftDetails?: string | null | undefined;
|
|
1237
1233
|
existingMortgageLender?: string | null | undefined;
|
|
1234
|
+
purposeOfMortgage?: string | null | undefined;
|
|
1235
|
+
ifOtherDetails?: string | null | undefined;
|
|
1236
|
+
fundRaisedFor?: string | null | undefined;
|
|
1237
|
+
sourceOfFundDetails?: string | null | undefined;
|
|
1238
1238
|
saleMadeLid?: mongoose.Types.ObjectId | null | undefined;
|
|
1239
1239
|
}> & {
|
|
1240
1240
|
_id: mongoose.Types.ObjectId;
|
|
@@ -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;AA6S/C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AAEjE,eAAe,aAAa,CAAC"}
|
|
@@ -29,7 +29,6 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
29
29
|
},
|
|
30
30
|
purposeOfMortgage: {
|
|
31
31
|
type: String,
|
|
32
|
-
required: true,
|
|
33
32
|
maxlength: 50,
|
|
34
33
|
description: "Purpose of the mortgage (e.g., purchase, refinance)",
|
|
35
34
|
},
|
|
@@ -43,7 +42,6 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
43
42
|
ifOtherDetails: {
|
|
44
43
|
type: String,
|
|
45
44
|
maxlength: 50,
|
|
46
|
-
required: true,
|
|
47
45
|
description: "Details if the deposit comes from 'Other'",
|
|
48
46
|
},
|
|
49
47
|
purchasePrice: {
|
|
@@ -70,7 +68,6 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
70
68
|
},
|
|
71
69
|
purchaseDate: {
|
|
72
70
|
type: String,
|
|
73
|
-
required: true,
|
|
74
71
|
default: null,
|
|
75
72
|
description: "Purchase date of the property",
|
|
76
73
|
},
|
|
@@ -97,7 +94,6 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
97
94
|
fundRaisedFor: {
|
|
98
95
|
type: String,
|
|
99
96
|
maxlength: 250,
|
|
100
|
-
required: true,
|
|
101
97
|
description: "What the funds raised will be used for",
|
|
102
98
|
},
|
|
103
99
|
sourceOfFundsLid: {
|
|
@@ -109,7 +105,6 @@ const mortgageSchema = new mongoose.Schema({
|
|
|
109
105
|
sourceOfFundDetails: {
|
|
110
106
|
type: String,
|
|
111
107
|
maxlength: 50,
|
|
112
|
-
required: true,
|
|
113
108
|
description: "Additional details if the source of funds is 'Other'",
|
|
114
109
|
},
|
|
115
110
|
propertyValuationDetails: {
|