@dynamatix/gb-schemas 2.14.4 → 2.14.5
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/applications/application-valuation.model.d.ts +147 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +1 -0
- package/dist/applications/application.model.d.ts +6 -6
- package/dist/applications/application.model.js +1 -1
- package/package.json +1 -1
|
@@ -252,6 +252,54 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
252
252
|
inspectionDate?: unknown;
|
|
253
253
|
valuationBookedDate?: unknown;
|
|
254
254
|
valuationFeePaidDate?: unknown;
|
|
255
|
+
manualValuationFeeAmount?: {
|
|
256
|
+
validators: mongoose.Types.DocumentArray<{
|
|
257
|
+
type?: unknown;
|
|
258
|
+
message?: unknown;
|
|
259
|
+
validator?: unknown;
|
|
260
|
+
reason?: unknown;
|
|
261
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
262
|
+
type?: unknown;
|
|
263
|
+
message?: unknown;
|
|
264
|
+
validator?: unknown;
|
|
265
|
+
reason?: unknown;
|
|
266
|
+
}> & {
|
|
267
|
+
type?: unknown;
|
|
268
|
+
message?: unknown;
|
|
269
|
+
validator?: unknown;
|
|
270
|
+
reason?: unknown;
|
|
271
|
+
}>;
|
|
272
|
+
get?: {} | null | undefined;
|
|
273
|
+
schema?: {
|
|
274
|
+
[x: string]: unknown;
|
|
275
|
+
} | null | undefined;
|
|
276
|
+
set?: {} | null | undefined;
|
|
277
|
+
validate?: {} | null | undefined;
|
|
278
|
+
index?: {} | null | undefined;
|
|
279
|
+
default?: {} | null | undefined;
|
|
280
|
+
text?: {} | null | undefined;
|
|
281
|
+
unique?: {} | null | undefined;
|
|
282
|
+
sparse?: {} | null | undefined;
|
|
283
|
+
cast?: {} | null | undefined;
|
|
284
|
+
required?: {} | null | undefined;
|
|
285
|
+
ref?: {} | null | undefined;
|
|
286
|
+
select?: {} | null | undefined;
|
|
287
|
+
immutable?: {} | null | undefined;
|
|
288
|
+
transform?: {} | null | undefined;
|
|
289
|
+
options?: {
|
|
290
|
+
[x: string]: unknown;
|
|
291
|
+
} | null | undefined;
|
|
292
|
+
OptionsConstructor?: {
|
|
293
|
+
[x: string]: unknown;
|
|
294
|
+
} | null | undefined;
|
|
295
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
296
|
+
instance?: unknown;
|
|
297
|
+
isRequired?: unknown;
|
|
298
|
+
path?: unknown;
|
|
299
|
+
toJSONSchema?: {} | null | undefined;
|
|
300
|
+
validateAll?: {} | null | undefined;
|
|
301
|
+
defaultOptions?: unknown;
|
|
302
|
+
} | null | undefined;
|
|
255
303
|
HasLift?: unknown;
|
|
256
304
|
PropertyBuiltType?: unknown;
|
|
257
305
|
AgeofProperty?: unknown;
|
|
@@ -588,6 +636,54 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
588
636
|
inspectionDate?: unknown;
|
|
589
637
|
valuationBookedDate?: unknown;
|
|
590
638
|
valuationFeePaidDate?: unknown;
|
|
639
|
+
manualValuationFeeAmount?: {
|
|
640
|
+
validators: mongoose.Types.DocumentArray<{
|
|
641
|
+
type?: unknown;
|
|
642
|
+
message?: unknown;
|
|
643
|
+
validator?: unknown;
|
|
644
|
+
reason?: unknown;
|
|
645
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
646
|
+
type?: unknown;
|
|
647
|
+
message?: unknown;
|
|
648
|
+
validator?: unknown;
|
|
649
|
+
reason?: unknown;
|
|
650
|
+
}> & {
|
|
651
|
+
type?: unknown;
|
|
652
|
+
message?: unknown;
|
|
653
|
+
validator?: unknown;
|
|
654
|
+
reason?: unknown;
|
|
655
|
+
}>;
|
|
656
|
+
get?: {} | null | undefined;
|
|
657
|
+
schema?: {
|
|
658
|
+
[x: string]: unknown;
|
|
659
|
+
} | null | undefined;
|
|
660
|
+
set?: {} | null | undefined;
|
|
661
|
+
validate?: {} | null | undefined;
|
|
662
|
+
index?: {} | null | undefined;
|
|
663
|
+
default?: {} | null | undefined;
|
|
664
|
+
text?: {} | null | undefined;
|
|
665
|
+
unique?: {} | null | undefined;
|
|
666
|
+
sparse?: {} | null | undefined;
|
|
667
|
+
cast?: {} | null | undefined;
|
|
668
|
+
required?: {} | null | undefined;
|
|
669
|
+
ref?: {} | null | undefined;
|
|
670
|
+
select?: {} | null | undefined;
|
|
671
|
+
immutable?: {} | null | undefined;
|
|
672
|
+
transform?: {} | null | undefined;
|
|
673
|
+
options?: {
|
|
674
|
+
[x: string]: unknown;
|
|
675
|
+
} | null | undefined;
|
|
676
|
+
OptionsConstructor?: {
|
|
677
|
+
[x: string]: unknown;
|
|
678
|
+
} | null | undefined;
|
|
679
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
680
|
+
instance?: unknown;
|
|
681
|
+
isRequired?: unknown;
|
|
682
|
+
path?: unknown;
|
|
683
|
+
toJSONSchema?: {} | null | undefined;
|
|
684
|
+
validateAll?: {} | null | undefined;
|
|
685
|
+
defaultOptions?: unknown;
|
|
686
|
+
} | null | undefined;
|
|
591
687
|
HasLift?: unknown;
|
|
592
688
|
PropertyBuiltType?: unknown;
|
|
593
689
|
AgeofProperty?: unknown;
|
|
@@ -924,6 +1020,54 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
924
1020
|
inspectionDate?: unknown;
|
|
925
1021
|
valuationBookedDate?: unknown;
|
|
926
1022
|
valuationFeePaidDate?: unknown;
|
|
1023
|
+
manualValuationFeeAmount?: {
|
|
1024
|
+
validators: mongoose.Types.DocumentArray<{
|
|
1025
|
+
type?: unknown;
|
|
1026
|
+
message?: unknown;
|
|
1027
|
+
validator?: unknown;
|
|
1028
|
+
reason?: unknown;
|
|
1029
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
1030
|
+
type?: unknown;
|
|
1031
|
+
message?: unknown;
|
|
1032
|
+
validator?: unknown;
|
|
1033
|
+
reason?: unknown;
|
|
1034
|
+
}> & {
|
|
1035
|
+
type?: unknown;
|
|
1036
|
+
message?: unknown;
|
|
1037
|
+
validator?: unknown;
|
|
1038
|
+
reason?: unknown;
|
|
1039
|
+
}>;
|
|
1040
|
+
get?: {} | null | undefined;
|
|
1041
|
+
schema?: {
|
|
1042
|
+
[x: string]: unknown;
|
|
1043
|
+
} | null | undefined;
|
|
1044
|
+
set?: {} | null | undefined;
|
|
1045
|
+
validate?: {} | null | undefined;
|
|
1046
|
+
index?: {} | null | undefined;
|
|
1047
|
+
default?: {} | null | undefined;
|
|
1048
|
+
text?: {} | null | undefined;
|
|
1049
|
+
unique?: {} | null | undefined;
|
|
1050
|
+
sparse?: {} | null | undefined;
|
|
1051
|
+
cast?: {} | null | undefined;
|
|
1052
|
+
required?: {} | null | undefined;
|
|
1053
|
+
ref?: {} | null | undefined;
|
|
1054
|
+
select?: {} | null | undefined;
|
|
1055
|
+
immutable?: {} | null | undefined;
|
|
1056
|
+
transform?: {} | null | undefined;
|
|
1057
|
+
options?: {
|
|
1058
|
+
[x: string]: unknown;
|
|
1059
|
+
} | null | undefined;
|
|
1060
|
+
OptionsConstructor?: {
|
|
1061
|
+
[x: string]: unknown;
|
|
1062
|
+
} | null | undefined;
|
|
1063
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
1064
|
+
instance?: unknown;
|
|
1065
|
+
isRequired?: unknown;
|
|
1066
|
+
path?: unknown;
|
|
1067
|
+
toJSONSchema?: {} | null | undefined;
|
|
1068
|
+
validateAll?: {} | null | undefined;
|
|
1069
|
+
defaultOptions?: unknown;
|
|
1070
|
+
} | null | undefined;
|
|
927
1071
|
HasLift?: unknown;
|
|
928
1072
|
PropertyBuiltType?: unknown;
|
|
929
1073
|
AgeofProperty?: unknown;
|
|
@@ -1071,6 +1215,7 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1071
1215
|
inspectionDate: string;
|
|
1072
1216
|
valuationBookedDate: string;
|
|
1073
1217
|
valuationFeePaidDate: string;
|
|
1218
|
+
manualValuationFeeAmount: Pound;
|
|
1074
1219
|
HasLift: boolean;
|
|
1075
1220
|
PropertyBuiltType: string;
|
|
1076
1221
|
DateandTimeOfPropertyBuilt: string;
|
|
@@ -1125,6 +1270,7 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1125
1270
|
inspectionDate: string;
|
|
1126
1271
|
valuationBookedDate: string;
|
|
1127
1272
|
valuationFeePaidDate: string;
|
|
1273
|
+
manualValuationFeeAmount: Pound;
|
|
1128
1274
|
HasLift: boolean;
|
|
1129
1275
|
PropertyBuiltType: string;
|
|
1130
1276
|
DateandTimeOfPropertyBuilt: string;
|
|
@@ -1179,6 +1325,7 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1179
1325
|
inspectionDate: string;
|
|
1180
1326
|
valuationBookedDate: string;
|
|
1181
1327
|
valuationFeePaidDate: string;
|
|
1328
|
+
manualValuationFeeAmount: Pound;
|
|
1182
1329
|
HasLift: boolean;
|
|
1183
1330
|
PropertyBuiltType: string;
|
|
1184
1331
|
DateandTimeOfPropertyBuilt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAe,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAe,KAAK,EAAE,MAAM,wBAAwB,CAAC;AA2E5D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0D,CAAC;AAC1F,eAAe,yBAAyB,CAAC"}
|
|
@@ -29,6 +29,7 @@ const valuationSchema = new mongoose.Schema({
|
|
|
29
29
|
valuationNotes: { type: String, default: "" },
|
|
30
30
|
valuationAccepted: { type: String, default: null },
|
|
31
31
|
valuationFeePaidDate: { type: String, default: null },
|
|
32
|
+
manualValuationFeeAmount: { type: Pound, default: 0.00, get: formatPound },
|
|
32
33
|
addressPostCode: { type: String, default: "" },
|
|
33
34
|
addressLine1: { type: String, default: "" },
|
|
34
35
|
addressLine2: { type: String, default: "" },
|
|
@@ -100,6 +100,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
100
100
|
isAlgbraEligible: boolean;
|
|
101
101
|
selectedProduct?: string | null | undefined;
|
|
102
102
|
product?: string | null | undefined;
|
|
103
|
+
riskRating?: string | null | undefined;
|
|
103
104
|
creditProfile?: {
|
|
104
105
|
companyBankruptcyYes: string;
|
|
105
106
|
companyBankruptcyNo: string;
|
|
@@ -121,7 +122,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
121
122
|
riskRating: string;
|
|
122
123
|
statusLid: mongoose.Types.ObjectId;
|
|
123
124
|
} | null | undefined;
|
|
124
|
-
previousRiskRating?: string | null | undefined;
|
|
125
125
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
126
126
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
127
127
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
@@ -197,6 +197,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
197
197
|
isAlgbraEligible: boolean;
|
|
198
198
|
selectedProduct?: string | null | undefined;
|
|
199
199
|
product?: string | null | undefined;
|
|
200
|
+
riskRating?: string | null | undefined;
|
|
200
201
|
creditProfile?: {
|
|
201
202
|
companyBankruptcyYes: string;
|
|
202
203
|
companyBankruptcyNo: string;
|
|
@@ -218,7 +219,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
218
219
|
riskRating: string;
|
|
219
220
|
statusLid: mongoose.Types.ObjectId;
|
|
220
221
|
} | null | undefined;
|
|
221
|
-
previousRiskRating?: string | null | undefined;
|
|
222
222
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
223
223
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
224
224
|
}, {}> & {
|
|
@@ -294,6 +294,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
294
294
|
isAlgbraEligible: boolean;
|
|
295
295
|
selectedProduct?: string | null | undefined;
|
|
296
296
|
product?: string | null | undefined;
|
|
297
|
+
riskRating?: string | null | undefined;
|
|
297
298
|
creditProfile?: {
|
|
298
299
|
companyBankruptcyYes: string;
|
|
299
300
|
companyBankruptcyNo: string;
|
|
@@ -315,7 +316,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
315
316
|
riskRating: string;
|
|
316
317
|
statusLid: mongoose.Types.ObjectId;
|
|
317
318
|
} | null | undefined;
|
|
318
|
-
previousRiskRating?: string | null | undefined;
|
|
319
319
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
320
320
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
321
321
|
} & {
|
|
@@ -403,6 +403,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
403
403
|
isAlgbraEligible: boolean;
|
|
404
404
|
selectedProduct?: string | null | undefined;
|
|
405
405
|
product?: string | null | undefined;
|
|
406
|
+
riskRating?: string | null | undefined;
|
|
406
407
|
creditProfile?: {
|
|
407
408
|
companyBankruptcyYes: string;
|
|
408
409
|
companyBankruptcyNo: string;
|
|
@@ -424,7 +425,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
424
425
|
riskRating: string;
|
|
425
426
|
statusLid: mongoose.Types.ObjectId;
|
|
426
427
|
} | null | undefined;
|
|
427
|
-
previousRiskRating?: string | null | undefined;
|
|
428
428
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
429
429
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
430
430
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
@@ -500,6 +500,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
500
500
|
isAlgbraEligible: boolean;
|
|
501
501
|
selectedProduct?: string | null | undefined;
|
|
502
502
|
product?: string | null | undefined;
|
|
503
|
+
riskRating?: string | null | undefined;
|
|
503
504
|
creditProfile?: {
|
|
504
505
|
companyBankruptcyYes: string;
|
|
505
506
|
companyBankruptcyNo: string;
|
|
@@ -521,7 +522,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
521
522
|
riskRating: string;
|
|
522
523
|
statusLid: mongoose.Types.ObjectId;
|
|
523
524
|
} | null | undefined;
|
|
524
|
-
previousRiskRating?: string | null | undefined;
|
|
525
525
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
526
526
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
527
527
|
}>, {}> & mongoose.FlatRecord<{
|
|
@@ -597,6 +597,7 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
597
597
|
isAlgbraEligible: boolean;
|
|
598
598
|
selectedProduct?: string | null | undefined;
|
|
599
599
|
product?: string | null | undefined;
|
|
600
|
+
riskRating?: string | null | undefined;
|
|
600
601
|
creditProfile?: {
|
|
601
602
|
companyBankruptcyYes: string;
|
|
602
603
|
companyBankruptcyNo: string;
|
|
@@ -618,7 +619,6 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
618
619
|
riskRating: string;
|
|
619
620
|
statusLid: mongoose.Types.ObjectId;
|
|
620
621
|
} | null | undefined;
|
|
621
|
-
previousRiskRating?: string | null | undefined;
|
|
622
622
|
valuationId?: mongoose.Types.ObjectId | null | undefined;
|
|
623
623
|
valuationReportId?: mongoose.Types.ObjectId | null | undefined;
|
|
624
624
|
}> & {
|
|
@@ -63,7 +63,7 @@ const applicationSchema = new mongoose.Schema({
|
|
|
63
63
|
{ type: mongoose.Schema.Types.ObjectId, ref: "Applicant", default: null }
|
|
64
64
|
],
|
|
65
65
|
isActive: { type: String, default: false },
|
|
66
|
-
|
|
66
|
+
riskRating: { type: String },
|
|
67
67
|
directDebitId: { type: mongoose.Schema.Types.ObjectId, ref: "Application_DirectDebit", default: null },
|
|
68
68
|
creditProfile: creditProfileSchema,
|
|
69
69
|
mortgageId: { type: mongoose.Schema.Types.ObjectId, ref: "Mortgage", default: null },
|