@dynamatix/gb-schemas 1.2.37 → 1.2.40
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-company-model.d.ts +33 -33
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-company-model.js +63 -23
- package/dist/applications/application-credit-profile.model.d.ts +12 -12
- package/dist/applications/application.model.d.ts +24 -24
- package/dist/properties/property.model.js +1 -1
- package/package.json +1 -1
|
@@ -336,14 +336,14 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
336
336
|
companySecuredArrears?: unknown;
|
|
337
337
|
companyUnsecuredArrears?: unknown;
|
|
338
338
|
companyBankruptcy?: unknown;
|
|
339
|
-
companyBankruptcyNo?: unknown;
|
|
340
339
|
companyBankruptcyYes?: unknown;
|
|
341
|
-
|
|
340
|
+
companyBankruptcyNo?: unknown;
|
|
342
341
|
companyCCJInLastThreeYearYes?: unknown;
|
|
343
|
-
|
|
342
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
344
343
|
companyDefaultsInLastYearYes?: unknown;
|
|
345
|
-
|
|
344
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
346
345
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
346
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
347
347
|
doYouKnowRegisteredNumber?: unknown;
|
|
348
348
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
349
349
|
sicCodes: unknown[];
|
|
@@ -655,14 +655,14 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
655
655
|
companySecuredArrears?: unknown;
|
|
656
656
|
companyUnsecuredArrears?: unknown;
|
|
657
657
|
companyBankruptcy?: unknown;
|
|
658
|
-
companyBankruptcyNo?: unknown;
|
|
659
658
|
companyBankruptcyYes?: unknown;
|
|
660
|
-
|
|
659
|
+
companyBankruptcyNo?: unknown;
|
|
661
660
|
companyCCJInLastThreeYearYes?: unknown;
|
|
662
|
-
|
|
661
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
663
662
|
companyDefaultsInLastYearYes?: unknown;
|
|
664
|
-
|
|
663
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
665
664
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
665
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
666
666
|
doYouKnowRegisteredNumber?: unknown;
|
|
667
667
|
}> & {
|
|
668
668
|
sicCodes: unknown[];
|
|
@@ -974,20 +974,22 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
974
974
|
companySecuredArrears?: unknown;
|
|
975
975
|
companyUnsecuredArrears?: unknown;
|
|
976
976
|
companyBankruptcy?: unknown;
|
|
977
|
-
companyBankruptcyNo?: unknown;
|
|
978
977
|
companyBankruptcyYes?: unknown;
|
|
979
|
-
|
|
978
|
+
companyBankruptcyNo?: unknown;
|
|
980
979
|
companyCCJInLastThreeYearYes?: unknown;
|
|
981
|
-
|
|
980
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
982
981
|
companyDefaultsInLastYearYes?: unknown;
|
|
983
|
-
|
|
982
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
984
983
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
984
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
985
985
|
doYouKnowRegisteredNumber?: unknown;
|
|
986
986
|
} & {
|
|
987
987
|
_id: mongoose.Types.ObjectId;
|
|
988
988
|
} & {
|
|
989
989
|
__v: number;
|
|
990
990
|
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
991
|
+
tradingSince: string;
|
|
992
|
+
yearEnd: string;
|
|
991
993
|
turnoverYear1: Pound;
|
|
992
994
|
netProfitYear1: Pound;
|
|
993
995
|
turnoverYear2: Pound;
|
|
@@ -997,10 +999,8 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
997
999
|
sicCodes: string[];
|
|
998
1000
|
epc: string;
|
|
999
1001
|
remainingLease: string;
|
|
1002
|
+
dateOfIncorporation: string;
|
|
1000
1003
|
applicationId?: unknown;
|
|
1001
|
-
tradingSince?: NativeDate | null | undefined;
|
|
1002
|
-
yearEnd?: NativeDate | null | undefined;
|
|
1003
|
-
dateOfIncorporation?: NativeDate | null | undefined;
|
|
1004
1004
|
pageValidFlag?: unknown;
|
|
1005
1005
|
registeredName?: unknown;
|
|
1006
1006
|
businessTypeLid?: unknown;
|
|
@@ -1021,16 +1021,18 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1021
1021
|
companySecuredArrears?: unknown;
|
|
1022
1022
|
companyUnsecuredArrears?: unknown;
|
|
1023
1023
|
companyBankruptcy?: unknown;
|
|
1024
|
-
companyBankruptcyNo?: unknown;
|
|
1025
1024
|
companyBankruptcyYes?: unknown;
|
|
1026
|
-
|
|
1025
|
+
companyBankruptcyNo?: unknown;
|
|
1027
1026
|
companyCCJInLastThreeYearYes?: unknown;
|
|
1028
|
-
|
|
1027
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
1029
1028
|
companyDefaultsInLastYearYes?: unknown;
|
|
1030
|
-
|
|
1029
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
1031
1030
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
1031
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
1032
1032
|
doYouKnowRegisteredNumber?: unknown;
|
|
1033
1033
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
1034
|
+
tradingSince: string;
|
|
1035
|
+
yearEnd: string;
|
|
1034
1036
|
turnoverYear1: Pound;
|
|
1035
1037
|
netProfitYear1: Pound;
|
|
1036
1038
|
turnoverYear2: Pound;
|
|
@@ -1040,10 +1042,8 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1040
1042
|
sicCodes: string[];
|
|
1041
1043
|
epc: string;
|
|
1042
1044
|
remainingLease: string;
|
|
1045
|
+
dateOfIncorporation: string;
|
|
1043
1046
|
applicationId?: unknown;
|
|
1044
|
-
tradingSince?: NativeDate | null | undefined;
|
|
1045
|
-
yearEnd?: NativeDate | null | undefined;
|
|
1046
|
-
dateOfIncorporation?: NativeDate | null | undefined;
|
|
1047
1047
|
pageValidFlag?: unknown;
|
|
1048
1048
|
registeredName?: unknown;
|
|
1049
1049
|
businessTypeLid?: unknown;
|
|
@@ -1064,16 +1064,18 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1064
1064
|
companySecuredArrears?: unknown;
|
|
1065
1065
|
companyUnsecuredArrears?: unknown;
|
|
1066
1066
|
companyBankruptcy?: unknown;
|
|
1067
|
-
companyBankruptcyNo?: unknown;
|
|
1068
1067
|
companyBankruptcyYes?: unknown;
|
|
1069
|
-
|
|
1068
|
+
companyBankruptcyNo?: unknown;
|
|
1070
1069
|
companyCCJInLastThreeYearYes?: unknown;
|
|
1071
|
-
|
|
1070
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
1072
1071
|
companyDefaultsInLastYearYes?: unknown;
|
|
1073
|
-
|
|
1072
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
1074
1073
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
1074
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
1075
1075
|
doYouKnowRegisteredNumber?: unknown;
|
|
1076
1076
|
}>> & mongoose.FlatRecord<{
|
|
1077
|
+
tradingSince: string;
|
|
1078
|
+
yearEnd: string;
|
|
1077
1079
|
turnoverYear1: Pound;
|
|
1078
1080
|
netProfitYear1: Pound;
|
|
1079
1081
|
turnoverYear2: Pound;
|
|
@@ -1083,10 +1085,8 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1083
1085
|
sicCodes: string[];
|
|
1084
1086
|
epc: string;
|
|
1085
1087
|
remainingLease: string;
|
|
1088
|
+
dateOfIncorporation: string;
|
|
1086
1089
|
applicationId?: unknown;
|
|
1087
|
-
tradingSince?: NativeDate | null | undefined;
|
|
1088
|
-
yearEnd?: NativeDate | null | undefined;
|
|
1089
|
-
dateOfIncorporation?: NativeDate | null | undefined;
|
|
1090
1090
|
pageValidFlag?: unknown;
|
|
1091
1091
|
registeredName?: unknown;
|
|
1092
1092
|
businessTypeLid?: unknown;
|
|
@@ -1107,14 +1107,14 @@ declare const ApplicationCompanyModel: mongoose.Model<{
|
|
|
1107
1107
|
companySecuredArrears?: unknown;
|
|
1108
1108
|
companyUnsecuredArrears?: unknown;
|
|
1109
1109
|
companyBankruptcy?: unknown;
|
|
1110
|
-
companyBankruptcyNo?: unknown;
|
|
1111
1110
|
companyBankruptcyYes?: unknown;
|
|
1112
|
-
|
|
1111
|
+
companyBankruptcyNo?: unknown;
|
|
1113
1112
|
companyCCJInLastThreeYearYes?: unknown;
|
|
1114
|
-
|
|
1113
|
+
companyCCJInLastThreeYearNo?: unknown;
|
|
1115
1114
|
companyDefaultsInLastYearYes?: unknown;
|
|
1116
|
-
|
|
1115
|
+
companyDefaultsInLastYearNo?: unknown;
|
|
1117
1116
|
companyAnyVoluntaryEnforcedPossessionYes?: unknown;
|
|
1117
|
+
companyAnyVoluntaryEnforcedPossessionNo?: unknown;
|
|
1118
1118
|
doYouKnowRegisteredNumber?: unknown;
|
|
1119
1119
|
}> & {
|
|
1120
1120
|
_id: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"application-company-model.d.ts","sourceRoot":"","sources":["../../applications/application-company-model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AA0IhD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsD,CAAC;AACpF,eAAe,uBAAuB,CAAC"}
|
|
@@ -12,9 +12,9 @@ const companySchema = new mongoose.Schema({
|
|
|
12
12
|
businessTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
13
13
|
registeredNumber: { type: Number, max: 99999999, default: 0 }, // form
|
|
14
14
|
taxJurisdictionLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
|
|
15
|
-
tradingSince: { type:
|
|
15
|
+
tradingSince: { type: String, default: null }, // form
|
|
16
16
|
natureOfBusiness: { type: String, maxlength: 100, default: '' }, // form
|
|
17
|
-
yearEnd: { type:
|
|
17
|
+
yearEnd: { type: String, default: null }, // form
|
|
18
18
|
addressPostCode: { type: String, maxlength: 50, default: '' }, // form
|
|
19
19
|
addressLine1: { type: String, required: true, maxlength: 35, default: '' }, // form
|
|
20
20
|
addressLine2: { type: String, default: '', maxlength: 35 }, // form
|
|
@@ -44,37 +44,77 @@ const companySchema = new mongoose.Schema({
|
|
|
44
44
|
companySecuredArrears: { type: String, required: true, default: '' }, // form
|
|
45
45
|
companyUnsecuredArrears: { type: String, required: true, default: '' }, // form
|
|
46
46
|
companyBankruptcy: { type: String, required: true, default: '' }, // form
|
|
47
|
-
|
|
47
|
+
companyBankruptcyYes: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false,
|
|
48
50
|
get: (value) => (value ? "Yes" : "No"),
|
|
49
|
-
set: (value)
|
|
51
|
+
set: function (value) {
|
|
52
|
+
this.companyBankruptcyNo = !(value.toString().toLowerCase() === 'yes');
|
|
53
|
+
return value.toString().toLowerCase() === 'yes';
|
|
54
|
+
}
|
|
50
55
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
companyBankruptcyNo: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: true,
|
|
59
|
+
get: function () { return this.companyBankruptcyYes ? "No" : "Yes"; },
|
|
60
|
+
set: function (value) {
|
|
61
|
+
this.companyBankruptcyYes = !(value.toString().toLowerCase() === 'yes');
|
|
62
|
+
return !this.companyBankruptcyYes;
|
|
63
|
+
}
|
|
54
64
|
},
|
|
55
|
-
|
|
65
|
+
companyCCJInLastThreeYearYes: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false,
|
|
56
68
|
get: (value) => (value ? "Yes" : "No"),
|
|
57
|
-
set: (value)
|
|
69
|
+
set: function (value) {
|
|
70
|
+
this.companyCCJInLastThreeYearNo = !(value.toString().toLowerCase() === 'yes');
|
|
71
|
+
return value.toString().toLowerCase() === 'yes';
|
|
72
|
+
}
|
|
58
73
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
companyCCJInLastThreeYearNo: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: true,
|
|
77
|
+
get: function () { return this.companyCCJInLastThreeYearYes ? "No" : "Yes"; },
|
|
78
|
+
set: function (value) {
|
|
79
|
+
this.companyCCJInLastThreeYearYes = !(value.toString().toLowerCase() === 'yes');
|
|
80
|
+
return !this.companyCCJInLastThreeYearYes;
|
|
81
|
+
}
|
|
62
82
|
},
|
|
63
|
-
|
|
83
|
+
companyDefaultsInLastYearYes: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false,
|
|
64
86
|
get: (value) => (value ? "Yes" : "No"),
|
|
65
|
-
set: (value)
|
|
87
|
+
set: function (value) {
|
|
88
|
+
this.companyDefaultsInLastYearNo = !(value.toString().toLowerCase() === 'yes');
|
|
89
|
+
return value.toString().toLowerCase() === 'yes';
|
|
90
|
+
}
|
|
66
91
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
92
|
+
companyDefaultsInLastYearNo: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: true,
|
|
95
|
+
get: function () { return this.companyDefaultsInLastYearYes ? "No" : "Yes"; },
|
|
96
|
+
set: function (value) {
|
|
97
|
+
this.companyDefaultsInLastYearYes = !(value.toString().toLowerCase() === 'yes');
|
|
98
|
+
return !this.companyDefaultsInLastYearYes;
|
|
99
|
+
}
|
|
70
100
|
},
|
|
71
|
-
|
|
101
|
+
companyAnyVoluntaryEnforcedPossessionYes: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: false,
|
|
72
104
|
get: (value) => (value ? "Yes" : "No"),
|
|
73
|
-
set: (value)
|
|
105
|
+
set: function (value) {
|
|
106
|
+
this.companyAnyVoluntaryEnforcedPossessionNo = !(value.toString().toLowerCase() === 'yes');
|
|
107
|
+
return value.toString().toLowerCase() === 'yes';
|
|
108
|
+
}
|
|
74
109
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
110
|
+
companyAnyVoluntaryEnforcedPossessionNo: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: true,
|
|
113
|
+
get: function () { return this.companyAnyVoluntaryEnforcedPossessionYes ? "No" : "Yes"; },
|
|
114
|
+
set: function (value) {
|
|
115
|
+
this.companyAnyVoluntaryEnforcedPossessionYes = !(value.toString().toLowerCase() === 'yes');
|
|
116
|
+
return !this.companyAnyVoluntaryEnforcedPossessionYes;
|
|
117
|
+
}
|
|
78
118
|
},
|
|
79
119
|
// Not in form Fields
|
|
80
120
|
doYouKnowRegisteredNumber: { type: Boolean, default: true,
|
|
@@ -84,7 +124,7 @@ const companySchema = new mongoose.Schema({
|
|
|
84
124
|
sicCodes: [{ type: String, default: "" }],
|
|
85
125
|
epc: { type: String, default: "" },
|
|
86
126
|
remainingLease: { type: String, default: "" },
|
|
87
|
-
dateOfIncorporation: { type:
|
|
127
|
+
dateOfIncorporation: { type: String, default: null },
|
|
88
128
|
});
|
|
89
129
|
const ApplicationCompanyModel = mongoose.model("ApplicationCompany", companySchema);
|
|
90
130
|
export default ApplicationCompanyModel;
|
|
@@ -27,32 +27,32 @@
|
|
|
27
27
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
28
28
|
import mongoose from "mongoose";
|
|
29
29
|
declare const creditProfileSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
30
|
-
companyBankruptcyNo: string;
|
|
31
30
|
companyBankruptcyYes: string;
|
|
32
|
-
|
|
31
|
+
companyBankruptcyNo: string;
|
|
33
32
|
companyCCJInLastThreeYearYes: string;
|
|
34
|
-
|
|
33
|
+
companyCCJInLastThreeYearNo: string;
|
|
35
34
|
companyDefaultsInLastYearYes: string;
|
|
36
|
-
|
|
35
|
+
companyDefaultsInLastYearNo: string;
|
|
37
36
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
37
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
38
38
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
39
|
-
companyBankruptcyNo: string;
|
|
40
39
|
companyBankruptcyYes: string;
|
|
41
|
-
|
|
40
|
+
companyBankruptcyNo: string;
|
|
42
41
|
companyCCJInLastThreeYearYes: string;
|
|
43
|
-
|
|
42
|
+
companyCCJInLastThreeYearNo: string;
|
|
44
43
|
companyDefaultsInLastYearYes: string;
|
|
45
|
-
|
|
44
|
+
companyDefaultsInLastYearNo: string;
|
|
46
45
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
46
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
47
47
|
}>> & mongoose.FlatRecord<{
|
|
48
|
-
companyBankruptcyNo: string;
|
|
49
48
|
companyBankruptcyYes: string;
|
|
50
|
-
|
|
49
|
+
companyBankruptcyNo: string;
|
|
51
50
|
companyCCJInLastThreeYearYes: string;
|
|
52
|
-
|
|
51
|
+
companyCCJInLastThreeYearNo: string;
|
|
53
52
|
companyDefaultsInLastYearYes: string;
|
|
54
|
-
|
|
53
|
+
companyDefaultsInLastYearNo: string;
|
|
55
54
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
55
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
56
56
|
}> & {
|
|
57
57
|
_id: mongoose.Types.ObjectId;
|
|
58
58
|
} & {
|
|
@@ -196,14 +196,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
196
196
|
} | null | undefined;
|
|
197
197
|
} | null | undefined;
|
|
198
198
|
creditProfile?: {
|
|
199
|
-
companyBankruptcyNo: string;
|
|
200
199
|
companyBankruptcyYes: string;
|
|
201
|
-
|
|
200
|
+
companyBankruptcyNo: string;
|
|
202
201
|
companyCCJInLastThreeYearYes: string;
|
|
203
|
-
|
|
202
|
+
companyCCJInLastThreeYearNo: string;
|
|
204
203
|
companyDefaultsInLastYearYes: string;
|
|
205
|
-
|
|
204
|
+
companyDefaultsInLastYearNo: string;
|
|
206
205
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
206
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
207
207
|
} | null | undefined;
|
|
208
208
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
209
209
|
lastUpdated?: string | null | undefined;
|
|
@@ -384,14 +384,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
384
384
|
} | null | undefined;
|
|
385
385
|
} | null | undefined;
|
|
386
386
|
creditProfile?: {
|
|
387
|
-
companyBankruptcyNo: string;
|
|
388
387
|
companyBankruptcyYes: string;
|
|
389
|
-
|
|
388
|
+
companyBankruptcyNo: string;
|
|
390
389
|
companyCCJInLastThreeYearYes: string;
|
|
391
|
-
|
|
390
|
+
companyCCJInLastThreeYearNo: string;
|
|
392
391
|
companyDefaultsInLastYearYes: string;
|
|
393
|
-
|
|
392
|
+
companyDefaultsInLastYearNo: string;
|
|
394
393
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
394
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
395
395
|
} | null | undefined;
|
|
396
396
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
397
397
|
lastUpdated?: string | null | undefined;
|
|
@@ -572,14 +572,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
572
572
|
} | null | undefined;
|
|
573
573
|
} | null | undefined;
|
|
574
574
|
creditProfile?: {
|
|
575
|
-
companyBankruptcyNo: string;
|
|
576
575
|
companyBankruptcyYes: string;
|
|
577
|
-
|
|
576
|
+
companyBankruptcyNo: string;
|
|
578
577
|
companyCCJInLastThreeYearYes: string;
|
|
579
|
-
|
|
578
|
+
companyCCJInLastThreeYearNo: string;
|
|
580
579
|
companyDefaultsInLastYearYes: string;
|
|
581
|
-
|
|
580
|
+
companyDefaultsInLastYearNo: string;
|
|
582
581
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
582
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
583
583
|
} | null | undefined;
|
|
584
584
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
585
585
|
lastUpdated?: string | null | undefined;
|
|
@@ -772,14 +772,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
772
772
|
} | null | undefined;
|
|
773
773
|
} | null | undefined;
|
|
774
774
|
creditProfile?: {
|
|
775
|
-
companyBankruptcyNo: string;
|
|
776
775
|
companyBankruptcyYes: string;
|
|
777
|
-
|
|
776
|
+
companyBankruptcyNo: string;
|
|
778
777
|
companyCCJInLastThreeYearYes: string;
|
|
779
|
-
|
|
778
|
+
companyCCJInLastThreeYearNo: string;
|
|
780
779
|
companyDefaultsInLastYearYes: string;
|
|
781
|
-
|
|
780
|
+
companyDefaultsInLastYearNo: string;
|
|
782
781
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
782
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
783
783
|
} | null | undefined;
|
|
784
784
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
785
785
|
lastUpdated?: string | null | undefined;
|
|
@@ -960,14 +960,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
960
960
|
} | null | undefined;
|
|
961
961
|
} | null | undefined;
|
|
962
962
|
creditProfile?: {
|
|
963
|
-
companyBankruptcyNo: string;
|
|
964
963
|
companyBankruptcyYes: string;
|
|
965
|
-
|
|
964
|
+
companyBankruptcyNo: string;
|
|
966
965
|
companyCCJInLastThreeYearYes: string;
|
|
967
|
-
|
|
966
|
+
companyCCJInLastThreeYearNo: string;
|
|
968
967
|
companyDefaultsInLastYearYes: string;
|
|
969
|
-
|
|
968
|
+
companyDefaultsInLastYearNo: string;
|
|
970
969
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
970
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
971
971
|
} | null | undefined;
|
|
972
972
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
973
973
|
lastUpdated?: string | null | undefined;
|
|
@@ -1148,14 +1148,14 @@ declare const ApplicationModel: mongoose.Model<{
|
|
|
1148
1148
|
} | null | undefined;
|
|
1149
1149
|
} | null | undefined;
|
|
1150
1150
|
creditProfile?: {
|
|
1151
|
-
companyBankruptcyNo: string;
|
|
1152
1151
|
companyBankruptcyYes: string;
|
|
1153
|
-
|
|
1152
|
+
companyBankruptcyNo: string;
|
|
1154
1153
|
companyCCJInLastThreeYearYes: string;
|
|
1155
|
-
|
|
1154
|
+
companyCCJInLastThreeYearNo: string;
|
|
1156
1155
|
companyDefaultsInLastYearYes: string;
|
|
1157
|
-
|
|
1156
|
+
companyDefaultsInLastYearNo: string;
|
|
1158
1157
|
companyAnyVoluntaryEnforcedPossessionYes: string;
|
|
1158
|
+
companyAnyVoluntaryEnforcedPossessionNo: string;
|
|
1159
1159
|
} | null | undefined;
|
|
1160
1160
|
assignedToUserId?: mongoose.Types.ObjectId | null | undefined;
|
|
1161
1161
|
lastUpdated?: string | null | undefined;
|
|
@@ -127,7 +127,7 @@ propertySchema.virtual('stressedRCR').get(function () {
|
|
|
127
127
|
return 0; // Avoid division by zero
|
|
128
128
|
}
|
|
129
129
|
const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
|
|
130
|
-
return stressedRCR;
|
|
130
|
+
return parseFloat(stressedRCR.toFixed(2));
|
|
131
131
|
});
|
|
132
132
|
const PropertyModel = mongoose.model('Property', propertySchema);
|
|
133
133
|
export default PropertyModel;
|