@dynamatix/gb-schemas 2.14.5 → 2.14.6
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-large-exposure.model.d.ts +6 -6
- package/dist/applicants/applicant-large-exposure.model.js +1 -1
- package/dist/applications/application-valuation.model.d.ts +0 -147
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +0 -1
- package/package.json +1 -1
|
@@ -128,7 +128,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
|
|
|
128
128
|
} | null | undefined;
|
|
129
129
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
130
130
|
isConfirmed?: unknown;
|
|
131
|
-
documentId?:
|
|
131
|
+
documentId?: unknown;
|
|
132
132
|
existingExposure?: {
|
|
133
133
|
validators: mongoose.Types.DocumentArray<{
|
|
134
134
|
type?: unknown;
|
|
@@ -326,7 +326,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
|
|
|
326
326
|
} | null | undefined;
|
|
327
327
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
328
328
|
isConfirmed?: unknown;
|
|
329
|
-
documentId?:
|
|
329
|
+
documentId?: unknown;
|
|
330
330
|
existingExposure?: {
|
|
331
331
|
validators: mongoose.Types.DocumentArray<{
|
|
332
332
|
type?: unknown;
|
|
@@ -524,7 +524,7 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
|
|
|
524
524
|
} | null | undefined;
|
|
525
525
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
526
526
|
isConfirmed?: unknown;
|
|
527
|
-
documentId?:
|
|
527
|
+
documentId?: unknown;
|
|
528
528
|
existingExposure?: {
|
|
529
529
|
validators: mongoose.Types.DocumentArray<{
|
|
530
530
|
type?: unknown;
|
|
@@ -634,30 +634,30 @@ declare const ApplicantLargeExposureModel: mongoose.Model<{
|
|
|
634
634
|
} & {
|
|
635
635
|
applicantId: mongoose.Types.ObjectId;
|
|
636
636
|
isConfirmed: boolean;
|
|
637
|
-
documentId: mongoose.Types.ObjectId;
|
|
638
637
|
existingExposure: Pound;
|
|
639
638
|
inFlightExposure: Pound;
|
|
640
639
|
creditConductLid: mongoose.Types.ObjectId;
|
|
640
|
+
documentId?: mongoose.Types.ObjectId | null | undefined;
|
|
641
641
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
642
642
|
createdAt: NativeDate;
|
|
643
643
|
updatedAt: NativeDate;
|
|
644
644
|
} & {
|
|
645
645
|
applicantId: mongoose.Types.ObjectId;
|
|
646
646
|
isConfirmed: boolean;
|
|
647
|
-
documentId: mongoose.Types.ObjectId;
|
|
648
647
|
existingExposure: Pound;
|
|
649
648
|
inFlightExposure: Pound;
|
|
650
649
|
creditConductLid: mongoose.Types.ObjectId;
|
|
650
|
+
documentId?: mongoose.Types.ObjectId | null | undefined;
|
|
651
651
|
}>, {}> & mongoose.FlatRecord<{
|
|
652
652
|
createdAt: NativeDate;
|
|
653
653
|
updatedAt: NativeDate;
|
|
654
654
|
} & {
|
|
655
655
|
applicantId: mongoose.Types.ObjectId;
|
|
656
656
|
isConfirmed: boolean;
|
|
657
|
-
documentId: mongoose.Types.ObjectId;
|
|
658
657
|
existingExposure: Pound;
|
|
659
658
|
inFlightExposure: Pound;
|
|
660
659
|
creditConductLid: mongoose.Types.ObjectId;
|
|
660
|
+
documentId?: mongoose.Types.ObjectId | null | undefined;
|
|
661
661
|
}> & {
|
|
662
662
|
_id: mongoose.Types.ObjectId;
|
|
663
663
|
} & {
|
|
@@ -4,7 +4,7 @@ import { Pound, formatPound } from "../value-objects/pound";
|
|
|
4
4
|
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
5
5
|
const applicantLargeExposureSchema = new mongoose.Schema({
|
|
6
6
|
applicantId: { type: mongoose.Schema.Types.ObjectId, ref: "Applicant", required: true },
|
|
7
|
-
documentId: { type: mongoose.Schema.Types.ObjectId, ref: "Document"
|
|
7
|
+
documentId: { type: mongoose.Schema.Types.ObjectId, ref: "Document" },
|
|
8
8
|
existingExposure: { type: Pound, default: 0.00, get: formatPound },
|
|
9
9
|
inFlightExposure: { type: Pound, default: 0.00, get: formatPound },
|
|
10
10
|
creditConductLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
|
|
@@ -252,54 +252,6 @@ 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;
|
|
303
255
|
HasLift?: unknown;
|
|
304
256
|
PropertyBuiltType?: unknown;
|
|
305
257
|
AgeofProperty?: unknown;
|
|
@@ -636,54 +588,6 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
636
588
|
inspectionDate?: unknown;
|
|
637
589
|
valuationBookedDate?: unknown;
|
|
638
590
|
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;
|
|
687
591
|
HasLift?: unknown;
|
|
688
592
|
PropertyBuiltType?: unknown;
|
|
689
593
|
AgeofProperty?: unknown;
|
|
@@ -1020,54 +924,6 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1020
924
|
inspectionDate?: unknown;
|
|
1021
925
|
valuationBookedDate?: unknown;
|
|
1022
926
|
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;
|
|
1071
927
|
HasLift?: unknown;
|
|
1072
928
|
PropertyBuiltType?: unknown;
|
|
1073
929
|
AgeofProperty?: unknown;
|
|
@@ -1215,7 +1071,6 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1215
1071
|
inspectionDate: string;
|
|
1216
1072
|
valuationBookedDate: string;
|
|
1217
1073
|
valuationFeePaidDate: string;
|
|
1218
|
-
manualValuationFeeAmount: Pound;
|
|
1219
1074
|
HasLift: boolean;
|
|
1220
1075
|
PropertyBuiltType: string;
|
|
1221
1076
|
DateandTimeOfPropertyBuilt: string;
|
|
@@ -1270,7 +1125,6 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1270
1125
|
inspectionDate: string;
|
|
1271
1126
|
valuationBookedDate: string;
|
|
1272
1127
|
valuationFeePaidDate: string;
|
|
1273
|
-
manualValuationFeeAmount: Pound;
|
|
1274
1128
|
HasLift: boolean;
|
|
1275
1129
|
PropertyBuiltType: string;
|
|
1276
1130
|
DateandTimeOfPropertyBuilt: string;
|
|
@@ -1325,7 +1179,6 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
1325
1179
|
inspectionDate: string;
|
|
1326
1180
|
valuationBookedDate: string;
|
|
1327
1181
|
valuationFeePaidDate: string;
|
|
1328
|
-
manualValuationFeeAmount: Pound;
|
|
1329
1182
|
HasLift: boolean;
|
|
1330
1183
|
PropertyBuiltType: string;
|
|
1331
1184
|
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;AA0E5D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0D,CAAC;AAC1F,eAAe,yBAAyB,CAAC"}
|
|
@@ -29,7 +29,6 @@ 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 },
|
|
33
32
|
addressPostCode: { type: String, default: "" },
|
|
34
33
|
addressLine1: { type: String, default: "" },
|
|
35
34
|
addressLine2: { type: String, default: "" },
|