@dynamatix/gb-schemas 2.7.2 → 2.7.3
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/README.md +308 -308
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applications/application-valuation.model.d.ts +285 -0
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.js +25 -1
- package/package.json +87 -87
- 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.model.d.ts +0 -160
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- 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/applications/application-document.model.d.ts +0 -158
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/document.model.d.ts +0 -158
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/shared/document-type-model.d.ts +0 -48
- package/dist/shared/document-type-model.d.ts.map +0 -1
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
import mongoose from "mongoose";
|
|
30
30
|
import { Pound } from "../value-objects/pound";
|
|
31
31
|
declare const ApplicationValuationModel: mongoose.Model<{
|
|
32
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
32
33
|
version?: unknown;
|
|
33
34
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
34
35
|
dateOfValuationReceived?: unknown;
|
|
@@ -133,6 +134,14 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
133
134
|
valuationRequestedDate?: unknown;
|
|
134
135
|
valuationScheduledDate?: unknown;
|
|
135
136
|
valuationSurveyorDetails?: unknown;
|
|
137
|
+
AccountNumber?: unknown;
|
|
138
|
+
addressPostCode?: unknown;
|
|
139
|
+
addressLine1?: unknown;
|
|
140
|
+
addressLine2?: unknown;
|
|
141
|
+
addressLine3?: unknown;
|
|
142
|
+
addressCity?: unknown;
|
|
143
|
+
addressCountryLid?: unknown;
|
|
144
|
+
sortCode?: unknown;
|
|
136
145
|
epcScore?: unknown;
|
|
137
146
|
amount?: {
|
|
138
147
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -241,7 +250,70 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
241
250
|
pvqClosedDate?: unknown;
|
|
242
251
|
inspectionDate?: unknown;
|
|
243
252
|
valuationFeePaidDate?: unknown;
|
|
253
|
+
HasLift?: unknown;
|
|
254
|
+
PropertyBuiltType?: unknown;
|
|
255
|
+
AgeofProperty?: unknown;
|
|
256
|
+
DateandTimeOfPropertyBuilt?: unknown;
|
|
257
|
+
DateofReportReceived?: unknown;
|
|
258
|
+
ReporterMailId?: unknown;
|
|
259
|
+
ApplicantNumber?: unknown;
|
|
260
|
+
Numberofbedrooms?: unknown;
|
|
261
|
+
NumberofLivingRooms?: unknown;
|
|
262
|
+
TotalRooms?: unknown;
|
|
263
|
+
HealthOfProerty?: unknown;
|
|
264
|
+
TotalAmount?: {
|
|
265
|
+
validators: mongoose.Types.DocumentArray<{
|
|
266
|
+
type?: unknown;
|
|
267
|
+
message?: unknown;
|
|
268
|
+
validator?: unknown;
|
|
269
|
+
reason?: unknown;
|
|
270
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
271
|
+
type?: unknown;
|
|
272
|
+
message?: unknown;
|
|
273
|
+
validator?: unknown;
|
|
274
|
+
reason?: unknown;
|
|
275
|
+
}> & {
|
|
276
|
+
type?: unknown;
|
|
277
|
+
message?: unknown;
|
|
278
|
+
validator?: unknown;
|
|
279
|
+
reason?: unknown;
|
|
280
|
+
}>;
|
|
281
|
+
get?: {} | null | undefined;
|
|
282
|
+
schema?: {
|
|
283
|
+
[x: string]: unknown;
|
|
284
|
+
} | null | undefined;
|
|
285
|
+
set?: {} | null | undefined;
|
|
286
|
+
validate?: {} | null | undefined;
|
|
287
|
+
index?: {} | null | undefined;
|
|
288
|
+
default?: {} | null | undefined;
|
|
289
|
+
text?: {} | null | undefined;
|
|
290
|
+
unique?: {} | null | undefined;
|
|
291
|
+
sparse?: {} | null | undefined;
|
|
292
|
+
cast?: {} | null | undefined;
|
|
293
|
+
required?: {} | null | undefined;
|
|
294
|
+
ref?: {} | null | undefined;
|
|
295
|
+
select?: {} | null | undefined;
|
|
296
|
+
immutable?: {} | null | undefined;
|
|
297
|
+
transform?: {} | null | undefined;
|
|
298
|
+
options?: {
|
|
299
|
+
[x: string]: unknown;
|
|
300
|
+
} | null | undefined;
|
|
301
|
+
OptionsConstructor?: {
|
|
302
|
+
[x: string]: unknown;
|
|
303
|
+
} | null | undefined;
|
|
304
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
305
|
+
instance?: unknown;
|
|
306
|
+
isRequired?: unknown;
|
|
307
|
+
path?: unknown;
|
|
308
|
+
toJSONSchema?: {} | null | undefined;
|
|
309
|
+
validateAll?: {} | null | undefined;
|
|
310
|
+
defaultOptions?: unknown;
|
|
311
|
+
} | null | undefined;
|
|
312
|
+
ReportObservations?: unknown;
|
|
313
|
+
AlternateNumber?: unknown;
|
|
314
|
+
numberOfKitchen?: unknown;
|
|
244
315
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
316
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
245
317
|
version?: unknown;
|
|
246
318
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
247
319
|
dateOfValuationReceived?: unknown;
|
|
@@ -346,6 +418,14 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
346
418
|
valuationRequestedDate?: unknown;
|
|
347
419
|
valuationScheduledDate?: unknown;
|
|
348
420
|
valuationSurveyorDetails?: unknown;
|
|
421
|
+
AccountNumber?: unknown;
|
|
422
|
+
addressPostCode?: unknown;
|
|
423
|
+
addressLine1?: unknown;
|
|
424
|
+
addressLine2?: unknown;
|
|
425
|
+
addressLine3?: unknown;
|
|
426
|
+
addressCity?: unknown;
|
|
427
|
+
addressCountryLid?: unknown;
|
|
428
|
+
sortCode?: unknown;
|
|
349
429
|
epcScore?: unknown;
|
|
350
430
|
amount?: {
|
|
351
431
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -454,7 +534,70 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
454
534
|
pvqClosedDate?: unknown;
|
|
455
535
|
inspectionDate?: unknown;
|
|
456
536
|
valuationFeePaidDate?: unknown;
|
|
537
|
+
HasLift?: unknown;
|
|
538
|
+
PropertyBuiltType?: unknown;
|
|
539
|
+
AgeofProperty?: unknown;
|
|
540
|
+
DateandTimeOfPropertyBuilt?: unknown;
|
|
541
|
+
DateofReportReceived?: unknown;
|
|
542
|
+
ReporterMailId?: unknown;
|
|
543
|
+
ApplicantNumber?: unknown;
|
|
544
|
+
Numberofbedrooms?: unknown;
|
|
545
|
+
NumberofLivingRooms?: unknown;
|
|
546
|
+
TotalRooms?: unknown;
|
|
547
|
+
HealthOfProerty?: unknown;
|
|
548
|
+
TotalAmount?: {
|
|
549
|
+
validators: mongoose.Types.DocumentArray<{
|
|
550
|
+
type?: unknown;
|
|
551
|
+
message?: unknown;
|
|
552
|
+
validator?: unknown;
|
|
553
|
+
reason?: unknown;
|
|
554
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
555
|
+
type?: unknown;
|
|
556
|
+
message?: unknown;
|
|
557
|
+
validator?: unknown;
|
|
558
|
+
reason?: unknown;
|
|
559
|
+
}> & {
|
|
560
|
+
type?: unknown;
|
|
561
|
+
message?: unknown;
|
|
562
|
+
validator?: unknown;
|
|
563
|
+
reason?: unknown;
|
|
564
|
+
}>;
|
|
565
|
+
get?: {} | null | undefined;
|
|
566
|
+
schema?: {
|
|
567
|
+
[x: string]: unknown;
|
|
568
|
+
} | null | undefined;
|
|
569
|
+
set?: {} | null | undefined;
|
|
570
|
+
validate?: {} | null | undefined;
|
|
571
|
+
index?: {} | null | undefined;
|
|
572
|
+
default?: {} | null | undefined;
|
|
573
|
+
text?: {} | null | undefined;
|
|
574
|
+
unique?: {} | null | undefined;
|
|
575
|
+
sparse?: {} | null | undefined;
|
|
576
|
+
cast?: {} | null | undefined;
|
|
577
|
+
required?: {} | null | undefined;
|
|
578
|
+
ref?: {} | null | undefined;
|
|
579
|
+
select?: {} | null | undefined;
|
|
580
|
+
immutable?: {} | null | undefined;
|
|
581
|
+
transform?: {} | null | undefined;
|
|
582
|
+
options?: {
|
|
583
|
+
[x: string]: unknown;
|
|
584
|
+
} | null | undefined;
|
|
585
|
+
OptionsConstructor?: {
|
|
586
|
+
[x: string]: unknown;
|
|
587
|
+
} | null | undefined;
|
|
588
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
589
|
+
instance?: unknown;
|
|
590
|
+
isRequired?: unknown;
|
|
591
|
+
path?: unknown;
|
|
592
|
+
toJSONSchema?: {} | null | undefined;
|
|
593
|
+
validateAll?: {} | null | undefined;
|
|
594
|
+
defaultOptions?: unknown;
|
|
595
|
+
} | null | undefined;
|
|
596
|
+
ReportObservations?: unknown;
|
|
597
|
+
AlternateNumber?: unknown;
|
|
598
|
+
numberOfKitchen?: unknown;
|
|
457
599
|
}, {}> & {
|
|
600
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
458
601
|
version?: unknown;
|
|
459
602
|
applicationId?: mongoose.Types.ObjectId | null | undefined;
|
|
460
603
|
dateOfValuationReceived?: unknown;
|
|
@@ -559,6 +702,14 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
559
702
|
valuationRequestedDate?: unknown;
|
|
560
703
|
valuationScheduledDate?: unknown;
|
|
561
704
|
valuationSurveyorDetails?: unknown;
|
|
705
|
+
AccountNumber?: unknown;
|
|
706
|
+
addressPostCode?: unknown;
|
|
707
|
+
addressLine1?: unknown;
|
|
708
|
+
addressLine2?: unknown;
|
|
709
|
+
addressLine3?: unknown;
|
|
710
|
+
addressCity?: unknown;
|
|
711
|
+
addressCountryLid?: unknown;
|
|
712
|
+
sortCode?: unknown;
|
|
562
713
|
epcScore?: unknown;
|
|
563
714
|
amount?: {
|
|
564
715
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -667,6 +818,68 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
667
818
|
pvqClosedDate?: unknown;
|
|
668
819
|
inspectionDate?: unknown;
|
|
669
820
|
valuationFeePaidDate?: unknown;
|
|
821
|
+
HasLift?: unknown;
|
|
822
|
+
PropertyBuiltType?: unknown;
|
|
823
|
+
AgeofProperty?: unknown;
|
|
824
|
+
DateandTimeOfPropertyBuilt?: unknown;
|
|
825
|
+
DateofReportReceived?: unknown;
|
|
826
|
+
ReporterMailId?: unknown;
|
|
827
|
+
ApplicantNumber?: unknown;
|
|
828
|
+
Numberofbedrooms?: unknown;
|
|
829
|
+
NumberofLivingRooms?: unknown;
|
|
830
|
+
TotalRooms?: unknown;
|
|
831
|
+
HealthOfProerty?: unknown;
|
|
832
|
+
TotalAmount?: {
|
|
833
|
+
validators: mongoose.Types.DocumentArray<{
|
|
834
|
+
type?: unknown;
|
|
835
|
+
message?: unknown;
|
|
836
|
+
validator?: unknown;
|
|
837
|
+
reason?: unknown;
|
|
838
|
+
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId, any, {
|
|
839
|
+
type?: unknown;
|
|
840
|
+
message?: unknown;
|
|
841
|
+
validator?: unknown;
|
|
842
|
+
reason?: unknown;
|
|
843
|
+
}> & {
|
|
844
|
+
type?: unknown;
|
|
845
|
+
message?: unknown;
|
|
846
|
+
validator?: unknown;
|
|
847
|
+
reason?: unknown;
|
|
848
|
+
}>;
|
|
849
|
+
get?: {} | null | undefined;
|
|
850
|
+
schema?: {
|
|
851
|
+
[x: string]: unknown;
|
|
852
|
+
} | null | undefined;
|
|
853
|
+
set?: {} | null | undefined;
|
|
854
|
+
validate?: {} | null | undefined;
|
|
855
|
+
index?: {} | null | undefined;
|
|
856
|
+
default?: {} | null | undefined;
|
|
857
|
+
text?: {} | null | undefined;
|
|
858
|
+
unique?: {} | null | undefined;
|
|
859
|
+
sparse?: {} | null | undefined;
|
|
860
|
+
cast?: {} | null | undefined;
|
|
861
|
+
required?: {} | null | undefined;
|
|
862
|
+
ref?: {} | null | undefined;
|
|
863
|
+
select?: {} | null | undefined;
|
|
864
|
+
immutable?: {} | null | undefined;
|
|
865
|
+
transform?: {} | null | undefined;
|
|
866
|
+
options?: {
|
|
867
|
+
[x: string]: unknown;
|
|
868
|
+
} | null | undefined;
|
|
869
|
+
OptionsConstructor?: {
|
|
870
|
+
[x: string]: unknown;
|
|
871
|
+
} | null | undefined;
|
|
872
|
+
getEmbeddedSchemaType?: {} | null | undefined;
|
|
873
|
+
instance?: unknown;
|
|
874
|
+
isRequired?: unknown;
|
|
875
|
+
path?: unknown;
|
|
876
|
+
toJSONSchema?: {} | null | undefined;
|
|
877
|
+
validateAll?: {} | null | undefined;
|
|
878
|
+
defaultOptions?: unknown;
|
|
879
|
+
} | null | undefined;
|
|
880
|
+
ReportObservations?: unknown;
|
|
881
|
+
AlternateNumber?: unknown;
|
|
882
|
+
numberOfKitchen?: unknown;
|
|
670
883
|
} & {
|
|
671
884
|
_id: mongoose.Types.ObjectId;
|
|
672
885
|
} & {
|
|
@@ -682,6 +895,13 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
682
895
|
valuationRequestedDate: string;
|
|
683
896
|
valuationScheduledDate: string;
|
|
684
897
|
valuationSurveyorDetails: string;
|
|
898
|
+
AccountNumber: string;
|
|
899
|
+
addressPostCode: string;
|
|
900
|
+
addressLine1: string;
|
|
901
|
+
addressLine2: string;
|
|
902
|
+
addressLine3: string;
|
|
903
|
+
addressCity: string;
|
|
904
|
+
sortCode: string;
|
|
685
905
|
amount: Pound;
|
|
686
906
|
estimatedRentalValue: Pound;
|
|
687
907
|
instructionId: string;
|
|
@@ -693,9 +913,26 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
693
913
|
pvqClosedDate: string;
|
|
694
914
|
inspectionDate: string;
|
|
695
915
|
valuationFeePaidDate: string;
|
|
916
|
+
HasLift: boolean;
|
|
917
|
+
PropertyBuiltType: string;
|
|
918
|
+
DateandTimeOfPropertyBuilt: string;
|
|
919
|
+
DateofReportReceived: string;
|
|
920
|
+
ReporterMailId: string;
|
|
921
|
+
ApplicantNumber: string;
|
|
922
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
923
|
+
HealthOfProerty: string;
|
|
924
|
+
TotalAmount: Pound;
|
|
925
|
+
ReportObservations: string;
|
|
926
|
+
AlternateNumber: string;
|
|
927
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
696
928
|
epcScore?: number | null | undefined;
|
|
697
929
|
epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
|
|
698
930
|
squareMetres?: string | null | undefined;
|
|
931
|
+
AgeofProperty?: number | null | undefined;
|
|
932
|
+
Numberofbedrooms?: number | null | undefined;
|
|
933
|
+
NumberofLivingRooms?: number | null | undefined;
|
|
934
|
+
TotalRooms?: number | null | undefined;
|
|
935
|
+
numberOfKitchen?: number | null | undefined;
|
|
699
936
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
700
937
|
version: string;
|
|
701
938
|
applicationId: mongoose.Types.ObjectId;
|
|
@@ -707,6 +944,13 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
707
944
|
valuationRequestedDate: string;
|
|
708
945
|
valuationScheduledDate: string;
|
|
709
946
|
valuationSurveyorDetails: string;
|
|
947
|
+
AccountNumber: string;
|
|
948
|
+
addressPostCode: string;
|
|
949
|
+
addressLine1: string;
|
|
950
|
+
addressLine2: string;
|
|
951
|
+
addressLine3: string;
|
|
952
|
+
addressCity: string;
|
|
953
|
+
sortCode: string;
|
|
710
954
|
amount: Pound;
|
|
711
955
|
estimatedRentalValue: Pound;
|
|
712
956
|
instructionId: string;
|
|
@@ -718,9 +962,26 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
718
962
|
pvqClosedDate: string;
|
|
719
963
|
inspectionDate: string;
|
|
720
964
|
valuationFeePaidDate: string;
|
|
965
|
+
HasLift: boolean;
|
|
966
|
+
PropertyBuiltType: string;
|
|
967
|
+
DateandTimeOfPropertyBuilt: string;
|
|
968
|
+
DateofReportReceived: string;
|
|
969
|
+
ReporterMailId: string;
|
|
970
|
+
ApplicantNumber: string;
|
|
971
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
972
|
+
HealthOfProerty: string;
|
|
973
|
+
TotalAmount: Pound;
|
|
974
|
+
ReportObservations: string;
|
|
975
|
+
AlternateNumber: string;
|
|
976
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
721
977
|
epcScore?: number | null | undefined;
|
|
722
978
|
epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
|
|
723
979
|
squareMetres?: string | null | undefined;
|
|
980
|
+
AgeofProperty?: number | null | undefined;
|
|
981
|
+
Numberofbedrooms?: number | null | undefined;
|
|
982
|
+
NumberofLivingRooms?: number | null | undefined;
|
|
983
|
+
TotalRooms?: number | null | undefined;
|
|
984
|
+
numberOfKitchen?: number | null | undefined;
|
|
724
985
|
}>, {}> & mongoose.FlatRecord<{
|
|
725
986
|
version: string;
|
|
726
987
|
applicationId: mongoose.Types.ObjectId;
|
|
@@ -732,6 +993,13 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
732
993
|
valuationRequestedDate: string;
|
|
733
994
|
valuationScheduledDate: string;
|
|
734
995
|
valuationSurveyorDetails: string;
|
|
996
|
+
AccountNumber: string;
|
|
997
|
+
addressPostCode: string;
|
|
998
|
+
addressLine1: string;
|
|
999
|
+
addressLine2: string;
|
|
1000
|
+
addressLine3: string;
|
|
1001
|
+
addressCity: string;
|
|
1002
|
+
sortCode: string;
|
|
735
1003
|
amount: Pound;
|
|
736
1004
|
estimatedRentalValue: Pound;
|
|
737
1005
|
instructionId: string;
|
|
@@ -743,9 +1011,26 @@ declare const ApplicationValuationModel: mongoose.Model<{
|
|
|
743
1011
|
pvqClosedDate: string;
|
|
744
1012
|
inspectionDate: string;
|
|
745
1013
|
valuationFeePaidDate: string;
|
|
1014
|
+
HasLift: boolean;
|
|
1015
|
+
PropertyBuiltType: string;
|
|
1016
|
+
DateandTimeOfPropertyBuilt: string;
|
|
1017
|
+
DateofReportReceived: string;
|
|
1018
|
+
ReporterMailId: string;
|
|
1019
|
+
ApplicantNumber: string;
|
|
1020
|
+
IndustryAoundProperty: mongoose.Types.ObjectId[];
|
|
1021
|
+
HealthOfProerty: string;
|
|
1022
|
+
TotalAmount: Pound;
|
|
1023
|
+
ReportObservations: string;
|
|
1024
|
+
AlternateNumber: string;
|
|
1025
|
+
addressCountryLid?: mongoose.Types.ObjectId | null | undefined;
|
|
746
1026
|
epcScore?: number | null | undefined;
|
|
747
1027
|
epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
|
|
748
1028
|
squareMetres?: string | null | undefined;
|
|
1029
|
+
AgeofProperty?: number | null | undefined;
|
|
1030
|
+
Numberofbedrooms?: number | null | undefined;
|
|
1031
|
+
NumberofLivingRooms?: number | null | undefined;
|
|
1032
|
+
TotalRooms?: number | null | undefined;
|
|
1033
|
+
numberOfKitchen?: number | null | undefined;
|
|
749
1034
|
}> & {
|
|
750
1035
|
_id: mongoose.Types.ObjectId;
|
|
751
1036
|
} & {
|
|
@@ -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;AAqE5D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0D,CAAC;AAC1F,eAAe,yBAAyB,CAAC"}
|
|
@@ -26,7 +26,31 @@ const valuationSchema = new mongoose.Schema({
|
|
|
26
26
|
reinstatementAmount: { type: Pound, default: 0.00, get: formatPound },
|
|
27
27
|
valuationNotes: { type: String, default: "" },
|
|
28
28
|
valuationAccepted: { type: String, default: null },
|
|
29
|
-
valuationFeePaidDate: { type: String, default: null }
|
|
29
|
+
valuationFeePaidDate: { type: String, default: null },
|
|
30
|
+
addressPostCode: { type: String, default: "" },
|
|
31
|
+
addressLine1: { type: String, default: "" },
|
|
32
|
+
addressLine2: { type: String, default: "" },
|
|
33
|
+
addressLine3: { type: String, default: "" },
|
|
34
|
+
addressCity: { type: String, default: "" },
|
|
35
|
+
addressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" },
|
|
36
|
+
HasLift: { type: Boolean, default: false },
|
|
37
|
+
PropertyBuiltType: { type: String, default: "" },
|
|
38
|
+
AccountNumber: { type: String, default: "" },
|
|
39
|
+
sortCode: { type: String, default: "" },
|
|
40
|
+
AgeofProperty: { type: Number },
|
|
41
|
+
DateandTimeOfPropertyBuilt: { type: String, default: null },
|
|
42
|
+
DateofReportReceived: { type: String, default: null },
|
|
43
|
+
ReporterMailId: { type: String, default: "" },
|
|
44
|
+
ApplicantNumber: { type: String, default: "" },
|
|
45
|
+
IndustryAoundProperty: [{ type: mongoose.Schema.Types.ObjectId, ref: "Lookup" }],
|
|
46
|
+
Numberofbedrooms: { type: Number },
|
|
47
|
+
NumberofLivingRooms: { type: Number },
|
|
48
|
+
TotalRooms: { type: Number },
|
|
49
|
+
HealthOfProerty: { type: String, default: "" },
|
|
50
|
+
TotalAmount: { type: Pound, default: 0.00, get: formatPound },
|
|
51
|
+
ReportObservations: { type: String, default: "" },
|
|
52
|
+
AlternateNumber: { type: String, default: "" },
|
|
53
|
+
numberOfKitchen: { type: Number },
|
|
30
54
|
});
|
|
31
55
|
// virtual property 'lendingType'
|
|
32
56
|
valuationSchema.virtual("lendingType").get(function () {
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "2.7.
|
|
4
|
-
"description": "All the schemas for gatehouse bank back-end .",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc",
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
-
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
-
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
-
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
-
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
-
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
-
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
-
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
-
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
-
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
-
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
-
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
-
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
-
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
-
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
-
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
-
},
|
|
32
|
-
"author": "Dynamatix",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@dynamatix/cat-shared": "^0.0.165",
|
|
40
|
-
"dotenv": "^16.4.5",
|
|
41
|
-
"mongodb": "^6.14.2",
|
|
42
|
-
"mongoose": "^8.9.5"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"dist"
|
|
46
|
-
],
|
|
47
|
-
"exports": {
|
|
48
|
-
".": {
|
|
49
|
-
"import": "./dist/index.js",
|
|
50
|
-
"types": "./dist/index.d.ts"
|
|
51
|
-
},
|
|
52
|
-
"./applications": {
|
|
53
|
-
"import": "./dist/applications/index.js",
|
|
54
|
-
"types": "./dist/applications/index.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./applicants": {
|
|
57
|
-
"import": "./dist/applicants/index.js",
|
|
58
|
-
"types": "./dist/applicants/index.d.ts"
|
|
59
|
-
},
|
|
60
|
-
"./shared": {
|
|
61
|
-
"import": "./dist/shared/index.js",
|
|
62
|
-
"types": "./dist/shared/index.d.ts"
|
|
63
|
-
},
|
|
64
|
-
"./properties": {
|
|
65
|
-
"import": "./dist/properties/index.js",
|
|
66
|
-
"types": "./dist/properties/index.d.ts"
|
|
67
|
-
},
|
|
68
|
-
"./users": {
|
|
69
|
-
"import": "./dist/users/index.js",
|
|
70
|
-
"types": "./dist/users/index.d.ts"
|
|
71
|
-
},
|
|
72
|
-
"./product-catalogues": {
|
|
73
|
-
"import": "./dist/product-catalogues/index.js",
|
|
74
|
-
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
-
},
|
|
76
|
-
"./underwriter": {
|
|
77
|
-
"import": "./dist/underwriter/index.js",
|
|
78
|
-
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"devDependencies": {
|
|
82
|
-
"@types/mongoose": "^5.11.96",
|
|
83
|
-
"@types/node": "^22.14.0",
|
|
84
|
-
"ts-node": "^10.9.2",
|
|
85
|
-
"typescript": "^5.3.3"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamatix/gb-schemas",
|
|
3
|
+
"version": "2.7.3",
|
|
4
|
+
"description": "All the schemas for gatehouse bank back-end .",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
+
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
+
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
+
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
+
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
+
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
+
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
+
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
+
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
+
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
+
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
+
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
+
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
+
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
+
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
+
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
+
},
|
|
32
|
+
"author": "Dynamatix",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@dynamatix/cat-shared": "^0.0.165",
|
|
40
|
+
"dotenv": "^16.4.5",
|
|
41
|
+
"mongodb": "^6.14.2",
|
|
42
|
+
"mongoose": "^8.9.5"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": "./dist/index.js",
|
|
50
|
+
"types": "./dist/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./applications": {
|
|
53
|
+
"import": "./dist/applications/index.js",
|
|
54
|
+
"types": "./dist/applications/index.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./applicants": {
|
|
57
|
+
"import": "./dist/applicants/index.js",
|
|
58
|
+
"types": "./dist/applicants/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./shared": {
|
|
61
|
+
"import": "./dist/shared/index.js",
|
|
62
|
+
"types": "./dist/shared/index.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./properties": {
|
|
65
|
+
"import": "./dist/properties/index.js",
|
|
66
|
+
"types": "./dist/properties/index.d.ts"
|
|
67
|
+
},
|
|
68
|
+
"./users": {
|
|
69
|
+
"import": "./dist/users/index.js",
|
|
70
|
+
"types": "./dist/users/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./product-catalogues": {
|
|
73
|
+
"import": "./dist/product-catalogues/index.js",
|
|
74
|
+
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./underwriter": {
|
|
77
|
+
"import": "./dist/underwriter/index.js",
|
|
78
|
+
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@types/mongoose": "^5.11.96",
|
|
83
|
+
"@types/node": "^22.14.0",
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"typescript": "^5.3.3"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
declare const applicantIncomeSourceSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
4
|
-
incomeFromEmployment?: string | null | undefined;
|
|
5
|
-
incomeFromPension?: string | null | undefined;
|
|
6
|
-
incomeFromProperty?: string | null | undefined;
|
|
7
|
-
incomeFromSavings?: string | null | undefined;
|
|
8
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
9
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
10
|
-
incomeFromEmployment?: string | null | undefined;
|
|
11
|
-
incomeFromPension?: string | null | undefined;
|
|
12
|
-
incomeFromProperty?: string | null | undefined;
|
|
13
|
-
incomeFromSavings?: string | null | undefined;
|
|
14
|
-
}>> & mongoose.FlatRecord<{
|
|
15
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
16
|
-
incomeFromEmployment?: string | null | undefined;
|
|
17
|
-
incomeFromPension?: string | null | undefined;
|
|
18
|
-
incomeFromProperty?: string | null | undefined;
|
|
19
|
-
incomeFromSavings?: string | null | undefined;
|
|
20
|
-
}> & {
|
|
21
|
-
_id: mongoose.Types.ObjectId;
|
|
22
|
-
} & {
|
|
23
|
-
__v: number;
|
|
24
|
-
}>;
|
|
25
|
-
export default applicantIncomeSourceSchema;
|
|
26
|
-
//# sourceMappingURL=applicant-income-source.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income-source.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-source.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|